diff options
Diffstat (limited to 'telecomm/java/android/telecom')
-rw-r--r-- | telecomm/java/android/telecom/AuthenticatorService.java | 2 | ||||
-rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 26 | ||||
-rw-r--r-- | telecomm/java/android/telecom/Voicemail.java | 4 |
3 files changed, 11 insertions, 21 deletions
diff --git a/telecomm/java/android/telecom/AuthenticatorService.java b/telecomm/java/android/telecom/AuthenticatorService.java index 7aa105d..1e43c71 100644 --- a/telecomm/java/android/telecom/AuthenticatorService.java +++ b/telecomm/java/android/telecom/AuthenticatorService.java @@ -19,7 +19,6 @@ import android.accounts.AbstractAccountAuthenticator; import android.accounts.Account; import android.accounts.AccountAuthenticatorResponse; import android.accounts.NetworkErrorException; -import android.annotation.SystemApi; import android.app.Service; import android.content.Context; import android.content.Intent; @@ -32,7 +31,6 @@ import android.os.IBinder; * * @hide */ -@SystemApi public class AuthenticatorService extends Service { private static Authenticator mAuthenticator; diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index ab7864b..642a386 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -532,19 +532,6 @@ public class TelecomManager { } /** - * Determine whether the device has more than one account registered that can make and receive - * phone calls. - * - * @return {@code true} if the device has more than one account registered and {@code false} - * otherwise. - * @hide - */ - @SystemApi - public boolean hasMultipleCallCapableAccounts() { - return getCallCapablePhoneAccounts().size() > 1; - } - - /** * Returns a list of all {@link PhoneAccount}s registered for the calling package. * * @return A list of {@code PhoneAccountHandle} objects. @@ -683,6 +670,15 @@ public class TelecomManager { * @hide */ @SystemApi + public void clearPhoneAccounts() { + clearAccounts(); + } + /** + * Remove all Accounts that belong to the calling package from the system. + * @deprecated Use {@link #clearPhoneAccounts()} instead. + * @hide + */ + @SystemApi public void clearAccounts() { try { if (isServiceConnected()) { @@ -1017,10 +1013,8 @@ public class TelecomManager { * @param accountHandle The handle for the account the MMI code should apply to. * @param dialString The digits to dial. * @return True if the digits were processed as an MMI code, false otherwise. - * @hide */ - @SystemApi - public boolean handleMmi(PhoneAccountHandle accountHandle, String dialString) { + public boolean handleMmi(String dialString, PhoneAccountHandle accountHandle) { ITelecomService service = getTelecomService(); if (service != null) { try { diff --git a/telecomm/java/android/telecom/Voicemail.java b/telecomm/java/android/telecom/Voicemail.java index 186c199..f5b8052 100644 --- a/telecomm/java/android/telecom/Voicemail.java +++ b/telecomm/java/android/telecom/Voicemail.java @@ -16,7 +16,6 @@ package android.telecom; -import android.annotation.SystemApi; import android.net.Uri; import android.os.Parcel; import android.os.Parcelable; @@ -26,7 +25,6 @@ import android.os.Parcelable; * * @hide */ -@SystemApi public class Voicemail implements Parcelable { private final Long mTimestamp; private final String mNumber; @@ -277,4 +275,4 @@ public class Voicemail implements Parcelable { mIsRead = in.readInt() > 0 ? true : false; mHasContent = in.readInt() > 0 ? true : false; } -}
\ No newline at end of file +} |