Home
last modified time | relevance | path

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

/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java422 .when(mMockContext).checkCallingPermission(anyString()); in testRegularAppCannotAccessApis()
481 .when(mMockContext).checkCallingPermission(anyString()); in testCarrierAppCanAccessApis()
498 .when(mMockContext).checkCallingPermission(anyString()); in testSelfCanAccessApis()
507 .when(mMockContext).checkCallingPermission(anyString()); in testDefaultDialerCanAccessApis()
522 .when(mMockContext).checkCallingPermission(anyString()); in testPrivilegedAppCannotUseSystemApis()
675 .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.java690 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithNonEmergencyPermission()
692 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithNonEmergencyPermission()
707 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithAppOpsOff()
709 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithAppOpsOff()
724 .when(mContext).checkCallingPermission(CALL_PHONE); in testPlaceCallWithNoCallingPermission()
726 .when(mContext).checkCallingPermission(CALL_PRIVILEGED); in testPlaceCallWithNoCallingPermission()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java565 return checkCallingPermission(permission); in checkPermission()
569 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContactsActor.RestrictionMockContext
593 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1404 final boolean hasCallPermission = mContext.checkCallingPermission(CALL_PHONE) ==
1411 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission(
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java692 return getContext().checkCallingPermission(permission)