summaryrefslogtreecommitdiffstats
path: root/java/com/android/incallui
Commit message (Collapse)AuthorAgeFilesLines
* Show a warning dialog about charges when user starts a video callwangqi2018-03-0610-2/+317
| | | | | | | | | | | | | | | | | | The user starts a video call a warning dialog shall be presented. If the user presses "OK" with the "Do not show again" box selected, the dialog shall not be presented anymore. Test: manual - Verified that a warning dialog about charges is shown when a video call is started if KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL is true. This is an upstream change from: https://android-review.googlesource.com/c/platform/packages/apps/Dialer/+/518977/8 Bug: 67832837 Test: partner manual test PiperOrigin-RevId: 188103414 Change-Id: I62628a32557297acaef096db90d2ddf049ef5017
* Add support for bluetooth etc. audio route for RTT call.wangqi2018-03-051-0/+12
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 187944752 Change-Id: I2bbe45d2bda22bb000239f8613576fffb9f6ab28
* Move assisted dialing out of P.erfanian2018-03-021-23/+1
| | | | | | | Bug: 73727182 Test: tested PiperOrigin-RevId: 187673539 Change-Id: I9c790e912990fb8dc46da1c1057339c979ac9501
* Update fragment class.erfanian2018-03-022-2/+2
| | | | | | | Bug: 73775453 Test: unit tests. PiperOrigin-RevId: 187630263 Change-Id: Ib8e1b852b4ab4ca6614182db0cb72e413c1612eb
* Add ripple effect to RTT incall buttons.wangqi2018-03-022-5/+15
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 187564625 Change-Id: I7e848e975bbab19e605d09283dee24eeb02550f1
* Update RTT icon on ringing screen.wangqi2018-03-011-1/+1
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 187551861 Change-Id: I38facbaaa48ba4afe29e382de9c8241d8936c3ab
* Disable phone number formatting for devices with Argentinian SIMs.linyuh2018-03-017-16/+17
| | | | | | | Bug: 73718977 Test: PhoneNumberHelperTest PiperOrigin-RevId: 187540382 Change-Id: I814ec62b2215c24b8cde3442c5dc83d98ad87164
* Implement overflow menu for RTT call.wangqi2018-03-0110-3/+462
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 187529383 Change-Id: I6ef6593a79ef0c4fb407284eede966a1eaabcd1e
* Updating SecondaryInfo value class to use AutoValue with builder pattern.Android Dialer2018-03-017-83/+102
| | | | | | Test: CallCardPresenterTest,SecondaryInfoTest PiperOrigin-RevId: 187481728 Change-Id: I3d2b23b5d51ea1e5ff30b8f6b6570d76c006fe86
* Remove background of RTT chat fragment.wangqi2018-02-281-2/+1
| | | | | | | | | The default incall gradiant background will be shown instead. Bug: 67596257 Test: manual PiperOrigin-RevId: 187384455 Change-Id: Icf91804d78aa98d051248a9eca0d13be0ea880f0
* Move DirectoryCompat from "contacts/common" to "dialer/common/cp2".linyuh2018-02-271-1/+1
| | | | | | | Bug: 73887387 Test: Existing tests PiperOrigin-RevId: 187225355 Change-Id: I65de553078e147a46d933daf34dfd912fc8aa74c
* Fix bug that soft keyboard pushes action bar out of window.wangqi2018-02-272-3/+3
| | | | | | | | | This is happening on outgoing call. Bug: 67596257 Test: manual PiperOrigin-RevId: 187207221 Change-Id: I09e8be0dbad695a1a5afb64e08faf533d068e5c4
* Updating PrimaryCallState value class to use AutoValue with builder pattern.Android Dialer2018-02-269-202/+247
| | | | | | | Bug: 34502119 Test: BottomRowTest,CallCardPresenterTest,PrimaryCallStateTest,TopRowTest PiperOrigin-RevId: 187071451 Change-Id: Ib1b4baee397f61eade84bf1a887596dddc37230a
* Implement logic of bottom sheet options related to spam numbers.linyuh2018-02-261-1/+1
| | | | | | | Bug: 70989605 Test: ShowBlockReportSpamDialogNotifierEndToEndTest + Manual PiperOrigin-RevId: 187047450 Change-Id: I23c3929135bcfe5c14fe317ef65f628dc126027f
* Track initial call log building metrics separately from incremental building ↵zachh2018-02-231-1/+3
| | | | | | | | | | | | | 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
* Fix bugs of RTT chat.wangqi2018-02-232-17/+10
| | | | | | | | | | 1. send bubble break characters to remote 2. correctly handle text replacement Bug: 67596257 Test: RttChatMessageTest PiperOrigin-RevId: 186850402 Change-Id: I0aebb0f4315a021da1463d7903d28e912918efca
* Fix bug in isVoicemailNumber method not returning earlyroldenburg2018-02-221-0/+2
| | | | | | | Bug: 72997695 Test: existing tests, LoggerUtilsTest, placed call to voicemail and verified PiperOrigin-RevId: 186677560 Change-Id: I63d0a463f890c8cc1a301daa37388f58aed33aae
* Updating PrimaryInfo value class to use AutoValue with builder pattern.Android Dialer2018-02-229-187/+212
| | | | | | | Bug: 34502119 Test: BottomRowTest,CallCardPresenterTest,PrimaryInfoTest,TopRowTest PiperOrigin-RevId: 186460178 Change-Id: Ifb90019b6a5568788d51f4a55a07f7693c803eaf
* Moved metrics related methods out of LoggingBindings.zachh2018-02-222-12/+19
| | | | | | Test: existing PiperOrigin-RevId: 186413083 Change-Id: I96c88c46b0ecc01167b655fa30fc47aaa6a9e351
* Implement read/write text stream to RttCall.wangqi2018-02-227-14/+170
| | | | | | | | | | | | This change also: 1. Add simulator support of RTT request during call (always accept at this moment, will add random accept/decline in the future) 2. Fix bugs of putting RTT call in background and back to call Bug: 67596257 Test: Simulator PiperOrigin-RevId: 185920527 Change-Id: I51016fa6cf1ccc8a5a21335f9dacf286ae393706
* Annotate RTT as @TargetApi(28).wangqi2018-02-221-0/+2
| | | | | | | Bug: 67596257 Test: lint tests PiperOrigin-RevId: 185912566 Change-Id: I281fbd62865c9de150c3e2a7a3ea79c3eb85c529
* Move RttChatBot to simulator.wangqi2018-02-223-79/+27
| | | | | | | Bug: 67596257 Test: none PiperOrigin-RevId: 185561470 Change-Id: I96755cc76e2a1cba65cd496d74593cdd1dedddae
* Update RTT call with real name/number and timer.wangqi2018-02-221-20/+20
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 185561269 Change-Id: I81bdf379dd2411540c012df40dc0461f31aca9ea
* Add simulator RTT call.wangqi2018-02-2221-144/+544
| | | | | | | | | | | This change will also: 1. Disable proximity sensor for RTT call 2. Update RTT call screen, including colors and banner buttons Bug: 67596257 Test: presubmit PiperOrigin-RevId: 185541897 Change-Id: I571373efbb8ced4ee2ad94879e9d37bed33b6a28
* Update title of after call spam dialog.wangqi2018-02-091-1/+1
| | | | | | | Bug: 73136533 Test: none PiperOrigin-RevId: 185160539 Change-Id: I43cc987c646a13d1d012415c0869780317dcb7b8
* Finish AudioRouteSelectorActivity when all calls disconnect.yueg2018-02-092-16/+48
| | | | | | | Bug: 67605985 Test: AudioRouteSelectorActivityTest PiperOrigin-RevId: 185069195 Change-Id: Icae34dd6374a775c3ad5d3835750bd2fe703dfa0
* Show reject hint text for all incoming callswangqi2018-02-091-2/+1
| | | | | | | | | | | | | | | | The function setHintText sets the hint text reject text to null when hintText for answering a call is non-null. Correcting so the reject text is always be set to call_incoming_swipe_to_reject regardless of the value of hintText. This is an upstream change from: https://android-review.googlesource.com/c/platform/packages/apps/Dialer/+/612667 Bug: 73018780 Test: manual PiperOrigin-RevId: 185020322 Change-Id: I413f8cf63a1b11e70300536a13c1a8a103d847cc
* Bubble layout change.yueg2018-02-061-10/+3
| | | | | | | | | | - Flip back-to-call button icon. - Use different button height for portrait and landscape. In order to make it work, we also create new ViewHolder object when bubble shows and remove reset() when bubble hides. Bug: 67605985 Test: NewBubbleImplIntegrationTest, NewBubbleImplTest, NewReturnToCallControllerTest PiperOrigin-RevId: 184768224 Change-Id: If4e613b12e39c647c34f4cb63a7f934043d42ec7
* Remove bubble v1.yueg2018-02-056-437/+2
| | | | | | | Bug: 67605985 Test: manual PiperOrigin-RevId: 184358120 Change-Id: I17288da2b059f18bd51247e27aa174c7994e6f05
* Update the SpeakEasy component.erfanian2018-02-027-100/+71
| | | | | | Test: unit tests PiperOrigin-RevId: 184352489 Change-Id: If3f2414dd9769dc54035c7fcf5afe925af3006db
* Update text on after call spam notification and dialog.wangqi2018-02-024-35/+34
| | | | | | | | | | | | This change also includes: 1. Fixes formatting of phone number in the dialog. 2. Remove body text if the dialog. 3. Update to material design dialog style. Bug: 72120616 Test: manual PiperOrigin-RevId: 184350133 Change-Id: I8bdd9c792877822fe18ba6aae6c04136a603dbba
* internal changeAndroid Dialer2018-02-013-8/+19
| | | | | | | Bug: 68825005 Test: Added unit tests on CallFeedbackListenerImpl, CallFeedbackNotificationManager and DialerCall. Also manually verified the change. PiperOrigin-RevId: 184211115 Change-Id: I50927036c3cd5d47862704376e2eef108c473fbf
* This text is for dismiss button in dialog that's to dismiss the dialog afterwangqi2018-02-011-2/+2
| | | | | | | | | a call, instead of to hang up the call. Bug: 72120616 Test: none PiperOrigin-RevId: 184162123 Change-Id: I20dbdb258ad0640fa4ed8cf6492549ba9c62eda6
* Add arrow icon to bubble sound button when Bluetooth is connected.yueg2018-01-311-0/+4
| | | | | | | | | It's an indicator that the button triggers another list. Bug: 67605985 Test: manual PiperOrigin-RevId: 184042869 Change-Id: I3fea526a322dcc3935af111ebd0916b7c5ffcb24
* Remove bubble from AOSP.yueg2018-01-311-2/+25
| | | | | | | Bug: 67605985 Test: NewBubbleImplTest, NewBubbleImplIntegrationTest, NewReturnToCallControllerTest PiperOrigin-RevId: 184026033 Change-Id: Ie141ce9a0265ce3a08c01943cdeb94e2cd962e9f
* Don't override contactExists if there is no update from Cequint Caller ID.wangqi2018-01-301-1/+3
| | | | | | | Bug: 72485878 Test: none PiperOrigin-RevId: 183915863 Change-Id: Ib035855d944c91145418222cc390be066744b4fb
* Added number presentation to AnnotatedCallLog.zachh2018-01-261-1/+1
| | | | | | | | | Updated the new call log UI to properly show text based on the presentation. Bug: 70989592 Test: unit PiperOrigin-RevId: 183414195 Change-Id: I2123f37cd3c733060125b6e894c1a80be4193ad6
* Update preferred SIM SuggestionProvidertwyen2018-01-251-1/+1
| | | | | | | | | | "remember this SIM" checkbox state is reported to the provider. The other SIM is reported to the provider when "change SIM" is used Bug: 70503524 Test: Unit tests PiperOrigin-RevId: 183308581 Change-Id: I3d097d14a503c759f130044c9a9c48c420eee19d
* Bubble v2 a11y.yueg2018-01-241-0/+3
| | | | | | | | | - Set checkable for bubble buttons so the check status of non checkable button (back to call, end call) is not read. - Add support for bottom action buttons. Test: manual PiperOrigin-RevId: 183150371 Change-Id: Ifae9c912ec923e8d2cda3146413138bd2eb94b47
* Add flag to enable NUI shortcut.calderwoodra2018-01-241-2/+2
| | | | | | | Bug: 64655802 Test: n/a PiperOrigin-RevId: 183149638 Change-Id: Idc58efced8f70311eccd67f403bc5bd98f3f8518
* Add foreground service permissionroldenburg2018-01-241-0/+3
| | | | | | | Bug: 72116995 Test: built APK, verified permission PiperOrigin-RevId: 183126225 Change-Id: I0889ea619a21413e510a7b58143c5011ed81b688
* Fixed a regression where we incorrectly reported that the dialpad was visible.calderwoodra2018-01-241-1/+5
| | | | | | | | | | | | | | | A request was made to update the value of #isDialpadVisible, in the process a regression was introduced that would cause #isDialpadVisible to return true when the dialpad's root view was null. This caused a NPE when we tried to animate it. We should now return the correct value in the scenarios important to our partners as well our users and animations. Bug: 64657832,72384544 Test: manual/logging PiperOrigin-RevId: 183122628 Change-Id: I981e944dbb003064163b8ec11883dbc5381cba0e
* Updated call number by NW is not displayedwangqi2018-01-232-13/+14
| | | | | | | | | | | | | | | CallCardPresenter updates a call number if the number is updated by NW. But the logic is worng. The comparing numbers are always same. Because it compares with the same objects in DialerCall#areSameNumber. This is a upstream change from: https://android-review.googlesource.com/c/platform/packages/apps/Dialer/+/556000 originating number is shown in the call screen. Bug: 70201489 Test: manual - Verified that a call number that changed from a PiperOrigin-RevId: 183022988 Change-Id: I04305998e77ca120b1248636c63984b3d20f0db1
* Update Assisted Dialing references.erfanian2018-01-231-1/+17
| | | | | | Test: existing unit tests PiperOrigin-RevId: 182949031 Change-Id: I40955c6e5f4fe06687880d3e9ef4b91ef9c0b371
* Changed PhoneLookup#lookup to accept a DialerPhoneNumber.zachh2018-01-221-5/+29
| | | | | | | | | | | | | | | | | There's a problem with the existing implementation of RealtimeRowProcessor; when CP2 information is not present, data from other sources can potentially be erased. This CL fixes the problem by fetching the latest data from all sources, instead of just CP2. This requires being able to fetch PhoneLookup info without a Call, using only a number, so I changed PhoneLookup#lookup to accept a DialerPhoneNumber rather than a Call. (The reason that it accepted a Call was to support CNAP so we'll need a revised solution for that later.) There is a potential concern with performance in RealtimeRowProcessor due to performing a full [Composite]PhoneLookup vs. a CP2 lookup, because the full lookup includes network requests. However, it's anticipated that the real time lookups will very rarely have changes to apply so this might be OK as-is. If not, a mitigation strategy could be improving the performance of CompositePhoneLookup#lookup by short-circutiing slower sources when faster, higher priority sources have already completed. A follow-up CL will write the result of RealtimeRowProcessor queries to PhoneLookupHistory to further reduce how frequently real time updates need to be applied. Bug: 72229553 Test: existing unit PiperOrigin-RevId: 182839130 Change-Id: I8cb26827b4f4dc4702fb416234c8938179cd5ac5
* Update Simulator to launch SpeakEasyAndroid Dialer2018-01-196-1/+144
| | | | | | Test: PiperOrigin-RevId: 182625448 Change-Id: I4fe514c429a6b5a88060f326b0c73c2f3a960c1c
* Pass PhoneAccountHandle into VideoTech isAvailableroldenburg2018-01-186-18/+26
| | | | | | | Bug: 71840382 Test: DuoImplTest, existing tests PiperOrigin-RevId: 182424150 Change-Id: I25607d43e1915d57134feac99b2c2240ae9559f9
* Move onUiShowing() call from onResume/onPause to onStart/onStop.yueg2018-01-172-9/+15
| | | | | | | | | | | It makes sure bubble doesn't appear on split screen when in-call UI is not showing. Although bubble still shows in recents screen. It also make sure the same onUiShowing() is not called multiple times. Bug: 67605985,71746139 Test: InCallActivityTest PiperOrigin-RevId: 182280886 Change-Id: I2a28d0258c722d530000729a89751c6d6b1ee6fd
* Use EmptyVideoTech instead of null RcsVideoShare VideoTech impl when unavailableroldenburg2018-01-161-3/+1
| | | | | | | Bug: 67005309,71880949 Test: VideoTechManagerTest PiperOrigin-RevId: 182091664 Change-Id: I0be4d4f9740e2bb678e772ec8526ccf176c334eb
* Fixed bug in handling of empty numbers in new call log.zachh2018-01-111-4/+1
| | | | | | | | | | | | | Empty numbers were not being inserted into PhoneLookupHistory because the URI "content://.../PhoneLookupHistory/" is treated the same as "content://.../PhoneLookupHistory" (w/o the trailing slash). This caused the update (i.e. replace) operation to incorrectly update all rows in the table when it should have updated a single row. The fix for this was to switch to a query parameter, so the empty number URI now looks like "content://.../PhoneLookupHistory?number=" Also improved some logging while debugging this problem. Bug: 71866050 Test: unit and manual PiperOrigin-RevId: 181659081 Change-Id: Idec4fb77e74920cd5485620b0a997db03aa8ff9b