diff options
author | Santos Cordon <santoscordon@google.com> | 2015-02-17 17:16:39 +0000 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2015-03-02 20:42:55 +0000 |
commit | da35a2b477ea6fc1ad0edc067cb653573ed573ba (patch) | |
tree | e84b1c9890c243c5ce5c7efcd43c82cc0ab6e8f7 /core | |
parent | 40c6f2b4290388db9f9360bf57cf886d6f08423d (diff) | |
download | frameworks_base-da35a2b477ea6fc1ad0edc067cb653573ed573ba.zip frameworks_base-da35a2b477ea6fc1ad0edc067cb653573ed573ba.tar.gz frameworks_base-da35a2b477ea6fc1ad0edc067cb653573ed573ba.tar.bz2 |
Revert "Add PHONE_ACCOUNT_ADDRESS to the call log DB."
This reverts commit 87bfb3576f6b76fa9838775e302ca0d74fc0071b.
Change-Id: I8e7056dbd3068b915fecff13128a45bb6e99c073
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/provider/CallLog.java | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index 28fba23..f023df7 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -33,9 +33,7 @@ import android.provider.ContactsContract.CommonDataKinds.Callable; import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.Data; import android.provider.ContactsContract.DataUsageFeedback; -import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; -import android.telecom.TelecomManager; import android.telephony.PhoneNumberUtils; import android.text.TextUtils; @@ -338,33 +336,22 @@ public class CallLog { // that was encoded into call log databases. /** - * The component name of the account used to place or receive the call; in string form. + * The component name of the account in string form. * <P>Type: TEXT</P> */ public static final String PHONE_ACCOUNT_COMPONENT_NAME = "subscription_component_name"; /** - * The identifier for the account used to place or receive the call. + * The identifier of a account that is unique to a specified component. * <P>Type: TEXT</P> */ public static final String PHONE_ACCOUNT_ID = "subscription_id"; /** - * The address associated with the account used to place or receive the call; in string - * form. For SIM-based calls, this is the user's own phone number. - * <P>Type: TEXT</P> - * - * @hide - */ - public static final String PHONE_ACCOUNT_ADDRESS = "phone_account_address"; - - /** - * The subscription ID used to place this call. This is no longer used and has been - * replaced with PHONE_ACCOUNT_COMPONENT_NAME/PHONE_ACCOUNT_ID. - * For ContactsProvider internal use only. + * The identifier of a account that is unique to a specified component. Equivalent value + * to {@link #PHONE_ACCOUNT_ID}. For ContactsProvider internal use only. * <P>Type: INTEGER</P> * - * @Deprecated * @hide */ public static final String SUB_ID = "sub_id"; @@ -435,15 +422,6 @@ public class CallLog { final ContentResolver resolver = context.getContentResolver(); int numberPresentation = PRESENTATION_ALLOWED; - String accountAddress = null; - TelecomManager tm = TelecomManager.from(context); - if (tm != null && accountHandle != null) { - PhoneAccount account = tm.getPhoneAccount(accountHandle); - if (account != null) { - accountAddress = account.getSubscriptionAddress().getSchemeSpecificPart(); - } - } - // Remap network specified number presentation types // PhoneConstants.PRESENTATION_xxx to calllog number presentation types // Calls.PRESENTATION_xxx, in order to insulate the persistent calllog @@ -485,7 +463,6 @@ public class CallLog { } values.put(PHONE_ACCOUNT_COMPONENT_NAME, accountComponentString); values.put(PHONE_ACCOUNT_ID, accountId); - values.put(PHONE_ACCOUNT_ADDRESS, accountAddress); values.put(NEW, Integer.valueOf(1)); if (callType == MISSED_TYPE) { |