summaryrefslogtreecommitdiffstats
path: root/src/com/android/incallui/AnswerPresenter.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'lollipop-mr1-release' of ↵staging/cm-12.1-testSteve Kondik2015-03-251-4/+7
|\ | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/InCallUI into cm-12.1 Change-Id: I7d550c092380b050f7cbc714006bc4ed94b08a56
| * Merge "Stop ringer when selecting "respond via text"." into lmp-mr1-devNancy Chen2014-12-021-0/+2
| |\
| | * Stop ringer when selecting "respond via text".Nancy Chen2014-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Ringer should stop while user is selecting response from "respond via text" dialog. Bug: 14656360 Change-Id: Ib73e6f10f1bda8363b65391a53e61dc5eb5d8d8d
| * | Telecom API updates (3/6)Ihab Awad2014-11-281-3/+3
| |/ | | | | | | | | Bug: 18292176 Change-Id: I5bcb1838a8423f15ebdf87c945ca91da460506f4
* | Telephony: Fix compilation issues.Yashdev Singh2015-03-101-7/+7
| | | | | | | | | | | | - Compilation issues fix. Change-Id: I467470b47a4acce1a7dec0f52c120dd4f61b161e
* | Revert "Stop ringer when selecting "respond via text"."Yashdev Singh2015-03-101-2/+0
| | | | | | | | | | | | This reverts commit d8b02671675d98c7674b1bb781141c2111a79bb1. Change-Id: Icfc7c3f882cc0912e8cfad4eda6103369142d69b
* | Revert "Telecom API updates (3/6)"Yashdev Singh2015-03-101-4/+4
| | | | | | | | | | | | This reverts commit dfa54cf281ebe1ec7ea63254812a479b4efb8c04. Change-Id: Id1a83bab7c666c94c2ce0dfb590da2a775f7c797
* | Revert "Telephony: Fix compilation issues for conversion from long to int."Yashdev Singh2015-03-101-7/+7
| | | | | | | | | | | | This reverts commit c5534a7b1995ed97b66c47791fa60b14add1cc8a. Change-Id: I33eb3c516f1d40650afdcce625d9151231ab7ca8
* | Telephony: Fix compilation issues for conversion from long to int.Yashdev Singh2015-03-101-7/+7
| | | | | | | | | | | | - Compilation issues fix. Change-Id: I15d7851ecc9e2f8dbce3135d16808dcafa83eba5
* | Telecom API updates (3/6)Ihab Awad2015-03-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18292176 Conflicts: src/com/android/incallui/Call.java src/com/android/incallui/CallButtonPresenter.java src/com/android/incallui/CallCardPresenter.java src/com/android/incallui/InCallPresenter.java src/com/android/incallui/InCallUIMaterialColorMapUtils.java Change-Id: I6dae81a4eb23b1e98d3769d6f991ed8840aa7c33
* | Stop ringer when selecting "respond via text".Nancy Chen2015-03-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ringer should stop while user is selecting response from "respond via text" dialog. Bug: 14656360 Conflicts: src/com/android/incallui/AnswerPresenter.java src/com/android/incallui/CallCardPresenter.java src/com/android/incallui/InCallPresenter.java Conflicts: src/com/android/incallui/AnswerPresenter.java Change-Id: I5ce8b0c7a7f4d09a2a9378bcc7b646a3a5188451
* | IMS-VT: Show glowpad view with accept/reject for most video upgrade casesNivedita Sarkar2015-01-281-2/+40
| | | | | | | | | | | | | | | | | | | | - Show the glowpad view with all options only when upgrading from Volte to VT - For all other cases, show the glowpad with accept/reject only Change-Id: I41ecbda40db7c3c69428fc4272f8bfbd258e2980 CRs-Fixed: 779208
* | Ims: Reject upgrade requestRavi Paluri2014-11-181-18/+38
| | | | | | | | | | | | | | | | 1. If there is waiting call that is pending user action and 2. Before offering a waiting call Change-Id: Ic52340de09d71b6d43291b69a1757e717a787370 CRs-Fixed: 748298
* | IMS-VT: Answering calls and upgrade requests as VT_TX and VT_RXRekha Kumar2014-11-041-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | -Support for showing one way options for incoming upgrade request -Fix issue where incoming video popup stays on screen even after rejecting the request. -Fix issue where incoming video popup stays on even after it has been timed out by lower layers. - Answer with different calltypes support. Change-Id: I971a7e227d4d8a5ec26b2d79126094b0d8786027 CRs-Fixed: 738027
* | IMS-VT: Upgrade downgrade and hold resume video calls.Rekha Kumar2014-11-041-1/+22
| | | | | | | | | | | | | | -Add support for upgrade downgrade video calls -Add support for hold resume and call waiting Change-Id: If262803e5921d3110b8fb6d88dde3188a1baf3d6
* | IMS-VT: Enable loggingRekha Kumar2014-11-041-1/+2
| | | | | | | | | | | | -Add logs for Videocalls Change-Id: If859776cb4c1373f0d0f8cecdb8b04648f8a1ce5
* | Compilation fixDivya Sharma2014-11-041-4/+4
| | | | | | | | | | | | | | | | Compilation fix Conflicts: src/com/android/incallui/InCallPresenter.java Change-Id: I1a8264a74b1925ed34891ebf4e6e77c37f58a7d4
* | Deflect call test using answer call buttonSuresh Kumar Sugguna2014-11-041-0/+24
| | | | | | | | | | | | | | | | | | | | 1. Provide hooks to deflect call through answer button in the UI for testing deflect call scenarios. 2. Use system property "persist.radio.deflect.number" to set the number to which call should be delfected. Change-Id: I1b3d039a587f6769939743a2fb307cdc6c650837 CRs-Fixed: 713856
* | Add support for DSDA.Sandeep Kunta2014-11-041-27/+105
| | | | | | | | | | | | | | | | | | | | | | | | Add support to show calls from both subscriptions in a tabbed view format to user. when ever user swithces sub, inform telecomm service that subscription is switched. Conflicts: src/com/android/incallui/CallButtonPresenter.java Change-Id: I3bea71501ce159e189f75db58e710ffc94e8137c
* | IMS: Deflect call featureSuresh Kumar Sugguna2014-11-041-0/+10
|/ | | | | | | Code changes to support Deflect call feature from UI Change-Id: I657fb30a558721f0fa14558291b406ac443977b4 CRs-Fixed: 713856
* Reallow quick text response on lockscreenYorke Lee2014-09-241-5/+2
| | | | | Bug: 17399771 Change-Id: I9fbc8157e547b2368baa5ebe29001e2a338655a2
* Fix for quick response option not showing up for call waitingYorke Lee2014-09-141-23/+34
| | | | | | | | | | | | | | | | | | | | | | Text messages for a call are loaded by an asynchronous task and are not populated immediately for a new call. For the first incoming call, this is not an issue because they are usually loaded by the time Telecomm binds to InCallService, and the first call is added to InCallService. For the second(and subsequent calls) however, they are added to InCallService immediately before the text messages are loaded. This means that onIncomingCall is called in AnswerPresenter with a null list of text messages, which causes it to hide the quick response option. This CL refactors AnswerPresenter to also update the displayed options when a change in call state occurs, so that it shows the quick response option when the list of text messages are eventually loaded and sent to InCallService. Bug: 17426049 Change-Id: Id5209b91013b52c5ede5a5dcd4db8a981664c285
* Renaming Telecomm to Telecom.Tyler Gunn2014-09-121-4/+4
| | | | | | | | | | - Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: Ie5ae18f51baa5da2eb9793785ad0c9d83b6343d1
* Disable respond via message option if lockscreen is activeYorke Lee2014-09-121-3/+9
| | | | | Bug: 17399771 Change-Id: I54cdbd41df05c932ed8c5a61a9bc7f8eba9c8153
* Ensuring Video APIs are only called when video is available.Tyler Gunn2014-08-221-1/+2
| | | | Bug: 17179079 Change-Id: I3b327250c181f821ec37d574ae804f8003d04603
* Final structural tweaks to Telecomm API (3/8)Ihab Awad2014-08-131-2/+2
| | | | | | Bug: 16416927 Bug: 16494880 Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
* Add UI/functions to handle a video upgrade request.Andrew Lee2014-08-121-4/+25
| | | | | | | | | + Move session modification listener into the video call presenter. + Add new video accept/reject notification and full-screen UI. + Added "handling" which sends session modification response. Bug: 16657915 Change-Id: I35ff04e383d4938cbfb4e76677730f82557fd918
* Remove ldaps from AOSP code.Santos Cordon2014-08-061-1/+1
| | | | | Bug: 16327484 Change-Id: If4678281e2da1f1c7f0bcb91d496f1fd371be536
* Hook up answering as video call.Andrew Lee2014-07-171-2/+2
| | | | | | | | Pass in the desired video state when answering incoming video calls. Bug: 16013878 Bug: 16015750 Change-Id: I7f46dadfdaa6ab256626d2e2e49971e114f506dd
* Add video call handling for heads up notifications.Andrew Lee2014-07-161-4/+14
| | | | | | | | | | | | | | | | | - Add isVideo method to the InCallUI call. - Added cases and actions for isVideo to StatusBarNotifier. - Added cases for isVideo for processing incoming call in the full-screen experience in AnswerPresenter. - Did what I figured would be some cleanup, to consolidate some helper methods only ever called once, and reorder some methods to be more alphabetical. - Added new intent type for video calls (and revised old one for audio calls), which are dispatched by the StatusBarNotifier and received by the InCallApp. - Update icons used, and deleted unused icons. Bug: 16013878 Change-Id: If0a8d04e2ee6eaf8258ce6a677b22d55a584f9ab
* Show different glowpad options for incoming video call.Andrew Lee2014-07-151-4/+3
| | | | | | | | | | | | | | | | | - Refactor code be more flexibile/specific in specifying the targets for the glow pad; went from "n-way" labeling of different target sets to more explicit labeling of scenarios, such as "audio without sms". - Add target sets and cases for showing targest in AnswerFragment. - Added new drawable for the target to answer a video call. - Add method to GlowPadView to allow changing the handle (now it may be either a videocamera or phone icon, depending on the scenario). - Add a new video handle for incoming video calls. - TODO: Hook this up to show these glowpads if there is an incoming video call. - Deleted some unused resource files. Bug: 16015750 Change-Id: I77ff08f45f57cd2817866b5d78648af8891bb675
* Implement new In-Call Service interfaceIhab Awad2014-07-141-6/+6
| | | | | Change-Id: Ic1eb6fc98e7f030885596c9c40f0ed4f0e34e28b (cherry picked from commit c90543e6ef64b16b4c1bb240494152bc513f1e36)
* DO NOT MERGE. Port "respond via SMS message" feature to new Telecomm. (4/4)Ihab Awad2014-06-131-1/+1
| | | | | | Bug: 15275904 Bug: 15196474 Change-Id: Id7125d7803a00a80728e412bba030566a838bbc2
* InCallUI: Use Telecomm CallCapabilitesSailesh Nepal2014-04-011-1/+3
| | | | Change-Id: I4236543da5648d2cf6ba525c8fc87a93000f50a7
* InCallUI - Use String IDsSailesh Nepal2014-04-011-5/+5
| | | | Change-Id: Ibacb79658c146466d4f23bfcf7af0ebfb6e84dd0
* InCallUI - Use custom object to track CallsSailesh Nepal2014-04-011-32/+3
| | | | | | | | | | | | | This is the first step in completely moving away from Telephony. This CL creates a custom Call object. Currently this is just a copy of the telephony Call object. I'll update various fields in individual CLs. This CL also deletes the old Telephony services. Bug: 13643568 Change-Id: Id1860a5df9706f2a7fddd40e70f0d693af7b04bd
* Support a second incoming call (call-waiting)Santos Cordon2014-03-191-4/+3
| | | | Change-Id: I94730e0d628b9573eec2bf69c705599509a185b7
* Update InCallUI to use new Telecomm wrappersSailesh Nepal2014-03-101-18/+7
| | | | Change-Id: I4ea05f03418302bf9eb904bda25844a9c52ea609
* InCall UI changes for incoming Telecomm calls.Santos Cordon2014-02-281-0/+39
| | | | | | | | | | | | 1. Send commands back to Telecomm when user hits answer/reject 2. Appropriately map Telecomm call states to in-call call states for call updates sent from Telecomm. 3. Use the working version of CallList.onUpdate(). The one we were using previously wasn't running in old code and didn't do everything necessary for supporting the incoming call screen. Added a TODO to remove it completely later. Change-Id: I0f1c330a5a68c4004d3102fbab6f20a51a8b029a
* Removes stopPing from onSaveInstanceState()Christine Chen2013-10-101-2/+3
| | | | | | | | | | | | - I don't think it makes sense to do any processing in onSaveInstanceState() as we are already stopping the ping in onWindowVisibilityChanged. - onSaveInstanceState() should solely deal with saving app states anyway. Bug: 11156202 Change-Id: If2b17bd10b455899703aa2c8f9d15f04a9bea22f
* Adds support for texting after phone disconnects.Christine Chen2013-10-071-6/+14
| | | | | Bug: 11111553 Change-Id: I8abcae4439e7b9697d7b4a4335e093d7ad13a1b3
* Add custom message dialog for Respond via Message.David Braun2013-10-051-9/+4
| | | | | | | | | | | We don't want to require SMS applications to implement activities that show over lock just to handle the "respond via custom message" scenario for rejecting phone calls. This change adds an entry dialog into the phone call UI. A separate change removes the code in the Telephony service that would have asked the default SMS app to show UI. Bug: 11084719 Provide UI for "quick response" messages built into Phone app Change-Id: I7fcf20280fd3b741aa941cc6a24f5c262db1899b
* Add generic error code dialogs for failed calls.Santos Cordon2013-09-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change listens for disconnected calls and if the disconnection cause matches a set of predefined causes, we show a dialog to the user. New dialog messages: - You can\'t make outgoing calls while call barring is on. - All calls are restricted by access control. - Emergency calls are restricted by access control. - Normal calls are restricted by access control. - Outgoing calls are restricted by FDN. Several changes were necessary to support this: 1) Dialog code (InCallActivity.java) 2) Notifications for a new disconnect (CallList.java) - previously we sent a large update for ondisconnect, now we just send the notice for that particular call. InCallPresenter was written so that the same thing that used to happen still happens. 3) Check if we need to show a disconnect dialog when the UI comes up. - I found that FDN disconnection happens so quickly that the disconnect came before the UI was up, so this was necessary. (InCallPresenter.setActivity()) 4) CallCard should be initialized with disconnecting/disconnecting calls. - Call Card presenter intializes itself when it starts up using live calls, but as with the FDN case above, a disconnected call should be used if no live calls exist. (CallList.getFirstCall()) 5) If a dialog is up while an incoming call comes up, dismiss it automatically so that users can see incoming UI. - (InCallPresenter.startOrFinishUi()) 6) Keep the UI up as long as there is a dialog for the incoming call. - Previously, UI would come down once all calls were shut down but in the case of present dialogs, we want it to stay up. (InCallActivity.finish()) - When the dialog is dismissed, check if we want to tear down UI. (InCallActivity.onDialogDismissed()) 7) Only tear down UI once we are in the NO_CALL state. - We used to tear down when the activity was null (closed) and the service was disconnected. This is problematic because a call that immediately disconnects (like FDN errors) would shut down the service before the UI had a chance to come up. We added a check to the conditional for the state NO_CALL before shutting down. (InCallPresenter.attemptCleanup()). bug: 10680210 Change-Id: I1fd33dd53dc0eec5a02b7a940cfd018cec3d20c0
* Adds onUiReady and onUiUnready to the presenterChristine Chen2013-09-101-1/+0
| | | | | | | | | | - ConferenceManagerPresenter needs these two functions to listen to CallList changes. - Moves super.onUiUnready() to the top of the onUiUnready methods for both the AnswerPresenter and ConferenceManagerPresenter classes. Bug: 10696097 Change-Id: I050071f10ebe5112d9d41192ea8c78593189bd9b
* Makes glowpad scalable.Christine Chen2013-09-101-1/+1
| | | | | Bug: 10634748 Change-Id: Iac3d424e7d6be94230da12f3058214b7ca3d8a84
* Improve lifecycle ordering for InCallUISantos Cordon2013-09-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL rearranges startup and teardown of InCallUI to reduce the number of race conditions resulting in runtime exceptions and app crashes. At a high level this CL fixes the following: - TeleService should be able to unbind and rebind at any time without causing problems in the UI. (Fixes to InCallPresenter) - On weird occasions we were seeing secondary UIs pop up if we rebound while the older UI was still up and one of the UIs would be orphaned on the foreground. - call notifications can be sent during (1) activity startup, (2) activity lifetime, (3) activity destruction, (4) no activity...and nothing should crash. - Lots of crashes when notifications came during destruction and startup. (Fixed setup in InCallActivity + presenters, and startup/teardown ordering in InCallPresenter) Details: (1) InCallPresenter handed out instances of member classes to the UI classes, but upon unbinding and rebinding, the classes were recreated. This meant that the activity which was potentially still up had stale versions of AudioModeProvider and ProximitySensor. - Classes created/used by CallHandlerService are now singletons so that they do not change from one bind to the other. If the service tries to initialize InCallPresenter while the activity is still up (and so we haven't yet torn down) we reuse the reuse the previous initialization since there is no need to recreate them, and classes in the Activity dont ever become stale. (2) We were recreating new copies of InCallActivity on updates that occur while tearing down the previous activity. This caused weird errors where second emptier activities were up after all calls ended. - Solution to this was to ignore all updates while we are finishing the activity. When the activity is finally finished, we check if we should bring up a new activity in case some update came while we were finishing. (3) We set listeners on presenters from a parent class that wasn't aware of UI transitions. - All Presenters are not responsible for setting and unsetting their listeners. This allows them to unset them before their UI goes away. + renamed HIDDEN to NO_CALLS as hidden was confusing to developers which associated the term with foreground/backgroundness of the app. + Improved some logging bug:10573125 Change-Id: I2d1af6a6e972b3b3bd93af839054e879f0b74b4f
* Adds UI null check.Christine Chen2013-09-051-2/+6
| | | | | | | | - Fixes NullPointerException that happens sometimes when the UI is asked to bring up the reject with text message popup. Bug: 10608694 Change-Id: I32b8d9f0e1c115dd07ec6000275a882a4b9e1316
* Merge "Clean up listeners when view is destroyed." into klp-devChiao Cheng2013-09-041-0/+12
|\
| * Clean up listeners when view is destroyed.Chiao Cheng2013-08-301-0/+12
| | | | | | | | | | | | | | | | | | When the answer screen is shown and destroyed with a back button and then re-shown via notifications, a new AnswerPresenter is created. But the old presenter has not been removed as a listener. Bug: 10566547 Change-Id: I68c621fee81017fa5d0e3e9dde56fabedc3b1d8d
* | Enable reject via textYorke Lee2013-08-301-4/+3
|/ | | | | | | | | Toggle reject via text option in glowpad based on the call's capability. Bug: 10424370 Change-Id: I5c36e83bc36923b093021c2a5cfd0c6aad3eb0b2