summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/InCallActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "UI refresh for ringing screen."Eric Erfanian2018-07-101-0/+64
| | | | | | This reverts commit 36d5b93da4f93e50deb496daa5ad820c48aa7b01. Change-Id: I533bc3f7d592a6e257d184f0d3730b4be95f2af2
* Remove more instances of guava optional for built in optional.erfanian2018-06-291-2/+2
| | | | | | Test: tap PiperOrigin-RevId: 202663404 Change-Id: Ic229d77f8f14bb9e60e82889ed5788dee600e957
* Add background call checks.erfanian2018-06-261-0/+10
| | | | | | | Bug: 110173835 Test: unit PiperOrigin-RevId: 202029563 Change-Id: I62021e0f68beb6eff52b475626c40876daf53fbf
* UI refresh for ringing screen.wangqi2018-06-211-64/+0
| | | | | | | Bug: 79878432 Test: manual PiperOrigin-RevId: 201608196 Change-Id: Idff45359c5ddf3dacbeb77b103d3b53d3bf34334
* Set the preferred SIM when InCallActivity is not visible.linyuh2018-06-071-6/+7
| | | | | | | Bug: 109653872 Test: N/A (InCallActivity is not testable, similar to cl/194824783). PiperOrigin-RevId: 199662982 Change-Id: I4effa2454246d852837d0878246898537f799980
* Supported two RTT calls at same time.wangqi2018-06-061-4/+4
| | | | | | | Bug: 109738484 Test: manual PiperOrigin-RevId: 199524711 Change-Id: Ia75c41004179da5eae17b6acbc952d652e8d7480
* Dismiss RTT request dialog if RTT is already active.wangqi2018-06-051-2/+10
| | | | | | | | | | | | | On VZW, RTT request will be accepted by modem automatically, in which case the dialog will be useless and should be dismissed. User won't see the dialog in this case since it's not visible yet when dismissed. This is a workaround since change in modem/telecom is not feasible at this point. Bug: 80259700 Test: manual PiperOrigin-RevId: 199334017 Change-Id: Ie5fb40e7a11975a423135ad7e5e6ef2dddbac56b
* Inlined ConfigProviderBindings.get() and removed ConfigProviderBindings.zachh2018-06-011-2/+3
| | | | | | | | | It no longer provides any value, so just use dagger directly. Bug: 80441695 Test: tap PiperOrigin-RevId: 198806461 Change-Id: Id607abb65b77633bce511ad0c943ac19453a85d5
* Fix bug that SpeakEasyFragment is added again after recreate of InCallActivity.wangqi2018-05-221-0/+1
| | | | | | | Bug: 79885898 Test: manual PiperOrigin-RevId: 197630981 Change-Id: Ib4ace31c7c207f5ee9f69aee148ddf49021da37b
* Set navigation bar color when dialpad is visible.wangqi2018-05-211-24/+2
| | | | | | | | | | Instead of fake a black bar on voice incall UI, the more reliable way is to set navigation bar color. Bug: 79902234 Test: manual PiperOrigin-RevId: 197475300 Change-Id: I96085700e633570ef385386cdf366d758e50a6e2
* Update logging in incallactivity.uabdullah2018-05-111-4/+4
| | | | | | | Bug: 194611503 Test: Unit Test PiperOrigin-RevId: 196190392 Change-Id: I11fc1a02bd89207bf1c2d12f2821ef4447529c6e
* More refactoringerfanian2018-05-041-1/+2
| | | | | | Test: unit PiperOrigin-RevId: 195188099 Change-Id: Ie2273229c257a9a767715831c15d90a6985fdda8
* Refactor PreferredAccountWorker to provide the dialog to be shown.twyen2018-04-301-61/+17
| | | | | | | | | | When dual SIM selection support is added to In Call UI it was a rush order and codes are duplicated. This CL moves the duplicated logic into PreferredAccountWorker so the same dialog can be shown for both. TEST=manual Bug: 69675796,72618783 Test: manual PiperOrigin-RevId: 194845320 Change-Id: Id283ca7616580b0efd4e8f02e63691c70ee7f93c
* Don't show dialog if in call activity is not visible.twyen2018-04-301-0/+6
| | | | | | | | | | UiListener nulls out the callbacks onDetach(), which is after onSaveInstanceState(). TEST=N/A InCallActivity is not testable. Bug: 78517857 Test: N/A InCallActivity is not testable. PiperOrigin-RevId: 194824783 Change-Id: I2c4f41cf58a498a841f69ef078e58d07ec5b3c5a
* Move DialerCall.State to an independent package.wangqi2018-04-281-3/+3
| | | | | | | | | This refactoring will remove dependency on incall/call package for those classes only dependent on DialerCall.State. The benefit is to remove unnecessary dependency and avoid potential loop dependency in the future. Test: presubmit PiperOrigin-RevId: 194594382 Change-Id: I6b3241bcf10a0a15c495c3c90a13f174c32e3f72
* Show post char dialog without InCallActivity.yueg2018-04-251-19/+2
| | | | | | | Bug: 74022483 Test: InCallPresenterTest PiperOrigin-RevId: 194275941 Change-Id: If5a40a9778e3c0f5a05c7e33f365cb609bf6e74a
* Use UI listener for preferred account worker in in call UItwyen2018-04-251-66/+86
| | | | | | | | | | Before this CL it is ran on a non-UI task, where the callback might happen after the activity has already ended. TEST=manual Bug: 78517857 Test: manual PiperOrigin-RevId: 194169377 Change-Id: I0011019cb31b0b2c01c9d774776fb44dcac4d8c6
* Add "enabled" to SelectPhoneAccountDialogFragment.twyen2018-04-251-8/+24
| | | | | | | | | | | | 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
* Show international call on wifi dialog without InCallActivity.yueg2018-04-251-41/+1
| | | | | | | Bug: 74022483 Test: InCallPresenterTest PiperOrigin-RevId: 194125192 Change-Id: Ie7c50554079fe3a0a23b18ac44fc81b913c3e619
* More improvements call flow.erfanian2018-04-171-0/+11
| | | | | | | Bug: 73774461,73774884,73775516,73775590,73775873 Test: unit/manual PiperOrigin-RevId: 193236364 Change-Id: I03726ed7e5a3383f6e8632fb2cf9b948c3203f87
* Update logic for incoming and active calls.erfanian2018-04-111-3/+5
| | | | | | | Bug: 73774461,73774884,73775516,73775590 Test: unit PiperOrigin-RevId: 192456945 Change-Id: I0f0b44e56550939d4af16297bd305297e6c74310
* Implement background calling.yueg2018-04-051-9/+0
| | | | | | | Bug: 74022483 Test: InCallPresenterTest PiperOrigin-RevId: 191825857 Change-Id: I9c70290da32484faf42a2a25fd6b22ba706cb63e
* Fix leak of InCallActivity's DecorView and stuck on disconnection bug.wangqi2018-04-051-3/+3
| | | | | | | | | | This is caused by not dismissing error dialog when recreating InCallActivity. The dialog will be shown again after recreating. Bug: 71376489,77152802 Test: manual PiperOrigin-RevId: 191775030 Change-Id: I07ef5041979c0bbb2d44df9e41b55f0ac41e9339
* Remove null check.erfanian2018-04-041-1/+1
| | | | | | | Bug: 77486043 Test: unit tests PiperOrigin-RevId: 191660058 Change-Id: Ia68c8b06e266950cb964a796ea338e4bbc1d6b07
* Better support for multi call.erfanian2018-04-041-2/+6
| | | | | | | Bug: 73775453,73775590 Test: unit tests PiperOrigin-RevId: 191657758 Change-Id: If1ae5505185191f04fd57aa828ae5bcc9c21b173
* Implement dialog for responding RTT request.wangqi2018-04-031-0/+8
| | | | | | | Bug: 67596257 Test: manual PiperOrigin-RevId: 191365412 Change-Id: Ida741a837d6495c0d5f51b748f4d6c09a1beafec
* Add upgrade to RTT call button.wangqi2018-03-301-2/+2
| | | | | | | | | This button has higher priority over add call button if RTT is enabled. Bug: 67596257 Test: ButtonChooserIntegrationTest PiperOrigin-RevId: 191129313 Change-Id: I5a3302a0970e77a933439749e0e559a691235523
* Remove unnecessary call to StatusBarNotifier.updateNotification().yueg2018-03-281-3/+0
| | | | | | | | The call for incoming call is covered in StatusBarNotifier.onStateChange(). The two calls in InCallActivity is not useful (maybe is before notification becoming foreground). Test: manual PiperOrigin-RevId: 190845157 Change-Id: I0f84f15cfda5294566fa8976e09aac5163f85aa9
* Remove obsolete methods in CompatUtils and rename it as "LocaleUtils".linyuh2018-03-261-4/+1
| | | | | | Test: Existing tests PiperOrigin-RevId: 190516504 Change-Id: I5fa9e123b45beb9728257ecd160a348fb3f4732c
* Remove obsolete version checks and compat utilities after min SDK was bumped ↵linyuh2018-03-261-5/+3
| | | | | | | | up to N. Test: Existing tests PiperOrigin-RevId: 190508397 Change-Id: Ia5f33e45af1d1cc666fec5f43efa564b2b68c193
* Add more boilerplate to the incallui.erfanian2018-03-201-4/+97
| | | | | | | Bug: 73774242 Test: unit tests where they exist PiperOrigin-RevId: 189853302 Change-Id: Ibf3431cc0d7716c2c53c7ea165dfc130102a1bc7
* Add support of dialpad in RTT call.wangqi2018-03-081-5/+20
| | | | | | | | | This change also dismiss overflow menu when any button is clicked inside it. Bug: 67596257 Test: manual PiperOrigin-RevId: 188424236 Change-Id: I90b803d592f12525cdb8727aaeebc45c3da5dcdd
* Handle preferred SIM for ACTION_CALLtwyen2018-03-071-19/+73
| | | | | | | | | | | Previously preferred SIM is handled only by precall, which covers dialing with dialer or with the special receiver contacts uses. If a third party app uses ACTION_CALL or telecomManager.placeCall(), then the in call UI will be launched directly and the old account selection dialog will be used without preferred SIM support. In this CL logic from CallingAccountSelector is refactored out so InCallActivity can use it for the dialog. Bug: 73718976 Test: Unit tests, In call UI not covered. PiperOrigin-RevId: 188214007 Change-Id: Ifaacf982a3e98601dc362b649c3501d4ee96e63e
* Moved metrics related methods out of LoggingBindings.zachh2018-02-221-7/+11
| | | | | | Test: existing PiperOrigin-RevId: 186413083 Change-Id: I96c88c46b0ecc01167b655fa30fc47aaa6a9e351
* Implement read/write text stream to RttCall.wangqi2018-02-221-0/+3
| | | | | | | | | | | | 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
* Add simulator RTT call.wangqi2018-02-221-15/+89
| | | | | | | | | | | 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
* Remove bubble v1.yueg2018-02-051-6/+0
| | | | | | | Bug: 67605985 Test: manual PiperOrigin-RevId: 184358120 Change-Id: I17288da2b059f18bd51247e27aa174c7994e6f05
* 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
* Move onUiShowing() call from onResume/onPause to onStart/onStop.yueg2018-01-171-7/+11
| | | | | | | | | | | 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
* InCallActivity should not call onUiShowing(false) when recreating.yueg2018-01-091-2/+5
| | | | | | | | | InCallActivity recreates when onNewIntent() and is not visible. Althought onPause() is called, we should not call onUiShowing(false) since the activity is going to be visible. The extra call confuses bubble animation. Bug: 67605985,71746139 Test: InCallActivityTest PiperOrigin-RevId: 181343690 Change-Id: I4d540be0e3e38400322f9b9c3e71e50b1f85977c
* Allow orientation change when receiving video upgrade request in the in-call UI.linyuh2017-12-181-1/+1
| | | | | | | Bug: 67764843 Test: Manual PiperOrigin-RevId: 179463451 Change-Id: Iee1999c673a0b6f67d8e538745c23e75865a5262
* Turning on the screen when audio stream of an incoming call is directed ↵linyuh2017-12-151-3/+4
| | | | | | | | | through Bluetooth. Bug: 70638560 Test: InCallActivityTest PiperOrigin-RevId: 179261692 Change-Id: I269c8573592e6ff6083efc201e6bede74a01ee06
* InCallActivity#isDialpadVisible() now returns the correct value.calderwoodra2017-12-121-3/+4
| | | | | | | Bug: 64657832 Test: manual/logging PiperOrigin-RevId: 178824989 Change-Id: I202389123732c05680ba329313e889437fb4a806
* Merge what's left in InCallActivityCommon into InCallActivity.linyuh2017-11-211-101/+513
| | | | | | | Bug: 69272096 Test: None PiperOrigin-RevId: 176443652 Change-Id: I90da4789deb4b6337a38cfe010b8aee5090d35e0
* Merge the following methods in InCallActivityCommon into InCallActivity:linyuh2017-11-181-30/+187
| | | | | | | | | | | | | | | | | | | | | | | 01. handleDialerKeyDown(int, KeyEvent), 02. onBackPressed(boolean), 03. onDestroy(), 04. onKeyDown(int, KeyEvent), 05. onKeyUp(int, KeyEvent), 06. onPause(), 07. onSaveInstanceState(Bundle), 08. onStart(), 09. onStop(), 10. updateNavigationBar(boolean), and 11. updateTaskDescription(). Note that InCallActivityCommon#handleDialerKeyDown(int, KeyEvent) is merged into InCallActivity#onKeyDown(int, KeyEvent). This is part of the effort to delete InCallActivityCommon. Bug: 69272096 Test: None PiperOrigin-RevId: 176161247 Change-Id: I6e74c7feec5414fb4bc58814eef3bd297d6eb96f
* Merge the following methods in InCallActivityCommon into InCallActivity:linyuh2017-11-181-10/+96
| | | | | | | | | | | | | | | | | | | | | | 1. maybeShowErrorDialogOnDisconnect(DisconnectMessage), 2. onDialogDismissed(), 3. showErrorDialog(Dialog, CharSequence), 4. showInternationalCallOnWifiDialog(DialerCall), 5. showWifiFailedDialog(DialerCall), and 6. showWifiToLteHandoverToast(DialerCall). Renaming in InCallActivity: 1. "maybeShowErrorDialogOnDisconnect" -> "showDialogOrToastForDisconnectedCall", 2. "onHandoverToWifiFailed" -> "showDialogOrToastForWifiHandoverFailure", 3. "onInternationalCallOnWifi" -> "showDialogForInternationalCallOnWifi", and 4. "onWiFiToLteHandover" -> "showToastForWiFiToLteHandover". This is part of the effort to delete InCallActivityCommon. Bug: 69272096 Test: None PiperOrigin-RevId: 175991784 Change-Id: I0b31bd93437e633d2f77b09982e0c7fc94ad8a32
* Move the following methods from InCallActivityCommon to InCallActivity:linyuh2017-11-181-3/+25
| | | | | | | | | | | | | 1. enableInCallOrientationEventListener(boolean) 2. isDialpadVisible() 3. getDialpadFragment() This is part of the effort to delete InCallActivityCommon. Bug: 69272096 Test: None PiperOrigin-RevId: 175898158 Change-Id: Ib0f58dbe35d528a475268a86b2af4119e7cfa381
* Move InCallActivityCommon#dismissPendingDialogs to InCallActivity.linyuh2017-11-181-12/+42
| | | | | | | | | This is part of the effort to delete InCallActivityCommon. Related instance variables remain in InCallActivityCommon for now as they are used in several other places. Temporary getters/setters are added in InCallActivityCommon so that InCallActivity has access to these instance variables. Bug: 69272096 Test: None PiperOrigin-RevId: 175853702 Change-Id: Iaeb96c8ad7acb628393dd5c775ad7f3b40940a2b
* Move InCallActivityCommon#dismissKeyGuard to InCallActivity.linyuh2017-11-181-1/+12
| | | | | | | | | This is part of the effort to delete InCallActivityCommon. There are 25 references to InCallActivityCommon in InCallActivity and we will remove them one at a time. Bug: 69272096 Test: None PiperOrigin-RevId: 175718978 Change-Id: I0713bd28c2d34791045be2bb851003000b88abca
* Fix previous usage of LoggingBinding with Logger class.weijiaxu2017-11-111-16/+7
| | | | | | Test: In dialer lab. PiperOrigin-RevId: 174781953 Change-Id: I987c0d191a7c5613debb857bab9438d0c1aa20a7