summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-06-17Fix N checkingTa-wei Yen
am: d0ce6136fe Change-Id: I3877801c200806adc15e559f4fc4514bc573dcef
2016-06-17Fix N checkingTa-wei Yen
Cherry pick to reflect code changes. The dialer in system image is using //vendor/unbundled_google/packages/PrebuiltGoogleDialer This was missed because it was not using ContactCommon compat library but directly using Build.VERSION.CODENAME. No other instances of Build.VERSION.CODENAME are found. Bug: 29420691 Change-Id: Ia01a0aa1d95014da4abc2873a67cc0905fe8eb5f
2016-06-02Merge "Fix bug where a starred contact couldn\'t be removed" into nyc-devSailesh Nepal
am: eb66b0feee * commit 'eb66b0feeeefd4e6362f0b5063978a6c057606f5': Fix bug where a starred contact couldn't be removed Change-Id: I12a76d5dc73101bec87a05d3fab04f6d0be664a6
2016-06-02Merge "Fix bug where a starred contact couldn't be removed" into nyc-devSailesh Nepal
2016-06-01Fix missed call notification dialing wrong numberSailesh Nepal
am: 30371b9022 * commit '30371b9022d0b3740c74523208a9126b9890dab4': Fix missed call notification dialing wrong number Change-Id: Ic234f26998193e848c80f9763f585f7de36050e3
2016-06-01Fix bug where a starred contact couldn't be removedSailesh Nepal
Removing a starred contact was broken on NYC. The problem was that the code assumed ACTION_DRAG_STARTED had coordinates that were view relative. On NYC the coordinates were window relative. This is a cherry pick of http://cl/122480283 and http://cl/123125613 Bug: 29074238 Change-Id: Ib090c6240ed65e4333ad63b3ab4f8b4744181b13 (cherry picked from commit 198074d959385599e952656d0a1b2a306f54e56f)
2016-06-01Fix missed call notification dialing wrong numberSailesh Nepal
This CL fixes a bug where clicking the "callback" button on the missed call notification would dial the previous missed call. To reproduce the bug you had to do the following: - get a missed call from Party A - clear the missed call count by launching dialer and navigating to the call log then pressing home. Clearing the missed call count by swipping away the notification should also work. - get a missed call from Party B - click "callback" on the new missed call notification Previously this would result in Party A getting called back. The problem was that we were using the wrong pending intent flags: - Flag 0: before ag/925201 we were using 0 which meant that the pending intent with Party A was being used. - FLAG_ONE_SHOT: after ag/925201 we were using FLAG_ONE_SHOT which meant that the pending intent would be cancelled after the first use (after the user clicked callback on Party A). If the user never clicked callback on Party A then the intent would be re-used. Fix was to use FLAG_UPDATE_CURRENT instead. This ensured that the pending intent was always updated with the last missed call number. Bug: 29065901 Change-Id: I8515e82d178348235d775b7a110e662652b3385b (cherry picked from commit e5b24ecbe50bd79d2ce7ad8a284ac17ad1284d83)
2016-05-16Fix the bug that quick contact cannot be removed.Qi Wang
am: 0065720a97 * commit '0065720a974377d8139679528f2e3e5c076e91b7': Fix the bug that quick contact cannot be removed. Change-Id: I6eb457f4e634254e05a582d5b88a80885c4005b6
2016-05-13Fix the bug that quick contact cannot be removed.Qi Wang
The "removed" button doesn't received drag and drop event since it's not visible at the time the drag event starts. The workaround is to change the visibility of its child view instead. Change-Id: Iada912fcc36983ad758296f33092cc54ad6f9f5e Fix: 28479593 (cherry-picked from b20b76437ae6aae8fe4da64097351cc80f030919) (cherry picked from commit 22a193b7babae99256149a0536748c6ad9c6b943)
2016-04-28Merge "Cache call type icons" into nyc-devSailesh Nepal
am: e5634164a0 * commit 'e5634164a0e89568cd79868e6bdcbc5610dc78ea': Cache call type icons Change-Id: I7cf4a33a18de4734075c3ba33c8752c5a81f03bf
2016-04-28Merge "Cache call type icons" into nyc-devUsman Abdullah
2016-04-22Merge "Call correct number from missing call notification." into nyc-devQi Wang
am: 71f6781 * commit '71f6781457dc388aca7f8443f6cad511fa8fc8a9': Call correct number from missing call notification. Change-Id: Ic0c2373af8223b7e80a98a53fc2059929945a4bb
2016-04-22Merge "Performing auto-migration when there are no blocked nums" into nyc-devBrandon Maxwell
am: 235d706 * commit '235d706e4aeba527c52c3cb13760791fe6380b37': Performing auto-migration when there are no blocked nums Change-Id: I470a2d25b69c38482ad72209e180fe91d424c94f
2016-04-22Merge "Adding migrate promo to blocked numbers setting ui" into nyc-devBrandon Maxwell
am: fd95466 * commit 'fd95466779e0a25c5d8de9a71ba1fc6c059ed7b8': Adding migrate promo to blocked numbers setting ui Change-Id: Iee5405b3a5497dbd1ff02922137b87d47bb098d0
2016-04-22Merge "Call correct number from missing call notification." into nyc-devUsman Abdullah
2016-04-22Merge "Performing auto-migration when there are no blocked nums" into nyc-devUsman Abdullah
2016-04-20Performing auto-migration when there are no blocked numsBrandon Maxwell
The previous behavior was such that users that had no numbers in the Dialer block list still had to go through steps to migrate to the framework blocking solution, even though there was nothing to migrate. This changes add logic to check if the blocked list is empty, if that's the cause the user is automatically switched to the framework blocking solution. This check is performed only once on app startup. Fixes: 27704106 Change-Id: I32482003279ef2070c1ebd8b801acf637c48ba8c (cherry picked from commit ee4e15b40f0d20b5f04f3569efa12c0d26a38645)
2016-04-20Call correct number from missing call notification.Qi Wang
Change-Id: I97c8214e620378dd32f3778040f2f2b3e1cd58f0 Fix: 28068914 (cherry picked from commit 217b96bd8ccc6874d14a1be84d639ee2d9ba1802)
2016-04-20Cache call type iconsSailesh Nepal
Looking at the trace attached to b/28142787 it looks like CallTypeIconsView.Resources is created frequently. In my local testing with 9 items in my call log, it was created 23 times on load and 3 more times on scroll. According to the trace, creating a Resources object can be expensive. In one frame decodeBitmap was called 3 times and took 1.4 milliseconds. This CL works around the issue by caching the Resources object. This should be ok. The only downside of this is: - the cache won't be updated if the DPI variant changes - the cache won't be released if we get a memory pressure event Bug: 28142787 Change-Id: Ibc2ef02f7c92022deabedd70b1af135a10c9df29 (cherry picked from commit 341185547f9d54566055b270f69f1b93f0301c36)
2016-04-20Adding migrate promo to blocked numbers setting uiBrandon Maxwell
This Migrate promo is shown so users have a way to migrate to the framework blocking solution, directly from the settings. Previously, users would have had to block a number to be presented with the migration dialog. UI: http://screen/GS8TdfKrnVv Button Pressed: http://screen/ovd6NgVmOqq Change-Id: I9c04b8afdf7c5681e09c02c7a4f6013c94b396d9 Fixes:27703938 (cherry picked from commit 3db9bde34452552973acefad5535a2273e9968fe)
2016-04-07Merge "Add via number to CallLog Account entry" into nyc-devBrad Ebinger
am: 87b9abf * commit '87b9abf1fe4d480e15b2af03876003e6b8808b84': Add via number to CallLog Account entry Change-Id: I36077470df4217ffd623be6eca3f48fb413c5bf2
2016-04-06Add via number to CallLog Account entryBrad Ebinger
Call Log now provides the phone number that an incoming call was received on if that number is different than the SIM subscription number. This "via number" is appended to the Phone Account of the Call Log entry in Dialer if it exists. Screenshots: - One PhoneAccount: http://screen/HuCSL0U6jU6.png - Multiple PhoneAccounts: http://screen/pDg8F9zpMei.png Bug: 25594198 Change-Id: I8c05ea98409e54d20493fbdb20096bf851480719
2016-03-30[DO NOT MERGE] Fix Dialer crash loop for caller id in personal contact directoryVictor Chang
am: 758ba19 * commit '758ba199a0a2bce7c69bfcc751bb16138bb6e609': [DO NOT MERGE] Fix Dialer crash loop for caller id in personal contact directory Change-Id: Id4b9f738f6ed57d5c5e76c17a6db427c24ff985c
2016-03-30[DO NOT MERGE] Fix Dialer crash loop for caller id in personal contact directoryVictor Chang
The bug is dialer queries CP2 for alternative name by lookup key of personal directory CP2 throws IllegalArgumentException as the lookup key is not found locally slient IllegalArgumentException since alternative name is not very important to crash dialer. (It's a fix by reverting some changes in ag/880910) Bug:27905000 Change-Id: I1d61f52df63d93c9c7da436c7f2da2bdf3cced0c
2016-03-23Updating blocked number dialog uiBrandon Maxwell
am: 4ddabae * commit '4ddabae31883749c26d200c8f679615a4fced3b9': Updating blocked number dialog ui
2016-03-22Updating blocked number dialog uiBrandon Maxwell
+ Small fix for the blocked number dialog to match mocks. See related bug. Change-Id: I3082cb46adb780aaa96e7d3ccd5a19688cc1845c Fixes: 27703247
2016-03-22Update number blocking stringsTa-wei Yen
am: 0a9d3be * commit '0a9d3be7e92dce46dffeaedb1e6aefc163122bfc': Update number blocking strings
2016-03-22Clear voicemail status text when loading succeededTa-wei Yen
am: 47af919 * commit '47af91907bc39b7b94173cc14809b932f516b1a2': Clear voicemail status text when loading succeeded
2016-03-22Update number blocking stringsTa-wei Yen
+ No message string for unblocking, same as new filtering. + String for blocking with new filtering Fixes:27703247 Change-Id: I4622d9223e03e3c3f207da581ce5b28ee4aa2b42 (cherry picked from commit f0f07d585c95d2bda8a59e9dcffdb687cb21c0fa)
2016-03-22Clear voicemail status text when loading succeededTa-wei Yen
In ag/874775, mStateText.setText(null) is removed from VoicemailPlaybackLayout#setClipPosition(). This caused the error in mStateText not to be cleared after the voicemail is sucessfully loaded. This CL adds a setSuccess() method to the layout that clears the message, which will be called from onPrepared() once the voicemail is loaded. Fixes:27770842 Change-Id: Ic42e40b99d36f817532dec780b63311c1967300c (cherry picked from commit f35cf6c6311aa253d679f61b8fd43babce4a90c3)
2016-03-22Merge "Hide import number settings in Blocked Management UI" into nyc-devTa-wei Yen
am: 5e530f2 * commit '5e530f2d469cae13347a666fd9fe9d214d9e30b4': Hide import number settings in Blocked Management UI
2016-03-22Merge "Hide import number settings in Blocked Management UI" into nyc-devTa-wei Yen
2016-03-22Merge "No notification shown for blocking after E911 call" into nyc-devBrandon Maxwell
am: cf230a9 * commit 'cf230a91080dcfddb82fe4a42c401d77e6ae9bca': No notification shown for blocking after E911 call
2016-03-22Updating logic for isBlockedNumberBrandon Maxwell
am: fd75e4c * commit 'fd75e4c3b3c1a8f5a6ee5d3ce6a8503cf83ea424': Updating logic for isBlockedNumber
2016-03-22Merge "No notification shown for blocking after E911 call" into nyc-devBrandon Maxwell
2016-03-21No notification shown for blocking after E911 callBrandon Maxwell
The Dialer is no longer responsible for showing a notification that call blocking is disabled after the user makes an emergency call. This CL ensures that the notification isn't shown. Change-Id: Ib87679a067831b771d99e5b2b205c84101f05fef Fixes: 27705312
2016-03-22Hide import number settings in Blocked Management UITa-wei Yen
+ When new filtering is possible, we should hide the import number settings from the blocked numbers management UI. Bug:27705124 Change-Id: I59bf958540482fe4d1aa620e4a4bc60fdc479778
2016-03-21Updating logic for isBlockedNumberBrandon Maxwell
In the framework blocking, both the e164 and non-e164 formats of a number can be blocked at the same time; these two formats will still have the same e164 value. Since the original code expected the e164 column to be unique, in this situation the Dialer thought the number was not blocked, resulting in a crash when attempting to block the number a second time. This CL changes the logic so multiple rows with the same e164 value are expected. Change-Id: I90995046df74b8ec2198eab1ef56a13f20dc1398 Fixes: 27724726
2016-03-22Checking for blocked number after migratingBrandon Maxwell
am: ac6cd58 * commit 'ac6cd58c8642d22e47a6d4b30295137a61177e85': Checking for blocked number after migrating
2016-03-21Checking for blocked number after migratingBrandon Maxwell
+ There's an edge case crash in the Dialer when initiating the migration workflow. If the user has blocked a number in the framework prior to migrating the Dialer and then attempts to block that number again in the Dialer, the migration workflow starts, completes, and then the app crashes. This is because prior to migrating, the Dialer doesn't know that the number is blocked in the framework, allowing it to block the same number twice. + Since this case is specific to the situation where an already blocked number initiates migration, this CL fixes the problem by checking if the number is blocked in the framework, prior to blocking it after the migration. Change-Id: I31c8978afb871f364e63cab5cc6da3e5fd106b29 Fixes: 27720157
2016-03-21Merge "Only allow primary users to block numbers" into nyc-devBrandon Maxwell
am: c98a563 * commit 'c98a56336fd49a8c5ea2834a141627d3cf0d8d6d': Only allow primary users to block numbers
2016-03-18Only allow primary users to block numbersBrandon Maxwell
+ By design, only the primary user has the capability to block numbers. + This CL ensures that secondary users don't see the option to block numbers in the call log or call details. Change-Id: I576925510cfbef417c16910218014d9f7b7dd2a0 Fixes: 27366206
2016-03-18Merge "Rename provider authority for AOSP Dialer" into nyc-devTa-wei Yen
am: f804a91 * commit 'f804a91865c7916369e1ab119dfb13d35ca5f033': Rename provider authority for AOSP Dialer
2016-03-18Merge "Rename provider authority for AOSP Dialer" into nyc-devTa-wei Yen
2016-03-18Merge "Fix dialer crash on unknown number call." into nyc-devSarmad Hashmi
am: 5da20d4 * commit '5da20d4e84c475aadfed3cfc3e4ea06d4400091c': Fix dialer crash on unknown number call.
2016-03-18Fix dialer crash on unknown number call.Sarmad Hashmi
+Number is set to empty string if null +Added 11 tests for getContactInfo method, mainly testing various combinations of inputs BUG=27725458 BUG=27724999 Change-Id: Ic64fbdb7490a3c07145310cf02249555bfc963a3
2016-03-17Merge "Return null constructing a malformed PhoneAccountHandle" into nyc-devBrad Ebinger
am: ef2fdd5 * commit 'ef2fdd5cd215e8e0ff974843ccdddad962dd54db': Return null constructing a malformed PhoneAccountHandle
2016-03-17Merge "Return null constructing a malformed PhoneAccountHandle" into nyc-devBrad Ebinger
2016-03-17Return null constructing a malformed PhoneAccountHandleBrad Ebinger
Return null when constructing a PhoneAccountHandle if the ComponentName from the database is malformed. Bug: 26684527 Change-Id: I76a3e61699e0646cdf0b715d7b3908611cdca8ff
2016-03-17Prevent incorrect call log item from expanding when new item arrivesTa-wei Yen
am: fa15094 * commit 'fa15094f656599b24e1c2a5d59ca1d8c0e515d10': Prevent incorrect call log item from expanding when new item arrives
2016-03-17Merge "Add missing lock discovered by GuardedBy checker."Ian Rogers
am: a2ee440 * commit 'a2ee44082c21014d3be1163ca362a556b5db30cc': Add missing lock discovered by GuardedBy checker.
2016-03-16Rename provider authority for AOSP DialerTa-wei Yen
Authority name clash is preventing GoogleDialer from installing over AOSP dialer Authority for FileProvider is put in donottranslate_config.xml because it need to be shared with ContactsCommon Bug:27685485 Change-Id: I45a51639a85a00f58385e08221cb100ac66c2069
2016-03-16Add missing lock discovered by GuardedBy checker.Ian Rogers
Found by error prone. Change-Id: I8923c4e7095e644b8e09841ebda1911e6589b4e0
2016-03-16Prevent incorrect call log item from expanding when new item arrivesTa-wei Yen
mCurrentlyExpandedPosition is unreliable when the list is changing, use mCurrentlyExpandedRowId to determine which item is expanded instead. Positions stored in CallLogAdaptor are also invalidated when the list is changing. Bug:25283769 Change-Id: Iffca8c7d65933cfcdd12f2f3cc85170226db1c4a
2016-03-16Merge "Add default phone account fallback for voicemail notification" into ↵Ta-wei Yen
nyc-dev
2016-03-16Merge "Enabling new filtering" into nyc-devBrandon Maxwell
2016-03-15Enabling new filteringBrandon Maxwell
Bug: 26664600 Change-Id: I27d87006bf153ca57b6acc5b7177aea69e161439
2016-03-15Add default phone account fallback for voicemail notificationTa-wei Yen
Sometimes the accountComponentName and accountId field of the new voicemail will not be populated by the voicemail source, so a PhoneAccountHandle used to retrieve the voicemail ringtone can not be created. Previously we fallback to the default notification sound. In this CL we will attempt to get the voicemail ringtone from the default phone account before falling back to notification sound. Bug:21699149 Change-Id: Ia1c09f5aa32c000cca245c669304cacf4f792c01
2016-03-15Adding logging for migrate blocked numbersBrandon Maxwell
Bug: 26664600 Change-Id: I64e9d1fbd825f25e23124d95b2475fdd6e0830f9
2016-03-15Updating GreatWall to use modifiable flagBrandon Maxwell
+ Rather than using a runtime flag which has to be set for the build, this CL changes the GreatWall feature to be enableable at runtime. Bug: 26664600 Change-Id: Ib0e3229da41a08c67076b7bd171ebbc4b35a4c69
2016-03-15Merge "Keeping migration dialog up while migration in progress" into nyc-devBrandon Maxwell
2016-03-15Keeping migration dialog up while migration in progressBrandon Maxwell
+ This CL ensures that while the migration work is in progress, the MigrateDialogFragment remains visible, with its buttons greyed out. Bug: 26664600 Change-Id: Ied32d05fac46b700f14aee06d383fd2db2fa7913
2016-03-15Updating settings to use system blocked numbers uiBrandon Maxwell
+ After the user has migrated to the framework number blocking solution, the 'Call blocking' setting needs to take them to the system ui. The branching logic to determine which UI to open is added in this CL. Bug: 26664600 Change-Id: I2574f0665d3f0d3d92230e0210c69d1d10b60228
2016-03-15Merge "Removing hardcoded database column name" into nyc-devBrandon Maxwell
2016-03-15Merge "Implemented blocked numbers migration" into nyc-devBrandon Maxwell
2016-03-14Implemented blocked numbers migrationBrandon Maxwell
+ After upgrading to N, users need to be able to migrate their blocked number list from the Dialer solution to the framework solution. Prior to migrating, when a user attempts to block a number, a Dialog is shown prompting them to migrate their numbers. Users must migrate to continue adding numbers to their block list. Users that decide not to migrate will still have calls and voicemails blocked for numbers that are currently on their block list. + This CL implements the logic which copies users' blocked numbers lists to the framework solution. Bug: 26664600 Change-Id: I44dee1306b5daca6f558c81b2b58252b35013e09
2016-03-14Merge "Potential fix for voicemail icon near dialer but no voicemail." into ↵Sarmad Hashmi
nyc-dev
2016-03-14Potential fix for voicemail icon near dialer but no voicemail.Sarmad Hashmi
+Only count voicemails that are unread and have not been marked for deletion. BUG=27548694 Change-Id: I8d6707087bd4a400eb073ac4c2c7e2689a065052
2016-03-14Adding block numbers migration dialogBrandon Maxwell
+ When the user attempts to block a number and they haven't migrated to the framework blocking implementation, they should be shown a dialog that asks them to migrate. This CL introduces the Dialog that is shown and updates the Call log and Call details to open it. + As part one of the change, the Dialog is shown every time the user attempts to block or unblock a number (when the feature is enabled). A later CL will complete this migration step to ensure that the dialog is only shown until migration is finished. Bug: 26664600 Change-Id: Ia4c2d504f8d98679b90d232058eb5ee6ea9b38f1
2016-03-14Merge "Adding sharedPref for blocked number migration" into nyc-devBrandon Maxwell
2016-03-14Merge "Hiding add number button in Blocked Management UI" into nyc-devBrandon Maxwell
2016-03-14Merge "Add talkback for long press and remove contact from starred list." ↵Qi Wang
into nyc-dev
2016-03-13Add share voicemail functionality.Sarmad Hashmi
+Send intent to other applications with temporary file permission granted +Add voicemails folder to FileProvider paths +When creating file in VoicemailArchiveProvider, append extension to file name +Check voicemail content exists before archiving it +Refactor voicemail code +Add tests for checking file extension +Add tests for archiving and sharing vociemails +Archive tab should not archive on share button press BUG=22798485 Change-Id: Id8068aba92f7f1ca58532dca6c405cb2908841a3
2016-03-13Refactor voicemail archive code.Sarmad Hashmi
+Created new class for all AsyncTasks and listener interfaces. +Separated the archive code into separate methods +Added 7 tests BUG=22797391 Change-Id: I789125328bf079846e34c5fd57fd0d1c67dc6266
2016-03-12Adding sharedPref for blocked number migrationBrandon Maxwell
+ Users are shown a dialog when they're running on an SDK which supports the framework blocking solution, but they haven't yet migrated. In order to determine whether the user has migrated or not, a SharedPreference value is used. In a later CL which performs the migration, this value will be updated as the final step. Bug: 26664600 Change-Id: I5a12be643d0fb3b52ef408215779423bf0a2ddc7
2016-03-12Hiding add number button in Blocked Management UIBrandon Maxwell
+ When new filtering is possible, we should hide the add number button from the blocked numbers management UI. + Added method to FilteredNumberCompat to check if it's possible to use the new filtering implementation. This is needed because prior to migrating to new filtering, users need to be able to unblock numbers. Just checking the SDK version is not sufficient, we need to know if the user has migrated their numbers. Bug=26664600 Change-Id: I60433465074911f13a26736221ddacc9a8bbcf88
2016-03-11Removing hardcoded database column nameBrandon Maxwell
+ We were previously hardcoding the post_dial_digits column name. This code was written before we had src-N and src-pre-N folders. + This CL converts the hard coded column name to follow the pattern we have for new stuff in the SDK. + Additionally, this CL removes an unneeded method which checks the SDK version, instead using the CompatUtils class. Bug: 25021389 Change-Id: I017d47f7efd323254e616a64d7ac824c5cfb8902
2016-03-11Merge "Query lookup uri with work lookup key directly is not allowed" into ↵Tony Mak
nyc-dev
2016-03-11Add share button to voicemail cards.Sarmad Hashmi
+Add share icon and string +Added share button to voicemail_playback_layout.xml +Link to icon: https://icons.googleplex.com/#icon=ic_share BUG=22798485 Change-Id: Iab9051f4824a4fa0eed90049a762aaac032cf3bf
2016-03-11Add talkback for long press and remove contact from starred list.Qi Wang
The remove button will be announced when user hovers contact onto it or drop it. Bug: 25559343 Change-Id: I31f51f6d074d8b1721439e7a484e1e316cb006fe
2016-03-11Query lookup uri with work lookup key directly is not allowedTony Mak
Query lookup uri with work lookup key directly is not allowed, app crashes if doing so. And actually, all APIs do not support work lookup key except those explicitly say it does. This Cls changed two places: 1. Do not pass lookup uri with work lookup to NotificationManager to avoid NotificationManager using the uri to query. 2. Dialer perform query for alternative display name using lookup key. But if it is a work contact, do not do so. Bug: 27146678 Change-Id: Ie59c37ff43b6f953a96564c446d79d8812f5ada1
2016-03-10Fixing missed call notifications for FBEBrandon Maxwell
+ Our new components for creating missed call notifications are not marked as encryption aware so Telecom was always creating the missed call notification. + This CL marks the appropriate components as encryption aware so Telecom can check to see if we support putting up the notification. + Updated logic so missed call notifications only have 'callback' and 'message' actions when not locked. + Misc FBE cleanup + Since the call log is not available when on the File based encryption lock screen, dismissed notifications will not attempt to mark the calls as read; attempting do so causes exceptions. + Updated AOSP Dialer to ensure that we don't store data in device encrypted storage by default. This storage location is always available, regardless of whether we're in the FBE locked state or not. None of our preferences/databases need to be available in this state, so this change causes the Dialer to store data in credential encrypted storage by default. This storage location is only available when the device is unlocked. + Updated AOSP Dialer so it doesn't use device encrypted storage by default. This is because we currently don't want any of the preferences/databases stored by the Dialer to be available when FBE locked. + Updated AOSP Dialer so specific components must mark themselves as encryption aware, rather than having everything aware because the application is marked as such. Bug: 27455726 Change-Id: Ib5d28267116ec007bf9beb57862796235460ddf5
2016-03-07Merge "Add contact photo for missed call notifications" into nyc-devTa-wei Yen
2016-03-07Add contact photo for missed call notificationsTa-wei Yen
+ ContactPhotoLoader to create the appropriate icon from a ContactInfo - NameLookupQuery in CallLogNotificationsHelper#getContactInfo To show a photo the name is not enough. Full query need to be made to retrieve the photoUri. + class Assert in util + Gradle directory setup for dialer tests (Note: this is just for project setup in Android Studio, tests are still not runnable in gradle) Bug:27276108 Change-Id: I0ed2147f2bb60454fe5a5ad6c25fe99727441880
2016-03-04Disable voicemail archive by default.Sarmad Hashmi
+Archive-specific actions are not drawn unless the runtime flag is enabled +Disable archive button and menu item BUG=27375884 Change-Id: Ide7d0a162468279f614e09e01de99d782854a3e1
2016-03-04Merge "Add files for voicemail archive tab." into nyc-devSarmad Hashmi
2016-03-04Update call log adapter and related files for archived voicemails.Sarmad Hashmi
+ Populate CallLogAdapter items with different data depending on whether it is in the voicemail archive activity or not + Added addVoicemailGroups method to CallLogGroupBuilder so that every voicemail is put into an individual group + Voicemails grouped differently than regular calls, so added changeCursorVoicemail in GroupingListAdapter +Fix CallLogAdapter tests and add test for archive adapter BUG=22797391 Change-Id: Ib8387c5b3ab8c5e39876cfaf20fde5a44295f152
2016-03-03Add files for voicemail archive tab.Sarmad Hashmi
+ Added VoicemailArchiveActivity which displays all voicemails archived by the user + VoicemailArchivePlaybackPresenter is the same as VoicemailPlaybackPresenter except that it does not need to request content from the voicemail server +Added tests (combined common methods and attributes for regular voicemail tab and voicemail archive used for tests) BUG=22797391 Change-Id: I4064eea945b9e257ec6c7ada35cf5ac1657dc866
2016-03-03Merge "Update seek position by using volume rocker in talkback mode." into ↵Qi Wang
nyc-dev
2016-03-03Merge "CallLogListItemViewHolder distinguishes block/spam numbers" into nyc-devGilles Franck Mevaa
2016-03-02Update seek position by using volume rocker in talkback mode.Qi Wang
Bug: 25452893 Change-Id: Iae3b0a2c2db4642d7cebc74c3ae47f5ab7ad7bc2
2016-03-02CallLogListItemViewHolder distinguishes block/spam numbersGilles Franck Mevaa
A new method is added to show the appropriate photo and label if the number is either blocked or spam. This occurs after the normal photo and labels are rendered. Because of that, there is a flickering if the photo and labels should be changed. b/27295728 will help track the fix of the flickering bug. Change-Id: I639c0c0d4167b48956892f2b955d4e1f0cc8e8eb
2016-03-02Merge "Fixing missed call badge query" into nyc-devBrandon Maxwell
2016-03-02Fixing missed call badge queryBrandon Maxwell
+ Previously the query for the missed calls only checked if the calllog is_read column was equal to 1. The situation where a callog entry exists because it was copied from another user's calllog (such as for File based encryption), the value of is_read is null rather than 0 or 1. + This CL updates the query to return those calllog entries that have null for is_read too. This logic matches the logic for making a calllog entry bold when it's unread. Bug: 27168340 Change-Id: I73dba6920a3eaf352feae4d23cc3f55d51bd1efd
2016-03-02Merge "Check content before requesting a voicemail audio" into nyc-devTa-wei Yen
2016-03-02Merge "Fix voicemail tab showing even after being disabled." into nyc-devSarmad Hashmi
2016-03-01Fix voicemail tab showing even after being disabled.Sarmad Hashmi
+Redraw voicemail tab every time notifyDataSetChanged method is called +Remove voicemail fragment once it is disabled BUG=23522864 Change-Id: I9cb1e6a0bbb91c38709a0ac5b8908f4f1252e509
2016-03-01Check content before requesting a voicemail audioTa-wei Yen
Formerly dialer only checks for content when the view is loaded, will only acknowledge the new content status if the fetch succeeded, and will send a intent every time it thinks there is no content. Suppose the server took really long to finish the fetch, but eventually succeeds, it will cause the voicemail fetch to fail every time. After this fix before a fetch intent is sent, content availability will be checked first. The following step is taken to simulate a slow fetching server: 1.disable prefetch in telephony 2.disable the content fetch on dialer load 3.set fetch timeout to 1ms Verified a similar behavior to b/27388041. Voicemail load fails even if the content is already there. This fix was then applied. Voicemail fail for the first time as it should (timeout), but plays normally after the second time. Bug:27412247 Change-Id: I184e04fb88772f9006cf6db0fe50d6e773a45d4a
2016-03-01Using FilteredNumCompat for unblockBrandon Maxwell
+ This CL updates the FilteredNumberAsyncQueryHandler#unblock methods to use the FilteredNumberCompat class to properly choose between the original Dialer blocking implementation and new blocking. Bug=26664600 Change-Id: I528604eeafa4f7fa131cb1898d57a87708ba58b5
2016-03-01Updating AsyncQueryHandler with FilteredNumCompatBrandon Maxwell
+ FilteredNumberAsyncQueryHandler needs to make use of the FilteredNumberCompat class to unsure that it is blocking/unblocking/checking the proper solution, based on which is enabled. + This CL updates the queryHandler to the FilteredNumberCompat class for the hasBlockedNumbers, isBlockedNumber, and blockNumber operations. Bug=26664600 Change-Id: I5ecf6e340a97e94bf696a0e6c4a7e922b791a6f5