summaryrefslogtreecommitdiffstats
path: root/src/com/android/server/telecom/CallIntentProcessor.java
Commit message (Collapse)AuthorAgeFilesLines
* Confirm managed call when there are ongoing self-managed calls.Tyler Gunn2017-05-021-18/+23
| | | | | | | | | | | | | | | | | | When the user places a managed call while there are ongoing self-managed calls, the system will now display a dialog giving the user the option of NOT placing the managed call, or placing the managed call and disconnecting the ongoing self-managed call(s). This is done by stopping the outgoing call during startOutgoingCall and bringing up a dialog to confirm whether the user wants to place the call. If they chose to place the call, ongoing self-mgds calls are disconnected, the call is added, and the NewutgoingCallBroadcast is sent as usual. If the user chooses not to start the call, the call is cancelled. Test: Manual Bug: 37828805 Change-Id: I8539b0601cf5f324d2fb204485ee0d9bbf03426d
* Switch to using android.telecom.Log in TelecomBrad Ebinger2016-10-191-0/+1
| | | | | | | | | | Sorry. CP from: https://android-review.googlesource.com/#/c/287332/ Test: Added unit tests for Log Sessions and Events. All other affected unit tests still pass. Bug: 26571395 Change-Id: I890d68d935cd554ba89042e99c155757697e1a37
* Rename Telecom Call Ids to include attemptBrad Ebinger2016-07-081-1/+1
| | | | | | | | | | | | | | | | | Telecom Call Ids will now append an attempt id (in the form of an integer) that will be used by the CreateConnetionProcessor to name the Telecom Call Ids that are used during the creation of a Connection to the ConnectionService. This allows us to better identify which Connection is calling back to Telecom to update status, disconnect, etc. Previously, all of the attempted Connections in CreateConnectionProcessor would be given the same name, which could lead to multiple Connections trying to manage the same Call object in Telecom. Also, a supporting tests were added and a few Unit Tests were fixed. Bug: 28799824 Change-Id: I7e23497ab671712bc8d3cc9542537ae1c4829afc
* Merge commit '005612a0af1fc475f422a1b0a4fb51fc5416ac90' into tgunn-merge1Tyler Gunn2016-03-031-0/+4
|\ | | | | | | Change-Id: Ibf955c5361978fadda363af97e975672d8a5f197
| * IMS-VT: Set VideoState in Call Connecting StateOmkar Kolangade2016-03-031-0/+4
| | | | | | | | | | | | | | | | | | | | Set VideoState in Call Connecting State This will ensure that proper video state is sent at InCallService start i.e. when binding to InCallService itself thereby giving us sufficient time for surface creation. Bug: 27477792 Change-Id: Ia7b76b558c1226359dd24e6d07b8e9d1c692ab93
* | Show toast to warn user when the call is treated as personal callTony Mak2016-02-171-2/+11
| | | | | | | | | | BUG:26579183 Change-Id: Ic6b681335f1868a9ce95b0cfa61e5471be048a14
* | Merge "Remove code which prevents making a video call when one is in ↵Tyler Gunn2016-02-091-30/+0
|\| | | | | | | | | | | | | | | | | progress." into mm-wireless-dev am: f21d66d3d8 * commit 'f21d66d3d8d57440e0e3110a581f04f8ba3d7f4e': Remove code which prevents making a video call when one is in progress.
| * Remove code which prevents making a video call when one is in progress.Tyler Gunn2016-02-091-30/+0
| | | | | | | | | | | | | | | | This restriction doesn't match how VT works; it is reasonable to make multiple VT calls at the same time. Bug: 27073894 Change-Id: Ief68b8cae7cdb2352e33cbac761fad2d75dbd063
* | Treat the call as personal call if no work dialer is installedTony Mak2016-01-191-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For ACTION_DIAL intent, we will fallback to personal side if there is no work dialer installed. But for ACTION_CALL intent, it is handled in work profile and we consider it as a work call although there is no work dialer installed. We would now like to make it consistent and consider it as a personl call in this case. It avoids situation that we insert the call in work side but user has no work dialer to take a look of the call log. BUG=26634502 Change-Id: I65cd0b552736b436e60dcaf34d0b2cb055b581eb
* | Add tests for NewOutgoingCallIntentBroadcasterHall Liu2015-12-141-1/+2
| | | | | | | | Change-Id: I5dd8ee49e0afc3ab714439ae1ca7f4ce54a26072
* | Add unit tests for TelecomServiceImplHall Liu2015-12-141-0/+24
| | | | | | | | | | | | | | Added unit tests for TelecomServiceImpl and added some refactoring to avoid static dependencies in TelecomServiceImpl. Change-Id: I22a54e1e36c3a44dc07f65f534c0b9b6d534abd9
* | Add field to store who is initiating the callTony Mak2015-11-231-1/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | Insert userhandle of user that initiate the call before forwarding the intent to primary user. Previous ACTION_CALL flow: Fire ACTION_SEND (managed user) -> UserCallActivity in Telecom (parent user) -> PrimaryCallReceiver (parent user) Current ACTION_CALL flow: Fire ACTION_SEND (managed user) -> UserCallActivity in Telecom (managed user) -> PrimaryCallReceiver (parent user) The field can be used for: 1. Filter phone accounts for outgoing call 2. Insert call log based on who initiates the call 3. Pass the field to in-call UI which may uses it to indicate it is a work call. Change-Id: I78611a4394f00ce0655c37d52b7b456f213ec802
* Pass call subject from ACTION_CALL intent to Connections.Tyler Gunn2015-08-031-0/+7
| | | | | | | - Added code in test connection service to faciliate testing call subjects. Bug: 22685114 Change-Id: I729a574107cc2913f8cff956b03876053e4c44de
* Remove use of STATE_AUDIO_ONLY in a comparison.Tyler Gunn2015-06-091-1/+1
| | | | | | | - Use VideoProfile.isAudioOnly() instead of doing == comparison. Bug: 21645094 Change-Id: Iee12001e2a56dfdf8239ad04f844593a21da896d
* API Cleanup: Remove references to VideoState class.Tyler Gunn2015-06-031-2/+2
| | | | | | | | - Replace use of VideoState static methods with VideoProfile equivalent. - Replace use of VideoState consts with VideoProfile equivalent. Bug: 21573551 Change-Id: I567abaf4b6c0de51656869d1c7367a7ff3e51cd1
* Don't start ErrorDialogActivity without an error IDYorke Lee2015-04-301-2/+2
| | | | | | It will just finish itself immediately anyway. Change-Id: I14b8c5e8253eab688d7aca6ccde52f004e3941c9
* Fix wiring to allow default dialer to make emergency callsYorke Lee2015-04-271-3/+7
| | | | | | | | UserCallIntentProcessor was previously hard-coded to only check for the system dialer. Bug: 20304255 Change-Id: Ie8ad56445f664056c196a1c88e7b7d711533a2dd
* Open up and fix TelecomManager#addNewUnknownCallDavid Stevens2015-04-131-1/+1
| | | | | Bug: 20141479 Change-Id: I6d959cf402a5529842263bb71200bbe8601c86ad
* Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into ↵Prerepa Viswanadham2015-03-241-7/+7
|\ | | | | | | | | | | master_merge Change-Id: I5d9ab761a1060a24680e69d1610ade206660e139
| * Make Telecom synchronousIhab Awad2015-03-181-7/+7
| | | | | | | | | | | | Remove main-thread handlers and add a systemwide lock object. Change-Id: I6334fdfa6c244836f6375bea302404f61c81301b
* | Fix NPE in CallIntentProcessorYorke Lee2015-03-231-2/+2
|/ | | | | | | | Fix was submitted to LMP MR1 but was lost in a series of merges to master Bug: 19888713 Change-Id: Iea83b55bad5bdbb4e15dccf26667cea0f4fdd7aa
* Refactoring for testabilityIhab Awad2015-03-021-0/+197
Refactor to a single app singleton, TelecomSystem, which owns the intialization of the rest of the app. Change-Id: I3036f200b56f710e7f830b469260a67145c327e7