Merge changes from topic 'query-fplmn-sync' am: 0dc62c6dd3
am: 1f7f262920
Change-Id: I9cce740f777f0c881b37cbf4752cd81d7f817a41
This commit is contained in:
@@ -38015,6 +38015,7 @@ package android.telephony {
|
|||||||
method public java.lang.String getDeviceId();
|
method public java.lang.String getDeviceId();
|
||||||
method public java.lang.String getDeviceId(int);
|
method public java.lang.String getDeviceId(int);
|
||||||
method public java.lang.String getDeviceSoftwareVersion();
|
method public java.lang.String getDeviceSoftwareVersion();
|
||||||
|
method public java.lang.String[] getForbiddenPlmns();
|
||||||
method public java.lang.String getGroupIdLevel1();
|
method public java.lang.String getGroupIdLevel1();
|
||||||
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
||||||
method public java.lang.String getLine1Number();
|
method public java.lang.String getLine1Number();
|
||||||
|
|||||||
@@ -41231,6 +41231,7 @@ package android.telephony {
|
|||||||
method public java.lang.String getDeviceId();
|
method public java.lang.String getDeviceId();
|
||||||
method public java.lang.String getDeviceId(int);
|
method public java.lang.String getDeviceId(int);
|
||||||
method public java.lang.String getDeviceSoftwareVersion();
|
method public java.lang.String getDeviceSoftwareVersion();
|
||||||
|
method public java.lang.String[] getForbiddenPlmns();
|
||||||
method public java.lang.String getGroupIdLevel1();
|
method public java.lang.String getGroupIdLevel1();
|
||||||
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
||||||
method public java.lang.String getImei();
|
method public java.lang.String getImei();
|
||||||
|
|||||||
@@ -38098,6 +38098,7 @@ package android.telephony {
|
|||||||
method public java.lang.String getDeviceId();
|
method public java.lang.String getDeviceId();
|
||||||
method public java.lang.String getDeviceId(int);
|
method public java.lang.String getDeviceId(int);
|
||||||
method public java.lang.String getDeviceSoftwareVersion();
|
method public java.lang.String getDeviceSoftwareVersion();
|
||||||
|
method public java.lang.String[] getForbiddenPlmns();
|
||||||
method public java.lang.String getGroupIdLevel1();
|
method public java.lang.String getGroupIdLevel1();
|
||||||
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
method public java.lang.String getIccAuthentication(int, int, java.lang.String);
|
||||||
method public java.lang.String getLine1Number();
|
method public java.lang.String getLine1Number();
|
||||||
|
|||||||
@@ -4189,6 +4189,45 @@ public class TelephonyManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array of Forbidden PLMNs from the USIM App
|
||||||
|
* Returns null if the query fails.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* <p>Requires that the caller has READ_PRIVILEGED_PHONE_STATE
|
||||||
|
*
|
||||||
|
* @return an array of forbidden PLMNs or null if not available
|
||||||
|
*/
|
||||||
|
public String[] getForbiddenPlmns() {
|
||||||
|
return getForbiddenPlmns(getSubId(), APPTYPE_USIM);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array of Forbidden PLMNs from the specified SIM App
|
||||||
|
* Returns null if the query fails.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* <p>Requires that the calling app has READ_PRIVILEGED_PHONE_STATE
|
||||||
|
*
|
||||||
|
* @param subId subscription ID used for authentication
|
||||||
|
* @param appType the icc application type, like {@link #APPTYPE_USIM}
|
||||||
|
* @return fplmns an array of forbidden PLMNs
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public String[] getForbiddenPlmns(int subId, int appType) {
|
||||||
|
try {
|
||||||
|
ITelephony telephony = getITelephony();
|
||||||
|
if (telephony == null)
|
||||||
|
return null;
|
||||||
|
return telephony.getForbiddenPlmns(subId, appType);
|
||||||
|
} catch (RemoteException ex) {
|
||||||
|
return null;
|
||||||
|
} catch (NullPointerException ex) {
|
||||||
|
// This could happen before phone starts
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get P-CSCF address from PCO after data connection is established or modified.
|
* Get P-CSCF address from PCO after data connection is established or modified.
|
||||||
* @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
|
* @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
|
||||||
|
|||||||
@@ -1218,7 +1218,6 @@ interface ITelephony {
|
|||||||
*/
|
*/
|
||||||
void setPolicyDataEnabled(boolean enabled, int subId);
|
void setPolicyDataEnabled(boolean enabled, int subId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Client request stats which will contain statistical information
|
* Get Client request stats which will contain statistical information
|
||||||
* on each request made by client.
|
* on each request made by client.
|
||||||
@@ -1235,4 +1234,16 @@ interface ITelephony {
|
|||||||
* @hide
|
* @hide
|
||||||
* */
|
* */
|
||||||
void setSimPowerStateForSlot(int slotId, boolean powerUp);
|
void setSimPowerStateForSlot(int slotId, boolean powerUp);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of Forbidden PLMNs from the specified SIM App
|
||||||
|
* Returns null if the query fails.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* <p>Requires that the calling app has READ_PRIVILEGED_PHONE_STATE
|
||||||
|
*
|
||||||
|
* @param subId subscription ID used for authentication
|
||||||
|
* @param appType the icc application type, like {@link #APPTYPE_USIM}
|
||||||
|
*/
|
||||||
|
String[] getForbiddenPlmns(int subId, int appType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user