summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
AgeCommit message (Collapse)Author
2015-04-29Add default dialer checks to Telecom/TelephonyYorke Lee
Check for the default dialer or the modify phone state permission for various TelecomManager/TelephonyManager methods. Make sure to check the user-selected default rather than the hardcoded package name. Exercise this code in TestDialerActivity. Bug: 20304458 Change-Id: Ic04cd8f2ba98e1d54c39549ae89d3e11cd5cdafb
2015-04-24Add APIs to getDefaultDialerPackage and getSystemDialerPackageYorke Lee
getDefaultDialerPackage is a public API and will be used by apps to determine if they are the default dialer. getSystemDialerPackage is a hidden API and is only used by system components. Also add new public string constants to allow apps to show a dialog requesting that the user change the current default dialer. Bug: 20304458 Change-Id: I121d36741474c1fe171c372fb766a6c128228c9c
2015-04-23Add TelecomManager.placeCallYorke Lee
Places a new outgoing call using the system telecom service with the specified parameters. Making emergency calls using this method requires that the method-caller is either the user-selected default dialer app or preloaded system dialer app. Requires that the caller have the {@link android.Manifest.permission#CALL_PHONE} permission. Bug: 20348183 Change-Id: Ieedb5628e8c6be25137944e7c3639dc1d9bc61df
2015-04-17Add OP_READ_PHONE_STATE app op - frameworkSvet Ganov
The READ_PHONE_STATE permission protects PII information and is in the Phone group. This change is adding the corrseponding app op for gating access to the API guarded by READ_POHNE state which will be used instead as an access control for legacy apps. Change-Id: I2ff895a5a0e529f26ec0ad706266a30d829268ba
2015-04-16Change hasVoicemailNumber to getVoicemailNumberYorke Lee
Bug: 20223485 Change-Id: I67eb12e2030ec8f73326ade4eb750b0c2f6e52ad
2015-04-15Hide getUserSelectedOutgoingPhoneAccountJay Shrauner
Bug:20224972 Change-Id: I21528788e38817f77fc68b56e26a33ac726d39e2
2015-04-15Make defaultOutgoingPhoneAccount publicYorke Lee
Bug: 20224972 Change-Id: I8bbf92258461d522ec57cfe610ca4c969bec75be
2015-04-15Make Telecom/InCallUI APIs publicJay Shrauner
Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
2015-04-14Changes for TelecomManager API reviewYorke Lee
* clearAccounts -> clearPhoneAccounts * handleMMi(PhoneAccountHandle, String) -> handleMMi(String, PhoneAccountHandle) * hasMultipleCallCapableAccounts -> removed Bug: 20160799 Change-Id: Ifcd26474f04b71aa725299b6016004151b76bc31
2015-03-15Fixing build after merge from mirror-m-wireless-internal-releaseVinit Deshpande
There have been few breaking changes 1. TelecomManager.getCallCapablePhoneAccounts is not hidden anymore 2. CAPABILITY_VIDEO_CALLING is not hidden anymore 3. mPhoneStateListener doesn't exist anymore, so it is commented out Change-Id: I22221eda73a20c745e316d9d56f914ab17b83533
2015-03-03Hide calllog entries for unregistered phone accountsSantos Cordon
Change-Id: If1f873dd41c973442fa7a24020e56d13b7b5ad2c
2015-02-26Add intent for call accessibility settings.Andrew Lee
Preparatory work for adding a new Accessibility settigns activity in Telephony, which we will need an intent to be able to launch. Bug: 19372734 Change-Id: Ibf72ffe21da3ba2819eb165dda9bde30204bab68
2015-02-19Add intent for configuring RespondViaSms.Andrew Lee
Bug: 19372734 Change-Id: I8dcead3281b42d38c2b2f40aa70ad8fbf5b2d8fb
2015-02-04Unhide telecom APIs needed by ContactsBrian Attwell
* Removed @SystemApi and @hide from some telecom classes and APIs * Stopped using explicit @link's to ConnectionService, so that I didn't need to unhide ConnectionService * Added @SystemApi to hidden methods inside classes that I removed @SystemApi from. * Ran update-api. This picked up unrelated Math changes from b/11388705. Unbundling Bug: 18777272 Bug: 11388705 Change-Id: I218e0c3c0ae515d3deb2d3b67657db45a0bad999
2015-01-24Add method in TelecomManager to return line1Number for a PhoneAccount.Nancy Chen
Since we do not want to expose SubIds in the app layer, we need a wrapper to extra the subId from a PhoneAccount and return the value of TelephonyManager#line1Number. Also update error strings to be more consistent. Bug: 19087382 Change-Id: Ie5a474d45336921d1007b36a4d26cd4da68f8b91
2014-12-04Use TelecomManager to call TelephonyManager#getVoicemailNumber (1/2)Nancy Chen
Since we don't want the phone app to call TelephonyManager methods directly, create a method in TelecomManager to mimic the behavior. The reason we don't return the voicemail number directly is because once TelecomManager becomes public, we don't want any old app to be able to get the SIM's voicemail number. Bug: 18233678 Change-Id: I620af409788aea7b58169b72a563baeed8115080
2014-11-21Add system API to get registered connection managersSailesh Nepal
This API is used to check if we're in the simplified version of the call assistant settings UI or the version that displays a full list. Bug: 18473946 Change-Id: I7dca50ada80b2203bd8d646bb510418646382df8
2014-11-10Apply @hide / @SystemApi to android.telecom.*Evan Charlton
Move the android.telecom.* namespace back to @hide, and also mark it with @SystemApi so that system-privileged apps can use them. Bug: 18302450 Change-Id: I33ae1b9b0dfdb1c5eff51ca3c829196bcfc9411c
2014-11-06Make APIs to get system phone accounts publicSailesh Nepal
This is used by Wi-Fi calling to handoff and incoming call to a cellular call. For example, when doing an handoff we can look through the outgoing phone accounts and find the one that the user has verified with their google account. We can then handoff to that phone account. Bug: 17686424 Change-Id: I06d42aa8f4a36d11e5293ed6f7c62b796226f5c1
2014-11-03Adn queries for multi-SIM. (2/3)Nancy Chen
Define a method in Telecom to take in a subscription account and return the URI for an ADN query for that account. Bug: 17917937 Change-Id: Ic50a4add7fe44a5164271dc9c9e5a58e45e72336
2014-10-31Merge "Handle MMI for multi-SIM (1/3)" into lmp-mr1-devNancy Chen
2014-10-31Handle MMI for multi-SIM (1/3)Nancy Chen
+ Add Telecomm and Telephony methods for handlePinMMIForSubscriber + Add Select Account dialog in Dialer for MMI Bug: 17917937 Change-Id: I26fdc68a07ca0483bf7a052598fe31b1461fd486
2014-10-30Merge "More updates to javadocs for Telecom APIs." into lmp-mr1-devSantos Cordon
2014-10-29More updates to javadocs for Telecom APIs.Santos Cordon
Change-Id: I8f8389f521c0d654c9bfdc3ad9670be0d118f480
2014-10-28Added a function to clear accounts for a specified package.Anthony Lee
Right now, clearAcounts() only clears the accounts for the calling package. This new function will allow a class like PhoneAccoutBroadcastReceiver to clear accounts for any package. Bug: 17689845 Change-Id: I24db104268535e7e0e33e093e8fab63765df0b08
2014-10-28Add comment to TelecomManager.getCallStateYorke Lee
Explain why READ_PHONE_STATE permission is not required so that people don't try to add it in the future. Requiring the permission causes stability crashes with legacy apps and system components that don't have the permission. Change-Id: Idf8766aa409d4a2c4ed3d6f81a398f4a0eb24615
2014-10-23Merge "Remove TODO in TelecomManager." into lmp-mr1-devTyler Gunn
2014-10-23Merge "Remove SystemApi annotations." into lmp-mr1-devSantos Cordon
2014-10-23Remove SystemApi annotations.Santos Cordon
SystemApi only makes sense for hidden APIs. Bug: 18097290 Change-Id: I76af5f54321c4010334ef419bb7e066663ec784c
2014-10-23Remove TODO in TelecomManager.Tyler Gunn
Bug: 18095076 Change-Id: I6509d295e9e25973040e06be96cf1046edc619ff
2014-10-17am a6a1c52f: Merge "Use Telecom API for checking if a number is voicemail ↵Nancy Chen
(1/2)" into lmp-sprout-dev * commit 'a6a1c52f58f24194de2665bb922577a9d7f6dccf': Use Telecom API for checking if a number is voicemail (1/2)
2014-10-17am c913c2de: Merge "Revert "Add API method to extract subscription ID from ↵Nancy Chen
phone account (1/3)"" into lmp-sprout-dev * commit 'c913c2dec18519ae5b989f65b207c7b3fec2d0ef': Revert "Add API method to extract subscription ID from phone account (1/3)"
2014-10-16Use Telecom API for checking if a number is voicemail (1/2)Nancy Chen
Since we don't want to communicate directly with Telephony in dialer, call PhoneNumberUtils.isVoiceMailNumber (a Telephony method) through the Telecom API. Add a method in TelecomManager to do this. Bug: 17925501 Change-Id: Iecea82a0e5f0b106eaf105e9026d606110acf122
2014-10-16Merge "Revert "Add API method to extract subscription ID from phone account ↵Nancy Chen
(1/3)"" into lmp-sprout-dev
2014-10-16Revert "Add API method to extract subscription ID from phone account (1/3)"Nancy Chen
This reverts commit b0cad32c3cadd0387f6dcd82aade629e6f2f6bee. Change-Id: I54b6373ba0fc7d1ecc64c6ceedc7b371c7017cd8
2014-10-15am 9faf13b4: Merge "Add API method to extract subscription ID from phone ↵Nancy Chen
account (1/3)" into lmp-sprout-dev * commit '9faf13b47467916897cf5c019a3a74df871b8f65': Add API method to extract subscription ID from phone account (1/3)
2014-10-15Merge "Add API method to extract subscription ID from phone account (1/3)" ↵Nancy Chen
into lmp-sprout-dev
2014-10-13Add API method to extract subscription ID from phone account (1/3)Nancy Chen
Since Telephony uses subscription ids and Telecom uses Phone Accounts, there should be an easy way to interface between the two. Since the value of the subscription id and "id" of the phone account should be the same in the case of a SIM phone account, we just need to check that the phone account in question is a SIM phone account and convert the string to a long. This lays in groundwork for the following bugs: Bug: 17925501 Bug: 17917937 Change-Id: I926e969b365d9e9878436302117e8786ec5513b8
2014-10-07am 7e552595: am 4c334f3d: Merge "Add ability to add sim-initiated MO call to ↵Yorke Lee
UI (2/4)" into lmp-dev * commit '7e552595bda0825787820e3d9bb58b5fad32cd01': Add ability to add sim-initiated MO call to UI (2/4)
2014-10-06Add ability to add sim-initiated MO call to UI (2/4)Yorke Lee
Add supporting (hidden) APIs to TelecomManager to add the ability to add a previous unknown call to Telecom Bug: 17787391 Change-Id: Ibdfaee81a55e11451c146751cf970980dccad435
2014-10-02am 25b85bcc: am 8f8bffa1: Merge "Add @SystemApi to missing TelecomManager ↵Evan Charlton
methods" into lmp-dev * commit '25b85bcc41ccdd912cba7b9b6462f177e85b3b08': Add @SystemApi to missing TelecomManager methods
2014-10-02Add @SystemApi to missing TelecomManager methodsEvan Charlton
A few methods (which should be exposed) were missing @SystemApi annotations. TelecomManager#addNewIncomingCall TelecomManager#registerPhoneAccount TelecomManager#unregisterPhoneAccount Bug: 17786491 Change-Id: Idf318cf6238668762c00ed0913a9c0ccd5bcb884
2014-09-24Revert "@hide ConnectionService APIs."Evan Charlton
This reverts commit 86935c406e4a8bb0e2ad871b51009f3603df9e87.
2014-09-23@hide ConnectionService APIs.Tyler Gunn
Bug: 17569532 Change-Id: I68f7237191bd6d7a1a00ba7bb4fd2f8e3d669e8f
2014-09-17Replace get*PhoneAccounts* public API methods with new method (1/3)Nancy Chen
Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme because a third party app should not be able to see all phone accounts registered. Replace instead with getPhoneAccountsForPackage(Context) which will only return the phone accounts registered by a particular package. Bug: 17510811 Change-Id: I8465ef4f13b62fe83f51835cfffe1656298041a8
2014-09-17Merge "Remove ability to enable/disable phoneaccounts (1/6)" into lmp-devNancy Chen
2014-09-16Remove ability to enable/disable phoneaccounts (1/6)Nancy Chen
Enabling/disabling of phone accounts was only used for SIP accounts and is no longer necessary for the purpose it was put in. - Remove all references to enabling/disabling phone accounts + Rename getEnabledPhoneAccounts -> getCallCapablePhoneAccounts Bug: 17510811 Change-Id: Id805daae3cc698c75f5e747b6a6107ab0bd3afa0
2014-09-15No longer require READ_PHONE_STATE permission for getCallStateYorke Lee
Bug: 17510808 Change-Id: Id3bb5bf2fea9489bd613063aa946389e8ceb3104
2014-09-14Pipe TelephonyManager.getCallState through TelecommManagerYorke Lee
* Add TelecommManager.getCallState (hidden API) * Make TelephonyManager.getCallState call through to TelecommManager, to be consistent with TelephonyManager.ACTION_PHONE_STATE_CHANGED broadcasts for overall call state. Telephony continues to manage call states for individual subscriptions. Bug: 17378767 Change-Id: Ia5e8b21df801ed3af4f6e14c110a72c92f077f88
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- 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: I192cb5d189f55db012ea72ee82ccc5aedbc21638