Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DDataPermissionEnforcerTest.java261 when(mContext.checkCallingPermission(READ_STEPS)).thenReturn(PERMISSION_DENIED); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
262 when(mContext.checkCallingPermission(WRITE_STEPS)).thenReturn(PERMISSION_GRANTED); in testEnforceAnyOfPermissions_onePermissionsGranted_doesNotThrow()
269 when(mContext.checkCallingPermission(READ_STEPS)).thenReturn(PERMISSION_DENIED); in testEnforceAnyOfPermissions_allPermissionsDenied_throwsSecurityException()
270 when(mContext.checkCallingPermission(WRITE_STEPS)).thenReturn(PERMISSION_DENIED); in testEnforceAnyOfPermissions_allPermissionsDenied_throwsSecurityException()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java447 .when(mMockContext).checkCallingPermission(anyString()); in testRegularAppCannotAccessApis()
506 .when(mMockContext).checkCallingPermission(anyString()); in testCarrierAppCanAccessApis()
523 .when(mMockContext).checkCallingPermission(anyString()); in testSelfCanAccessApis()
532 .when(mMockContext).checkCallingPermission(anyString()); in testDefaultDialerCanAccessApis()
547 .when(mMockContext).checkCallingPermission(anyString()); in testPrivilegedAppCannotUseSystemApis()
701 .when(mMockContext).checkCallingPermission(anyString()); in testRegularAppAccessingApisAsSecondaryUser()
DMyMockContext.java103 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MyMockContext
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DOutgoingCallTransaction.java79 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission( in processTransaction()
/packages/modules/OnDevicePersonalization/systemservice/java/com/android/server/ondevicepersonalization/
DOnDevicePersonalizationSystemService.java144 if (mContext.checkCallingPermission(ACCESS_SYSTEM_SERVER_SERVICE) in enforceCallingPermission()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsAccess.java209 final int permissionCheck = context.checkCallingPermission( in hasAppOpsPermission()
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemCarServiceTest.java206 public int checkCallingPermission(String permission) { in checkCallingPermission() method in OemCarServiceTest.TestOemCarService
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java602 return checkCallingPermission(permission); in checkPermission()
606 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContactsActor.RestrictionMockContext
630 return checkCallingPermission(permission); in checkCallingOrSelfPermission()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationConfigServiceDelegate.java76 if (mContext.checkCallingPermission(MODIFY_ONDEVICEPERSONALIZATION_STATE) in setPersonalizationStatus()
DOnDevicePersonalizationManagingServiceDelegate.java165 if (mContext.checkCallingPermission(NOTIFY_MEASUREMENT_EVENT) in registerMeasurementEvent()
/packages/services/Car/car-lib/src/android/car/oem/
DOemCarService.java136 if (checkCallingPermission(
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/
DCarSystemUIProxyImpl.java207 if (context.checkCallingPermission(Car.PERMISSION_MANAGE_CAR_SYSTEM_UI) in ensureManageSystemUIPermission()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationManagingServiceTest.java112 when(mContext.checkCallingPermission(NOTIFY_MEASUREMENT_EVENT)) in setup()
535 when(mContext.checkCallingPermission(NOTIFY_MEASUREMENT_EVENT)) in testRegisterMeasurementEventPermissionDenied()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DDataPermissionEnforcer.java167 if (mContext.checkCallingPermission(permission) == PERMISSION_GRANTED) { in enforceAnyOfPermissions()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsAccessTest.java181 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTransactionTests.java243 when(mMockContext.checkCallingPermission(android.Manifest.permission.CALL_PRIVILEGED)) in testOutgoingCallTransaction()
DMissedInformationTest.java123 .when(mContext).checkCallingPermission(MODIFY_PHONE_STATE); in setUp()
DTelecomServiceImplTest.java328 .when(mContext).checkCallingPermission(MODIFY_PHONE_STATE); in testGroupIdIsClearedWhenPermissionIsMissing()
351 .when(mContext).checkCallingPermission(MODIFY_PHONE_STATE); in testGroupIdIsNotCleared()
729 .when(mContext).checkCallingPermission(MODIFY_PHONE_STATE); in testGetPhoneAccount()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java732 return getContext().checkCallingPermission(permission)
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java3009 if (mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED) { in computePermissionsForBoundPackage()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java5864 return context.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) == PERMISSION_GRANTED in doesCallerHoldInteractAcrossUserPermission()
5865 || context.checkCallingPermission(INTERACT_ACROSS_USERS) == PERMISSION_GRANTED; in doesCallerHoldInteractAcrossUserPermission()