summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-06-30 21:17:13 -0700
committerIhab Awad <ihab@google.com>2014-07-02 12:27:13 -0700
commit9c3f18846aaa9340cc222f825c9c32ec42f9d0c9 (patch)
tree3a93eebc6ead619434fe8fbdee2a81ea4f479e79 /telephony/java
parent1e1f2e89267f17723a2afc90a7e894e01fc64701 (diff)
downloadframeworks_base-9c3f18846aaa9340cc222f825c9c32ec42f9d0c9.zip
frameworks_base-9c3f18846aaa9340cc222f825c9c32ec42f9d0c9.tar.gz
frameworks_base-9c3f18846aaa9340cc222f825c9c32ec42f9d0c9.tar.bz2
Rename Telecomm "Subscription" to "Account" (1/7)
Change-Id: Ieb29f6ba9dadacb2c7e26969a47141e11a339a40 Conflicts: telecomm/java/android/telecomm/InCallCall.java
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 0e5b0e6..66a7e6d 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -24,7 +24,7 @@ import android.os.Bundle;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemProperties;
-import android.telecomm.Subscription;
+import android.telecomm.PhoneAccount;
import android.util.Log;
import com.android.internal.telecomm.ITelecommService;
@@ -299,14 +299,14 @@ public class TelephonyManager {
/**
* The lookup key used with an {@link android.content.Intent#ACTION_CALL} or
- * {@link android.content.Intent#ACTION_DIAL} {@code Intent} for a {@link Subscription}
+ * {@link android.content.Intent#ACTION_DIAL} {@code Intent} for a {@link PhoneAccount}
* object indicating a preference when making a phone connection.
*
* <p class="note">
* Retrieve with
* {@link android.content.Intent#getParcelableExtra(String)}.
*/
- public static final String EXTRA_SUBSCRIPTION = "subscription";
+ public static final String EXTRA_ACCOUNT = "account";
/**
* Broadcast intent action indicating that a precise call state
@@ -3118,26 +3118,26 @@ public class TelephonyManager {
}
/**
- * Return a list of Subscriptions that can be used to indicate a preference when making
+ * Return a list of Accounts that can be used to indicate a preference when making
* a phone call.
*
- * @see #EXTRA_SUBSCRIPTION
- * @return A list of {@code Subscription} objects.
+ * @see #EXTRA_ACCOUNT
+ * @return A list of {@code Accouint} objects.
*/
- public List<Subscription> getSubscriptions() {
+ public List<PhoneAccount> getAccounts() {
try {
- return getTelecommService().getSubscriptions();
+ return getTelecommService().getAccounts();
} catch (RemoteException e) {
- Log.e(TAG, "Error calling ITelephony#getSubscriptions", e);
+ Log.e(TAG, "Error calling ITelephony#getAccounts", e);
}
return null;
}
/** @hide */
@SystemApi
- public void setEnabled(Subscription subscription, boolean enabled) {
+ public void setEnabled(PhoneAccount account, boolean enabled) {
try {
- getTelecommService().setEnabled(subscription, enabled);
+ getTelecommService().setEnabled(account, enabled);
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelephony#setEnabled", e);
}
@@ -3145,9 +3145,9 @@ public class TelephonyManager {
/** @hide */
@SystemApi
- public void setSystemDefault(Subscription subscription) {
+ public void setSystemDefault(PhoneAccount account) {
try {
- getTelecommService().setSystemDefault(subscription);
+ getTelecommService().setSystemDefault(account);
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelephony#setSystemDefault", e);
}