/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 320 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in registerObserver() 326 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in unregisterObserver() 461 mContext.enforceCallingOrSelfPermission(NETWORK_STACK, TAG); in registerTetheringStatsProvider() 470 mContext.enforceCallingOrSelfPermission(NETWORK_STACK, TAG); in unregisterTetheringStatsProvider() 478 mContext.enforceCallingOrSelfPermission(NETWORK_STACK, TAG); in tetherLimitReached() 745 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in listInterfaces() 795 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in getInterfaceConfig() 813 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceConfig() 830 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceDown() 838 mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); in setInterfaceUp() [all …]
|
D | SerialService.java | 38 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); in getSerialPorts() 53 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.SERIAL_PORT, null); in openSerialPort()
|
D | UpdateLockService.java | 95 mContext.enforceCallingOrSelfPermission(PERMISSION, "acquireUpdateLock"); in acquireUpdateLock() 105 mContext.enforceCallingOrSelfPermission(PERMISSION, "releaseUpdateLock"); in releaseUpdateLock()
|
D | RecoverySystemService.java | 81 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.RECOVERY, null); in uncrypt() 259 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.RECOVERY, null); in setupOrClearBcb()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 313 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.ACCESS_MTP, null); in getControlFd() 321 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setDevicePackage() 337 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setAccessoryPackage() 405 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantDevicePermission() 418 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in grantAccessoryPermission() 433 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in hasDefaults() 449 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in clearDefaults() 463 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setCurrentFunctions() 481 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in getCurrentFunctions() 488 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); in setScreenUnlockedFunctions() [all …]
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetServiceImpl.java | 55 mContext.enforceCallingOrSelfPermission( in enforceAccessPermission() 61 mContext.enforceCallingOrSelfPermission( in enforceConnectivityInternalPermission() 67 mContext.enforceCallingOrSelfPermission( in enforceUseRestrictedNetworksPermission()
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestablePermissionsTest.java | 67 mContext.enforceCallingOrSelfPermission(permission.INTERACT_ACROSS_USERS, ""); in testEnforceNoException() 74 mContext.enforceCallingOrSelfPermission(permission.INTERACT_ACROSS_USERS, ""); in testEnforceWithException()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 590 mContext.enforceCallingOrSelfPermission( in syncAsUser() 675 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in cancelRequest() 762 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getSyncAutomaticallyAsUser() 789 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in setSyncAutomaticallyAsUser() 820 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in addPeriodicSync() 850 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in removePeriodicSync() 878 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getPeriodicSyncs() 904 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getIsSyncableAsUser() 936 mContext.enforceCallingOrSelfPermission(Manifest.permission.WRITE_SYNC_SETTINGS, in setIsSyncableAsUser() 968 mContext.enforceCallingOrSelfPermission(Manifest.permission.READ_SYNC_SETTINGS, in getMasterSyncAutomaticallyAsUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | IncidentCompanionService.java | 316 getContext().enforceCallingOrSelfPermission( in enforceRequestAuthorizationPermission() 325 getContext().enforceCallingOrSelfPermission( in enforceAuthorizePermission() 344 getContext().enforceCallingOrSelfPermission( in enforceAccessReportsPermissions() 346 getContext().enforceCallingOrSelfPermission( in enforceAccessReportsPermissions()
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleManagerService.java | 463 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in getRoleHoldersAsUser() 484 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in addRoleHolderAsUser() 504 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in removeRoleHolderAsUser() 524 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in clearRoleHoldersAsUser() 541 getContext().enforceCallingOrSelfPermission(Manifest.permission.OBSERVE_ROLE_HOLDERS, in addOnRoleHoldersChangedListenerAsUser() 559 getContext().enforceCallingOrSelfPermission(Manifest.permission.OBSERVE_ROLE_HOLDERS, in removeOnRoleHoldersChangedListenerAsUser() 573 getContext().enforceCallingOrSelfPermission( in setRoleNamesFromController() 586 getContext().enforceCallingOrSelfPermission( in addRoleHolderFromController() 600 getContext().enforceCallingOrSelfPermission( in removeRoleHolderFromController() 613 getContext().enforceCallingOrSelfPermission( in getHeldRolesFromController()
|
/frameworks/base/telephony/java/android/telephony/ |
D | AnomalyReporter.java | 121 context.enforceCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE, in initialize() 162 sContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, "Requires DUMP"); in dump()
|
/frameworks/base/services/core/java/com/android/server/adb/ |
D | AdbService.java | 238 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_DEBUGGING, null); in allowDebugging() 246 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_DEBUGGING, null); in denyDebugging() 254 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_DEBUGGING, null); in clearDebuggingKeys()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerService.java | 1792 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in startWifiDisplayScan() 1806 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in stopWifiDisplayScan() 1823 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in connectWifiDisplay() 1854 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in renameWifiDisplay() 1870 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in forgetWifiDisplay() 1883 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in pauseWifiDisplay() 1896 mContext.enforceCallingOrSelfPermission(Manifest.permission.CONFIGURE_WIFI_DISPLAY, in resumeWifiDisplay() 1922 mContext.enforceCallingOrSelfPermission( in requestColorMode() 2076 mContext.enforceCallingOrSelfPermission( in getBrightnessEvents() 2108 mContext.enforceCallingOrSelfPermission( in getAmbientBrightnessStats() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ThermalManagerService.java | 307 getContext().enforceCallingOrSelfPermission( 327 getContext().enforceCallingOrSelfPermission( 346 getContext().enforceCallingOrSelfPermission( 360 getContext().enforceCallingOrSelfPermission( 375 getContext().enforceCallingOrSelfPermission( 433 getContext().enforceCallingOrSelfPermission( 448 getContext().enforceCallingOrSelfPermission(
|
D | PowerManagerService.java | 4255 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null); in powerHint() 4270 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in acquireWakeLock() 4272 mContext.enforceCallingOrSelfPermission( in acquireWakeLock() 4276 mContext.enforceCallingOrSelfPermission( in acquireWakeLock() 4298 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in releaseWakeLock() 4329 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.WAKE_LOCK, null); in updateWakeLockWorkSource() 4331 mContext.enforceCallingOrSelfPermission( in updateWakeLockWorkSource() 4400 mContext.enforceCallingOrSelfPermission( in wakeUp() 4418 mContext.enforceCallingOrSelfPermission( in goToSleep() 4436 mContext.enforceCallingOrSelfPermission( in nap() [all …]
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
D | OemLockService.java | 248 mContext.enforceCallingOrSelfPermission( in enforceManageCarrierOemUnlockPermission() 254 mContext.enforceCallingOrSelfPermission( in enforceManageUserOemUnlockPermission()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupPasswordManager.java | 85 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in hasBackupPassword() 113 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupPassword()
|
D | UserBackupManagerService.java | 1582 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in getAvailableRestoreToken() 2464 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "backupNow"); in backupNow() 2793 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupEnabled() 2860 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setAutoRestore() 2879 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in isBackupEnabled() 2886 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in getCurrentTransport() 2899 mContext.enforceCallingOrSelfPermission( in getCurrentTransportComponent() 2913 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in listAllTransports() 2921 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in listAllTransportComponents() 2976 mContext.enforceCallingOrSelfPermission( in updateTransportAttributes() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 149 mContext.enforceCallingOrSelfPermission( in enforcePermission() 251 mContext.enforceCallingOrSelfPermission( in queryStatsForPackage() 303 mContext.enforceCallingOrSelfPermission( in queryStatsForUid() 352 mContext.enforceCallingOrSelfPermission( in queryStatsForUser() 379 mContext.enforceCallingOrSelfPermission( in queryExternalStatsForUser()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 780 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.CHANGE_WIFI_STATE), in testSetWifiEnableWithoutChangeWifiStatePermission() 867 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.CHANGE_WIFI_STATE), in testSetWifiDisabledWithoutChangeWifiStatePermission() 1003 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.ACCESS_WIFI_STATE), in testGetWifiApEnabledPermissionDenied() 1094 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_STACK), in testStartSoftApWithoutPermissionThrowsException() 1117 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_STACK), in testStopSoftApWithoutPermissionThrowsException() 1424 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.CHANGE_WIFI_STATE), in testStartLocalOnlyHotspotThrowsSecurityExceptionWithoutCorrectPermission() 1567 verify(mContext, never()).enforceCallingOrSelfPermission( in testStopLocalOnlyHotspotTriggersSoftApStopWithOneRegisteredRequest() 1664 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() 1696 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions() 2472 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in testStartWatchLocalOnlyHotspotNotApprovedCaller() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 82 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in getAvailableRestoreSets() 137 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restoreAll() 198 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restorePackages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 71 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission() method in MockLockSettingsContext
|
/frameworks/base/core/java/android/net/ |
D | NetworkRecommendationProvider.java | 121 mContext.enforceCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES, in enforceCallingPermission()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | BugreportManagerServiceImpl.java | 77 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, "startBugreport"); in startBugreport() 105 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, "startBugreport"); in cancelBugreport()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 317 mContext.enforceCallingOrSelfPermission( in getPrintServices() 372 mContext.enforceCallingOrSelfPermission( in getPrintServiceRecommendations() 596 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.READ_PRINT_SERVICES, in addPrintServicesChangeListener() 620 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.READ_PRINT_SERVICES, in removePrintServicesChangeListener() 645 mContext.enforceCallingOrSelfPermission( in addPrintServiceRecommendationsChangeListener() 669 mContext.enforceCallingOrSelfPermission( in removePrintServiceRecommendationsChangeListener()
|