Home
last modified time | relevance | path

Searched refs:checkCallingPermission (Results 1 – 8 of 8) sorted by relevance

/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java426 .when(mMockContext).checkCallingPermission(anyString()); in testRegularAppCannotAccessApis()
485 .when(mMockContext).checkCallingPermission(anyString()); in testCarrierAppCanAccessApis()
502 .when(mMockContext).checkCallingPermission(anyString()); in testSelfCanAccessApis()
511 .when(mMockContext).checkCallingPermission(anyString()); in testDefaultDialerCanAccessApis()
526 .when(mMockContext).checkCallingPermission(anyString()); in testPrivilegedAppCannotUseSystemApis()
680 .when(mMockContext).checkCallingPermission(anyString()); in testRegularAppAccessingApisAsSecondaryUser()
DMyMockContext.java103 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MyMockContext
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java743 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithNonEmergencyPermission()
745 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithNonEmergencyPermission()
761 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithAppOpsOff()
763 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithAppOpsOff()
779 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithNoCallingPermission()
781 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithNoCallingPermission()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java573 return checkCallingPermission(permission); in checkPermission()
577 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContactsActor.RestrictionMockContext
601 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsAccessTest.java182 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java697 return getContext().checkCallingPermission(permission)
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1508 final boolean hasCallPermission = mContext.checkCallingPermission(CALL_PHONE) ==
1515 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission(
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java5521 return context.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) == PERMISSION_GRANTED in doesCallerHoldInteractAcrossUserPermission()
5522 || context.checkCallingPermission(INTERACT_ACROSS_USERS) == PERMISSION_GRANTED; in doesCallerHoldInteractAcrossUserPermission()