summaryrefslogtreecommitdiffstats
path: root/java/com/android/dialer
Commit message (Collapse)AuthorAgeFilesLines
* Disable phone number formatting for devices with Argentinian SIMs.linyuh2018-03-0113-30/+56
| | | | | | | Bug: 73718977 Test: PhoneNumberHelperTest PiperOrigin-RevId: 187540382 Change-Id: I814ec62b2215c24b8cde3442c5dc83d98ad87164
* Rename NUI logging prefix from NUI_ to MAIN_yueg2018-03-013-28/+29
| | | | | | | Bug: 72525843 Test: none PiperOrigin-RevId: 187500135 Change-Id: Iaa73b9355a6b5c299f73fd113eb1f74a3eb47dd4
* Added same primes metrics that existed in Dialtacts to NUI.calderwoodra2018-03-012-0/+13
| | | | | | Test: n/a PiperOrigin-RevId: 187442952 Change-Id: I9463e2c976102276ebc5886531397ad0cf160b78
* Preload call log fragment on app start.calderwoodra2018-02-281-0/+12
| | | | | | | | | Default is set to true but if we see issues with startup latency we can disable this server side. Test: n/a PiperOrigin-RevId: 187419851 Change-Id: I6d1debfed86dbcaf3ee73ec0906e514a2687e2c0
* Some small bug fixes in NUI.calderwoodra2018-02-286-22/+49
| | | | | | | | | | | | | | - Never show the dialpad chooser in MainActivity. - If the call log changed while dialer was in the background, it would trigger the content observer to fetch the new info, which would request it's parent that wasn't there. Now we register/unregister them in onResume/onPause. This is safe to do because we force refresh the data onResume anyways, so any changes will still be shown. Bug: 73972084,73975555,73995512 Test: manual PiperOrigin-RevId: 187407058 Change-Id: Iae86dabbcb852398bb2b9df4627e234261ab8030
* Log contact source when reporting spam from the new UI.linyuh2018-02-287-6/+51
| | | | | | | Bug: 73780748 Test: PhoneLookupInfoConsolidatorTest PiperOrigin-RevId: 187404074 Change-Id: I1db81304909fbf63aba00088c12e18922042c3b1
* Add accessibility label for voicemail transcription ratingmaxwelb2018-02-282-0/+10
| | | | | | | Bug: 73788896 Test: Manual :/ PiperOrigin-RevId: 187401558 Change-Id: I1c2c08cc01fd38ad5820c454991473cfb8f0fc76
* Parity of OldMainActivityPeer with ListsFragment for VMuabdullah2018-02-282-3/+90
| | | | | | | | | This CL helps to ensure that when the VVM settings toggle is turned on or off, or a sim is swapped, inserted or removed the VM tab disappears and appears, just like it currently does. When a VM tab disappears we also move to the speed dial index. Bug: 73123614,73998717 Test: N/A PiperOrigin-RevId: 187400703 Change-Id: I76a0b43da86713caa67956413a39299c7ecbc8d1
* Show empty view when there are no voicemailsuabdullah2018-02-284-12/+61
| | | | | | | | | When there are no voicemails to be shown, we show an empty view. This is done by hiding the recycler view and showing the empty view. Similarly when a voicemail is present, we hide the empty view and then show the recycler view. Bug: 25661977 Test: Unit Tests PiperOrigin-RevId: 187396952 Change-Id: Ifa718fb05c1be37aabdf4c91bc2c1653357565b2
* Never start playing voicemails in the NUI VM tab from the speakeruabdullah2018-02-281-0/+9
| | | | | | | | | All voicemails played from the VM tab should always be played from the non-speaker mode. Bug: 71500892 Test: N/A PiperOrigin-RevId: 187388964 Change-Id: I3f6a5887784b0192074157cfd8a91727d124ed06
* Update voicemail donations stringsmaxwelb2018-02-283-15/+9
| | | | | | | Bug: 73798533 Test: Manual :/ PiperOrigin-RevId: 187383740 Change-Id: I0f35ccbf19a59b35338cb144f0192b692585159f
* Group info needed to show a block/report spam dialog into a proto to avoid ↵linyuh2018-02-286-140/+99
| | | | | | | | long method signatures. Test: Existing tests PiperOrigin-RevId: 187338094 Change-Id: I0d7a5206d127931d322b5604b2bb81f5202b8de8
* set connection state after adding NonSimulatorConnectionListener and set ↵weijiaxu2018-02-271-1/+3
| | | | | | | | | | connection to active at the end. This is necessary to make sure that NonSimulatorConnectionListener gets event callback when Connection.setDialing() or Connection.setActive() is called. Test: On a local device. PiperOrigin-RevId: 187266120 Change-Id: I6ee5d5113285e7a27a4e8497a95b28844ac6b397
* Do not show the voicemail tab if the VM toggle is turned off.uabdullah2018-02-271-3/+7
| | | | | | | Bug: 73123614 Test: N/A PiperOrigin-RevId: 187255950 Change-Id: I9ab50a7a8052f325f1743721bf6432e6c4787a4e
* Internal cleanup for the new UI's bottom sheet.linyuh2018-02-2721-239/+265
| | | | | | Test: Existing tests PiperOrigin-RevId: 187254014 Change-Id: I8a57b632d45e87ad075eb8bbb25180858e890f08
* Fab now hides/shows correctly when you enter and leave the voicemail tab.calderwoodra2018-02-273-9/+32
| | | | | | Test: manual, going between tabs hides/shows the fab properly when ToS is (in)visible. PiperOrigin-RevId: 187253210 Change-Id: Ied9ea44892786268b9dfa68816840dfbfc74aa6e
* Fixed some a11y issues in MainActivity.calderwoodra2018-02-273-5/+23
| | | | | | | | | | - main fragments are no longer detected by talkback while search is open. - FAB now has a content description Bug: 73587831,73891132 Test: tap PiperOrigin-RevId: 187248081 Change-Id: I5a8fe2df23542d19c935cba77d1337ec753064af
* NUI no longer crashes when clicking "place call" in empty call log.calderwoodra2018-02-271-1/+1
| | | | | | | Bug: 73258376 Test: MainActivityOldPeerCallLogIntegrationTest PiperOrigin-RevId: 187242222 Change-Id: Ic2684467035fedc1156886712757bf0911f65ee5
* Set the correct reporting location when reporting spam in the new call log.linyuh2018-02-276-13/+58
| | | | | | | Bug: 73816729 Test: Existing tests PiperOrigin-RevId: 187230516 Change-Id: I59d70b9676e2972b80f124f29f2c1cb1858efef8
* Bump version codes and name to v19roldenburg2018-02-271-2/+2
| | | | | | Test: n/a PiperOrigin-RevId: 187229492 Change-Id: If166951bbbe8bc38b1053f1bc8bd7eac74944964
* Move DirectoryCompat from "contacts/common" to "dialer/common/cp2".linyuh2018-02-278-29/+72
| | | | | | | Bug: 73887387 Test: Existing tests PiperOrigin-RevId: 187225355 Change-Id: I65de553078e147a46d933daf34dfd912fc8aa74c
* Implement contacts promo in NUI.yueg2018-02-272-0/+56
| | | | | | | Bug: 72525950 Test: ContactsPromoFragmentTest, MainSearchControllerTest, OldGoogleMainActivityPeerTest PiperOrigin-RevId: 187224361 Change-Id: Idc43255ccc673c6c5c17b70d1f367d1a4802bfd0
* Added 2 null checks to fix top crashers.calderwoodra2018-02-272-2/+9
| | | | | | | Bug: 73886704,73887420 Test: n/a PiperOrigin-RevId: 187201516 Change-Id: Ic94816e198e29b87b031a85252e984bc167bb7f8
* Fix for NonSimulatorConnection listener causing dialer crashing after ending ↵weijiaxu2018-02-261-0/+5
| | | | | | | | | a call. Bug: 73903013 Test: On a local device. PiperOrigin-RevId: 187114719 Change-Id: I9cd0ee8ee33c5711f68ed78d3181347ae439f2b6
* Allow selecting IMEI/MEID textroldenburg2018-02-261-2/+4
| | | | | | | Bug: 73821574 Test: manual PiperOrigin-RevId: 187096752 Change-Id: I2ac254523582958084f4ebbe1b324c406c2e86f5
* Added Call History activity to MainMenu.calderwoodra2018-02-263-6/+17
| | | | | | Test: MainActivityOldPeerIntegrationTest PiperOrigin-RevId: 187080344 Change-Id: I1c9fd942a4c198c9a914d6aefe7c4cc638f39c01
* Look up contacts in the local enterprise directory in the new call log.linyuh2018-02-2610-154/+177
| | | | | | | Bug: 73547944 Test: Cp2ExtendedDirectoryPhoneLookupTest PiperOrigin-RevId: 187064655 Change-Id: Icb468e0867248f097a77134dd67a53352f7c80b0
* Implement logic of bottom sheet options related to spam numbers.linyuh2018-02-2618-122/+481
| | | | | | | Bug: 70989605 Test: ShowBlockReportSpamDialogNotifierEndToEndTest + Manual PiperOrigin-RevId: 187047450 Change-Id: I23c3929135bcfe5c14fe317ef65f628dc126027f
* Cancel Old SpeedDial contact loaders when they are reset.calderwoodra2018-02-249-16/+50
| | | | | | | | | | | | | | | | This prevents to many loaders running at the same time and crashing the application for using too many threads at once. Also made a few UI changes: - Change Android nav bar color to #FFF - Move badges down 2dp - Limit badges to 9+ (instead of 99+, added flag to configure this) - search bar no longer has rounded corners when expanded Bug: 72525324 Test: MainActivityOldPeerTest PiperOrigin-RevId: 186894920 Change-Id: I36fc5d8794440b707184d54de427db5910ec5b8e
* Fixed a few bugs in NUI Main Activity.calderwoodra2018-02-248-12/+71
| | | | | | | | | | | | - Normalized the search query returned from DialpadFragment - Dial button now updates when given a psuedo emergency number - 'Clear frequents' now displays and functions properly in the menu - Added simulator to the menu Bug: 72525324 Test: added tests for clear frequents (only prod feature). PiperOrigin-RevId: 186875815 Change-Id: I3bad3c71b355b987fc85777550bfa1de5028c3a4
* Track initial call log building metrics separately from incremental building ↵zachh2018-02-239-110/+243
| | | | | | | | | | | | | metrics. This required creating "CallLogState" which is currently just a boolean value which can only be turned on once (when the annotated call log flow finishes for the first time). This CL also changes CompositePhoneLookup to no longer implement PhoneLookup. This was done to support a now reverted implementation of CallLogState but it's easier for me to keep the change and it shouldn't be harmful. Bug: 70989667 Test: unit PiperOrigin-RevId: 186852257 Change-Id: I3f342737aaf909f8230b8a69d9c21e6e5c19b84e
* Added some logcat and metrics logging for new call log.zachh2018-02-226-72/+299
| | | | | | | Bug: 70989667 Test: unit PiperOrigin-RevId: 186726722 Change-Id: I1a68ae1e01b101b1624e4f5ede1a8d639d481ad2
* Add new signature for Cequint Caller ID app.wangqi2018-02-221-0/+38
| | | | | | | Bug: 73757382 Test: none PiperOrigin-RevId: 186707825 Change-Id: Ib491e958b08298f233841718283e915bedb57fb2
* Add dialer simulation functionality into simulator.weijiaxu2018-02-223-22/+100
| | | | | | | | | When users press "enable simulator mode" button, one PhoneAccount associated with SimulatorConnectionService will be registered into platform so users can make fake call through dialer. To end this, simply press "disable simulator mode" button. Bug: 71898328 Test: On a local device. PiperOrigin-RevId: 186707002 Change-Id: Ic584bcd88bb52ac0b96c4cb214ad8edc70cf24d4
* Use SystemProperties to access ro.carrier as System.getProperty cannot get itroldenburg2018-02-222-3/+68
| | | | | | | Bug: 71707082 Test: MotorolaHiddenMenuKeySequenceTest PiperOrigin-RevId: 186685319 Change-Id: If23ec797a174736e68b6100b3d33c7dccb9a88f8
* Adding real url for voicemail donation promo learn-more linkmdooley2018-02-221-2/+1
| | | | | | | Bug: 73780549 Test: manual PiperOrigin-RevId: 186669251 Change-Id: I2b45caa7b0a0a20e2466f51b7d659ce61a4945cf
* Removed item animator in Call Log RecyclerView.calderwoodra2018-02-221-0/+4
| | | | | | | Bug: 69965302 Test: TAP PiperOrigin-RevId: 186573663 Change-Id: I099f22b7a8df7018ec50e309b2ae37f3eedd76fd
* NUI bug fixes: handling intents and onActivityResult.calderwoodra2018-02-221-7/+73
| | | | | | | | | | | - Handle Calls.CONTENT_TYPE intents - Handle Add Call intents - Handle onActivityResults Bug: 72525324,72525840 Test: implemented PiperOrigin-RevId: 186523438 Change-Id: Ia014e5e10ee0be2f32a09df79b3ade12d09814e9
* Use the vector spam icon in the new call log.linyuh2018-02-223-69/+32
| | | | | | | Bug: 73123894 Test: GlidePhotoManagerImplTest PiperOrigin-RevId: 186522766 Change-Id: I3950071e6af492e07972619a4933231b4341aaf4
* Fixed some Dialer theming bugs in NUI.calderwoodra2018-02-224-3/+50
| | | | | | | | | | | | | - URL links are now blue - Raised buttons are now blue w/ white text - android nav bar is white - call log actions/icons are the correct colors - search bar hint text is the correct color Bug: 72525324 Test: screenshot PiperOrigin-RevId: 186484088 Change-Id: I1863a28e1ea9bf16863f42299afca319a6bdcc97
* Make MarkDirtyObserver available to all call log data sources & PhoneLookups.linyuh2018-02-224-49/+20
| | | | | | | Bug: 73347270 Test: Existing tests PiperOrigin-RevId: 186475562 Change-Id: I622b52f4d74b26fd084b6588da6321c46458aa9d
* When there is no VM support hide the tab in the Old Main Activityuabdullah2018-02-222-2/+81
| | | | | | | | | | | In the case where the user is not able to dial into the voicemail tab, or there exists another voicemail app, or VVM is not supported, we do not want to show the VM tab. This CL does not update the activity when a sim is inserted/removed. Bug: 73123614 Test: Unit tests PiperOrigin-RevId: 186433072 Change-Id: I0396b1e15c9a4740eee721af89dbfdf95696cace
* Rebuild Call Log on first launch after NUI is enabledtwyen2018-02-223-0/+101
| | | | | | | | | This improves the first time experience by populating the DB when the user is still in other tabs. Bug: 72119926 Test: Unit tests PiperOrigin-RevId: 186418788 Change-Id: If011d7191a09fd1aaca489c6e682ccdc643c2139
* Changing the voicemail transcription font sizemdooley2018-02-221-1/+1
| | | | | | | | | UX wants the voicemail transcription font size to be 14sp Bug: 73668659 Test: manual PiperOrigin-RevId: 186415158 Change-Id: I3c5992efa4dace2f455c4de41d7d1cb51ef2a916
* Moved metrics related methods out of LoggingBindings.zachh2018-02-227-43/+23
| | | | | | Test: existing PiperOrigin-RevId: 186413083 Change-Id: I96c88c46b0ecc01167b655fa30fc47aaa6a9e351
* Record jank metrics in old and new call logs.zachh2018-02-2211-12/+95
| | | | | | | Bug: 70989667 Test: unit PiperOrigin-RevId: 186410938 Change-Id: I0671ab0bbbe957b8f034c673e6309204284756d2
* Fixed some bugs in NUI search.calderwoodra2018-02-226-22/+80
| | | | | | | | | | | | | | - Nearby places promo now displays properly - Dialpad now properly handles dial intents - placing calls from search now closes search - placing calls from search now closes the keyboard - toolbar shadow is now visible when search is started from the dialpad. Bug: 72525324 Test: MainActivityOldPeerSearchIntegrationTest PiperOrigin-RevId: 186390952 Change-Id: I7e10ef0499c787da2d1820cae915f2d42645303b
* Adding information section to voicemail settingsmdooley2018-02-226-3/+209
| | | | | | | | | | | | | | | | | this cl moves the TextViewPreference from dialer to third_party so it can be shared (sorry i meant to make that a separate cl, but forgot to switch branches). and it uses the TextViewPreference to add some informational text to the voicemail settings. screen shot: https://drive.google.com/open?id=0B9o_KvtLkcuIbENkeHRCSTUyOVpkM0JEZ0liMHphMnVzVHlN mock: https://drive.google.com/file/d/1gKt72pY-igXfphpamf8CqZV8HEmnOexj/view Bug: 37340510 Test: manual test PiperOrigin-RevId: 186388299 Change-Id: I2c142f1214a9424bec0bc7f12d841f0eeaef96f1
* Add Tracfone to Motorola menu, move existing menu to Sprint onlyroldenburg2018-02-224-83/+132
| | | | | | | Bug: 71707082 Test: MotorolaHiddenMenuKeySequenceTest PiperOrigin-RevId: 186387666 Change-Id: I3971604d717dcea8bfd1159b281a2dc5a0f3b0f7
* Fixed some issues in NUI search bar.calderwoodra2018-02-225-19/+58
| | | | | | | | | | | - search bar is now the correct height - search bar hint now updates for Google Dialer - search bar now properly slides up when in dialpad search Bug: 72525324 Test: GoogleMainActivityOldPeerIntegrationTest PiperOrigin-RevId: 186379302 Change-Id: If5ad570c89c6a784fa17df422d88e68c30356712