Merge "ITelphony.aidl: Rename hasCarrierPrivileges for packages to checkCarrierPrivilegesForPackage."

This commit is contained in:
Jeff Sharkey
2014-07-11 23:40:37 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -2870,9 +2870,9 @@ public class TelephonyManager {
/** @hide */
@SystemApi
public int hasCarrierPrivileges(String pkgname) {
public int checkCarrierPrivilegesForPackage(String pkgname) {
try {
return getITelephony().hasCarrierPrivileges(pkgname);
return getITelephony().checkCarrierPrivilegesForPackage(pkgname);
} catch (RemoteException ex) {
Rlog.e(TAG, "hasCarrierPrivileges RemoteException", ex);
} catch (NullPointerException ex) {
@@ -2880,8 +2880,8 @@ public class TelephonyManager {
}
return CARRIER_PRIVILEGE_STATUS_NO_ACCESS;
}
/** @hide */
/** @hide */
@SystemApi
public void dial(String number) {
try {

View File

@@ -657,6 +657,6 @@ interface ITelephony {
/**
* Similar to above, but check for pkg whose name is pkgname.
*/
int hasCarrierPrivileges(String pkgname);
int checkCarrierPrivilegesForPackage(String pkgname);
}