Make Telecom/InCallUI APIs public
Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
This commit is contained in:
@@ -55,8 +55,6 @@ public class TelecomManager {
|
||||
* Input: get*Extra field {@link #EXTRA_PHONE_ACCOUNT_HANDLE} contains the component name of the
|
||||
* {@link android.telecom.ConnectionService} that Telecom should bind to. Telecom will then
|
||||
* ask the connection service for more information about the call prior to showing any UI.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final String ACTION_INCOMING_CALL = "android.telecom.action.INCOMING_CALL";
|
||||
|
||||
@@ -97,9 +95,7 @@ public class TelecomManager {
|
||||
/**
|
||||
* The {@link android.content.Intent} action used to show the settings page used to configure
|
||||
* {@link PhoneAccount} preferences.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final String ACTION_CHANGE_PHONE_ACCOUNTS =
|
||||
"android.telecom.action.CHANGE_PHONE_ACCOUNTS";
|
||||
|
||||
@@ -145,10 +141,7 @@ public class TelecomManager {
|
||||
* Optional extra for {@link #ACTION_INCOMING_CALL} containing a {@link Bundle} which contains
|
||||
* metadata about the call. This {@link Bundle} will be returned to the
|
||||
* {@link ConnectionService}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final String EXTRA_INCOMING_CALL_EXTRAS =
|
||||
"android.telecom.extra.INCOMING_CALL_EXTRAS";
|
||||
|
||||
@@ -221,9 +214,7 @@ public class TelecomManager {
|
||||
* {@link ConnectionService}s which interact with {@link RemoteConnection}s should only populate
|
||||
* this if the {@link android.telephony.TelephonyManager#getLine1Number()} value, as that is the
|
||||
* user's expected caller ID.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final String EXTRA_CALL_BACK_NUMBER = "android.telecom.extra.CALL_BACK_NUMBER";
|
||||
|
||||
/**
|
||||
@@ -387,7 +378,6 @@ public class TelecomManager {
|
||||
* exists no user-chosen default {@code PhoneAccount}.
|
||||
*
|
||||
* @return The user outgoing phone account selected by the user.
|
||||
* @hide
|
||||
*/
|
||||
public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount() {
|
||||
try {
|
||||
@@ -419,7 +409,6 @@ public class TelecomManager {
|
||||
* {@code null}, indicating that there currently exists no user-chosen default
|
||||
* {@code PhoneAccount}.
|
||||
* @return The phone account handle of the current sim call manager.
|
||||
* @hide
|
||||
*/
|
||||
public PhoneAccountHandle getSimCallManager() {
|
||||
try {
|
||||
@@ -634,10 +623,7 @@ public class TelecomManager {
|
||||
* {@link PhoneAccountHandle#getComponentName()} does not match the package name of the app.
|
||||
*
|
||||
* @param account The complete {@link PhoneAccount}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void registerPhoneAccount(PhoneAccount account) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -652,9 +638,7 @@ public class TelecomManager {
|
||||
* Remove a {@link PhoneAccount} registration from the system.
|
||||
*
|
||||
* @param accountHandle A {@link PhoneAccountHandle} for the {@link PhoneAccount} to unregister.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -724,10 +708,7 @@ public class TelecomManager {
|
||||
*
|
||||
* @param accountHandle The handle for the account to check the voicemail number against
|
||||
* @param number The number to look up.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean isVoiceMailNumber(PhoneAccountHandle accountHandle, String number) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -744,10 +725,7 @@ public class TelecomManager {
|
||||
*
|
||||
* @param accountHandle The handle for the account to check for a voicemail number.
|
||||
* @return {@code true} If the given phone account has a voicemail number.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean hasVoiceMailNumber(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -764,10 +742,7 @@ public class TelecomManager {
|
||||
*
|
||||
* @param accountHandle The handle for the account retrieve a number for.
|
||||
* @return A string representation of the line 1 phone number.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public String getLine1Number(PhoneAccountHandle accountHandle) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -877,10 +852,7 @@ public class TelecomManager {
|
||||
|
||||
/**
|
||||
* Silences the ringer if a ringing call exists.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void silenceRinger() {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -941,9 +913,7 @@ public class TelecomManager {
|
||||
* {@link #registerPhoneAccount}.
|
||||
* @param extras A bundle that will be passed through to
|
||||
* {@link ConnectionService#onCreateIncomingConnection}.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public void addNewIncomingCall(PhoneAccountHandle phoneAccount, Bundle extras) {
|
||||
try {
|
||||
if (isServiceConnected()) {
|
||||
@@ -1031,9 +1001,7 @@ public class TelecomManager {
|
||||
* {@code null} to return a URI which will use the default account.
|
||||
* @return The URI (with the content:// scheme) specific to the specified {@link PhoneAccount}
|
||||
* for the the content retrieve.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public Uri getAdnUriForPhoneAccount(PhoneAccountHandle accountHandle) {
|
||||
ITelecomService service = getTelecomService();
|
||||
if (service != null && accountHandle != null) {
|
||||
|
||||
Reference in New Issue
Block a user