Searched refs:checkCallingPermission (Results 1 – 8 of 8) sorted by relevance
426 .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()
103 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MyMockContext
743 .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()
573 return checkCallingPermission(permission); in checkPermission()577 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContactsActor.RestrictionMockContext601 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
182 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
697 return getContext().checkCallingPermission(permission)
1508 final boolean hasCallPermission = mContext.checkCallingPermission(CALL_PHONE) ==1515 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission(
5521 return context.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) == PERMISSION_GRANTED in doesCallerHoldInteractAcrossUserPermission()5522 || context.checkCallingPermission(INTERACT_ACROSS_USERS) == PERMISSION_GRANTED; in doesCallerHoldInteractAcrossUserPermission()