Merge "NetworkStatAccess Should checkCarrierPrivileges cross all subscriptions" am: 74f0698ce6
am: 4d206af049 Change-Id: Ib2d02bd3936ae112f62861c301d99582e0b998b0
This commit is contained in:
@@ -161,7 +161,7 @@ public class NetworkStatsAccessTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setHasCarrierPrivileges(boolean hasPrivileges) {
|
private void setHasCarrierPrivileges(boolean hasPrivileges) {
|
||||||
when(mTm.checkCarrierPrivilegesForPackage(TEST_PKG)).thenReturn(
|
when(mTm.checkCarrierPrivilegesForPackageAnyPhone(TEST_PKG)).thenReturn(
|
||||||
hasPrivileges ? TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS
|
hasPrivileges ? TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS
|
||||||
: TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS);
|
: TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user