summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-02-04Show work call title for missed call notificationVictor Chang
1. return complete ContactInfo in CallLogNotificationsHelper 2. use ContactInfo.userType to decide use work call title or not BUG=26902076 Change-Id: Ic58fea1002de053ba69bc0aff06691b8a8605e64
2016-02-02Merge "Refactor VVM specific code from CallLogFragment"Ta-wei Yen
2016-02-01Refactor VVM specific code from CallLogFragmentTa-wei Yen
Moved visual voicemail code from CallLogFragment to VisualVoicemailCallLogFragment. Expected to have a lot of VVM specific code in the fragment, so it's better to separate them. Change-Id: I0fcad51d08f1a174a42f940fd455ce885d76c4ae
2016-02-01Don't print phone number into Android logVictor Chang
Use Log.pii to hash pii BUG=26635632 Change-Id: I3c03ec2347e251696f6c0c78f8b39d6e34b6afcc
2016-01-28Merge "Remove the work badge icon for Google caller id in call log" into ↵Victor Chang
ub-contactsdialer-b-dev
2016-01-27Look up missed call contact info in cache.Nancy Chen
For missed calls that can be identified with Google Caller ID, we want to look up the contact information in the cache because that's where the information will be if it was looked up when the call was incoming. Bug: 22857261 Change-Id: I2563c9f5e99bdc91674b9b46def1eeabeb45794d
2016-01-27Display missed call notifications in Dialer.Nancy Chen
Dialer is now putting up the missed call notification instead of Telecom. As a result, it has to handle receiving a new missed call broadcast and sending requests back to Telecom to update the missed call count. + MissedCallNotifier class displays notifications and triggers call back sms, and dismiss intents. + CallLogNotificationsService added actions it can handle for missed calls. + MissedCallNotificationReceiver receives the missed call intent to update the notifications. Bug: 22857261 Change-Id: I03a3c3b5a2533a3ea26d668124fcaf3fa72347fc
2016-01-27Remove the work badge icon for Google caller id in call logVictor Chang
An extended directory is custom directory in the app, but not a directory provided by framework. So it can't be USER_TYPE_WORK When a search result is selected, RegularSearchFragment calls getContactInfo and caches the resulting @{link ContactInfo} into a local db. Set userType to USER_TYPE_WORK only if it's NOT extended directory id and is enterprise directory BUG=26680007 Change-Id: I92aa4b7c3dac20257e689eb0a4dfa0afbd81764c
2016-01-26Merge "Dismiss dialpad when clicking in search area." into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-25Move AppCompatPreferenceActivity to ContactsCommonWenyi Wang
Bug: 26469731 Change-Id: Idff6aabfaa07b31160ddad87a2f51ac87ed20345
2016-01-25Use telephony voicemail notification settings for vvm.Nancy Chen
Previously visual voicemail notifications did not align with the telephony voicemail notification settings that the user could visit through dialer settings. After adding an API to access those telephony settings, dialer can now read those settings and use them when providing notifications for visual voicemail. Bug: 24164917 Change-Id: I2510dc3d3f1b5b54a378b2c0d59a24ae1ff198d7
2016-01-23Merge "Factor out lookup code in DefaultVoicemailNotifier." into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-21Factor out lookup code in DefaultVoicemailNotifier.Nancy Chen
In preparation for sharing code with the MissedCallNotifier, factor out the potential common code into CallLogNotificationsHelper. + Turn CallLogNotificationsHelper into a singleton. + Copy over NewCallsQuery and NameLookupQuery classes. + If it is a voicemail with unknown number, display the string "unknown". Bug: 22857261 Bug: 25020236 Change-Id: Ie181472bd4588466ec5f37c8cbacf023ba1a21c4
2016-01-21Dismiss dialpad when clicking in search area.Nancy Chen
If a user goes from the search fragment to the dialpad and then clicks on the space above the dialpad, they probably expect to go back to the search fragment--dismiss the dialpad. See the bug for context. Bug: 23302853 Change-Id: I69053a2c8289f18d99e47c5d539a5ba94bde2ab6
2016-01-20Added UserManagerCompat#isUserUnlocked methodBrandon Maxwell
+ Needed to ensure that N sdk method calls aren't compiled into the apk prior to the sdk launch Bug=26542221 Change-Id: Iefc54caa5cb15758f011fc38c50c2ff1efa8c5c2
2016-01-19Merge "New Spam-related options in call log entries." into ↵Gilles Franck Mevaa
ub-contactsdialer-b-dev
2016-01-19New Spam-related options in call log entries.Gilles Franck Mevaa
This includes small UI additions to the call log UI; Mainly, two new buttons to mark each phone number entry as a Spam number or remove the phone number from the spam list. This also includes a service definition that will be needed to render the buttons or keep them hidden. Change-Id: I7cf22f6027728ebc0dfe9e3b5b923ee70bcaadd2
2016-01-15Merge "Hide "copy" and "block" options for unknown numbers in Call Details." ↵Nancy Chen
into ub-contactsdialer-b-dev
2016-01-15Merge "Display "unknown" in the name field for voicemail with unknown ↵Nancy Chen
callers." into ub-contactsdialer-b-dev
2016-01-15Merge "Changes needed to make Incoming calls work while fbe locked" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2016-01-15Merge "Revert "Use telephony voicemail notification settings for vvm."" into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-15Revert "Use telephony voicemail notification settings for vvm."Nancy Chen
This reverts commit 201e021fe24e36ae2d94eadd4701933dd099d309. Change-Id: I9b8e9bc74d23cea7c668166d275033c8fddf52cf
2016-01-14Hide "copy" and "block" options for unknown numbers in Call Details.Nancy Chen
If the number string is unknown or can't be called, the call details screen should not show the "copy number" and "block number" options. Bug: 26445855 Change-Id: I219d99709de75e641e3603c52209fe362a20e6ba
2016-01-15Merge "Use telephony voicemail notification settings for vvm." into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-14Use telephony voicemail notification settings for vvm.Nancy Chen
Previously visual voicemail notifications did not align with the telephony voicemail notification settings that the user could visit through dialer settings. After adding an API to access those telephony settings, dialer can now read those settings and use them when providing notifications for visual voicemail. Also provide a VoicemailNotificationSettingsLookup class to enable separate functionality for N and pre-N. Bug: 24164917 Change-Id: I45d746b485be2f1db90b66a96885ba1485743b49
2016-01-14Changes needed to make Incoming calls work while fbe lockedBrandon Maxwell
+ Necessary in-call components are marked as encryptionAware. + Added needed null checks since the filtered number table isn't available when fbe locked. Bug=26542121 Change-Id: I316cd62c1faec471356794db433b9f631f293c4f
2016-01-14Display "unknown" in the name field for voicemail with unknown callers.Nancy Chen
For calls, we will never display an empty name field because we have the "name presentation" from the call that will inform the UI how to display the name (whether "restricted", "unknown", etc.). However for voicemails, there is no such similar field because the voicemail is not associated with a particular call. In the case where the name field in the voicemail table is blank (which would be the case if the server failed to provide it or the caller obscured their phone number), instead of displaying an empty string, this CL defaults the name to "unknown". Bug: 25020236 Change-Id: I7355abb88ac4ac90f7b19c86f335964aaad336aa
2016-01-15Merge "Implement FloatingActionButton.Behavior method correctly." into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-14Merge "Revert "Use telephony voicemail notification settings for vvm."" into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-14Revert "Use telephony voicemail notification settings for vvm."Nancy Chen
This reverts commit 5cfa2c31a9877563a383c3c6ee10790af9db61d0. Change-Id: Iabae03ca3dc671775779e2a61e380193341fad8a
2016-01-13Implement FloatingActionButton.Behavior method correctly.Nancy Chen
Was using a hack before to implement the FAB behavior. Fixed it to the correct implementation. Bug: 23687913 Change-Id: I3b667cd656f0f1a82800ad0afe96acdd9c093606
2016-01-14Merge "Revert "Changes needed to make Incoming calls work while fbe locked"" ↵Brandon Maxwell
into ub-contactsdialer-b-dev
2016-01-14Revert "Changes needed to make Incoming calls work while fbe locked"Brandon Maxwell
This reverts commit 70b2cc2c5a9ca7f16c730f7329112416fee0fffd. Change-Id: I9ad37bf5bebf9a302c96038385d420e1c8c5f19b
2016-01-14Merge "Use telephony voicemail notification settings for vvm." into ↵Nancy Chen
ub-contactsdialer-b-dev
2016-01-13Merge "Changes needed to make Incoming calls work while fbe locked" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2016-01-13Changes needed to make Incoming calls work while fbe lockedBrandon Maxwell
+ All in-call components are marked as encryptionAware so Telecom can bind to and use them. + Added null checks on cursors. When in FBE locked state, non-encryption aware ContentProviders return null Bug=26542121 Change-Id: Ia49536c957d3d721401c05bf638fdd9dd371a731
2016-01-13Show work badge icon/description in InCallUI/DialerVictor Chang
Add work badge icon in calllog for work contacts To see this feature 1. Receive/Make a call from work contact (a contact in work profile has the phone number) 2. Drop/miss the call. See a badge icon next to phone label in calllog BUG=26082618 Change-Id: I7371795e3c3ef925739096f39a70f03722dd430b
2016-01-13Use telephony voicemail notification settings for vvm.Nancy Chen
Previously visual voicemail notifications did not align with the telephony voicemail notification settings that the user could visit through dialer settings. After adding an API to access those telephony settings, dialer can now read those settings and use them when providing notifications for visual voicemail. Bug: 24164917 Change-Id: I3e8335be7fa1d265616818a6543bfe9242104560
2016-01-06Merge "Fixing NullPointer in NumbersAdapter" into ub-contactsdialer-b-devBrandon Maxwell
2016-01-05Fixing NullPointer in NumbersAdapterBrandon Maxwell
NumbersAdapater didn't properly handle null returns from ContactInfoHelper#lookupNumber(String, String), which is part of the method's documented contract. Bug=26337800 Change-Id: Ib974e83c22982ad4151fab564c91a61c112ca2ae
2016-01-05Merge "Support carrier presence-based video calling icon." into ↵Tyler Gunn
ub-contactsdialer-b-dev
2015-12-28Make TelecomManager APIs compatible with Lollipop. (1/3)Nancy Chen
+ Add methods to TelecomManagerCompat - Move TelecomManagerCompat to ContactsCommon because it is called within ContactsCommon - Move TestTelecomCallLogCache to the right package so tests pass Bug: 25776171 Change-Id: I1963959292d8038ab505488d831afd06e6fef6d0
2015-12-28Move TelecomManagerCompat to ContactsCommon (2/3).Nancy Chen
Bug: 25776171 Change-Id: Ib429e45f939db6fb0e3457467b95db3dab8fe6eb
2015-12-21Backporting calls to TelecomManager#silenceRingerBrandon Maxwell
The method was a system API pre-M, but a public method in M. Added a compat method which checks if the method is callable. In the event that the method can't be called, the compat method is a noop - this matches the functionality from the L version of the phone. Bug=25776171 Change-Id: I4a9fc19bb2bf2749d697da2b8643601ebd1eb4a8
2015-12-18Merge "Backporting necessary code to place calls on nonOEM devices" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2015-12-18Support carrier presence-based video calling icon.Tyler Gunn
- Update SmartDial database to track carrier presence. - Add video call style elements to dialer stylesheet. - Tore out hair in frustration tracing through code. - Add listeners to allow dialing of video calls from search results. Bug: 20257833 Change-Id: I476cccb8c2805ae6f9949366fc5c2ce2669b7734
2015-12-18Backporting necessary code to place calls on nonOEM devicesBrandon Maxwell
Added TelecomManagerCompat with methods necessary to start the InCallUI without crashing. Bug=25776171 Change-Id: I851f0252bdce9845e5211338637f16826479bc58
2015-12-17Merge "Fix DialerSettingsActivity so it does not crash pre-M." into ↵Nancy Chen
ub-contactsdialer-b-dev
2015-12-17Fix DialerSettingsActivity so it does not crash pre-M.Nancy Chen
UserManager.isSystemUser() is not available pre-M, so we need to copy over the logic. Bug: 25776171 Change-Id: I8e7c8e7215a8b55009283ecb137cc54443e61ab8
2015-12-14Fix NPE in startLoadingJay Shrauner
Check for null activity. Bug:26183802 Change-Id: Ic1bdae3611513f43b5556145ea72aaf22d602a74
2015-12-11Merge "Guard against methods that use the PhoneAccount object pre-MSIM." ↵Nancy Chen
into ub-contactsdialer-b-dev
2015-12-10Fix potential NPE in DefaultVoicemailNotifierYorke Lee
am: 52cd5fd66d * commit '52cd5fd66d0b97e066f89281eb55016dedfeec3a': Fix potential NPE in DefaultVoicemailNotifier
2015-12-10Fix potential NPE in DefaultVoicemailNotifierYorke Lee
Don't try to format an empty number Bug: 26095129 Change-Id: I6356c24e03066babd22217b24004f9ae9a53a67b
2015-12-10Fix potential NPE in VoicemailPlaybackPresenterYorke Lee
Bug: 26092525 Change-Id: Id3e54a197ed8bfb51b9b01bbc98a4ee81b28d9ee
2015-12-09Guard against methods that use the PhoneAccount object pre-MSIM.Nancy Chen
Use alternative means or just return empty lists when calling methods that require MSIM in pre-LMr1 devices. Also move compatability checks to ContactsCommon for methods that may be called in ContactsCommon as well as Dialer Bug: 25776171 Change-Id: I074bb147dbd53d623f322482ad735391c84ae5ad
2015-12-08Fix NPE in matchesNumberJay Shrauner
Check for null phoneNumber Bug:25973238 Change-Id: I019bf4be0598896a8f4a93f5331d98f78f98b786
2015-12-08Merge "Use ContactsUtil.FLAG_N_FEATURE in ContactInfoHelper" into ↵Victor Chang
ub-contactsdialer-b-dev
2015-12-07Merge "Creating Compatibility class for CallAudioState" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2015-12-07Creating Compatibility class for CallAudioStateBrandon Maxwell
Bug: 25776171 Change-Id: Ia72b3d4a30783592f8894e0eaa890be7c60743ea
2015-12-07Changing BlockedNumbersAdapter to use Management container as parentBrandon Maxwell
The blocked_number_fragment gets removed from the BlockedNumbersSettingActivity when we change to the search view. Doing so causes a crash when we attempt to show a Snackbar with that fragment as the parent view. Instead we use the container for the Management screen since it doesn't get removed. Bug:26032803 Change-Id: I6b14447fa75eb2618f511799d4f947ab432611f9
2015-12-07Use ContactsUtil.FLAG_N_FEATURE in ContactInfoHelperVictor Chang
BUG=25899500 Change-Id: Ie235822462e2a430b1bec93923bd8c1fe00f101f
2015-12-07Merge "Allow non-primary users to configure calling accounts" into ↵Tony Mak
ub-contactsdialer-b-dev
2015-12-04Merge "Using Compat code for createTtsSpannable" into ub-contactsdialer-b-devBrandon Maxwell
2015-12-04Using Compat code for createTtsSpannableBrandon Maxwell
Bug:25776171 Change-Id: Id6cccaa6af10e91defa70b1c4759cd3b48494e7c
2015-12-04Merge "Show Enterprise directory contacts name in IncallUI and notification" ↵Victor Chang
into ub-contactsdialer-b-dev
2015-12-04Show Enterprise directory contacts name in IncallUI and notificationVictor Chang
known issue:b/25859809 BUG=25899500 Change-Id: Ia61250707981b49efebb6e2c2e4910f58a1233dd
2015-12-04Merge "Adapt TelecomCallLogCache to pre-MSIM." into ub-contactsdialer-b-devNancy Chen
2015-12-04Merge "Fixing where clause issue with call log query" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2015-12-03Adapt TelecomCallLogCache to pre-MSIM.Nancy Chen
TelecomCallLogCache creates a mapping between PhoneAccount and per-SIM information like voicemail number which is not relevant pre-LMr1. Create a compatibility classes so that MSIM functionality is factored out pre-LMr1. Bug: 25776171 Change-Id: I67b012110829121dffa42d542aa0395d683fa78b
2015-12-03Fixing where clause issue with call log queryBrandon Maxwell
Change-Id: Ib4baa544925f8bcc6b8f4df8989927ebb3635ce3
2015-12-02Fixing crash related to typing ADN numbers in DialpadBrandon Maxwell
Bug: 25813349 Change-Id: I3e26ec2edd917df4892d401867acbeb5f97edf64
2015-12-02Allow non-primary users to configure calling accountsTony Mak
Given that we allow every users to have their own phone accounts, it doesn't make sense we only allow primary user to configure its default outgoing account. This change allows other user to configure default outgoing account as well. Bug: 25941865 Change-Id: Iad7c93366c77dfafc06ae8a7bb4fed3cb7eb1c79
2015-12-01Guarding use of Voicemails.DELETE to versions >= MBrandon Maxwell
Bug: 25776171 Change-Id: Ib123da80c6f902c81ad09d9b9ca7fb93df057d1a
2015-12-01Compatibility code for Calls.CACHED_PHOTO_URIBrandon Maxwell
Only if the current sdk version is at least M, do we look up the CACHED_PHOTO_URI Bug: 25776171 Change-Id: I79ac81abb4da719ffdb5476476a9a28c287c95f6
2015-12-01Fix NPE in lookupContactFromUriJay Shrauner
Trap NPE thrown by pre-N CP2. Bug:25941069 Change-Id: Id510e84e6e7e4a63a9b3267c183e23b73b0fabbc
2015-12-01Merge "Avoid using prioritized mimetype on pre-M SDKs" into ↵Wenyi Wang
ub-contactsdialer-b-dev
2015-11-30Compat changes for Dialer SettingsBrandon Maxwell
These settings were removed from the Settings screens since TelecomManager won't respond to the corresponding intents that would be fired off. Bug: 25776171 Change-Id: I425832245744239d636f227178479fbb5aa49092
2015-11-30Checking for recent emergency call before deleting voiemailBrandon Maxwell
Bug: 25818151 Change-Id: I6b8b5ebfe1c9555b8394ad7db652e23bbc216f83
2015-11-30Avoid using prioritized mimetype on pre-M SDKsWenyi Wang
Restores code deleted in ag/643285 because the code was used on pre-M. Bug:25629359 Change-Id: Ief60d301fd8d3c018ce03388c56264a2db727224
2015-11-26Merge "Guard against crashes in <M devices for getDefaultDialerPackage ↵Nancy Chen
call." into ub-contactsdialer-b-dev
2015-11-25Merge "Compatibility method to check system settings write permission" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2015-11-25Guard against crashes in <M devices for getDefaultDialerPackage call.Nancy Chen
Since TelecomManager was hidden in L, calls to getDefaultDialerPackage will crash. Furthermore, default dialer was not even a concept in Android <M so return false for the isDefaultDialer check. Bug: 25776171 Change-Id: I05c9f55b69bdbe1e07cf44886dbff29d99f36bbb
2015-11-25Compatibility method to check system settings write permissionBrandon Maxwell
SettingsCompat.System.canWrite returns true for versions older than M because prior to M, permissions had to be granted prior to installing the app. It's only in M and above that we check for permissions at runtime. Bug:25776171 Change-Id: Iee2250248223e7237f8eaa506b277e301e289cc0
2015-11-25Use existing ContextCompat library for permissions checking.Nancy Chen
Bug: 25776171 Change-Id: I4bf43d5f8c2026c0ae593cdbcf0572db0808970a
2015-11-23Merge "getContext() -> getActivity() in fragments for backwards ↵Nancy Chen
compatibility." into ub-contactsdialer-b-dev
2015-11-20Making calls to Resources.getColor backwards compatBrandon Maxwell
Bug: 25776171 Change-Id: Id567c28af9e2578036c9db97389f66093198de09
2015-11-20Changing to use compat classes for getColor callsBrandon Maxwell
Bug: 25776171 Change-Id: I369cd9ac77f866c72e88da9750aa8e62b610c2da
2015-11-20Merge "Add a dialer compat utils class for all things dialer compatibilty." ↵Nancy Chen
into ub-contactsdialer-b-dev
2015-11-20Add a dialer compat utils class for all things dialer compatibilty.Nancy Chen
For DialerCompatUtils first trick, add a function to check whether video calling is compatible with the current version. Bug: 25776171 Change-Id: I0d6c8181ec53f00785032ba52b484fb1c8e6ea47
2015-11-18Handle backwards compatible permission lookup and requests (1/3).Nancy Chen
requestPermissions is not available to the Fragments class and checkSelfPermission is not available to the Context class in API < 23. Use other backwards compatible methods to implement the behavior. Bug: 25776171 Change-Id: I6cb221236f28b319f618d2cf32a9f503a6f4e6e0
2015-11-18getContext() -> getActivity() in fragments for backwards compatibility.Nancy Chen
getContext() did not exist prior to API level 23, so override getContext() to return the activity in dialer code. Bug: 25776171 Change-Id: I817a1ba2ef29c032065b1e7eee6c033b050fb61d
2015-11-14Merge "Fix NPE in ListsFragment." into ub-contactsdialer-a-devNancy Chen
am: a2884c6dbf * commit 'a2884c6dbfc9ec2d0a7c5123ec9d0824fc4ee099': Fix NPE in ListsFragment.
2015-11-14Merge "Fix NPE in ListsFragment." into ub-contactsdialer-a-devNancy Chen
2015-11-13Fix NPE in ListsFragment.Nancy Chen
Bug: 25694033 Bug: 25668829 Change-Id: I5254eed0c473fa8a9e801f4fa253d6fdfc885836
2015-11-13Catch work profile CP2 lookup exceptionJay Shrauner
am: cbed581719 * commit 'cbed581719fdd31daa0f7aa096bb2ca7d40456d3': Catch work profile CP2 lookup exception
2015-11-13Catch work profile CP2 lookup exceptionJay Shrauner
Catch IllegalArgumentExceptions throw for work profile contact alternative display name lookups. Bug:25680927 Change-Id: I1e3245239c8521de6edc5286a898547fc83bd23e
2015-11-12Modiying callLog context menu to force numbers LTRBrandon Maxwell
am: f3b23ba40d * commit 'f3b23ba40d6c6c60f7e01c84df69712d7ae9bae0': Modiying callLog context menu to force numbers LTR
2015-11-12Modiying callLog context menu to force numbers LTRBrandon Maxwell
Bug:25516713 Change-Id: I5b239afa81c7a5e8225f21d57161a5012ab5e421
2015-11-12Adding Logging to call blocking interactionsBrandon Maxwell
am: d81cc6c64f * commit 'd81cc6c64f3213f571c1f1e7a5c7e59b71491fb0': Adding Logging to call blocking interactions
2015-11-12Adding Logging to call blocking interactionsBrandon Maxwell
+ Added Clearcut logging when users block, unblock, undo, or import blocked numbers. Location of blocking is noted, e.g. CallLog, CallDetails, ManagementScreen + Added class with Constants matching proto definition Bug: 25288435 Change-Id: I7fbef52d0e31b49c31dadbc0b4d775969d97420a