summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/dialpad
AgeCommit message (Collapse)Author
2013-04-19Allow name matching for contacts with numbers in their nameYorke Lee
For SmartDialTrie, also include numbers as valid characters when calculating indexes when generating the byte array. For SmartDialNameMatcher, include '0'-'9' as valid latin characters, and handle them appropriately after remapping accented characters. Also fixed a subtle matching bug that would manifest itself when matching against multiple tokens with similar initials - E.g. "Dr.Dredd" Bug 8659001 Change-Id: If461d2760a723ef7fd03dda0c1a1515cd7b44cf6
2013-04-17Allow smart dialing to ignore country code/area codeYorke Lee
Add handling of country codes if the number starts with a '+' prefix Also add special case handling for NANP numbers in SmartDialTrie if we determine that the user is in North America. Save user's SIM country ISO into SharedPreferences. Add SmartDialNameMatcher methods to correctly match NANP numbers Fix tests to use assertTrue/assertFalse instead of assertEquals Bug 8292294 Change-Id: Ic61dac75ee3b772986d3008240bbda81322c8f31
2013-04-08Merge "Fix name matching bug with non space separators" into jb-mr2-devYorke Lee
2013-04-08Fix name matching bug with non space separatorsYorke Lee
Bug: 8435819 Change-Id: I69c32207d123e5da4ae5421a5fe83ffeee4e5070
2013-04-05Sort by data usage for smart dialingYorke Lee
Bug 8281648 Change-Id: I55bfaf137f9657a47616187fe7b7999c321b21f9
2013-04-02Remove smart dialing content observerYorke Lee
The content observer doesn't help to detect changes that happen outside the application (e.g. user modifies a contact in the People app), and seems to be called multiple times while in the dialer for no reason, causing multiple unnecessary recaches. Instead, just force a recache in onResume upon startup to refresh the cache. Bug 8527847 Change-Id: I52f5c435ad573ce8b195d7b7828f19501e068c60
2013-04-01Turn smart dialing debug logging offYorke Lee
Bug 8518729 Change-Id: Ib6626385c3b7cd9a6c3a18335444db21b937ea02
2013-03-19Merge "Always show WAIT/PAUSE in dialer overflow menu." into jb-mr2-devSantos Cordon
2013-03-19Always show WAIT/PAUSE in dialer overflow menu.Santos Cordon
Used to hide menu items when not applicable. Now we show them always and only perform the action in those cases where menu items were previously visible. Updated code to do zero-position checks when there is no selection...previously missing check. Changed code to use chars instead of Strings when dealing with single digits. Consolidated duplicate code with updateDialString() function. bug: 7478840 Change-Id: I2aa5d3badd40079e9aa75abf7e4051f9dba5e667
2013-03-15Ensure simulated A11y clicks in Dialer correctly send click events.Alan Viverette
Bug: 8369906 Change-Id: Ibdf8a4d43d0898429333af03e98a9aa494e5c819
2013-03-08Merge "Fix accessibility bug where enter key adds the focused digit twice." ↵Svetoslav Ganov
into jb-mr2-dev
2013-03-06Fix accessibility bug where enter key adds the focused digit twice.Alan Viverette
Bug: 8328641 Change-Id: I76fda040f709a9a5c0e88e67abfa106763b75ffb
2013-03-06Remove ICS-era accessibility workarounds from Dialer app.Alan Viverette
Bug: 8330225 Change-Id: I0c61e12b4090ff6eeaff5ef5791ac62814d90383
2013-02-12Smart Dialling v2 with phone number supportYorke Lee
Behavior: Use a prefix tree to cache contacts instead of an array list Perform matches against phone numbers as well DialpadFragment now ignores results from stale tasks where queries no longer match Add ability to not use default phone number for phone number disambiguation dialog Contacts are now ranked by the order which they were sorted by in the ContactsProvider (affinity) Change remapAccentedChars to always return lowercase characters to avoid overhead of uppercase character conversion Resource/Layout changes: Tweak margins so that the section containing smart dial suggestions looks cleaner Use color resource instead of hardcoding color values Add phone number to SmartDial items ContentObserver: Add a contentobserver to be notified on changes in contacts Refactored cache to allow for forced cache refreshes Use a single instance of SmartDialCache Tests: Added SmartDialTrie tests Comments: Comment cleanup Change-Id: Ica2854e2845d4d75048aa1fd982f139496d21bf3
2013-02-05Don't show old matches if no smartdial matches foundYorke Lee
Change-Id: If851c291273aa5296f1d59edccc83e6d4019be76
2013-02-04Enable initial matching for Smart DiallingYorke Lee
Allow the name matcher function used by smart dialling to perform initial matches of the variety 57 - (J)ohn (S)mith Refactor SmartDialNameMatcher testing method to allow checking multiple match positions. Add tests for initial matches Change-Id: Iadc5e3e8b2f408136c704015d2297e9b520e1065
2012-12-07Fixing import order.Chiao Cheng
Change-Id: Idcab1877b341b42440e336fa09ba7d631c28c7d0
2012-12-06Fix buildYorke Lee
Change-Id: If60fc1d68bf7d32807f61716aecc7eb5d2ac1677
2012-11-30Cherrypick Arabic/Farsi pasting into dialpad fixYorke Lee
Bug: 6656969 Change-Id: I0bb094125eb9be2b6508e6ca658ae23da9da19d1
2012-11-21Use SmartDialCache object for cachingYorke Lee
Extract caching methods from SmartDialLoaderTask and use a standalone SmartDialCache object instead. This cache object handles caching failures as well as concurrent multiple cache requests. Bug: 6977981 Change-Id: I6df9e273191c7ac434d094e567d7a91814f8c030
2012-11-13Move dependencies of AccountTypeManager into ContactsCommon.Chiao Cheng
Moving dependencies in preparation to move AccountTypeManager. Bug: 6993891 Change-Id: I0399fee27960d46cd5b6f629d32868ff0c2ce38e
2012-11-09Merge "Fix NPE if SmartDialLoaderTask has null context"Yorke Lee
2012-11-09Use a custom character map instead of name normalizerYorke Lee
Instead of normalizing names during caching, add a function that that maps accented characters to their alphabetic equivalents using switch statements. This character map is used in the on-the-fly matching algorithm. This speeds up the caching process(11k contacts) from 800-1500ms to about 600-1000ms since we no longer perform the normalizing step during caching. Bug: 6977981 Change-Id: I98dfc3cba00258bb7ff03b346eab7ca7dc1065be
2012-11-09Fix NPE if SmartDialLoaderTask has null contextYorke Lee
Add null check for mContext to prevent NPE if somehow SmartDialLoaderTask receives a null context Bug: 6977981 Change-Id: Id87b254520a48ad78dc0c579f0fd58d7f7ce270e
2012-11-07Merge "Add smart dialling capabilities to dialer"Yorke Lee
2012-11-07Add smart dialling capabilities to dialerYorke Lee
Layout changes to dialpad fragment to make space for smart dial suggestions. This feature does not appear in landscape mode. SmartDialTextView automatically resizes text to fit within the bounds of the view. SmartDialAdapter highlights certain portions of the matching name based on match positions provided by SmartDialNameMatcher. SmartDialLoaderTask is an AsyncTask that caches all contacts with a phone number into memory, or matches all contact names against a provided query to return a list of matches (maximum of 3). SmartDialNameMatcher contains utility functions to remove accents from accented characters and normalize a phone number. It also contains the matching logic that determines if a contact's display name matches a numeric query. Added some tests for SmartDialNameMatcher Bug: 6977981 Change-Id: I43e1a70d8d0d46e02fc67fe1caaec9a1769124f5
2012-11-07Change dial pad to show chooser onStart instead of onCreate.Chiao Cheng
This fixes the problem where the chooser is not shown when the dialpad is started and pushed to recents before a call comes in. When the call comes and dial pad is selected from recents, the dialpad is shown. Instead, we should be showing the chooser so the user has the option of getting back into the call. Bug: 5761141 Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
2012-10-30Move PhoneNumberFormatter to common.Chiao Cheng
Bug: 6993891 Change-Id: I21b3afb81855ae728b9e20f8af8632c9cd9f4e58
2012-10-30Move StopWatch class into common.Chiao Cheng
Bug: 6993891 Change-Id: I0137ea3a72e0ee1a75f9218fec471049abf36d97
2012-10-23Removing contacts dependencies from CallDetailActivity.Chiao Cheng
Bug: 6993891 Change-Id: I3ef54efc0ff92367ea4f9b68c1629a99d90ff22c
2012-10-15Changing com.android.contacts.R to com.android.dialer.R.Chiao Cheng
Bug: 6993891 Change-Id: I921ec71fffbd4d4a058bab29ded8a6ac62adfb70
2012-10-09Implement list-to-type for phone dialer accessibilitySantos Cordon
Cherry pick of I7d4a292ebc306b51666d9aa840ddcb2a7e5770fb from jb-mr1 bug: 7297096 Change-Id: I6d95d5d6e2f9ef320002b344af82c9c7a38ffde8
2012-09-05Moving resources from Contacts to Dialer.Chiao Cheng
- Also moving some shared utilities. Bug: 6993891 Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
2012-08-30Moving more classes from contacts into dialer.Chiao Cheng
- These classes are only used by dialer code. - Fixed import order. Bug: 6993891 Change-Id: I7941a029989c4793b766fdc77a4666f9f99b750a
2012-08-24Move common phone classes to new location.Chiao Cheng
- removed dependency on com.android.phone.common jar (old package) Bug: 7054788 Change-Id: I8c1f6449534a946f4660a9e8924079c08ff1786c
2012-08-21Initial move of dialer features from contacts app.Chiao Cheng
Bug: 6993891 Change-Id: I758ce359ca7e87a1d184303822979318be171921