summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug where conference call does not automatically resume.Shriram Ganesh2016-07-011-2/+12
| | | | | | | | | | | | | | | The scenario is a background conference call and a foreground call in dialing state. When user cancels the foreground call, the background conference call is not automically resumed. This is because the logic for making a held call as the foreground call depends on there being only one call in the list of calls maintained by CallsManager. However, in a conference scenario there is more than one call object which are children of a top level conference call. The fix is to check the number of top level calls in held state. Change-Id: I4092e8c38ac6217002ef426d7674f8a6e4c837ab CRs-Fixed: 946284
* Fix disabled merge button on conference failure.Shriram Ganesh2016-07-011-0/+3
| | | | | | | | | | | | There is currently no direct plumbing of the conference failure to InCallUI. Instead it depends on the capabilities refresh. In the conference failure scenario, there is no such change and as a result the merge button remains greyed out until a subsequent update using state or extras. The fix here is to create a dummy extra to refresh the UI. Change-Id: Id487418aa4729f822ba0a19661805e1bf3ccbb6a CRs-Fixed: 931958
* Fix sound output from headset when switching speaker to BTMengjun Leng2016-07-011-1/+0
| | | | | | | | | | If first close speaker, audio device can be first selected as headset, and when BT SCO is connected, audio device will be selected as BT headset. If set BT connected directly, then audio path can route to BT by default. Change-Id: I73411ee52f0045b48243b4fac86a81aec6d2e8d1 CRs-Fixed: 943847
* Handle IllegalArgumentException while setting default calling subLuK13372016-06-161-6/+11
| | | | | | | | | * How to reproduce: 1. Add new SIP account 2. Disable it in "All calling accounts" 3. Reboot Change-Id: Iaa2546588464a34871d7da8bba0b366d0ca43ab8
* Changed call waiting behavior to hold from end of the current callGary Kipnis2016-05-241-1/+1
| | | | | Change-Id: I46b4ce58ed207f2d00868c99838ab20ade64db4f Ticket-Id: CYNGNOS-474
* IMS: Fix vice notificationsDheeraj Shetty2016-05-191-13/+8
| | | | | | | | | Avoid duplicate vice notification by clearing them individually. Remove usage of clearAll notifications - async call, does not handle back to back vice indications/service status updates cleanly. Change-Id: I764d0c6560c561b8a413dfe1b1a7731088e1604d CRs-fixed: 949504 952824 953411
* IMS: Fix ImsService crash due to default phones not created.Muhammed Siju2016-05-191-2/+42
| | | | | | | | | | | | If IMS service is bound from telecom service before phone app is created, it can lead to exception when accessing phone objects. So check for IMS service available before binding and remove AUTO_CREATE flag while binding to IMS service. Also register for IMS_UP intent to retry bind when IMS service becomes ready. Change-Id: I3cb48acccaee54ae5aa73734c95bc26bcdb16190 CRs-Fixed: 953134
* IMS: Changes for VICEAnju Mathapati2016-05-196-3/+621
| | | | | | | | | | | | - Plugin for passing callpull parameter in dial intent path. - update the notification bar - display call information in the expanded notification bar - Originate Call on "Tap to Pull" Change-Id: I918f40c6c4d9865cd32c82e89927b7dde953c72d CRs-Fixed: 938615 905259 959099
* IMS: Abandon audio focus if no other call exist.Suchand Ghosh2016-05-191-1/+8
| | | | | | | | | | | | | Sometimes call get disconnected due RTP inactive when user dials empty URI list. Here telephony set audio mode normal when foreground call get transit to conf call. This triggers audio to initiate end all calls. Add code to check if there is any more call exist before abandon audio focus. Change-Id: I518053cb3f3ed8ab877e875e25460c14275891b8 CRs-Fixed: 935317
* Add new options for call waiting response in InCallUIKamaljeet Maini2016-05-053-212/+108
| | | | | | | | | | | | | | | | When an incoming call is received while there is already an active call, the user will be given four choices for the response: 1) Left button: hold the current call and answer incoming call 2) Bottom button: end the current call and answer the incoming call 3) Right button: decline the incoming call 4) Top button: Send a text message to the incoming caller if texting is enabled The changes in this component include removing the call reponse popup and handling the new hidden API. Change-Id: I920b16842a609f3350bfd5344a4b367da4580349
* Fix sporadic crashes with MSIM devices and inactive SIMsRicardo Cerqueira2016-05-041-0/+4
| | | | | | | | | | An MSIM device with a single inactive SIM (PIN locked, for instance) can and frequently will get into a situation where it tries to set ip invalid IDs (none have been assigned) as the "default" voice sub Fixes CYNGNOS-2711 Change-Id: I7fcc1f42e5e74886192bbb5f8a74f3a69473e761
* Telecomm: Bandaid possible NPE on call waiting scenarios.Adnan Begovic2016-05-021-8/+14
| | | | | | | | | | | | | Since the CallWaitingDialog can be created numerous times within the scope of answering a call object via the callsmanager, it's possible that the active call object can be discarded from a separate thread and thus can cause an NPE when being handled. Similarly to I1b4c251a9419991fe96ee0951e4a14a6f25ccc8d, mitigate the symptom until the original implementation can be revamped. TICKET: CYNGNOS-2688 Change-Id: I7332e97f7ed03a23c8d8d33e34379154e3dce215
* CallsManager: Fix racey disconnect-on-waitingRicardo Cerqueira2016-05-021-5/+11
| | | | | | | | | | | | | | Disconnecting the active call and then immediately answering the background was timing dependent. If the disconnection was ongoing at the time of answering the other call, the switch request caused by the answer could trample the call IDs or the internal state machine of the radio. As a not-so-pretty fix, move the call to background before disconnecting it so that the switch happens first. Change-Id: I1b4c251a9419991fe96ee0951e4a14a6f25ccc8d Still: CYNGNOS-1593
* Telecom: refresh missed call notification on locale changeRoman Birg2016-04-225-0/+65
| | | | | | | Ticket: OPO-610 Change-Id: If31bd443671de373ebb80a11bd583be0e590b48a Signed-off-by: Roman Birg <roman@cyngn.com>
* Incorrect cache key in ConnectionServiceRepositoryYou Kim2016-04-192-2/+8
| | | | | | | Pair of commponentName and userHandle is correct cache key. ConnectionService can be leaked after unbind. Change-Id: Ib2896917fd28ba45c5371aa7c6b2eb3a0c867eb8
* Merge tag 'android-6.0.1_r24' into HEADJessica Wagantall2016-04-052-0/+26
|\ | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 24
| * DO NOT MERGE - Restrict ability to add call based on device provision statusHall Liu2016-03-011-0/+8
| | | | | | | | | | | | | | Always return false for canAddCall if device is not yet provisioned. Bug: 26303187 Change-Id: I9c4ebc8b954a79562b2ec83d59314a3fb621ddfb
| * DO NOT MERGE Check PAH in addNewIncomingCallBrad Ebinger2016-03-011-0/+18
| | | | | | | | | | | | | | | | | | Check to be sure that the PhoneAccountHandle in addNewIncomingCall corresponds to an existing registered PhoneAccount in Telecom and that the PhoneAccount is enabled. Otherwise, throw a SecurityException. Bug: 26864502 Change-Id: I6bbd8a1ece821b62bee2c94decde87a41afbf8b0
* | Telecomm: Don't get default phones outside of phone process.Adnan Begovic2016-03-231-2/+1
| | | | | | | | | | Change-Id: Ice8af20d2cea42db6bceb94363eda02224de7ce3 TICKET: CYNGNOS-2261
* | Telecomm: Verify foreGroundCallId is numeric when looking up id for ringtone.Adnan Begovic2016-03-221-2/+12
| | | | | | | | | | | | | | | | | | | | | | If a SIP or instrumentation account sets a phone account id to a non-numeric,attempting to get the integer value of the foreground call id will fail with a numberformatexception. Work around this by defaulting to the default phone id when utilizing these accounts. Change-Id: I8c8aeb97eba4438db77bb8b1b733088b9acafffd TICKET: CYNGNOS-2261
* | [2/4] Pass call extras to addcallStephen Bird2016-03-213-6/+37
| | | | | | | | | | | | | | | | | | We use the bundle to write the origin that the application can pass us. This data will be used to determine which parts of the application/os are used to make calls most often. Ticket: CD-517 Change-Id: I884ed6ce8f13610fe8ab24b9c389c9521f1a1588
* | Telecomm: Add support to set ring tone for SIM2mengsun2016-03-142-1/+21
| | | | | | | | | | | | | | Can set different ring tone for SIM1 and SIM2. TICKET: CYNGNOS-1752 Change-Id: Ie715e2c2d7e3760f7d0fe9ba2a9ecdafd9a42277
* | Merge tag 'android-6.0.1_r22' of ↵staging/cm-13.0+r22Steve Kondik2016-03-1112-19/+211
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/services/Telecomm into cm-13.0 Android 6.0.1 release 22 Change-Id: I371815d38796af318dcea1e7c6cfb902a1bd0c04
| * DO NOT MERGE Add timer to make in-call ui reflect bluetooth stateHall Liu2015-12-182-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a timeout of 5 seconds to connectBluetooth. Within those 5 seconds, it will be assumed that audio is being routed through bluetooth. An additional check is done at the end of the 5 seconds to see if bluetooth audio is connected. If not, the in-call ui is updated to reflect this fact. This differs from the previous behavior in that there was no additional check done at the end of the 5 seconds previously. Bug: 25378995 Change-Id: I958765ce3f6facfe93fb0c54e77b0130c7fde408 (cherry picked from commit 20ba29108f4003938c0594e4c3a82bcf7c62cc5f)
| * Fix log type used for logging silence.Bryce Lee2015-12-042-1/+2
| |\ | | | | | | | | | | | | | | | | | | am: 18ceebcb85 * commit '18ceebcb85640fbb167c33e50d323580a47a2961': Fix log type used for logging silence.
| | * Fix log type used for logging silence.Bryce Lee2015-12-032-1/+2
| | | | | | | | | | | | Change-Id: I8d8c12e73fa0536ff5b88800bfb8b7bb699444c8
| | * DO NOT MERGE ANYWHEREBryce Lee2015-11-304-4/+58
| |/ | | | | | | | | | | | | | | | | | | | | Handle audio route restrictions set on calls. When a call restricts audio routes, it will move the audio route to a supported route if available. The supported routes are determined initially and re-evaluated when the call becomes the foreground call. Bug: 25485578 Change-Id: I54b9bf17495eb2b0dc73b822ad16485a4673a779
| * Notify connections when the ringer is silenced.Bryce Lee2015-11-303-0/+29
| | | | | | | | | | | | | | | | This is necessary for connected experiences (such as headset clients) where another device must be notified of the ringer state. Bug: 25644529 Change-Id: I89a98a4ad8ed4d94d7bf5eed07b57f353824e338
| * Make rerouting audio to speaker when docked configurable.Bryce Lee2015-11-061-1/+6
| | | | | | | | | | Bug: 25485578 Change-Id: Ie2a04e9d96b9c1e3d8167679a1137b65bdad3379
| * Fix log message for phone-account unregistration.Bryce Lee2015-10-281-2/+2
| | | | | | | | Change-Id: Ib0fa08883e06057080976bc596b437e4bc6a31f8
| * Show CONNECTING and SELECT_PHONE_ACCOUNT states as bluetooth-dialing.Santos Cordon2015-10-291-2/+2
| |\ | | | | | | | | | | | | | | | | | | am: d9f9006eaf * commit 'd9f9006eafb1751f1b4ae1aa0954d445aa03fd3c': Show CONNECTING and SELECT_PHONE_ACCOUNT states as bluetooth-dialing.
| * | Broadcast when a phone account is unregistered.Bryce Lee2015-10-281-1/+14
| | | | | | | | | | | | | | | | | | | | | The action was previously added but not wired up. Bug: 25331205 Change-Id: If7b8910928a579c7f86a3bd42f725d4d16dec973
| * | Account for scheme when checking if we can handle a call.Bryce Lee2015-10-251-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were only accounting for if there was a call capable account. This leaves the possibility that we have a call capable account for only one scheme, but are asked to handle another. Bug: 25202039 Change-Id: Iaf7173886faf8024f6a101e2e912cd1f77e18390
| * | Disconnect calls when there is no call capable account available.Bryce Lee2015-10-231-0/+5
| | | | | | | | | | | | | | | Bug: 25194479 Change-Id: I9e9c7d6d63e91b2979a4ebdd5e50674aa55d4fc7
| * | Merge "Handle emergency only phone accounts." into cw-e-devBryce Lee2015-10-161-2/+32
| |\ \
| | * | Handle emergency only phone accounts.Bryce Lee2015-10-161-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not expose the emergency only phone account (only marked for wear) unless we are explicitly querying for accounts that can place emergency calls. Bug: 24756957 Change-Id: I195bf25fdaced8ee0be411281d32e422a2987138
| * | | am b424457b: Merge "DO NOT MERGE Don\'t show "Respond via SMS" for missed ↵Tyler Gunn2015-10-161-3/+11
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SIP calls." into mnc-dr-dev * commit 'b424457b13a061d51a61182406d6dbfea51c46d0': DO NOT MERGE Don't show "Respond via SMS" for missed SIP calls.
| * \ \ \ am 370a7a37: DO NOT MERGE Fix getAllPhoneAccounts() api methodTyler Gunn2015-10-161-1/+1
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | * commit '370a7a37ef41020fe6d1017927aaf114be331b87': DO NOT MERGE Fix getAllPhoneAccounts() api method
| * | | | am 643c0277: Merge "Specify user when setting MUTE for a call." into mnc-dr-devSantos Cordon2015-10-121-2/+45
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '643c02773f76ee12c76e9ef514013e958ad0c3f0': Specify user when setting MUTE for a call.
| * \ \ \ \ am 8fd6d31d: Add "public" missed call notification.Tyler Gunn2015-10-061-2/+21
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8fd6d31d9faf4e5b0fd2397442cee1c505939f91': Add "public" missed call notification.
| * \ \ \ \ \ am f82589c7: Merge "Read headset state from audio manager instead of ↵Santos Cordon2015-09-301-3/+4
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calculating ourselves." into mnc-dr-dev * commit 'f82589c73519bbe2d2b2a9c415af3cfbb22214b8': Read headset state from audio manager instead of calculating ourselves.
| * \ \ \ \ \ \ Merge "Do not ring in theater mode." into cw-e-devWei Liu2015-09-291-0/+5
| |\ \ \ \ \ \ \
| | * | | | | | | Do not ring in theater mode.Wei Liu2015-09-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/23979622 Change-Id: Ie08f04f12df144e68acac1972857037b14e57921
| * | | | | | | | am 01796e4f: am 650f1db9: Make InCall wakelock non-reference countedYorke Lee2015-09-281-0/+1
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | * commit '01796e4f2e7f37729fd587db3f1b80aa76c5b1ff': Make InCall wakelock non-reference counted
| * | | | | | | | resolved conflicts for c8e528b8 to cw-e-devSantos Cordon2015-09-221-0/+34
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I80f7ceb91fca9187c550ac130aad62abda8ed941
| * \ \ \ \ \ \ \ \ am 8ed7eeb6: Change requirements for emergency call timeoutSailesh Nepal2015-09-192-59/+34
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8ed7eeb62df48943eae3caac3005beaefa53330c': Change requirements for emergency call timeout
| * \ \ \ \ \ \ \ \ \ am 669f90b7: Abandon audioFocus only when all the calls are disconnected.Roshan Pius2015-09-033-3/+20
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '669f90b7544d0f8ec42336ea6757e133b499c145': Abandon audioFocus only when all the calls are disconnected.
| * \ \ \ \ \ \ \ \ \ \ am aad82da8: am 607a099d: Merge "Enforce CALL_PHONE permission for ↵Yorke Lee2015-08-312-5/+16
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default/system dialer for non emergency calls" into mnc-dev * commit 'aad82da8dd8428d49e7a54027e2c8ad9f28f0a45': Enforce CALL_PHONE permission for default/system dialer for non emergency calls
| * \ \ \ \ \ \ \ \ \ \ \ Merge "Properly route rejection reply when capability is set." into cw-e-devBryce Lee2015-08-314-6/+17
| |\ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | Properly route rejection reply when capability is set.Bryce Lee2015-08-284-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The telephony stack can be present on devices that do not have a cellular radio. For example, connections can be established over wifi. In these scenarios, having the replies handled by the default sms app is not sufficient. This CL works in conjunction with a framework change to allow connections to mark themselves as capable of handling reply messages. In this case, the call should route the reply back to the connection rather than have it handled through sms. Change-Id: I26a13496e3cff596ba950bf9abed35c36b917721