/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 261 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/ |
D | BlockedNumberProviderTest.java | 447 .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()
|
D | MyMockContext.java | 103 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MyMockContext
|
/packages/services/Telecomm/src/com/android/server/telecom/voip/ |
D | OutgoingCallTransaction.java | 79 final boolean hasCallPrivilegedPermission = mContext.checkCallingPermission( in processTransaction()
|
/packages/modules/OnDevicePersonalization/systemservice/java/com/android/server/ondevicepersonalization/ |
D | OnDevicePersonalizationSystemService.java | 144 if (mContext.checkCallingPermission(ACCESS_SYSTEM_SERVER_SERVICE) in enforceCallingPermission()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsAccess.java | 209 final int permissionCheck = context.checkCallingPermission( in hasAppOpsPermission()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/ |
D | OemCarServiceTest.java | 206 public int checkCallingPermission(String permission) { in checkCallingPermission() method in OemCarServiceTest.TestOemCarService
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 602 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/ |
D | OnDevicePersonalizationConfigServiceDelegate.java | 76 if (mContext.checkCallingPermission(MODIFY_ONDEVICEPERSONALIZATION_STATE) in setPersonalizationStatus()
|
D | OnDevicePersonalizationManagingServiceDelegate.java | 165 if (mContext.checkCallingPermission(NOTIFY_MEASUREMENT_EVENT) in registerMeasurementEvent()
|
/packages/services/Car/car-lib/src/android/car/oem/ |
D | OemCarService.java | 136 if (checkCallingPermission(
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/ |
D | CarSystemUIProxyImpl.java | 207 if (context.checkCallingPermission(Car.PERMISSION_MANAGE_CAR_SYSTEM_UI) in ensureManageSystemUIPermission()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/ |
D | OnDevicePersonalizationManagingServiceTest.java | 112 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/ |
D | DataPermissionEnforcer.java | 167 if (mContext.checkCallingPermission(permission) == PERMISSION_GRANTED) { in enforceAnyOfPermissions()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsAccessTest.java | 181 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TransactionTests.java | 243 when(mMockContext.checkCallingPermission(android.Manifest.permission.CALL_PRIVILEGED)) in testOutgoingCallTransaction()
|
D | MissedInformationTest.java | 123 .when(mContext).checkCallingPermission(MODIFY_PHONE_STATE); in setUp()
|
D | TelecomServiceImplTest.java | 328 .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/ |
D | BlockedNumberProvider.java | 732 return getContext().checkCallingPermission(permission)
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomServiceImpl.java | 3009 if (mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED) { in computePermissionsForBoundPackage()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 5864 return context.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) == PERMISSION_GRANTED in doesCallerHoldInteractAcrossUserPermission() 5865 || context.checkCallingPermission(INTERACT_ACROSS_USERS) == PERMISSION_GRANTED; in doesCallerHoldInteractAcrossUserPermission()
|