summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
Commit message (Collapse)AuthorAgeFilesLines
...
| * Annotate @SystemApi with required permissions.Jeff Sharkey2017-06-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
* | Merge "Further handover support changes."Tyler Gunn2017-04-271-2/+21
|\ \
| * | Further handover support changes.Tyler Gunn2017-04-261-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add handover extras key used when initiating handover. Add handover complete / fail connection events which are sent to the initiating IncallService when a handover is complete or fails. Adding PhoneAccount extra to indicate that a self-managed CS should have its calls logged to the call log. Test: Manual Bug: 37102939 Change-Id: Icbb6f1addf913de841a9c48089a7d8311668f3bc
* | | Merge "More auto-doc work." into oc-dev am: 6bc03748a7Jeff Sharkey2017-04-241-0/+2
|\ \ \ | |/ / |/| / | |/ | | | | am: f25b285706 Change-Id: Ic6b7c359259b6fd809b1a01ba249a7b44e15a29f
| * More auto-doc work.Jeff Sharkey2017-04-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for AnyThread, CallSuper, and UiThread. Another related CL started documenting @RequiresPermission, so remove duplicated information in existing APIs. Suppress auto-doc on a handful of classes that are already well-documented. Test: make -j32 offline-sdk-docs Bug: 37526420 Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
| * DO NOT MERGE Expose phone account register/unregister intents.Tyler Gunn2017-04-171-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These were previously @SystemApi. Retaining the existing SystemAPI behavior which sends the intents to those with a private permission. Extending to ALSO send these intents to the default dialer app as well using an explicit intent. Cherry-pick from aosp-master to resolve merge conflicts. Test: Manual Bug: 37106957 Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab (cherry picked from commit d9da6ce9938b4222cfb409f172cacfe4cf1593e6)
| * Add getSelfManagedPhoneAccounts() TelecomManager API.Tyler Gunn2017-04-101-0/+26
| | | | | | | | | | | | | | | | | | | | | | This is consistent with the existing getCallCapablePhoneAccounts API which is used to get the phone accounts capable of placing phone calls. Test: CTS Bug: 34159263 Merged-In: I1396c63a6882947cd66721528e53b6964a9091e0 Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0 (cherry picked from commit 8931707058c2680878aacc5e6b4150a9aedc0f4d)
| * Self Managed CS ImplementationTyler Gunn2017-03-301-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | - Add API guide for developers giving an overview of what they need to implement. - Add @hide setLabel method in PhoneAccount; used when registering a self-managed CS's phone account; we override it with their app label to ensure they don't try to give themselves another name. Test: Unit Bug: 34159263 Merged-In: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd Change-Id: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd
* | Expose phone account register/unregister intents.Tyler Gunn2017-04-141-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | These were previously @SystemApi. Retaining the existing SystemAPI behavior which sends the intents to those with a private permission. Extending to ALSO send these intents to the default dialer app as well using an explicit intent. Cherry-pick from aosp-master to resolve merge conflicts. Test: Manual Bug: 37106957 Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab
* | Remove handover token.Tyler Gunn2017-04-111-13/+1
| | | | | | | | | | | | | | | | | | | | Removing handover token and cleaning up the references to it in the docs. This was supposed to go into the original CL but it looks like the upload failed. Test: Manual Bug: 37102939 Change-Id: I98f392119258d059669ca68b50184b8bdadbcf0f
* | Add connection handover APIs.Tyler Gunn2017-04-101-0/+22
| | | | | | | | | | | | | | | | | | | | Add new call/connection event keys for handover. Add TelecomManager extra keys used for handover. Add PhoneAccount extra keys used to control availability of handover. Test: Test app/harness. Bug: 37102939 Change-Id: Icc5db7209362f04c4e3be397fee692bbf4a6a473
* | Add getSelfManagedPhoneAccounts() TelecomManager API.Tyler Gunn2017-04-101-0/+26
| | | | | | | | | | | | | | | | | | This is consistent with the existing getCallCapablePhoneAccounts API which is used to get the phone accounts capable of placing phone calls. Test: CTS Bug: 34159263 Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0
* | Merge "Self Managed CS Implementation" am: 98fad21a8a am: 9fab4ad9b3Tyler Gunn2017-03-311-1/+21
|\ \ | |/ |/| | | | | | | am: 72cb924f07 Change-Id: Ia16c6125567ceac4edfff095e737751c46fde7bf
| * Self Managed CS ImplementationTyler Gunn2017-03-301-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | - Add API guide for developers giving an overview of what they need to implement. - Add @hide setLabel method in PhoneAccount; used when registering a self-managed CS's phone account; we override it with their app label to ensure they don't try to give themselves another name. Test: Unit Bug: 34159263 Change-Id: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd
* | Merge "Support for showing self-managed calls in IncallService." am: ↵Tyler Gunn2017-03-011-2/+51
|\| | | | | | | | | | | | | | | 5a33057092 am: 8c7d28f163 am: fd0e1a9d93 Change-Id: I88170e214ca6c142e0445a814ad0e76064e72ba7
| * Merge "Support for showing self-managed calls in IncallService."Tyler Gunn2017-03-011-2/+51
| |\
| | * Support for showing self-managed calls in IncallService.Tyler Gunn2017-02-121-2/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also added new isInManagedCall TelecomManager API, used to determine if there are ongoing managed calls only. Test: Manual, cts Bug: 34159263 Change-Id: Ib8020617607ccb433c2eee9b9d5a2c929665214b
* | | Introduce ANSWER_PHONE_CALLS permissionEugene Susla2017-02-241-8/+16
|/ / | | | | | | | | | | | | | | | | | | This exposes an API to answer a ringing call, as well as a corresponding runtime permission and appop Test: Grant the permission and ensure the call gets answered. Deny the permission, and ensure that the API call throws an exception. Bug: 30932767 Change-Id: I4c33fcea6b95a30469fa6c0c37090be32b0ad52e
* | Introduce APIs for RTT calls (part 1)Hall Liu2017-02-211-0/+8
| | | | | | | | | | | | | | | | Add signaling methods and data pipes for handling real-time text during a call. Change-Id: I876827c448252c5f786d7a4919c47891acb03877 Test: manual, through telecom testapps
* | Add extra key for app-specified outgoing call timeoutHall Liu2017-02-141-0/+9
|/ | | | | | Bug: 34474757 Test: manual Change-Id: Ia93d68d6a01308b0b93b88977daf983a0ed3a22c
* Self managed CS implementation.Tyler Gunn2017-02-061-0/+4
| | | | | | | | | Add required AIDL changes to pass along connection fails. Test: Manual Bug: 34159263 Merged-In: I0a24ff786b2867aa4e19ac79959df54a04983251 Change-Id: I0a24ff786b2867aa4e19ac79959df54a04983251
* Merge "Deprecate old TelecomManager actions"Brad Ebinger2017-01-231-0/+3
|\
| * Deprecate old TelecomManager actionsBrad Ebinger2017-01-121-0/+3
| | | | | | | | | | | | | | | | | | | | The ACTION_INCOMING_CALL and ACTION_NEW_UNKNOWN_CALL intents are not used anymore and have been replaced with methods in TelecomManager. This change marks them as deprecated. Test: None Bug: 33783690 Change-Id: I840b0ac202237cc43a0540fe64c832e119b33aa2
* | Adding self-managed connection service APIs.Tyler Gunn2017-01-181-11/+94
|/ | | | | | | | | 1. Adding new APIs for self-managed connection services. 2. Adding Telecom package-level documentation. Test: Manual (unit, cts pending; this is just scaffolding for now) Bug: 34159263 Change-Id: Ic226ec8bfcb2fbcc02fe802b47499e47aab17d0a
* Add support for Telecom analytics extensionsHall Liu2016-06-141-2/+2
| | | | | | | | | | | | Add classes for call events and a field for them in ParcelableCallAnalytics. Add classes for timing information on user-visible operations. Add the TelecomAnalytics class as the top-level object for analytics. Add log session timing information to the TelecomAnalytics class, independent of individual calls. Bug: 28623064 Change-Id: Ifee5fdf6b6b341869ff0ff26c4388d357e3d9922
* Un-@hide multi-endpoint APIs.Tyler Gunn2016-05-061-1/+0
| | | | | | Bug: 28621640 This reverts commit 1bf206b766654ea9c4e9bc7a703a9d5f1d30ab72. Change-Id: If8c85e4adeb017eec2b7e8199010deae2a920c6a
* Merge "[Call Timing] Add constants for call timing extras" into nyc-devSailesh Nepal2016-04-181-0/+24
|\
| * [Call Timing] Add constants for call timing extrasSailesh Nepal2016-04-151-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL defines new extras that can be set in a call's intent extras. These extras track the following: CALL_CREATED_TIME_MILLIS - the time when the call was created by telephony (or another connection service) CALL_TELECOM_ROUTING_START_TIME_MILLIS - the time when telecom started processing the call CALL_TELECOM_ROUTING_END_TIME_MILLIS - the time when telecom finished processing things like call blocking and was ready to connect to the UI These extras can be used by the dialer to track how long it takes for calls to be shown to the user. Bug: 28202119 Change-Id: I8fca259d449adedaeb4ff91d35bf59a7409be866
* | Hide multi-endpoint APIs.Tyler Gunn2016-04-151-0/+1
|/ | | | | | | | Per feature council decision, the multi-endpoint APIs will be @hide for the N release. Bug: 28196918 Change-Id: Ia80b089bc754ce87ca208382eb79442b5265844d
* Remove deprecated API launchManageBlockedNumbersActivityAbhijith Shastry2016-04-041-19/+0
| | | | | BUG: 27364137 Change-Id: Ie608c3f75d5fe353a1ba127b0da763c421401eb8
* Add API support for multi-endpoint.Tyler Gunn2016-03-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This CL includes changes required to support multi-endpoint (see the design doc linked off the bug). Main changes include: - support for indicating if a call/connection is "external" to the device. - support for indicating if an external call can be pulled from the remote device to the local device. - API used to initiate a pull of a call external to the current device to the current device. - Made the "connection event" API public (was previously @hide); this will be used to support passing some error events involving pulling calls to the incall ui. - Added new InCallService metadata which will be used to determine if an InCallService wants to be informed of external calls. - New disconnect causes which will be used to expose the fact that a multi-endpoint call was answered elsewhere and that a call ended because it was pulled to another device. - New call log call types to indicate if calls were answered elsewhere or pulled to another device. Bug: 27458894 Change-Id: I423f64ff965b5e50194635a51868c327782db2a1
* Tweak createManageBlockedNumbersIntent API documentation.Abhijith Shastry2016-03-041-1/+1
| | | | | BUG: 27364137 Change-Id: I82b9802b3108f4d9d405fc55fefa766dbcddd537
* Add deprecated annotation to launchManageBlockedNumbersActivity API.Abhijith Shastry2016-02-291-0/+1
| | | | | BUG: 27364137 Change-Id: I0c5c05042e6bc05a605613bde7ba3c579c1858ed
* Add new API to create an intent to manage blocked numbers.Abhijith Shastry2016-02-291-0/+21
| | | | | | | | This replaces the launchManageBlockedNumbersActivity API. BUG: 27364137 Change-Id: I5d5a20d25f0dea8b8e0e998b51f80658ff404e2c
* Initialize MD5 in logging in backgroundHall Liu2016-02-111-0/+1
| | | | | | | | Use a background task to call MessageDigest.getInstance in order to avoid a possible disk read on initialization. Bug: 26069217 Change-Id: I0091ce012bcd811dfca0e85c21a12c54913ed919
* Update TelecomManager docs regarding PhoneAccountsBrad Ebinger2016-02-081-8/+13
| | | | | | | | | | | | Updates the docs for addNewIncomingCall to mention that if the PhoneAccountHandle representing a PhoneAccount is not registered or not enabled, a SecurityException will be thrown (as of b/26864502). Also notifies the user that PhoneAccounts are stored in DE storage in registerPhoneAccount. Bug: 26874536 Bug: 26780305 Change-Id: I2dae932cfa3404d7d5060dad840a75227793603e
* Add API in TelecomManager to launch the UI to manage blocked numbers.Abhijith Shastry2016-02-021-0/+17
| | | | | BUG: 26917087 Change-Id: Ide328d250561577f652e3a1ee093b37ad19084d8
* Expose a meta-data value to allow dialer ringingSailesh Nepal2016-01-261-0/+9
| | | | | | | | | | | This CL exposes a new meta-data, IN_CALL_SERVICE_RINGING. If this is set to true then ringing is played by the dialer instead of Telecom. This CL also adds a new silenceRinger() API to InCallService. This is needed to implement ringer silence on volume key down. BUG: 22857261 Change-Id: I498538282eddbb727104f5b879f25adbef4e6cf6
* Merge "Make missed call action public"Sailesh Nepal2016-01-231-8/+4
|\
| * Make missed call action publicSailesh Nepal2016-01-221-8/+4
| | | | | | | | | | | | | | | | | | | | | | This CL makes the missed call notification action public. This will be used by the dialer app to show it's own missed call UI. See ag/850080 for more info. BUG: 22857261 Change-Id: Ifae82d3036a278e5619edc8c766a1d0781296e72
* | Add metadata for car-mode in-call.Santos Cordon2016-01-211-0/+10
|/ | | | Change-Id: Ic2d55889e0ab65195bee549837b51c581ce5076a
* Add method to dump Telecom analyticsHall Liu2016-01-151-0/+22
| | | | | | | Add dumpAnalytics in TelecomManager to allow the connectivity stats service to access Telecom analytics for uploading. Change-Id: I197d6af340fac7f38b28bb44a476b5e694db4dba
* Merge "Add extras tag for analytics support"Hall Liu2015-12-081-0/+8
|\
| * Add extras tag for analytics supportHall Liu2015-11-191-0/+8
| | | | | | | | Change-Id: I174de505cb96206f90d3cc5ba8fcca7ed9908b7f
* | Add "acceptRingingCall()" API which accepts a videoState.Tyler Gunn2015-11-241-1/+21
|/ | | | | | | | - Added acceptRingingCall API which accepts a videostate to complement the existing API. Bug: 20159300 Change-Id: I2a9d53fd4dbbb0be49d95416f7e26d3ec61774cd
* Add TelecomManager constructor for passing in TelecomServiceImplHall Liu2015-10-091-0/+13
| | | | | | | override Bug: 24618535 Change-Id: I2dafcc9ab496de94eb6a6894916030ed4e7556f8
* am 18b76bf6: am 861559d3: am 24e5efda: Merge "Add additional broadcast for ↵Bryce Lee2015-09-271-0/+9
|\ | | | | | | | | | | | | when a phone account is unregistered." into cw-e-dev * commit '18b76bf6755b4e3469b17f6f898a40bb1fe70a63': Add additional broadcast for when a phone account is unregistered.
| * Add additional broadcast for when a phone account is unregistered.Bryce Lee2015-09-231-0/+9
| | | | | | | | Change-Id: Ia14a4206ea50af11c6151e11a95851e5ffa2cd99
* | Add permission annotations to TelecomManagerYorke Lee2015-09-211-0/+34
|/ | | | Change-Id: I1394429d2e183165ba0e4c63da4952837d0a63e3
* add call back intents for clearing missed calls and calling back.Bryce Lee2015-08-101-0/+16
| | | | Change-Id: Ib81fecc21c5491f975fa7c44f4e5984a4b3f8e7f