Searched refs:checkCallingPermission (Results 1 – 6 of 6) sorted by relevance
422 .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()
103 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MyMockContext
690 .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()
565 return checkCallingPermission(permission); in checkPermission()569 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContactsActor.RestrictionMockContext593 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
1404 final boolean hasCallPermission = mContext.checkCallingPermission(CALL_PHONE) ==1411 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission(
692 return getContext().checkCallingPermission(permission)