diff options
author | Ihab Awad <ihab@google.com> | 2014-07-09 12:30:52 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-07-14 18:19:27 +0000 |
commit | 807fe0a19a710ae4e053e80f610807ff5718f1a1 (patch) | |
tree | b9216a1eea3b8ee8a6108f426978762e8dc958a0 /telephony | |
parent | 8fbd0dc30328338cb7a6675ce7e0fe48a7815e1b (diff) | |
download | frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.zip frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.tar.gz frameworks_base-807fe0a19a710ae4e053e80f610807ff5718f1a1.tar.bz2 |
Implement multi-SIM capabilities (1/6) [DO NOT MERGE]
- Split PhoneAccount into PhoneAccount & PhoneAccountMetadata
- Move PhoneAccount methods from TelephonyManager to TelecommManager
Bug:16292368
Change-Id: Ib440368d6bd0572b63c942360450fde5c27d84b9
(cherry picked from commit 936b3552b4a3569be9904c826b95b632886fb45d)
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 91ce73a..c1eb843 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -298,17 +298,6 @@ public class TelephonyManager { public static final String EXTRA_INCOMING_NUMBER = "incoming_number"; /** - * The lookup key used with an {@link android.content.Intent#ACTION_CALL} or - * {@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_ACCOUNT = "account"; - - /** * Broadcast intent action indicating that a precise call state * (cellular) on the device has changed. * @@ -3207,42 +3196,6 @@ public class TelephonyManager { } /** - * Return a list of Accounts that can be used to indicate a preference when making - * a phone call. - * - * @see #EXTRA_ACCOUNT - * @return A list of {@code Accouint} objects. - */ - public List<PhoneAccount> getAccounts() { - try { - return getTelecommService().getAccounts(); - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelephony#getAccounts", e); - } - return null; - } - - /** @hide */ - @SystemApi - public void setEnabled(PhoneAccount account, boolean enabled) { - try { - getTelecommService().setEnabled(account, enabled); - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelephony#setEnabled", e); - } - } - - /** @hide */ - @SystemApi - public void setSystemDefault(PhoneAccount account) { - try { - getTelecommService().setSystemDefault(account); - } catch (RemoteException e) { - Log.e(TAG, "Error calling ITelephony#setSystemDefault", e); - } - } - - /** * Set whether Android should display a simplified Mobile Network Settings UI. * The setting won't be persisted during power cycle. * <p> |