Home
last modified time | relevance | path

Searched refs:enforcePermission (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java318 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in reportState()
329 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in requestDisplay()
339 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in startFixedActivityModeAsUser()
358 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in stopFixedActivityMode()
370 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in registerClusterStateListener()
378 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in unregisterClusterStateListener()
386 enforcePermission(Car.PERMISSION_CAR_MONITOR_CLUSTER_NAVIGATION_STATE); in registerClusterNavigationStateListener()
394 enforcePermission(Car.PERMISSION_CAR_MONITOR_CLUSTER_NAVIGATION_STATE); in unregisterClusterNavigationStateListener()
403 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in getClusterState()
410 enforcePermission(Car.PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL); in sendHeartbeat()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java948 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in setGroupVolume()
1074 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMaxVolume()
1092 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMinVolume()
1110 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupVolume()
1130 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in registerPrimaryZoneMediaAudioRequestCallback()
1141 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in unregisterPrimaryZoneMediaAudioRequestCallback()
1161 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in requestMediaAudioOnPrimaryZone()
1207 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in allowMediaAudioOnPrimaryZone()
1248 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in isMediaAudioAllowedInPrimaryZone()
1260 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in resetMediaAudioOnPrimaryZone()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java1228 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in deleteUsingFilters()
1321 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in getCurrentPriority()
1372 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in updatePriority()
1410 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in setRecordRetentionPeriodInDays()
1472 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in getContributorApplicationsInfo()
1510 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in queryAllRecordTypesInfo()
1549 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in queryAccessLogs()
1592 mContext.enforcePermission(MANAGE_HEALTH_DATA_PERMISSION, pid, uid, null); in getActivityDates()
1639 mContext.enforcePermission( in startMigration()
1685 mContext.enforcePermission( in finishMigration()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java148 enforcePermission(uid, packageName, attributionTag, false, false, false); in getAvailableChannels()
198 enforcePermission(uid, packageName, null, isPrivilegedMessage(msgWhat), in setScanningEnabled()
231 enforcePermission(uid, packageName, featureId, in registerScanListener()
261 enforcePermission(uid, packageName, featureId, in unregisterScanListener()
289 enforcePermission(uid, packageName, featureId, in startBackgroundScan()
318 enforcePermission(uid, packageName, featureId, in stopBackgroundScan()
344 enforcePermission(uid, packageName, featureId, in getScanResults()
387 enforcePermission(uid, packageName, featureId, in startScan()
419 enforcePermission(uid, packageName, featureId, in stopScan()
449 enforcePermission(uid, packageName, featureId, in getSingleScanResults()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java202 enforcePermission(android.Manifest.permission.MANAGE_OWN_CALLS);
538 enforcePermission(READ_PRIVILEGED_PHONE_STATE);
2005 enforcePermission(MODIFY_PHONE_STATE);
2006 enforcePermission(WRITE_SECURE_SETTINGS);
2052 enforcePermission(DUMP);
2210 enforcePermission(android.Manifest.permission.MANAGE_OWN_CALLS);
2235 enforcePermission(android.Manifest.permission.MANAGE_OWN_CALLS);
2680 enforcePermission(permission); in enforceAnswerCallPermission()
2938 enforcePermission(permission); in enforcePermissionOrPrivilegedDialer()
3046 enforcePermission(REGISTER_SIM_SUBSCRIPTION); in enforceRegisterSimSubscriptionPermission()
[all …]
DVideoProviderProxy.java592 context.enforcePermission(Manifest.permission.CAMERA, callingPid, callingUid, in canUseCamera()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java128 doNothing().when(mContext).enforcePermission(anyString(), anyInt(), anyInt(), anyString()); in setUp()
188 .enforcePermission(anyString(), anyInt(), anyInt(), anyString()); in testCameraChangePermissionFail()
305 .enforcePermission(anyString(), anyInt(), anyInt(), anyString()); in testCameraChangeNullNoPermission()
DComponentContextFixture.java487 public void enforcePermission( in enforcePermission() method
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DDataPermissionEnforcer.java183 mContext.enforcePermission(READ_HEALTH_DATA_IN_BACKGROUND, pid, uid, errorMessage); in enforceBackgroundReadRestrictions()
/packages/services/Telephony/tests/src/com/android/
DTestContext.java233 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in TestContext
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java616 enforcePermission(Car.ACCESS_PRIVATE_DISPLAY_ID); in getDisplayIdForDriver()
653 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in getAudioZoneIdForOccupant()
681 enforcePermission(Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS); in getOccupantForAudioZoneId()
1700 private void enforcePermission(String permissionName) { in enforcePermission() method in CarOccupantZoneService
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java2939 doThrow(new SecurityException()).when(mContext).enforcePermission( in rejectRestrictedMessagesFromNonPrivilegedApps()
2996 doThrow(new SecurityException()).when(mContext).enforcePermission( in rejectAllMessagesFromNonPrivilegedAppsWithoutLocationPermission()
3037 doThrow(new SecurityException()).when(mContext).enforcePermission( in verifyIgnoreLocationSettingsFromNonPrivilegedAppsForSingleScan()
3095 doThrow(new SecurityException()).when(mContext).enforcePermission( in verifyHideFromAppOpsFromNonPrivilegedAppsForSingleScan()
3152 doNothing().when(mContext).enforcePermission( in verifyLocationPermissionCheckIsSkippedFromPrivilegedClientsForSingleScan()
3800 doThrow(new SecurityException()).when(mContext).enforcePermission( in getAvailableChannels_noPermission_throwsException_After_U()
3834 doThrow(new SecurityException()).when(mContext).enforcePermission( in getAvailableChannels_noPermission_throwsException()
3855 doThrow(new SecurityException()).when(mContext).enforcePermission( in getAvailableChannels_hasPermission_returnsSuccessfully()
3881 doThrow(new SecurityException()).when(mContext).enforcePermission( in getAvailableChannels_DoesNotCrashWhenWifiDisabled()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DDataPermissionEnforcerTest.java291 .enforcePermission(READ_HEALTH_DATA_IN_BACKGROUND, pid, uid, message); in testEnforceBackgroundReadRestrictions_permissionDenied_throwsSecurityException()
/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java433 doNothing().when(mContext).enforcePermission( in testGetConfigForSubIdWithFeature_withTelephonyFeatureMapping()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DHealthConnectServiceImplTest.java547 .enforcePermission(eq(permission), anyInt(), anyInt(), anyString()); in setUpPassingPermissionCheckFor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java634 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in ContactsActor.RestrictionMockContext