Proto commits in LineageOS/android_packages_apps_Dialer

These commits are when the Protocol Buffers files have changed: (only the last 100 relevant commits are shown)

Commit:275a6a8
Author:Michael W
Committer:Michael Bestas

Dialer: Remove more unused stuff [19/x] * Unused classes * Unused methods * Unused resources * Fold versioned resource folders into the main ones Change-Id: If989db7c7203c11c374659a77075fc1dba1faec0

The documentation is generated from this commit.

Commit:3c4a8a2
Author:Michael W
Committer:Michael Bestas

Dialer: Remove remainder of DUO [15/x] There is only a stub component in place, so no code using any of it is actually ever hit Change-Id: I282175bf53620ccbe5169dc20ff7354044203ffc

Commit:182590d
Author:Michael W
Committer:Michael Bestas

Dialer: Remove EnrichedCall [16/x] It's not hooked up besides simulation (we have a stub, though!) Change-Id: Ia56d30a717dc429872d2def9dab5289b4841269a

Commit:882549b
Author:Michael W
Committer:Michael Bestas

Dialer: Remove Transcription [8/x] * We aren't google dialer, so we basically can't transcribe. * Removal of transcription also allows us to remove all grpc targets Change-Id: Ie49e39db3fe22732fa076dbb5468cd34f4f95c24

Commit:90723ce
Author:Michael W
Committer:Michael Bestas

Dialer: Remove Logger and Spam Module [12/x] * The extra logging calls go nowhere * We don't have any spam provider but the stub, so remove that as well Change-Id: I7beb8753f8d2e9b2326c8d5689f9d38d99fb3c3a

Commit:7be7ccd
Author:Michael W
Committer:Michael W

Dialer: Remove more unused stuff [19/x] * Unused classes * Unused methods * Unused resources * Fold versioned resource folders into the main ones Change-Id: If989db7c7203c11c374659a77075fc1dba1faec0

The documentation is generated from this commit.

Commit:7330485
Author:Michael W
Committer:Michael W

Dialer: Remove remainder of DUO [15/x] There is only a stub component in place, so no code using any of it is actually ever hit Change-Id: I282175bf53620ccbe5169dc20ff7354044203ffc

Commit:446e84a
Author:Michael W
Committer:Michael W

Dialer: Remove Transcription [8/x] * We aren't google dialer, so we basically can't transcribe. * Removal of transcription also allows us to remove all grpc targets Change-Id: Ie49e39db3fe22732fa076dbb5468cd34f4f95c24

Commit:a5329ac
Author:Michael W
Committer:Michael W

Dialer: Remove Logger and Spam Module [12/x] * The extra logging calls go nowhere * We don't have any spam provider but the stub, so remove that as well Change-Id: I7beb8753f8d2e9b2326c8d5689f9d38d99fb3c3a

Commit:83d180e
Author:Michael W
Committer:Michael W

Dialer: Remove EnrichedCall [16/x] It's not hooked up besides simulation (we have a stub, though!) Change-Id: Ia56d30a717dc429872d2def9dab5289b4841269a

Commit:0664bb7
Author:Grace Jia
Committer:ShevT

Fix selecting phone account dialog show error. AOSP dialer used to ignore UserHandle of a PhoneAccountHandle when building the selection list. When secondary user or guest mode is in use, dialer composed a wrong PhoneAccountHandle with current UserHandle so Telecom cannot provide correct information of this PhoneAccountHandle. Bug: 157499347 Test: Manually switch to guest mode or secondary user to check if the dialog show correctly. Change-Id: I8a9f9bcf5192f69ca270def48fb850106aa717fb

Commit:7cb4d69
Author:Grace Jia
Committer:Michael Bestas

Fix selecting phone account dialog show error. AOSP dialer used to ignore UserHandle of a PhoneAccountHandle when building the selection list. When secondary user or guest mode is in use, dialer composed a wrong PhoneAccountHandle with current UserHandle so Telecom cannot provide correct information of this PhoneAccountHandle. Bug: 157499347 Test: Manually switch to guest mode or secondary user to check if the dialog show correctly. Change-Id: I8a9f9bcf5192f69ca270def48fb850106aa717fb

Commit:96251f2
Author:Luca Stefani
Committer:Michael Bestas

Dialer: Fix proto warning with optmize for lite * option optimize_for = LITE_RUNTIME is ignored in proto 3+ * Instead we should use the java_lite compiler via the LOCAL_PROTOC_OPTIMIZE_TYPE flag which defaults to lite in java projects Test: m Dialer, no warnings Change-Id: I552f5895bbe8192a4ae870bb48e5ef6a9e7e8c78

Commit:d109b5e
Author:Grace Jia
Committer:Grace Jia

Fix selecting phone account dialog show error. AOSP dialer used to ignore UserHandle of a PhoneAccountHandle when building the selection list. When secondary user or guest mode is in use, dialer composed a wrong PhoneAccountHandle with current UserHandle so Telecom cannot provide correct information of this PhoneAccountHandle. Bug: 157499347 Test: Manually switch to guest mode or secondary user to check if the dialog show correctly. Change-Id: I8a9f9bcf5192f69ca270def48fb850106aa717fb

Commit:479d3b6
Author:Luca Stefani
Committer:Luca Stefani

Dialer: Fix proto warning with optmize for lite * option optimize_for = LITE_RUNTIME is ignored in proto 3+ * Instead we should use the java_lite compiler via the LOCAL_PROTOC_OPTIMIZE_TYPE flag which defaults to lite in java projects Test: m Dialer, no warnings Change-Id: I552f5895bbe8192a4ae870bb48e5ef6a9e7e8c78

Commit:b879515
Author:Tyler Gunn
Committer:Tyler Gunn

Update language to comply with Android's inclusive language guidance See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: I2cd36fd5148608caec816c159c1b5d6bfbe192bc

Commit:500ed48
Author:Luca Stefani
Committer:Luca Stefani

Dialer: Fix proto warning with optmize for lite * option optimize_for = LITE_RUNTIME is ignored in proto 3+ * Instead we should use the java_lite compiler via the LOCAL_PROTOC_OPTIMIZE_TYPE flag which defaults to lite in java projects Test: m Dialer, no warnings Change-Id: I552f5895bbe8192a4ae870bb48e5ef6a9e7e8c78

Commit:c451dd5
Author:yueg
Committer:Copybara-Service

NUI favorite logging Test: SpeedDialFragmentTest, DisambigDialogTest PiperOrigin-RevId: 201577777 Change-Id: I008cdcb34f61558a7e345b7343137e37f52a61f6

Commit:3a31929
Author:linyuh
Committer:Copybara-Service

Handling timeout in PeopleApiPhoneLookup & Cp2ExtendedDirectoryPhoneLookup Bug: 70989631 Test: PeopleApiPhoneLookupTest, Cp2ExtendedDirectoryPhoneLookupTest PiperOrigin-RevId: 199365461 Change-Id: I017cca8bdb469236ac60382e5fbe7f55976a12b9

Commit:a2aa5f3
Author:Android Dialer
Committer:Copybara-Service

Internal change Bug: 79169954 Test: added tests in BlockingTest.java PiperOrigin-RevId: 198950042 Change-Id: I380bc93276223db74b87f94140bd6c5c29c3f3cb

Commit:6ad72f6
Author:Android Dialer
Committer:Copybara-Service

Updating PhotoInfo and GlidePhotoManager to support conference calls. Bug: 76205353 Test: GlidePhotoManagerImplTest PiperOrigin-RevId: 198872893 Change-Id: I7957078a63af2455e439286b8d2ef719d4c9ff4e

Commit:a40a9ef
Author:twyen
Committer:Copybara-Service

Remove photo support in PhoneNumberService Also cleaned up unused parameters. TEST=TAP Bug: 78654933 Test: TAP PiperOrigin-RevId: 197652430 Change-Id: I1820e8c8de83fcda17f38e92d4ab1c28f519cdce

Commit:7e7fb6f
Author:twyen
Committer:Copybara-Service

Implement PhoneNumberCacheLookup PhoneNumberCacheLookup migrates lookup result from the old call log. TEST=TAP Bug: 72119926 Test: TAP PiperOrigin-RevId: 196601622 Change-Id: I7df0ece770532c410747ceb310abb307fce80465

Commit:9d1ef8f
Author:linyuh
Committer:Copybara-Service

Use info from EmergencyPhoneLookup to render UI for an emergency number. Bug: 71719349 Test: CallLogEntryTextTest, HistoryItemActionModulesBuilderTest PiperOrigin-RevId: 195694340 Change-Id: Ib53305c36f7ca062ef798ab3f61585d3c71adef3

Commit:41da94c
Author:linyuh
Committer:Copybara-Service

Implement EmergencyPhoneLookup for checking if a number is an emergency number. Bug: 71719349 Test: EmergencyPhoneLookupTest, PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 195691356 Change-Id: I705721fa6e6a22e5b2d541578b83196181c895eb

Commit:763ce44
Author:linyuh
Committer:Copybara-Service

Remove TODOs for showing SIM info in the bottom sheet & call details. Bug: 74522027 Test: None PiperOrigin-RevId: 195439124 Change-Id: Ibab0bc7e58bd1b23255d9af476c5b98ed89f13fa

Commit:253b440
Author:linyuh
Committer:Copybara-Service

Simplify how we build bottom sheet options (a.k.a. modules). Test: HistoryItemActionModulesBuilderTest, ModulesTest PiperOrigin-RevId: 195294876 Change-Id: Iac44f965a585975389da7dee758a94a8ad8311d3

Commit:a067300
Author:yueg
Committer:Copybara-Service

Make call configuration package visibility public. Bug: 74022483 Test: manual PiperOrigin-RevId: 194864239 Change-Id: I89a186faa1831634bbaecbe30c83bded4b321c06

Commit:b493c3f
Author:yueg
Committer:Copybara-Service

Logging for background calling and HFP device support. Bug: 74022483,74238896 Test: InCallPresenterTest, AudioRouteSelectorDialogFragmentTest PiperOrigin-RevId: 194589147 Change-Id: If8c6e79838d27b1ca33ed677c19f6555cbdb4494

Commit:e7d8321
Author:linyuh
Committer:Copybara-Service

Show Cequint info in the new call log. Bug: 70989584 Test: PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 194494486 Change-Id: I706802c000da953f962786bd07ca5da2fd59dc8a

Commit:0a5c34d
Author:twyen
Committer:Copybara-Service

Disable entries in CallingAccountSelector that are not selectable This CL also unifies the disabled color for primary and secondary text. The in call UI dialog will be implemented in a followup CL. TEST=TAP DEFAULT_VALUE_OK=no server. Bug: 69675796,72618783 Test: TAP PiperOrigin-RevId: 194147061 Change-Id: I5be5a45a7df09061a3bf391f6ae2a32d9c73b6e3

Commit:66adad0
Author:twyen
Committer:Copybara-Service

Add "enabled" to SelectPhoneAccountDialogFragment. This is used to inform the user an account cannot be used right now. On most dual SIM devices, only a single SIM can make calls at the same time. The UI will be implemented in a followup CL. This CL also packs the parameters of SelectPhoneAccountDialogFragment into a proto. There are too many arguments and it needs structured representation. TEST=TAP Bug: 69675796,72618783 Test: TAP PiperOrigin-RevId: 194139636 Change-Id: I7d9f92c73b650654fff28ba625a2c8e3dfa0b96c

Commit:05d17bd
Author:linyuh
Committer:Copybara-Service

Add skeleton for CequintPhoneLookup Bug: 70989584 Test: CequintPhoneLookupTest PiperOrigin-RevId: 194133375 Change-Id: I10fb22c0c92b2d79f4d8287316e7a0373c09a72e

Commit:da39087
Author:wangqi
Committer:Copybara-Service

Log send button impressions for RTT call. Bug: 78243122 Test: none PiperOrigin-RevId: 194128823 Change-Id: Ic886fd9c2236bbac4cbc884b7d777cea20451f0b

Commit:81e373e
Author:wangqi
Committer:Copybara-Service

Add impression logging for RTT call Bug: 78243122 Test: CallListTest PiperOrigin-RevId: 194111299 Change-Id: I8cb3a0266b6796321e83a2a703630a745879be97

Commit:59321c6
Author:Android Dialer
Committer:Copybara-Service

Add spam blocking promo notification after user reports spam in after call notification. Bug: 76436793 Test: SpamNotificationServiceTest PiperOrigin-RevId: 194006876 Change-Id: I7325599cc5581200f124a8fb64a8f4938675c734

Commit:1ab339c
Author:linyuh
Committer:Copybara-Service

Implement CnapPhoneLookup Bug: 70988915 Test: CnapPhoneLookupTest PiperOrigin-RevId: 193968830 Change-Id: I7f0c8468472e831699e56e399060067286e3ea0d

Commit:5ccde90
Author:calderwoodra
Committer:Copybara-Service

Added duo channels to favorite contacts and duo suggestions. Bug: 36841782,77724710,77760800 Test: SpeedDialUiItemLoaderTest PiperOrigin-RevId: 193432314 Change-Id: If9e0aa05b1aeb266960281ac13218091882ff4c3

Commit:e00bbae
Author:wangqi
Committer:Copybara-Service

Add RTT transcript screen. Bug: 67596257 Test: CallDetailsCursorLoaderTest PiperOrigin-RevId: 193259769 Change-Id: I8c6a8eb9a6bf06e9c1c25c45fc035f8db8ae5a65

Commit:3865d30
Author:linyuh
Committer:Copybara-Service

Remove column PHONE_ACCOUNT_LABEL and PHONE_ACCOUNT_COLOR from the annotated call log. Bug: 77808449 Test: NewCallLogViewHolderTest + existing tests for the call log framework PiperOrigin-RevId: 193086917 Change-Id: I39244c69acf1d261699610f6010c0cf147ca3492

Commit:0b3c523
Author:zachh
Committer:Copybara-Service

Added impressions. Bug: 77715083 Test: unit PiperOrigin-RevId: 192688918 Change-Id: I4448162871ea69ba07c1ed022e9c7daa936dab64

Commit:d6b10d5
Author:wangqi
Committer:Copybara-Service

Add RTT transcript to call details. 1. Save RTT transcript when call is destroyed 2. Show RTT transcript link when it's available Bug: 67596257,77717594 Test: manual PiperOrigin-RevId: 192673172 Change-Id: If541ad9137c965166548d2fb449e835b95566727

Commit:b175d25
Author:wangqi
Committer:Copybara-Service

Add RTT badge to new call log. Bug: 77717594 Test: ContactPhotoViewTest PiperOrigin-RevId: 192492913 Change-Id: I6db36017fde2cf9dca580d60d5c88bf2ad2dfe16

Commit:fc10264
Author:linyuh
Committer:Copybara-Service

For an audio call log entry, add a video call option in the bottom sheet if the capability is present. Bug: 70989603 Test: ModulesTest PiperOrigin-RevId: 192302145 Change-Id: I3162e7d22223aa02709d0d401c70c6fc37a00e3b

Commit:3bf8412
Author:linyuh
Committer:Copybara-Service

Have PhoneLookup read carrier presence data from CP2. Bug: 70988687 Test: Cp2DefaultDirectoryPhoneLookupTest, PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 192085574 Change-Id: I4512c9e2e9e14340fa3aa9b2d7d6aaea6344bba6

Commit:32d9ae7
Author:yueg
Committer:Copybara-Service

Implement background calling. Bug: 74022483 Test: InCallPresenterTest PiperOrigin-RevId: 191825857 Change-Id: I9c70290da32484faf42a2a25fd6b22ba706cb63e

Commit:ed677ef
Author:wangqi
Committer:Copybara-Service

Migrate RTT chat history to use proto buffer. This change also moved chat history to be saved in DialerCall, thus it will be persist when switching calls. Bug: 67596257 Test: RttChatMessageTest PiperOrigin-RevId: 191626079 Change-Id: I65e9c6ac7aa41beb45dfe561b0a48506ea938e6f

Commit:49c5dcd
Author:twyen
Committer:Copybara-Service

Implement new blocking Old blocking is deprecated. Bug: 70989544 Test: TAP PiperOrigin-RevId: 191086875 Change-Id: Icde4963fce603fc4e16e486b78c070bd439e26e4

Commit:c9e06d9
Author:twyen
Committer:Copybara-Service

Delete dialer blocking in NUI System blocking should be used instead. These code are obsolete. Bug: 70989544 Test: TAP PiperOrigin-RevId: 190818334 Change-Id: I71475905ba110fdc0560991a2a9c2b9e2f2de9f2

Commit:d6180d4
Author:linyuh
Committer:Copybara-Service

Make the top row of the bottom sheet not clickable. Test: Existing tests PiperOrigin-RevId: 189683790 Change-Id: I0209e7fa839175041da29e9a6d8a590133121376

Commit:67a08ed
Author:linyuh
Committer:Copybara-Service

Convert @AutoValue VoicemailEntry to a proto Test: Existing tests PiperOrigin-RevId: 189678764 Change-Id: I6b9edd99e727788c65d325c1be43f0190c25c30e

Commit:64b5778
Author:linyuh
Committer:Copybara-Service

Convert @AutoValue CoalescedRow to a proto Test: Existing tests PiperOrigin-RevId: 189675976 Change-Id: Ieae92b5ac2aefd3f0397bbb07ebb1c97bd72ed42

Commit:3e97f65
Author:Android Dialer
Committer:Copybara-Service

Show spam blocking promo after block spam dialog Test: SpamBlockingPromoHelperTest PiperOrigin-RevId: 189674918 Change-Id: I0b22eb9b8128125cc5b439674099820a01c3889f

Commit:cd3d498
Author:twyen
Committer:Copybara-Service

Implement VoicemailDataSource This data source determines if the call is to the voicemail inbox. isVoicemail() is removed from NumberAttributes and PhoneLookup. It is yet decided how in call UI should handle voicemail calls in the future. TAG_CHANGE_OK=proto not in prod yet. Please clear app data. TYPE_CHANGE_OK=above Bug: 70989587 Test: Unit tests PiperOrigin-RevId: 189650273 Change-Id: Iafebf1abb18c74301b62a72d1d04deecd6d78d29

Commit:a7530f8
Author:uabdullah
Committer:Copybara-Service

Refactor VM Settings and add support for voicemail transcription This CL refactors the existing voicemail settings fragment and adds UI support for voicemail transcription. It mainly deals with the following: - ensuring that when the VVM toggle is turned off, transcription and donations are gone. - when transcription is off, donation preference is gone. - donation is only available when transcription is available and enabled - as part of the refactor, fixes existing logging bugs - breaks preferences and its associated methods into helper methods when possible - groups relevant preferences together when possible Bug: 74033229 Test: Unit tests PiperOrigin-RevId: 189418217 Change-Id: I3442cb5752a235cfca643ba55df3fb75171e3fe4

Commit:262b6f2
Author:wangqi
Committer:Copybara-Service

Add Cequint contact lookup result type. Bug: 73741286 Test: none PiperOrigin-RevId: 189377028 Change-Id: Ifb9c6375d0026fb012ae868741b471f2ca02c5f9

Commit:6b576be
Author:linyuh
Committer:Copybara-Service

Introduce GlidePhotoManager to CallDetailsActivity Bug: 74202944 Test: ModulesTest, CallDetailsActivityTest PiperOrigin-RevId: 189204143 Change-Id: I917bac76009522c6a99fdb63299556ec2a454dfa

Commit:b271645
Author:Android Dialer
Committer:Copybara-Service

Add impression for spam blocking setting interaction. Test: N/A PiperOrigin-RevId: 188953886 Change-Id: I3279efe088e8a37df79d635bd44c6fa831109f2e

Commit:43ae8e2
Author:Android Dialer
Committer:Copybara-Service

Add spam blocking setting in spam module. Test: InAppSpamTest,ApdlSpamTest,VisualVoicemailUpdateTaskTest PiperOrigin-RevId: 188509191 Change-Id: I8b9c07dcc1c7b3b80ffc914ec99f4e6d80d50985

Commit:a05ee28
Author:yueg
Committer:Copybara-Service

NUI logging - Add screen events for 4 tabs, dialpad and search. - Add impressions for opening MainActivity with tabs/dialpad (non user tab selection). - Add impression for VVM visible. Bug: 72525843 Test: MainActivityOldPeerTest, MainSearchControllerTest PiperOrigin-RevId: 188090249 Change-Id: Ifdf3519f07d7230f20b5d82691a96747b1944d63

Commit:9e8b673
Author:linyuh
Committer:Copybara-Service

Covnert @AutoValue PhotoInfo into a proto. Bug: 74202944 Test: Existing tests PiperOrigin-RevId: 188060790 Change-Id: I4d79a353abf767935383d4149f261f5e96fd7acb

Commit:563bb5a
Author:zachh
Committer:Copybara-Service

Added impression logging for AnnotatedCallLog rebuild operations. Bug: 70989667 Test: unit PiperOrigin-RevId: 187694255 Change-Id: Ie6ec70a70a4c59cbdfe25c34003d21fa2f751564

Commit:0cf82d3
Author:yueg
Committer:Copybara-Service

Rename NUI logging prefix from NUI_ to MAIN_ Bug: 72525843 Test: none PiperOrigin-RevId: 187500135 Change-Id: Iaa73b9355a6b5c299f73fd113eb1f74a3eb47dd4

Commit:999b5d5
Author:linyuh
Committer:Copybara-Service

Log contact source when reporting spam from the new UI. Bug: 73780748 Test: PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 187404074 Change-Id: I1db81304909fbf63aba00088c12e18922042c3b1

Commit:81670b0
Author:linyuh
Committer:Copybara-Service

Group info needed to show a block/report spam dialog into a proto to avoid long method signatures. Test: Existing tests PiperOrigin-RevId: 187338094 Change-Id: I0d7a5206d127931d322b5604b2bb81f5202b8de8

Commit:afd8a64
Author:linyuh
Committer:Copybara-Service

Set the correct reporting location when reporting spam in the new call log. Bug: 73816729 Test: Existing tests PiperOrigin-RevId: 187230516 Change-Id: I59d70b9676e2972b80f124f29f2c1cb1858efef8

Commit:3506a5f
Author:linyuh
Committer:Copybara-Service

Look up contacts in the local enterprise directory in the new call log. Bug: 73547944 Test: Cp2ExtendedDirectoryPhoneLookupTest PiperOrigin-RevId: 187064655 Change-Id: Icb468e0867248f097a77134dd67a53352f7c80b0

Commit:a437719
Author:yueg
Committer:Copybara-Service

Add logging to NUI. Including: - switching tabs - touch search list - press back button - click search bar and voice button - click FAB Test: MainActivityOldPeerTest, MainSearchControllerTest PiperOrigin-RevId: 185875596 Change-Id: Ie7824ce2f7a2570327abdb35cef1538cad786e73

Commit:096d5a6
Author:linyuh
Committer:Copybara-Service

Include both PHOTO_URI and PHOTO_THUMBNAIL_URI in Cp2Info. Bug: 73007132 Test: NumberAttributesConverterTest, PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 185545712 Change-Id: I228d8c4e1b6327e38057f73aad63bb7048704d49

Commit:18bfbcd
Author:twyen
Committer:Eric Erfanian

Add LookupUri to PeopApiPhoneLookupInfo Bug: 72108777 Test: Unit tests PiperOrigin-RevId: 185058075 Change-Id: I161b5127fdc94c0b77536d2901e2c24d7f1eeb7c

Commit:21b13e2
Author:linyuh
Committer:Copybara-Service

Show icon and label for a spam number in the new call log. Bug: 73077158 Test: CallLogEntryTextTest, GlidePhotoManagerImplTest, PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 185017362 Change-Id: I113472482da2213d17a847054272a22249edc578

Commit:75a8d51
Author:zachh
Committer:Copybara-Service

Added is_valid and post_dial_portion fields to DialerPhoneNumber. These are frequently used attributes of numbers that we can compute once at parse-time. Also did some general cleanup of DialerPhoneNumberUtil: -Removed unused Future version of parse() -Remove formatToValidE164 now that the new fields are available -Inlined normalizeNumber() Bug: 72563861 Test: existing PiperOrigin-RevId: 183720128 Change-Id: I702dc265360e590439c5352c493ae8a858f36812

Commit:26f5202
Author:zachh
Committer:Copybara-Service

Reworked the internals of DialerPhoneNumber. It turns out the storing the libphonenumber representation of the number is not particularly useful because even formatting these objects cannot be done on the main thread. Rather than propagate the requirement of using PhoneNumberUtil (and background threads by extension) in the call log UI, we now just store a dialer-normalized version of the number which contains all information required by the UI in a way that allows us to avoid any background work in the UI code. Bug: 72563861 Test: existing PiperOrigin-RevId: 183463907 Change-Id: I4bdadaccb7a84033b3c72c54fe3833064f587ee3

Commit:849f332
Author:linyuh
Committer:Copybara-Service

Add skeleton for SpamPhoneLookup Bug: 70989534 Test: SpamPhoneLookupTest PiperOrigin-RevId: 183174131 Change-Id: I46e819a0710ccce293195594e2f249e91d74551a

Commit:0874af8
Author:twyen
Committer:Copybara-Service

Show Icon and label for blocked numbers CallLogPhoto.getPhotoUri() returns a URI to a drawable so it will be easier to transition into glide. Meanwhile ContactPhotoManager will just show the drawable directly. Bug: 70989547 Test: Unit tests PiperOrigin-RevId: 183163818 Change-Id: I4ee4ff98782e35d2be03dfe14f8bf3dfd6ded074

Commit:662830e
Author:linyuh
Committer:Copybara-Service

Rename "ApdlInfo" as "SpamInfo" in proto PhoneLookupInfo. Bug: 70989534 Test: Existing tests PiperOrigin-RevId: 183145910 Change-Id: I60b0122fb236a7e7ee7b746867c40fefe0a3b487

Commit:8d06ecd
Author:zachh
Committer:Copybara-Service

Moved coalesced_ids.proto and number_attributes.proto to calllog/database/contract. The "model" package should be reserved for call history proper (and not voicemail) so it shouldn't contain things needed by voicemail. Test: existing PiperOrigin-RevId: 182976719 Change-Id: I463c8ed4600950a8d18db49d991609bfaa49c709

Commit:01aac5d
Author:linyuh
Committer:Copybara-Service

Implement PhoneLookup for CP2 remote contacts Bug: 71763594 Test: Cp2LocalPhoneLookupTest, Cp2RemotePhoneLookupTest PiperOrigin-RevId: 181681435 Change-Id: I2e091371b6705390adf4be63c78344f78bd19d6e

Commit:188b42f
Author:twyen
Committer:Copybara-Service

Merge PhoneLookupDataSource results into a proto in annotated call log. This allow extra information from PhoneLookup to be more easily added. Only PhoneLookupSelector and the proto will be affected for new attributes. Test: Unit tests. PiperOrigin-RevId: 181675568 Change-Id: I4e0bc1c6005b58a9b684b030b55bea6223af9ce3

Commit:a544dfc
Author:roldenburg
Committer:Copybara-Service

Add events for displaying set up or invite buttons Bug: 70034799 Test: GoogleCallLogAdapterTest PiperOrigin-RevId: 181515491 Change-Id: I62dc4d4d4ebb02e8e1e8dce6c6970bb7c8845952

Commit:2f66403
Author:yueg
Committer:Copybara-Service

Log impression when bubble v2 appears. Bug: 67605985 Test: NewBubbleTest PiperOrigin-RevId: 181493569 Change-Id: I30f7204ad9c78693e2c9b054bd69307fb4768a0b

Commit:99817db
Author:linyuh
Committer:Copybara-Service

Rename Cp2PhoneLookup as Cp2LocalPhoneLookup and PhoneLookupInfo.cp2_info as PhoneLookupInfo.cp2_local_info. To support remote CP2 contacts, there will be a new PhoneLookup ("Cp2RemotePhoneLookup") and a new field in proto PhoneLookupInfo ("cp2_remote_info"). In proto PhoneLookupInfo, cp2_local_info and cp2_remote_info will be of the same type ("Cp2Info"). Bug: 71763594 Test: Existing tests PiperOrigin-RevId: 181405798 Change-Id: I6c43b486229d4e9ae7b55c579d9c9997a2884c80

Commit:06fee1b
Author:twyen
Committer:Copybara-Service

Allow SimSuggestionProvider to auto select phone account. Bug: 70503524 Test: Unit tests. PiperOrigin-RevId: 181400523 Change-Id: I07f2f2cd7c1402d1acb6bfbde9db8d90c888edf6

Commit:c40c2d9
Author:zachh
Committer:Copybara-Service

Use ContactsContract.PhoneLookup for invalid numbers in Cp2PhoneLookup. "Invalid" numbers are identified according to PhoneNumberUtil.isValidNumber. This is necessary to support loose matching for such numbers. However, ContactsContract.PhoneLookup only supports looking up individual numbers, which means that we cannot issue batch queries and must issue individiual queries for each invalid number. The hope is that these numbers won't appear frequently so performance should still be acceptable. However, as a failsafe, if there are more than 5 invalid numbers we just give up trying to bulk update the invalid numbers and signal that those numbers are INCOMPLETE so that the UI can query for their CP2 information on the fly (the UI will be updated in a future CL). It was necessary to convert much of the class to use futures to support parallelization of the queries. Bug: 71504246 Test: unit PiperOrigin-RevId: 181216674 Change-Id: I3bec477d305772b4ca3e46d0bd326cfebf9fa313

Commit:fb112d8
Author:twyen
Committer:Eric Erfanian

Implement dialer blocked number phone lookup This CL implements looking up the dialer internal database for blocked numbers when the system database is not available yet. Data is only invalidated when dialer is alive since that is the only time blocked numbers can be set and removed. Bug: 70989538,70989547 Test: DialerBlockedNumberPhoneLookupTest PiperOrigin-RevId: 180956355 Change-Id: Ie7acf091bf58a074d0a1ee39613fad035d2e6e60

Commit:f473e1d
Author:yueg
Committer:Copybara-Service

Bubble v2 dismiss. Drag and drop bubble to bottom to hide or end call. Flinging to bottom does not trigger the actions. Color/text is not final. Navigation bar is not hiden and the change will be in a following CL. Bug: 67605985 Test: NewBubbleTest PiperOrigin-RevId: 180608133 Change-Id: Iff4cb32226d8fbf0f8e5319f6876a1d74c336b4a

Commit:f539f78
Author:yueg
Committer:Copybara-Service

Bubble v2 logging. Log the following actions: - expand/collapse bubble - return to call - mute/unmute - switch audio route to speaker/bluetooth/wired or earpiece - end call Bug: 67605985 Test: AudioRouteSelectorActivityTest, NewReturnToCallControllerTest PiperOrigin-RevId: 179484647 Change-Id: I4e2ee34f5550382b2e51bab16ce33e9e16caa3b2

Commit:ba44ee3
Author:zachh
Committer:Copybara-Service

Support empty PhoneLookupInfo in Cp2PhoneLookup. This is necessary to support the case when the user has just upgraded to the new UI and there is no PhoneLookupHistory data yet, or they have cleared their data. Bug: 70570635 Test: unit and manual PiperOrigin-RevId: 179261139 Change-Id: I1e521d2e86bd3f8643c5c0bb537a52c41f1ceb6d

Commit:937bd02
Author:twyen
Committer:Copybara-Service

Implement PeopleApiPhoneLookup This CL rewrites com.google.android.dialer.reverselookup and uses gRPC instead to perform People API queries. Bug: 70355819 Test: PeopleApiPhoneLookupTest, PeopleApiPHoneLookupInfoTransformerTest PiperOrigin-RevId: 179122466 Change-Id: I769c8b420b9d71b9787d844380b2aceb7ff2c63c

Commit:b6746eb
Author:roldenburg
Committer:Copybara-Service

Add impressions for Duo related events (install, activate and invite) Bug: 70034799 Test: GoogleCallLogAdapterTest PiperOrigin-RevId: 179085188 Change-Id: I7546cf7e35bbdd3788b03d19627d9a04f612335f

Commit:75812ad
Author:zachh
Committer:Copybara-Service

Updated writing of PhoneLookup columns in annotated call log. We're not going to use the "cached" columns from the system call log any longer, and instead will write them using PhoneLookup. Bug: 34672501 Test: unit PiperOrigin-RevId: 178788155 Change-Id: I9255dd3cb727eef3b45bc05aeb3c6fd6fd513d63

Commit:afb1d0f
Author:linyuh
Committer:Copybara-Service

In the coalesced call log, replace column NUMBER_CALLS with a new column COALESCED_IDS. For a row in the coalesced call log, COALESCED_IDS contains IDs of the corresponding rows in the annotated call log. These IDs will be used to (1) launch CallDetailsActivity or (2) delete the row in the call log UI. Bug: 70218437 Test: CoalescerTest, CoalescedAnnotatedCallLogCursorLoaderTest PiperOrigin-RevId: 178392968 Change-Id: I2d6cd46bec4d47a9e18941b7a019f39403fa76f5

Commit:fc1f9cf
Author:twyen
Committer:Copybara-Service

Add impressions for dual sim features Bug: 69618691 Test: CallingAccountSelectorTest PiperOrigin-RevId: 177062349 Change-Id: I4bc9098d06c541b607cca293269cf3489077b6c2

Commit:70fedf8
Author:mdooley
Committer:Eric Erfanian

Adding transcription rating feedback Allow users who have agreed to donate their voicemails to also provide transcription quality feedback. screenshot: https://drive.google.com/open?id=0B9o_KvtLkcuIajVtdFN3Y0Qydmx2NXJYN2N3OVA3N0h5UEdR Bug: 68712148 Test: manual and new unit tests PiperOrigin-RevId: 176774942 Change-Id: I08b9afbbefaedfb0de5199038a1d2769bd983855

Commit:d2f2997
Author:erfanian
Committer:Copybara-Service

Add impression to track when users explicitly disable assisted dialing. Test: new unit tests PiperOrigin-RevId: 176438950 Change-Id: Ic0747302170593b91da4148029396c36ab070c6e

Commit:6b96d28
Author:Android Dialer
Committer:zachh

Add contact source options. Bug: 66900825 Test: manual PiperOrigin-RevId: 176155772 Change-Id: Ibe722477b90671b55ff7bf5405de9fb66569d43e

Commit:70eaded
Author:Android Dialer
Committer:Zachary Heidepriem

Add a new impression proto for same prefix call marked as spam. Test: LoggerUtilsTest PiperOrigin-RevId: 175555340 Change-Id: Ic38e4e60559d91d3471629a5ffff496081fb5fb9

Commit:dc63a40
Author:zachh
Committer:Zachary Heidepriem

Use parent message for CP2 info in phone_lookup_info.proto. PhoneLookupInfo should contain one message per PhoneLookup implementation for clarity. Instead of having a repeated Cp2Info field, we now have a single Cp2Info field which wraps a repeated Cp2ContactInfo field. Also added ApdlInfo to the message to make testing of CompositePhoneLookup more realistic, in that it tests merging across submessages now. (ApdlInfo is more or less a placeholder until ApdlPhoneLookup is implemented.) Test: yes PiperOrigin-RevId: 175316738 Change-Id: I196c2eaa885e1268ff80ebaad6d85840a9cc7a15

Commit:c2ea695
Author:twyen
Committer:Zachary Heidepriem

Unify voicemail call placing All voicemails are called by using CallIntentBuilder.forVoicemail() so the PhoneAccountHandle can be designated. A future CL will use dialogs to customize the call (multi SIM selection, RTT, etc.) As a result voicemail error messages and legacy voicemail notifications will call the account it is received from directly. Bug: 64216442 Test: Unit tests PiperOrigin-RevId: 174784322 Change-Id: Ibe1c57bc7852e3d55a39a0cc2da19b6a79954c0f

Commit:68739de
Author:Android Dialer
Committer:Zachary Heidepriem

Updating SendTranscriptionFeedback for consistency. Bug: 68900535 Test: SendTranscriptionFeedbackActionTest PiperOrigin-RevId: 174732357 Change-Id: I9a99606a13cfc32f53a6ce8a15ad258bb48d7130