summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calllog/ui/menu/Modules.java
Commit message (Collapse)AuthorAgeFilesLines
* Better a11y for contact badge in the new call log.linyuh2018-05-301-1/+1
| | | | | | | Bug: 70989658 Test: GlidePhotoManagerImplTest PiperOrigin-RevId: 197918533 Change-Id: I61d04e270ddf4237e8ed9c10e62e8d95f86d1eca
* Remove duplicate code when constructing PhotoInfo proto.linyuh2018-05-181-16/+2
| | | | | | | Bug: 79770053 Test: Existing tests PiperOrigin-RevId: 197192087 Change-Id: I44c60d13c83b3e23dc141fd9e9b88e108687bf96
* Use info from EmergencyPhoneLookup to render UI for an emergency number.linyuh2018-05-091-0/+1
| | | | | | | Bug: 71719349 Test: CallLogEntryTextTest, HistoryItemActionModulesBuilderTest PiperOrigin-RevId: 195694340 Change-Id: Ib53305c36f7ca062ef798ab3f61585d3c71adef3
* Simplify how we build bottom sheet options (a.k.a. modules).linyuh2018-05-041-145/+43
| | | | | | Test: HistoryItemActionModulesBuilderTest, ModulesTest PiperOrigin-RevId: 195294876 Change-Id: Iac44f965a585975389da7dee758a94a8ad8311d3
* Replace DuoConstants with interface.twyen2018-05-041-4/+1
| | | | | | | | | | They are not constant across different Duo implementations. TEST=TAP Bug: 76430187,78783816 Test: TAP PiperOrigin-RevId: 195001650 Change-Id: I4356d04c9eeac50fefd41e1142f3123591e93bc0
* Select SIM when calling back from call log.twyen2018-05-021-13/+3
| | | | | | | | | | Previously the NUI call log call backs with whatever SIM the call was made/received in, which is inconsistent with the old UI. The Old UI behavior should be kept. TEST=TAP Bug: 78291136 Test: TAP PiperOrigin-RevId: 194878167 Change-Id: If9c5adcbed6a194c801d2b558abb45573b97d2ae
* Don't allow reporting a inaccurate number for a voicemail call.linyuh2018-04-241-1/+2
| | | | | | | Bug: 78291768 Test: ModulesTest PiperOrigin-RevId: 194114862 Change-Id: Iee367be53ffff5226a818ebb4af69ddd55054812
* Support placing a call with assisted dialing in the new call log.linyuh2018-04-181-4/+7
| | | | | | | Bug: 70988691 Test: ModulesTest PiperOrigin-RevId: 193434411 Change-Id: I3fe493eeb2869cad0d42ccf08d57018a42b1b84e
* Reduce the number of parameters when building bottom sheet options for ↵linyuh2018-04-181-11/+13
| | | | | | | | | telecom/Duo calls. Bug: 70988691 Test: ModulesTest, DuoCallModuleTest PiperOrigin-RevId: 193431749 Change-Id: I2af9979504b99175513cb753a030244f735828be
* Add RTT badge to new call log.wangqi2018-04-111-0/+4
| | | | | | | Bug: 77717594 Test: ContactPhotoViewTest PiperOrigin-RevId: 192492913 Change-Id: I6db36017fde2cf9dca580d60d5c88bf2ad2dfe16
* For an audio call log entry, add a video call option in the bottom sheet if ↵linyuh2018-04-101-5/+45
| | | | | | | | | the capability is present. Bug: 70989603 Test: ModulesTest PiperOrigin-RevId: 192302145 Change-Id: I3162e7d22223aa02709d0d401c70c6fc37a00e3b
* Use the default phone account for a voice call when the call log item is for ↵linyuh2018-04-041-7/+15
| | | | | | | | | Duo. Bug: 77535982 Test: ModulesTest + Manual PiperOrigin-RevId: 191612821 Change-Id: I417b46ed3ec131bf409c427d82f5b2fa6b791054
* Support placing Duo calls in the new UI's bottom sheet.linyuh2018-04-031-2/+10
| | | | | | | Bug: 70988685 Test: DuoCallModuleTest, PlaceDuoCallEndToEndTest, Manual testing PiperOrigin-RevId: 191372706 Change-Id: I439be71c361eaca722820b81278e5f95322e100c
* Convert @AutoValue CoalescedRow to a protolinyuh2018-03-191-31/+29
| | | | | | Test: Existing tests PiperOrigin-RevId: 189675976 Change-Id: Ieae92b5ac2aefd3f0397bbb07ebb1c97bd72ed42
* Implement VoicemailDataSourcetwyen2018-03-191-1/+2
| | | | | | | | | | | | | 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
* Introduce GlidePhotoManager to CallDetailsActivitylinyuh2018-03-151-35/+22
| | | | | | | Bug: 74202944 Test: ModulesTest, CallDetailsActivityTest PiperOrigin-RevId: 189204143 Change-Id: I917bac76009522c6a99fdb63299556ec2a454dfa
* Log contact source when reporting spam from the new UI.linyuh2018-02-281-0/+1
| | | | | | | Bug: 73780748 Test: PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 187404074 Change-Id: I1db81304909fbf63aba00088c12e18922042c3b1
* Group info needed to show a block/report spam dialog into a proto to avoid ↵linyuh2018-02-281-5/+10
| | | | | | | | long method signatures. Test: Existing tests PiperOrigin-RevId: 187338094 Change-Id: I0d7a5206d127931d322b5604b2bb81f5202b8de8
* Internal cleanup for the new UI's bottom sheet.linyuh2018-02-271-47/+61
| | | | | | Test: Existing tests PiperOrigin-RevId: 187254014 Change-Id: I8a57b632d45e87ad075eb8bbb25180858e890f08
* Set the correct reporting location when reporting spam in the new call log.linyuh2018-02-271-1/+3
| | | | | | | Bug: 73816729 Test: Existing tests PiperOrigin-RevId: 187230516 Change-Id: I59d70b9676e2972b80f124f29f2c1cb1858efef8
* Implement logic of bottom sheet options related to spam numbers.linyuh2018-02-261-1/+3
| | | | | | | Bug: 70989605 Test: ShowBlockReportSpamDialogNotifierEndToEndTest + Manual PiperOrigin-RevId: 187047450 Change-Id: I23c3929135bcfe5c14fe317ef65f628dc126027f
* Include the primary callback action in the new call log's bottom sheet.linyuh2018-02-221-20/+13
| | | | | | Test: ModulesTest PiperOrigin-RevId: 186006639 Change-Id: I0c37d342d4a6da563b49b3ebe8f8ee2262efde60
* Add bottom sheet options for blocked and/or spam numbers in the new call log.linyuh2018-02-141-10/+29
| | | | | | | Bug: 70989605 Test: ModulesTest PiperOrigin-RevId: 185392711 Change-Id: I709a1e307925f1c99d2740ed52dc2b7784bca986
* Reworked the internals of DialerPhoneNumber.zachh2018-01-261-4/+2
| | | | | | | | | 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
* Added number presentation to AnnotatedCallLog.zachh2018-01-261-25/+42
| | | | | | | | | Updated the new call log UI to properly show text based on the presentation. Bug: 70989592 Test: unit PiperOrigin-RevId: 183414195 Change-Id: I2123f37cd3c733060125b6e894c1a80be4193ad6
* Remove non call log dependencies on PhoneAccountUtiltwyen2018-01-251-2/+3
| | | | | | | | Methods moved to TelecomUtils Test: Unit tests PiperOrigin-RevId: 183305626 Change-Id: Idd6604e58c06a36066bd49870849dd71747969c6
* Improved support for post dial digits in new call log.zachh2018-01-191-5/+5
| | | | | | | | | | | | | | | -Don't ever coalesce rows with different post-dial digits -Made matching of unparsable numbers a little more intelligent by comparing national/postdial portions which have undialable characters removed (rather than exact string match) -Read and append the post-dial digits from the system call log when building DialerPhoneNumbers to place in the AnnotatedCallLog. Note: PhoneNumberUtil will parse numbers with exactly one post-dial character, but not more than one. -Use post-dial digits when building the AnnotatedCallLog's FORMATTED_NUMBER value -Display the formatted number in CallDetails when the name is missing, instead of the unformatted number -Don't set the displayNumber in CallDetails when the name is missing, because we are showing the (formatted) number via the nameOrNumber field. -Treat numbers with post-dial digits as invalid in PartitionedNumbers; batch operations are not possible with these numbers because their normalized representations strip the post-dial digits (and they are significant for contact matching) Bug: 70989632 Test: unit and manual PiperOrigin-RevId: 182557754 Change-Id: Idcdefce0946a189e5b350a53ec2a16a96a8d4552
* Correctly show the contact's photo in CallDetailsActivity when launched from ↵linyuh2018-01-171-12/+8
| | | | | | | | | the new call log. Bug: 70218437,71867391 Test: ModulesTest & Manual PiperOrigin-RevId: 182233967 Change-Id: I6eb4bf236230eee6bbecc99b128fef5afddfd1e9
* Merge PhoneLookupDataSource results into a proto in annotated call log.twyen2018-01-111-12/+16
| | | | | | | | 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
* Add "delete" option in the 3-dot menu of the new call loglinyuh2018-01-081-0/+2
| | | | | | | Bug: 69639422 Test: DeleteCallLogItemModuleTest, ModulesTest, and Manual PiperOrigin-RevId: 181191883 Change-Id: I86c19e8a402b03a58c6b236b9ca54fd81f0b6f9a
* Set flag 'canReportAsInvalidNumber' in CallDetailsActivity's intent when ↵linyuh2018-01-041-4/+2
| | | | | | | | | it's launched from the new call log. Bug: 70218437 Test: ModulesTest PiperOrigin-RevId: 180841866 Change-Id: Iba25ce6a8716d85f86a6cea32386b949973ee59f
* Support assisted dialing in CallDetailsActivity when launched from the new ↵linyuh2018-01-021-1/+1
| | | | | | | | | call log UI. Bug: 70218437 Test: ModulesTest PiperOrigin-RevId: 180577770 Change-Id: Idbfe48ea22d422c90d970d633a952a7200f49f82
* Implement basic bottom sheet in NUI Voicemail tab.uabdullah2017-12-151-0/+2
| | | | | | | | | Implement the basic bottom sheet that displays name, location add to contacts, send a message and copy number option. Bug: 64882313,70682949 Test: Unit test, additional unit tests in the next CL that will implement calling from bottom sheet. PiperOrigin-RevId: 179212401 Change-Id: I23281587a0d42cea595e4dc1608f997036e2dbd0
* Refactor add to contacts, send a message and copy number modules for bottom ↵uabdullah2017-12-141-97/+9
| | | | | | | | | | | sheet These three modules are to be shared between the voicemail and call log bottom sheets. This CL refactors it such that the functions take in generic parameters instead of coalesced annotated call log row so that they can be used by the voicemail tab. Bug: 64882313,70682949 Test: Existing tests PiperOrigin-RevId: 179110882 Change-Id: I2e8edafbf50e51d2299bfbcb95957e40c1b366ec
* Integrate CallDetailsActivity with the new call log UI.linyuh2017-12-131-8/+6
| | | | | | | Bug: 70218437 Test: CallDetailsActivityTest, CallDetailsCursorLoaderTest, ModulesTest PiperOrigin-RevId: 178918820 Change-Id: Ib8034190550e8ca8e6e7fd9ce521bfadc73e834f
* Renamed call_details string, which was conflicting with one from the ↵zachh2017-11-011-1/+1
| | | | | | | | calldetails package. Test: tap PiperOrigin-RevId: 174084052 Change-Id: I10c07767392060fafed048a74df5aece4090cd68
* Added basic bottom sheet to new call log.Zachary Heidepriem2017-10-111-0/+234
Also added ability to click on row to call. Required plumbing through the original phone number and phone account info through AnnotatedCallLog and CoalescedAnnotatedCallLog, so that clicking to dial doesn't require an additional lookup. Required some refactoring: -created autovalue for CoalescedRow. -created autovalue for ContactPrimaryActionInfo and use it in ContactActionBottomSheet -moved logic for building primary and secondary text into CallLogUtils so it can be shared between call log list and bottom sheets -moved clipboard logic to own package for copying numbers Bug: 34672501 Test: unit PiperOrigin-RevId: 171760252 Change-Id: I645d89974460b611c1d9668c3ca3e50a716c7f8f