summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-11Allow google dialer code to be compiled against M and N SDKsTa-wei Yen
+ Defaulted src-N to source directory in makefile Bug:26330692 Change-Id: Ia78449876539f7a6bdd2f072eaf942c07915640b
2016-01-11Merge "Allow google dialer code to be compiled against M and N SDKs" into ↵Ta-wei Yen
ub-contactsdialer-b-dev
2016-01-07Bumping version for B branchBrandon Maxwell
Change-Id: I74782e265c57e66e5467bcdd84f3f89c7713b29f
2016-01-06Allow google dialer code to be compiled against M and N SDKsTa-wei Yen
+ Class SdkSelectionUtils to provides information of the SDK the app is build against. Specifically, information that change when the TARGET_N_SDK build flag is set in the makefile. This is not related to the targetSdkVersion value in AndroidManifest.xml. Bug:26330692 Change-Id: Ie9e7d734964b5da930d33f69650643bfd2c1e178
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-14Import translations. DO NOT MERGEGeoff Mendal
am: e4071ea58d -s ours * commit 'e4071ea58d3773a7b34835739d84d1e8a713712b': Import translations. DO NOT MERGE
2015-12-14Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I0b31b2759fd96ea0bad5ac99340ae1d3a3848003 Auto-generated-cl: translation import
2015-12-14Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I2049712c90a85b8826e1f0466568414cd10e6ed8 Auto-generated-cl: translation import
2015-12-11Merge "Guard against methods that use the PhoneAccount object pre-MSIM." ↵Nancy Chen
into ub-contactsdialer-b-dev
2015-12-10Merge "[DO NOT MERGE] Bump version number from 2.3.14 to 2.3.15" into ↵Nancy Chen
ub-contactsdialer-a-dev am: dfad2c5a1d -s ours * commit 'dfad2c5a1d88b4b843f0d4c618339da0af9a0299': [DO NOT MERGE] Bump version number from 2.3.14 to 2.3.15
2015-12-10Merge "[DO NOT MERGE] Fixing crash related to typing ADN numbers in Dialpad" ↵Nancy Chen
into ub-contactsdialer-a-dev am: 614302070c -s ours * commit '614302070ca30dd132975d4a79680a00cb62a8cc': [DO NOT MERGE] Fixing crash related to typing ADN numbers in Dialpad
2015-12-10[DO NOT MERGE] Fix potential NPE in VoicemailPlaybackPresenterYorke Lee
am: 24c462296c -s ours * commit '24c462296cc468e9620b59b0d5165286dcdbbff9': [DO NOT MERGE] Fix potential NPE in VoicemailPlaybackPresenter
2015-12-11Merge "[DO NOT MERGE] Bump version number from 2.3.14 to 2.3.15" into ↵Nancy Chen
ub-contactsdialer-a-dev
2015-12-11Merge "[DO NOT MERGE] Fixing crash related to typing ADN numbers in Dialpad" ↵Nancy Chen
into ub-contactsdialer-a-dev
2015-12-10[DO NOT MERGE] Fixing crash related to typing ADN numbers in DialpadBrandon Maxwell
Bug: 25813349 Change-Id: I3e26ec2edd917df4892d401867acbeb5f97edf64 (cherry picked from commit f6bf9e4c680355bf597447bbda043f3b611734d0)
2015-12-10[DO NOT MERGE] Bump version number from 2.3.14 to 2.3.15Nancy Chen
Bug: 26143053 Change-Id: Iba40ed3e49e34274b3ce42128fae5aa3bd6a701e
2015-12-10[DO NOT MERGE] Fix potential NPE in VoicemailPlaybackPresenterYorke Lee
Bug: 26092525 Change-Id: I1f6673f698fabd5c6ccb62beee68a91170d0eff7
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-09Merge "Changing to build with system API" into ub-contactsdialer-b-devBrandon Maxwell
2015-12-09Import translations. DO NOT MERGEGeoff Mendal
am: f63db143d4 -s ours * commit 'f63db143d4b83021bc0a29dda91536d52756423d': Import translations. DO NOT MERGE
2015-12-09Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I17333acd10c2e6ddf3dc8d76e9023bf3f6c0cba3 Auto-generated-cl: translation import
2015-12-09Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I0e5bd29a284f7eb4997df7dae6303ad6866bbcfa Auto-generated-cl: translation import
2015-12-08Changing to build with system APIBrandon Maxwell
Since the Dialer is the system dialer on Nexus devices pre-M, we need access to some system apis for backporting. Bug: 25776171 Change-Id: I4365d4df955eb3f3ee7889937a97d1201e205d12
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-02Merge "Guarding use of Voicemails.DELETE to versions >= M" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
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-02Import translations. DO NOT MERGEGeoff Mendal
am: 585d0b1e3b -s ours * commit '585d0b1e3b20e4ba0fdf36bdd76e5a810c50601c': Import translations. DO NOT MERGE
2015-12-02Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I19c01f987fa7479958c8333d2eaf4d6f0e9a26b8 Auto-generated-cl: translation import
2015-12-02Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I6f38d4ba9fd68384eede5db82e94b1b34fad58d7 Auto-generated-cl: translation import
2015-12-01Guarding use of Voicemails.DELETE to versions >= MBrandon Maxwell
Bug: 25776171 Change-Id: Ib123da80c6f902c81ad09d9b9ca7fb93df057d1a
2015-12-01Add checks for post-dial functionality to avoid breaking testsHall Liu
Bug: 25929524 Change-Id: I21b00d18e06960add576f8f3a2d01583abadaa17
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-28Bump 2.3.13 -> 2.3.14 for alpha.Nancy Chen
am: e4684b75db * commit 'e4684b75db4e8132ed76144f84dca30510cd2ff5': Bump 2.3.13 -> 2.3.14 for alpha.
2015-11-25Bump 2.3.13 -> 2.3.14 for alpha.Nancy Chen
Bug: 25892894 Change-Id: I6a4a685db658cafa8f8f85664973b1373bfbccf1
2015-11-26Bump AOSP dialer from 2.3.12 -> 2.3.13Nancy Chen
am: 5d9c796e39 * commit '5d9c796e39f579877f7bb864189440607809dc53': Bump AOSP dialer from 2.3.12 -> 2.3.13
2015-11-25Bump AOSP dialer from 2.3.12 -> 2.3.13Nancy Chen
Bug: 25789573 Change-Id: I0a683dba73798ea85152251ab8acefd3c33167e3
2015-11-26Bump 2.3.11 -> 2.3.12 for AOSP dialer.Nancy Chen
am: 4a7eaa6538 * commit '4a7eaa6538472c44cdd17816e1a042e3cb0ef819': Bump 2.3.11 -> 2.3.12 for AOSP dialer.
2015-11-25Bump 2.3.11 -> 2.3.12 for AOSP dialer.Nancy Chen
Bug: 25789573 Change-Id: Ib79cd0e1ba5ebdd3de8652489a7472e5874ad8b5
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-25Import translations. DO NOT MERGEGeoff Mendal
am: ab9d34e2e7 -s ours * commit 'ab9d34e2e7e6c37e271c1545826e093072885a2d': Import translations. DO NOT MERGE
2015-11-25Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I1549b501f47c92cb2273600f6a25ef57157613c7 Auto-generated-cl: translation import
2015-11-25Import translations. DO NOT MERGEGeoff Mendal
Change-Id: Id261072a6da8a5e4705094f7217751f361408930 Auto-generated-cl: translation import
2015-11-24Bump dialer from 2.3.10 -> 2.3.11Nancy Chen
am: 1b97f22e3e * commit '1b97f22e3e04ddabfe6fc64da4f76474df2c0b03': Bump dialer from 2.3.10 -> 2.3.11
2015-11-24Bump dialer from 2.3.10 -> 2.3.11Nancy Chen
Bug: 25835494 Change-Id: Idd14dbe89486e81f91e1b159533c6ba037d6ccc8
2015-11-23Bumping version to 2.03.10Brandon Maxwell
am: 3d0ac24ebc * commit '3d0ac24ebc1d5d4cdd623b406622be5f822575c5': Bumping version to 2.03.10
2015-11-23Bumping version to 2.03.10Brandon Maxwell
Change-Id: I6c8e64e67b2b4c020cc2693732b5741dd03c3cc1
2015-11-23Merge "getContext() -> getActivity() in fragments for backwards ↵Nancy Chen
compatibility." into ub-contactsdialer-b-dev
2015-11-23Merge "Making calls to Resources.getColor backwards compat" into ↵Brandon Maxwell
ub-contactsdialer-b-dev
2015-11-23Import translations. DO NOT MERGEGeoff Mendal
am: db48871711 -s ours * commit 'db488717115485ce91426a965e841fc61942fe0f': Import translations. DO NOT MERGE
2015-11-23Import translations. DO NOT MERGEGeoff Mendal
Change-Id: If9f352031a61f57d6a859780a31a594d8e534620 Auto-generated-cl: translation import
2015-11-23Import translations. DO NOT MERGEGeoff Mendal
Change-Id: Ibc391363c689819ae65b86fe00818bf1cc8c2c84 Auto-generated-cl: translation import
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-20Bump AOSP dialer version number from 2.3.08 to 2.3.09Nancy Chen
am: 9eaeae4aab * commit '9eaeae4aab86a38e93acc4c5e28e8a70c6b1a485': Bump AOSP dialer version number from 2.3.08 to 2.3.09
2015-11-20Bump AOSP dialer version number from 2.3.08 to 2.3.09Nancy Chen
Bug: 25813431 Change-Id: Ib5963498041c960bda0cfb6a0189ed0dd836393c
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-18Import translations. DO NOT MERGEGeoff Mendal
am: cf14c1a07c -s ours * commit 'cf14c1a07ce978e44bc0089bdf50a912f1b6ac11': Import translations. DO NOT MERGE
2015-11-18Import translations. DO NOT MERGEGeoff Mendal
Change-Id: I3ddf778f4fdb823167093d110f449c8632a1b693 Auto-generated-cl: translation import