Loading api/current.txt +6 −5 Original line number Diff line number Diff line Loading @@ -38694,22 +38694,23 @@ package android.provider { field public static final android.net.Uri CONTENT_URI; field public static final java.lang.String CURRENT = "current"; field public static final java.lang.String DEFAULT_SORT_ORDER = "name ASC"; field public static final java.lang.String MCC = "mcc"; field public static final deprecated java.lang.String MCC = "mcc"; field public static final java.lang.String MMSC = "mmsc"; field public static final java.lang.String MMSPORT = "mmsport"; field public static final java.lang.String MMSPROXY = "mmsproxy"; field public static final java.lang.String MNC = "mnc"; field public static final java.lang.String MVNO_MATCH_DATA = "mvno_match_data"; field public static final java.lang.String MVNO_TYPE = "mvno_type"; field public static final deprecated java.lang.String MNC = "mnc"; field public static final deprecated java.lang.String MVNO_MATCH_DATA = "mvno_match_data"; field public static final deprecated java.lang.String MVNO_TYPE = "mvno_type"; field public static final java.lang.String NAME = "name"; field public static final java.lang.String NETWORK_TYPE_BITMASK = "network_type_bitmask"; field public static final java.lang.String NUMERIC = "numeric"; field public static final deprecated java.lang.String NUMERIC = "numeric"; field public static final java.lang.String PASSWORD = "password"; field public static final java.lang.String PORT = "port"; field public static final java.lang.String PROTOCOL = "protocol"; field public static final java.lang.String PROXY = "proxy"; field public static final java.lang.String ROAMING_PROTOCOL = "roaming_protocol"; field public static final java.lang.String SERVER = "server"; field public static final android.net.Uri SIM_APN_URI; field public static final java.lang.String SUBSCRIPTION_ID = "sub_id"; field public static final java.lang.String TYPE = "type"; field public static final java.lang.String USER = "user"; telephony/java/android/provider/Telephony.java +39 −9 Original line number Diff line number Diff line Loading @@ -2732,9 +2732,25 @@ public final class Telephony { /** * The {@code content://} style URL for this table. * For MSIM, this will return APNs for the default subscription * {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId for MSIM, * use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. */ public static final Uri CONTENT_URI = Uri.parse("content://telephony/carriers"); /** * The {@code content://} style URL for this table. Used for APN query based on current * subscription. Instead of specifying carrier matching information in the selection, * this API will return all matching APNs from current subscription carrier and queries * will be applied on top of that. If there is no match for MVNO (Mobile Virtual Network * Operator) APNs, return APNs from its MNO (based on mccmnc) instead. For MSIM, this will * return APNs for the default subscription * {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId for MSIM, * use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. */ public static final Uri SIM_APN_URI = Uri.parse( "content://telephony/carriers/sim_apn_list"); /** * The {@code content://} style URL to be called from DevicePolicyManagerService, * can manage DPC-owned APNs. Loading @@ -2745,7 +2761,9 @@ public final class Telephony { /** * The {@code content://} style URL to be called from Telephony to query APNs. * When DPC-owned APNs are enforced, only DPC-owned APNs are returned, otherwise only * non-DPC-owned APNs are returned. * non-DPC-owned APNs are returned. For MSIM, this will return APNs for the default * subscription {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId * for MSIM, use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. * @hide */ public static final Uri FILTERED_URI = Uri.parse("content://telephony/carriers/filtered"); Loading @@ -2758,13 +2776,6 @@ public final class Telephony { public static final Uri ENFORCE_MANAGED_URI = Uri.parse( "content://telephony/carriers/enforce_managed"); /** * The {@code content://} style URL to be called from Telephony to query current APNs. * @hide */ public static final Uri SIM_APN_LIST = Uri.parse( "content://telephony/carriers/sim_apn_list"); /** * The column name for ENFORCE_MANAGED_URI, indicates whether DPC-owned APNs are enforced. * @hide Loading Loading @@ -2839,18 +2850,30 @@ public final class Telephony { /** * Mobile Country Code (MCC). * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MCC and * other carrier matching information. In the future, Android will not support MCC for * APN query. */ public static final String MCC = "mcc"; /** * Mobile Network Code (MNC). * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MNC and * other carrier matching information. In the future, Android will not support MNC for * APN query. */ public static final String MNC = "mnc"; /** * Numeric operator ID (as String). Usually {@code MCC + MNC}. * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify Numeric * and other carrier matching information. In the future, Android will not support Numeric * for APN query. */ public static final String NUMERIC = "numeric"; Loading Loading @@ -2931,6 +2954,10 @@ public final class Telephony { * MVNO type: * {@code SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1)}. * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MVNO_TYPE * and other carrier matching information. In the future, Android will not support MVNO_TYPE * for APN query. */ public static final String MVNO_TYPE = "mvno_type"; Loading @@ -2943,6 +2970,10 @@ public final class Telephony { * <li>GID: 4E, 33, ...</li> * </ul> * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify * MVNO_MATCH_DATA and other carrier matching information. In the future, Android will not * support MVNO_MATCH_DATA for APN query. */ public static final String MVNO_MATCH_DATA = "mvno_match_data"; Loading Loading @@ -3151,7 +3182,6 @@ public final class Telephony { }) @Retention(RetentionPolicy.SOURCE) public @interface EditStatus {} } /** Loading Loading
api/current.txt +6 −5 Original line number Diff line number Diff line Loading @@ -38694,22 +38694,23 @@ package android.provider { field public static final android.net.Uri CONTENT_URI; field public static final java.lang.String CURRENT = "current"; field public static final java.lang.String DEFAULT_SORT_ORDER = "name ASC"; field public static final java.lang.String MCC = "mcc"; field public static final deprecated java.lang.String MCC = "mcc"; field public static final java.lang.String MMSC = "mmsc"; field public static final java.lang.String MMSPORT = "mmsport"; field public static final java.lang.String MMSPROXY = "mmsproxy"; field public static final java.lang.String MNC = "mnc"; field public static final java.lang.String MVNO_MATCH_DATA = "mvno_match_data"; field public static final java.lang.String MVNO_TYPE = "mvno_type"; field public static final deprecated java.lang.String MNC = "mnc"; field public static final deprecated java.lang.String MVNO_MATCH_DATA = "mvno_match_data"; field public static final deprecated java.lang.String MVNO_TYPE = "mvno_type"; field public static final java.lang.String NAME = "name"; field public static final java.lang.String NETWORK_TYPE_BITMASK = "network_type_bitmask"; field public static final java.lang.String NUMERIC = "numeric"; field public static final deprecated java.lang.String NUMERIC = "numeric"; field public static final java.lang.String PASSWORD = "password"; field public static final java.lang.String PORT = "port"; field public static final java.lang.String PROTOCOL = "protocol"; field public static final java.lang.String PROXY = "proxy"; field public static final java.lang.String ROAMING_PROTOCOL = "roaming_protocol"; field public static final java.lang.String SERVER = "server"; field public static final android.net.Uri SIM_APN_URI; field public static final java.lang.String SUBSCRIPTION_ID = "sub_id"; field public static final java.lang.String TYPE = "type"; field public static final java.lang.String USER = "user";
telephony/java/android/provider/Telephony.java +39 −9 Original line number Diff line number Diff line Loading @@ -2732,9 +2732,25 @@ public final class Telephony { /** * The {@code content://} style URL for this table. * For MSIM, this will return APNs for the default subscription * {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId for MSIM, * use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. */ public static final Uri CONTENT_URI = Uri.parse("content://telephony/carriers"); /** * The {@code content://} style URL for this table. Used for APN query based on current * subscription. Instead of specifying carrier matching information in the selection, * this API will return all matching APNs from current subscription carrier and queries * will be applied on top of that. If there is no match for MVNO (Mobile Virtual Network * Operator) APNs, return APNs from its MNO (based on mccmnc) instead. For MSIM, this will * return APNs for the default subscription * {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId for MSIM, * use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. */ public static final Uri SIM_APN_URI = Uri.parse( "content://telephony/carriers/sim_apn_list"); /** * The {@code content://} style URL to be called from DevicePolicyManagerService, * can manage DPC-owned APNs. Loading @@ -2745,7 +2761,9 @@ public final class Telephony { /** * The {@code content://} style URL to be called from Telephony to query APNs. * When DPC-owned APNs are enforced, only DPC-owned APNs are returned, otherwise only * non-DPC-owned APNs are returned. * non-DPC-owned APNs are returned. For MSIM, this will return APNs for the default * subscription {@link SubscriptionManager#getDefaultSubscriptionId()}. To specify subId * for MSIM, use {@link Uri#withAppendedPath(Uri, String)} to append with subscription id. * @hide */ public static final Uri FILTERED_URI = Uri.parse("content://telephony/carriers/filtered"); Loading @@ -2758,13 +2776,6 @@ public final class Telephony { public static final Uri ENFORCE_MANAGED_URI = Uri.parse( "content://telephony/carriers/enforce_managed"); /** * The {@code content://} style URL to be called from Telephony to query current APNs. * @hide */ public static final Uri SIM_APN_LIST = Uri.parse( "content://telephony/carriers/sim_apn_list"); /** * The column name for ENFORCE_MANAGED_URI, indicates whether DPC-owned APNs are enforced. * @hide Loading Loading @@ -2839,18 +2850,30 @@ public final class Telephony { /** * Mobile Country Code (MCC). * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MCC and * other carrier matching information. In the future, Android will not support MCC for * APN query. */ public static final String MCC = "mcc"; /** * Mobile Network Code (MNC). * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MNC and * other carrier matching information. In the future, Android will not support MNC for * APN query. */ public static final String MNC = "mnc"; /** * Numeric operator ID (as String). Usually {@code MCC + MNC}. * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify Numeric * and other carrier matching information. In the future, Android will not support Numeric * for APN query. */ public static final String NUMERIC = "numeric"; Loading Loading @@ -2931,6 +2954,10 @@ public final class Telephony { * MVNO type: * {@code SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1)}. * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify MVNO_TYPE * and other carrier matching information. In the future, Android will not support MVNO_TYPE * for APN query. */ public static final String MVNO_TYPE = "mvno_type"; Loading @@ -2943,6 +2970,10 @@ public final class Telephony { * <li>GID: 4E, 33, ...</li> * </ul> * <P>Type: TEXT</P> * @deprecated Use {@link #SIM_APN_URI} to query APN instead, this API will return * matching APNs based on current subscription carrier, thus no need to specify * MVNO_MATCH_DATA and other carrier matching information. In the future, Android will not * support MVNO_MATCH_DATA for APN query. */ public static final String MVNO_MATCH_DATA = "mvno_match_data"; Loading Loading @@ -3151,7 +3182,6 @@ public final class Telephony { }) @Retention(RetentionPolicy.SOURCE) public @interface EditStatus {} } /** Loading