Loading api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -37563,6 +37563,7 @@ package android.telephony { method public android.telephony.TelephonyManager createForSubscriptionId(int); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public android.telephony.CellLocation getCellLocation(); method public int getDataActivity(); method public boolean getDataEnabled(); Loading @@ -37580,6 +37581,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType(); api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -40752,6 +40752,7 @@ package android.telephony { method public boolean endCall(); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public java.util.List<java.lang.String> getCarrierPackageNamesForIntent(android.content.Intent); method public java.util.List<java.lang.String> getCarrierPackageNamesForIntentAndPhone(android.content.Intent, int); method public java.lang.String getCdmaMdn(); Loading Loading @@ -40780,6 +40781,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType(); api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -37645,6 +37645,7 @@ package android.telephony { method public android.telephony.TelephonyManager createForSubscriptionId(int); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public android.telephony.CellLocation getCellLocation(); method public int getDataActivity(); method public boolean getDataEnabled(); Loading @@ -37662,6 +37663,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType(); telephony/java/android/telephony/TelephonyManager.java +29 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.ResultReceiver; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.os.Bundle; import android.os.PersistableBundle; import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; Loading Loading @@ -1416,6 +1417,34 @@ public class TelephonyManager { return getTelephonyProperty(phoneId, TelephonyProperties.PROPERTY_OPERATOR_NUMERIC, ""); } /** * Returns the network specifier of the subscription ID pinned to the TelephonyManager. * * @see android.net.NetworkRequest.Builder#setNetworkSpecifier(String) * @see #createForSubscriptionId(int) * @see #createForPhoneAccountHandle(PhoneAccountHandle) */ public String getNetworkSpecifier() { return String.valueOf(mSubId); } /** * Returns the carrier config of the subscription ID pinned to the TelephonyManager. * * <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE * READ_PHONE_STATE} * * @see CarrierConfigManager#getConfigForSubId(int) * @see #createForSubscriptionId(int) * @see #createForPhoneAccountHandle(PhoneAccountHandle) */ public PersistableBundle getCarrierConfig() { CarrierConfigManager carrierConfigManager = mContext .getSystemService(CarrierConfigManager.class); return carrierConfigManager.getConfigForSubId(mSubId); } /** * Returns true if the device is considered roaming on the current * network, for GSM purposes. Loading Loading
api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -37563,6 +37563,7 @@ package android.telephony { method public android.telephony.TelephonyManager createForSubscriptionId(int); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public android.telephony.CellLocation getCellLocation(); method public int getDataActivity(); method public boolean getDataEnabled(); Loading @@ -37580,6 +37581,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType();
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -40752,6 +40752,7 @@ package android.telephony { method public boolean endCall(); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public java.util.List<java.lang.String> getCarrierPackageNamesForIntent(android.content.Intent); method public java.util.List<java.lang.String> getCarrierPackageNamesForIntentAndPhone(android.content.Intent, int); method public java.lang.String getCdmaMdn(); Loading Loading @@ -40780,6 +40781,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType();
api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -37645,6 +37645,7 @@ package android.telephony { method public android.telephony.TelephonyManager createForSubscriptionId(int); method public java.util.List<android.telephony.CellInfo> getAllCellInfo(); method public int getCallState(); method public android.os.PersistableBundle getCarrierConfig(); method public android.telephony.CellLocation getCellLocation(); method public int getDataActivity(); method public boolean getDataEnabled(); Loading @@ -37662,6 +37663,7 @@ package android.telephony { method public java.lang.String getNetworkCountryIso(); method public java.lang.String getNetworkOperator(); method public java.lang.String getNetworkOperatorName(); method public java.lang.String getNetworkSpecifier(); method public int getNetworkType(); method public int getPhoneCount(); method public int getPhoneType();
telephony/java/android/telephony/TelephonyManager.java +29 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.ResultReceiver; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.os.Bundle; import android.os.PersistableBundle; import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; Loading Loading @@ -1416,6 +1417,34 @@ public class TelephonyManager { return getTelephonyProperty(phoneId, TelephonyProperties.PROPERTY_OPERATOR_NUMERIC, ""); } /** * Returns the network specifier of the subscription ID pinned to the TelephonyManager. * * @see android.net.NetworkRequest.Builder#setNetworkSpecifier(String) * @see #createForSubscriptionId(int) * @see #createForPhoneAccountHandle(PhoneAccountHandle) */ public String getNetworkSpecifier() { return String.valueOf(mSubId); } /** * Returns the carrier config of the subscription ID pinned to the TelephonyManager. * * <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE * READ_PHONE_STATE} * * @see CarrierConfigManager#getConfigForSubId(int) * @see #createForSubscriptionId(int) * @see #createForPhoneAccountHandle(PhoneAccountHandle) */ public PersistableBundle getCarrierConfig() { CarrierConfigManager carrierConfigManager = mContext .getSystemService(CarrierConfigManager.class); return carrierConfigManager.getConfigForSubId(mSubId); } /** * Returns true if the device is considered roaming on the current * network, for GSM purposes. Loading