summaryrefslogtreecommitdiff
path: root/src/com/android/dialer
AgeCommit message (Collapse)Author
2013-08-08Removing and renaming classes from DialerYorke Lee
* No code was changed, just either removed or renamed * Reshuffled a couple of ids around in dialpad_fragment to fix some compile time errors that somehow weren't caught before Change-Id: I9e2381edfb14b0940015deb8cbd94786a1242f43
2013-08-07Fix build break due to duplicate method definitionYorke Lee
Change-Id: Id539c6f0a38d7081569fd39e77c3a095466be6ef
2013-08-07Merge "Integrate pinning support with drag and drop UI"Yorke Lee
2013-08-07Integrate pinning support with drag and drop UIYorke Lee
* Added the concept of a blank entry. This is used to keep the rest of the list in place while a contact is being dragged. Blank entries appear as invisible views for now. * Added the concept of a DEMOTED contact, which is used to indicate that a contact should never be displayed in the favorites list. * Pinned position management methods and tests Added two methods to handle assigning of contact positions based on their pinned positions, as well as reflowing of contacts when a contact is pinned at a new position. The assigning of contact positions works as defined below: 1) All contacts with pinned positions are assigned their defined pinned positions as necessary. 2) If two contacts have been given the same pinned position, they are ranked based on the order returned from the ContactsProvider ( alphabetical by display name). The second contact is then pushed to the next position, bumping all corresponding pinned contacts down by one spot as necessary. 3) If there is a contact with a pinned position that is greater than the number of starred + frequent contacts (this can happen if user clears frequents, for example), then it is simply treated as an unpinned contacts. 4) All unpinned contacts flow to fill in the gaps between pinned contacts. The reflowing of contacts works as defined below: 1) Pinning a contact at a new spot replacing an unpinned contact simply pins it at that position. 2) Pinning a contact at a new spot where there was already an existing pinned contact bumps that replaced pinned contact down by one spot alongside all subsequent pinned contacts as necessary. I.e. contact A is pinned at position 2. Before: [A][1][P][P][4][P] After: [0][1][A][P][P][P] 3) If there is no more space at the end of the list to bump the pinned contacts one spot further, then the replaced pinned contacts will shift to the left to take the space of the original moved contact. I.e. contact A is pinned at position 3. Before: [A][1][P][P][P][P] After: [0][P][P][A][P][P] * We no longer perform dynamic updates of the in-memory list. Instead, when a contact is dropped at a new location, the new positions are sent to the ContactsProvider, which updates the database and notifies the adapter that there is a new cursor with updated data. The new list of ContactEntries is then reconstructed from this new cursor. Note that animation behavior with the newly introduced pinned contacts is pretty janky looking - Instead of flowing together with the rest of the unpinned contacts, pinned contacts should remain in position and not animate on a dataset change. Likewise for empty contacts. In order to support this, the animation logic will have to be rewritten to take into account not just soley where the dragged contact was dropped, but also the old and new position of each and every single contact in the list, before and after the database refresh. Change-Id: I5c9542a7fec529f5d965eebe76acbebe1fc10357
2013-08-06Fix crash in onPrepareOptionsMenuYorke Lee
Bug: 10206013 Change-Id: If12a25329701d04e3d40b0d6f18154336d8c90a3
2013-08-06Add GAL support to DialerJay Shrauner
Add BIND_DIRECTORY_SEARCH permission to manifest. Use new methods for GAL support. Change SmartDialing cursor and adapter to use PhoneNumberListAdapter projections directly. Bug: Change-Id: I5f8181cfeec7adab4865e680ebc85ba2b476fc39
2013-08-06Properly show dialpad fragment on first launch if neededYorke Lee
Bug: 10205058 Change-Id: If7eb79b77357a81b17bdff719939debd71544bc4
2013-08-05Undemote contact if it is calledYorke Lee
Change-Id: Ibcd14c7a71f73ed8c7faae07d2c50b23199ff1fd
2013-08-05Code cleanup for call log related itemsYorke Lee
Change-Id: I2aa0458e1fb74abaea60a02f430a4e413dfed365
2013-08-04Merge "Initial cleanup of unused old dialer code"Yorke Lee
2013-08-02Show the All Contacts button even if there are no favoritesYorke Lee
Change-Id: Ic6a1ed35e990ad88fb9ba8eae3bdcd353ad03fbc
2013-08-02Initial cleanup of unused old dialer codeYorke Lee
Removed unused classes and renamed NewDialpadFragment to DialpadFragment. Removed some unused static imports Change-Id: If16a8bfe8cc113a570514b6d0edd87cb946758fa
2013-08-01Fix PhoneFavoritesTileAdapter.getCount()Yorke Lee
getCount() was reporting an incorrect length when the number of entries is less than mColumnCount * mMaxTiledRows Change-Id: I4504b200c938f4bf1a230fc4c2f1bf06ebc5128c
2013-08-01Supports drag and drop outside of a view.Christine Chen
Change-Id: I60c618741006916a2ce05ca0df54da2b0f95ada2
2013-08-01Merge "Don't close cursor manually in PhoneFavoritesTileAdapter"Yorke Lee
2013-07-31Don't close cursor manually in PhoneFavoritesTileAdapterYorke Lee
This seems to mess up the ability to receive further notifications when the data underlying the cursor changes. The framework will automatically close the cursor when it is no longer needed. Bug: 10117074 Change-Id: I8721c955aebf8fd1826c1eebfb158376d204f0fa
2013-07-31Change drag and drop shadow for rows.Christine Chen
Change-Id: I1cf71abd872b40f48a9b98e54aa758072384a728
2013-07-31Fix drag and drop lag.Christine Chen
Change-Id: I5d92fa60aca02883ce624ce6f643c5aedd224039
2013-07-31Adds undo favorite removal dialogue redlines.Christine Chen
Change-Id: I2edcccdd4acdd3ff281132efc66e21def228002f
2013-07-31Merge "Add debug check to PhoneFavoritesTileAdapter.getView"Yorke Lee
2013-07-31Merge "Report proper count in PhoneFavoritesTileAdapter"Yorke Lee
2013-07-31Merge "Prevent animation length from going negative"Yorke Lee
2013-07-31Add debug check to PhoneFavoritesTileAdapter.getViewYorke Lee
Change-Id: If8689796e648552c22e7605a8ebfd1e74a92e6ec
2013-07-31Report proper count in PhoneFavoritesTileAdapterYorke Lee
Change-Id: I63680fe604357b8b5cba3ce0a4a28d0d12e27c37
2013-07-31Prevent animation length from going negativeYorke Lee
Change-Id: I5797dc24a0d4eff96a89627a5b61e7ed16f62dd5
2013-07-31Switch from old dialer to new dialerYorke Lee
Change-Id: I51351f252338eee4d0be5723beafc044786b801e
2013-07-31Merge "Redlines for CallDetailActivity (call history items and voicemails)"Yorke Lee
2013-07-31Adds Drag and Drop UI to the Dialer main view.Christine Chen
- Adds drag and drop listner. - Changes the FavoritesTileAdapter to use an array stored in cache to populate the view. - Adds animation for drag and drop. - Adds swipe to delete an entry. Change-Id: I0717fb3d256b2ab2353f86a998de07edb24e9b4c
2013-07-31Adds all contacts fragment.Christine Chen
Change-Id: Iea03cbb82c9ca9fdff51686a722bea5d301add44
2013-07-31Merge "Dialpad modifications to match the rest of the redlines"Yorke Lee
2013-07-31Dialpad modifications to match the rest of the redlinesYorke Lee
* Reduced size of star and pound keys * Made star and pound key gray * Add voicemail image view * Add light versions of menu assets * Renamed other menu assets to be more consistent * Assign proper menu items to dialpad fragment Change-Id: I67f2e7eecb177fc8ab7b4bc9b2855b385c622a7f
2013-07-31Merge "Add voice search button in Dialer"Yorke Lee
2013-07-30Add voice search button in DialerYorke Lee
Change-Id: Ic8dcf4a1f886d3292af438e5995474539e88b179
2013-07-30Don't hide overflow menu on devices with menu hard keyYorke Lee
We can reenable the menu hard key on devices which have one when we figure out menu interactions between DialtactsActivity and its fragments. Also removed useless Show All Contacts menu option. Change-Id: I446b2157072c137c7b8624ae97455f793b188cdb
2013-07-30Redlines for CallDetailActivity (call history items and voicemails)Yorke Lee
* Swapped out new assets * Changed background colors as necessary * Add padding view at bottom of seek container * Changed color of drawables * Removed unused assets Change-Id: I654ba417e03b2a32039504ae2de51fd75c5bec20
2013-07-30Merge "Change overlay and styles for contact tiles"Yorke Lee
2013-07-30Change overlay and styles for contact tilesYorke Lee
* Add shadow overlay * Change font and color of contact tile name * Change various padding values Change-Id: I298a2cc58ed3cf1ab310bb5c5cfc243e3eee117e
2013-07-30Merge "Fix fragment-related issues in new Dialer"Yorke Lee
2013-07-30Fix fragment-related issues in new DialerYorke Lee
Fix fragment lifecycle issues that occur when resuming the Dialer from recents after some time. To better reproduce fragment lifecycle issues more easily, remove the attribute android:screenOrientation="nosensor" to simulate activity creation and destruction. Change-Id: I9972121e6e06690d2a4823f9480ff9a993854059
2013-07-30Merge "Implement dialpad in XML"Yorke Lee
2013-07-30Implement dialpad in XMLYorke Lee
Change-Id: I603eb29203b2ae65fe35f423c574a33bb86662a2
2013-07-29Merge "Use roboto light font for ActionBar title for CallLogActivity"Yorke Lee
2013-07-29Merge "Redlines for phone number list fragments"Yorke Lee
2013-07-29Use roboto light font for ActionBar title for CallLogActivityYorke Lee
Use a SpannableString with roboto light font to style ActionBar title because there is no framework affordance to set a custom font for the action bar. Change-Id: Ic0675d78b077e8686cf5bbdc88b06b75acb8c503
2013-07-29Redlines for phone number list fragmentsYorke Lee
* Add and remove padding for regular search and smart dialing search fragments. * Move background colors to individual fragment views instead of the app, so that they can define their own background colors without causing overdraw. * Remove unused imports in SearchFragment Change-Id: Id1523c5760ea3cf5e675df8f89e5bd299a95eb18
2013-07-29Code cleanupYorke Lee
Change-Id: Ib2ee17d3a236c79a5a4495fd28281e2c29479a99
2013-07-29Allow Dialer to respond to dial and view call log intents.Yorke Lee
Change-Id: I5a67cf690be172e5d55a426f61e53e6b1bb7a935
2013-07-27Merge "Add actionbar items on dialpad fragment to match redlines"Yorke Lee
2013-07-26Add actionbar items on dialpad fragment to match redlinesYorke Lee
Change-Id: Iea40db1bd4162a3e5f5a80e7af8b2902afd438b1
2013-07-26Remove All contacts section from PhoneFavoritesMergedAdapter entirelyYorke Lee
Change-Id: I6bb7262da401a408a34efe3cf52f99f7ef435421
2013-07-25Allow frequent contacts to also take up the top row of tiled contactsYorke Lee
Change-Id: I7877035b52a3ee4ec8772cfda16f6e078cdd4404
2013-07-23Redlines for call history screen, as well as most recent call logYorke Lee
* Add and change background and layout for CallLogListItem * Create wrapper view for most recent call log item * Change actionbar background in Call History activity * Hide phone number in call log items * Add tab indicator drawables Change-Id: Ic86c3fac857971aba58ba3ac1d79ddebaf663da6
2013-07-22Style and layout changes to match redlinesYorke Lee
* Swapped out some icons with newly added assets. * Changed search view into edit text with accompanying close button so that it can be more easily styled. * Changed various background colors. * Tweaked padding values to match redlines * Removed margins from PhoneFavoriteRegularRowView and PhoneFavoriteTileView and instead use a standardized set of margins for all rows in PhoneFavoritesTileAdapter * Added bottom_border_background drawable to create a bordered background. * Remove PhoneFavoritesTileAdapter.ViewTypes.STARRED/STARRED_PHONE since they are no longer relevant Change-Id: I65dfd5adf6cfbcb2c9d283aef2bd10e5d2a82dc7
2013-07-18Remove voicemail tab in new DialerYorke Lee
Change-Id: Ifdad003cac85f80799ac7e893911611ec8b130ef
2013-07-17Fix Dialer crash due to incorrect viewtype count being reportedYorke Lee
Bug: 9899110 Change-Id: I81408b00cced4b757b0ecca45369b05eb16c0620
2013-07-16Initial commit of all new dialer activities, layouts and stylesYorke Lee
As far as possible, this change does not modify any behavior/look of the existing dialer. All modifications to classes/layouts/style attributes that would affect functionality of the old dialer are instead done in separate new files. Added new versions of all activities, fragments, layouts, menus and resources that have been rewritten or modified. The activities do not have intent filters yet in order to not interfere with the existing dialer. Added some new values in colors/styles/dimens for the newly added layouts. Added NewCallLogActivity to separate the CallLogFragment from DialtactsActivity. All call log and voicemail entries are now presented in a separate (New)CallLogActivity. IntentProvider.getCallDetailIntent now takes a cursor instead of an adapter for more flexibility. Add OnListFragmentScrolledListener interface for DialtactsActivity to receive callback when one of its children fragment is scrolled. Added slide in and slide out animations for DialpadFragment. Add slide up and hide animations for search view All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment. Added call log adapter into NewPhoneFavoriteMergedAdapter. Rewrote layout of DialpadFragment to show up as a fragment partially overlaying the screen. Removed some unused code in DialpadFragment (smart dialing, menu handling) Add fragments and adapters for SmartDial. - Update Dialer database to support highlight masking and record contact data Uri, as well as photo uri - Add a fragment and adapter for smart dialing - Add SmartDialCursorLoader to load SmartDial results. - Typing in the dialpad now returns smart dialing results instead of regular search results QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use light theme instead of the the default dark theme. Removed all redundant call log filter and contacts to display filter code Moved Dialer specific UI list-related classes to the Dialer package Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7
2013-07-16Adding new copies of classes for new Dialer UIYorke Lee
No code has been modified at all in this CL. All classes were copied from existing classes and renamed to add the New prefix. Change-Id: Idbb522c9dd1ef5db8e3dffcb73155ca603f861b2
2013-07-03Remove CallLog New and Old sectioning.Christine Chen
Bug: <5751629> Change-Id: I1689fa10f285bc66fc69b6a9b9da139ce5461d83
2013-07-02Fixing SmartDial crash bug.Christine Chen
Change-Id: I405535654240b959cf8b0caa7ecfa8456a632791
2013-06-28Add SmartDial database for the Dialer app.Christine Chen
- Creates a database helper to create a smartdial database for the Dialer app. - Queries all rows in the Contact database and copies related columns to the smart dial database. - Create another prefix database to contain all prefixes of a contact. - During keypad input, the prefix databse is queried to find contact suggestions, and suggestions are ranked by the usage data and contact status (starred, primary contact, etc.) - Created unit test for the SmartDial database insertion and prefix computing functions. Change-Id: I4d7c3b3bcc52dd6efa4d6e69d3f1687c3abaeb69
2013-06-13Use new CallLog number presentation columnJay Shrauner
Switch to using new number presentation column in the CallLog table and discontinue using special phone number strings in CallerInfo. Needed for unbundling. Bug:6948882 Change-Id: Ibf27ea55cee783c4530101e4e228198e245e6684
2013-06-11am 1dd46a5c: Fix crash in Dialer in landscape modeYorke Lee
* commit '1dd46a5c676325d20b7a042d0d0d3c7d9365d0bd': Fix crash in Dialer in landscape mode
2013-06-10Fix broken SmartDialNameMatcher testsYorke Lee
Change-Id: I57ffcea3d3fc43e8c87a47a97d6b4f7e5edf1525
2013-06-10Fix crash in Dialer in landscape modeYorke Lee
Bug 9369806 Change-Id: I286ebb828c0f6ce7c005c541661b9aa67284847e
2013-06-07Preserves changes in phone number on dialer.Christine Chen
Added check on whether the intent is new to decide when to fill in the number in dialer automatically. If the intent is not new, the dialer will be filled with previously used number, preserving any edits on that number. Bug: 8484457 Change-Id: I45f02d395ce402670b380485b5ba1e7190600ec3
2013-05-31Use TelephonyManager instead of ITelephonyJay Shrauner
Switch to using public TelephonyManager calls (needed for unbundling). Bug: 6948882 Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
2013-05-24Merge "Create backup agent for the Dialer app."Christine Chen
2013-05-23Create backup agent for the Dialer app.Christine Chen
- Currently only the active tab is being backed up. - More settings may be added later. Change-Id: Id66565029be751beae8b58d4cc054f8d2d16ceea
2013-05-23Added SmartDialMap interfaceYorke Lee
All character validation, remap and index calculations in both SmartDialTrie and SmartDialNameMatcher now go through a SmartDialMap. The LatinSmartDialMap is used by default. Bug: 8769026 Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3
2013-05-22Smart dialing caching not starting immediatelyYorke Lee
Bug 9086662 Change-Id: Iab8fc869180188930f84edb794e0a24a1a0a2229
2013-05-14Animation for smart dialing suggestionsYorke Lee
Suggestions now appear with a fade in and slide up animation. Suggestions vanish with a fade out and slide down animation. If a suggestion is moved into the middle, it slides to the left/right as appropriate. Change the layout containing suggestions to a LinearLayout, in order to better support animations. Renamed SmartDialAdapter to SmartDialController, and also refactored it to handle entries for a LinearLayout instead of a GridView, as well as adding animation support and view management. Use null object pattern in SmartDialEntry to better handle null entries. Start displaying suggestions on the first digit entered. Bug 8840240 Change-Id: If4e16006c0b36d2244434e0b2d8f3d3b997b0ad2
2013-05-14Fix Dialer NPEYorke Lee
Make sure that smart dialing state is properly set before any digits in the dialpad EditText is populated. Also turn smart dialing off by default even if the system setting hasn't been previously set. Bug 8963485 Change-Id: If556d8b1405cc9e60043774b3aafd5e111e4e7ee
2013-05-13Merge "Setting to toggle smart dialing on/off" into jb-mr2-devYorke Lee
2013-05-08Setting to toggle smart dialing on/offYorke Lee
Bug 8840243 Change-Id: I1d1fea4f958821f3a9273ba189e2140367049516
2013-05-07Allow vanity numbers via paste/DIAL intentYorke Lee
https://googleplex-android-review.googlesource.com/#/c/253417/ Converts vanity numbers such as 1-800-FLOWERS to the numeric equivalents when the number string is populated via a DIAL intent or pasted from the clipboard. Does not remove valid formatting such as dashes, periods, spaces, etc. Bug: 8858358 Change-Id: I553c91628b8fd86ff38a8eeec7823ebdc96bfe6b
2013-05-01Apply NANP logic to numbers with a +1 country codeYorke Lee
Bug 8769688 Change-Id: I4aadd0f9e5495fb1b604910306dfd918d1540136
2013-04-30Fix Smart dialing OOM for extremely long contactsYorke Lee
Names with an extremely large number of name tokens were using exponentially increasing amounts of memory since we have to insert entries for all possible initial name combinations. Added a check in the trie insertion algorithm to only add initial matches for the 1st 2, and the last 2 name tokens. This change only affects search by initial matches for names exceeding 4 name tokens. Full token search for names of all lengths should still work. E.g. "frank", "enstein" would still match "Dr Frank En Stein DDS". However initial matching would be limited to the first 2 and last 2 tokens. So "dfsd" or "fsd" would work, but "fes" or "fed" would not. Also fixes a bug caused by integer overflow when calculating thresholds for bucketing frequently used contacts Bug 8737986 Change-Id: I804184368b78fe2fa407667ed83874d839c28115
2013-04-23Display regulatory info from "*#07#".Jake Hamby
When user dials "*#07#", display the regulatory info graphic, or SAR data if no regulatory info PNG is provided for the device. Bug: 8259869 Change-Id: I5d8c640bfa13e2f0d3de7c68258a65428e336bca
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-06Merge "Sort by data usage for smart dialing" into jb-mr2-devYorke Lee
2013-04-05Sort by data usage for smart dialingYorke Lee
Bug 8281648 Change-Id: I55bfaf137f9657a47616187fe7b7999c321b21f9
2013-04-05Merge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" ↵Fabrice Di Meglio
into jb-mr2-dev
2013-04-05Fix for bug #8146846 Phone App should be mirrored for RTL languagesFabrice Di Meglio
- replace left/right properties with start/end ones (Dialer will never be unbundled) - add mirrored version of some drawables - update AndroidManifest Change-Id: Ia7f5b6ad13dd75fe42f1ee763dda5ab18e2d92c7
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
2013-01-09Merge "Dedup NANPA numbers"Jay Shrauner
2013-01-08Dedup NANPA numbersJay Shrauner
Remove redundant call to shouldCollapseWith() and remove ignored return value in collapseWith(). Bug:7519057 Change-Id: I7e01746749d8574dbb596b2e1b09673bf78fa045
2013-01-07Add a "No contacts" description to PhoneFavoriteFragmentYorke Lee
Add an additional "No contacts" view to the sub-header view returned by PhoneFavoriteMergedAdapter. This is required because the empty view functionality provided by a simple list view does not work because PhoneFavoriteMergedAdapter is a combination of two adapters. This "No contacts" view provides the illusion of an empty view for the 2nd adapter that displays all contacts without phone numbers, even if the first adapter does contain contacts. Bug: 5522729 Change-Id: I7dcc4cd7b4b2b28fefea4be384de40318654e165