Home
last modified time | relevance | path

Searched refs:Manifest (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/frameworks/base/core/java/android/os/
DUserManager.java22 import android.Manifest;
1583 @RequiresPermission(Manifest.permission.MANAGE_USERS)
2042 @RequiresPermission(anyOf = {android.Manifest.permission.MANAGE_USERS,
2043 android.Manifest.permission.INTERACT_ACROSS_USERS})
2066 @RequiresPermission(allOf = {Manifest.permission.READ_PHONE_STATE,
2067 android.Manifest.permission.MANAGE_USERS,
2068 android.Manifest.permission.INTERACT_ACROSS_USERS}, conditional = true)
2085 @RequiresPermission(anyOf = {android.Manifest.permission.MANAGE_USERS,
2086 android.Manifest.permission.INTERACT_ACROSS_USERS})
2134 android.Manifest.permission.MANAGE_USERS,
[all …]
DBatteryStatsManager.java175 @RequiresPermission(android.Manifest.permission.BATTERY_STATS)
187 @RequiresPermission(android.Manifest.permission.BATTERY_STATS)
199 @RequiresPermission(android.Manifest.permission.BATTERY_STATS)
214 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
226 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
238 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
253 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
268 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
282 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
297 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
[all …]
DVibrator.java309 @RequiresPermission(android.Manifest.permission.VIBRATE_ALWAYS_ON)
318 @RequiresPermission(android.Manifest.permission.VIBRATE_ALWAYS_ON)
334 @RequiresPermission(android.Manifest.permission.VIBRATE)
353 @RequiresPermission(android.Manifest.permission.VIBRATE)
387 @RequiresPermission(android.Manifest.permission.VIBRATE)
419 @RequiresPermission(android.Manifest.permission.VIBRATE)
443 @RequiresPermission(android.Manifest.permission.VIBRATE)
461 @RequiresPermission(android.Manifest.permission.VIBRATE)
481 @RequiresPermission(android.Manifest.permission.VIBRATE)
492 @RequiresPermission(android.Manifest.permission.VIBRATE)
[all …]
/frameworks/base/core/java/android/telephony/
DTelephonyCallback.java19 import android.Manifest;
136 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
150 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
166 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
234 Manifest.permission.READ_PHONE_STATE,
235 Manifest.permission.ACCESS_FINE_LOCATION
250 @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
264 @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
276 @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
286 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
[all …]
DPhoneStateListener.java19 import android.Manifest;
113 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
127 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
146 @RequiresPermission(android.Manifest.permission.ACCESS_FINE_LOCATION)
205 Manifest.permission.READ_PHONE_STATE,
206 Manifest.permission.ACCESS_FINE_LOCATION
222 @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
237 @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
264 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
307 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
[all …]
/frameworks/base/core/java/android/os/image/
DDynamicSystemManager.java68 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
84 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
100 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
115 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
129 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
147 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
166 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
178 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
194 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
211 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
[all …]
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java19 import android.Manifest;
73 mContext.enforcePermission(android.Manifest.permission.DUMP, in assertApprovedQuerent()
80 mContext.enforcePermission(android.Manifest.permission.QUERY_ALL_PACKAGES, in assertApprovedQuerent()
83 + android.Manifest.permission.QUERY_ALL_PACKAGES); in assertApprovedQuerent()
104 android.Manifest.permission.DOMAIN_VERIFICATION_AGENT, callingPid, in assertApprovedVerifier()
107 android.Manifest.permission.INTENT_FILTER_VERIFICATION_AGENT, in assertApprovedVerifier()
111 + android.Manifest.permission.DOMAIN_VERIFICATION_AGENT); in assertApprovedVerifier()
117 mContext.enforcePermission(android.Manifest.permission.QUERY_ALL_PACKAGES, in assertApprovedVerifier()
119 + android.Manifest.permission.QUERY_ALL_PACKAGES); in assertApprovedVerifier()
139 Manifest.permission.INTERACT_ACROSS_USERS, in assertApprovedUserStateQuerent()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPermissionHelperTest.java38 import android.Manifest;
85 testPkgInfo.requestedPermissions = new String[]{ Manifest.permission.POST_NOTIFICATIONS }; in setUp()
116 new String[] {"something else", Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsRequestingPermission()
122 second.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsRequestingPermission()
145 eq(new String[] {Manifest.permission.POST_NOTIFICATIONS}), anyLong(), eq(userId))) in testGetAppsGrantedPermission_noApps()
156 new String[] {"something else", Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsGrantedPermission()
162 second.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsGrantedPermission()
170 eq(new String[] {Manifest.permission.POST_NOTIFICATIONS}), anyLong(), eq(userId))) in testGetAppsGrantedPermission()
187 "pkg", Manifest.permission.POST_NOTIFICATIONS, 10); in testSetNotificationPermission_grantUserSet()
188 verify(mPermManager).updatePermissionFlags("pkg", Manifest.permission.POST_NOTIFICATIONS, in testSetNotificationPermission_grantUserSet()
[all …]
/frameworks/base/core/java/android/net/
DNetworkScoreManager.java19 import android.Manifest.permission;
251 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS,
252 android.Manifest.permission.REQUEST_NETWORK_SCORES})
269 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES)
286 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES)
306 @RequiresPermission(android.Manifest.permission.SCORE_NETWORKS)
328 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS,
329 android.Manifest.permission.REQUEST_NETWORK_SCORES})
350 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS,
351 android.Manifest.permission.REQUEST_NETWORK_SCORES})
[all …]
/frameworks/base/core/java/android/app/
DVrManager.java72 android.Manifest.permission.RESTRICTED_VR_ACCESS,
73 android.Manifest.permission.ACCESS_VR_STATE
101 android.Manifest.permission.RESTRICTED_VR_ACCESS,
102 android.Manifest.permission.ACCESS_VR_STATE
125 android.Manifest.permission.RESTRICTED_VR_ACCESS,
126 android.Manifest.permission.ACCESS_VR_STATE
141 android.Manifest.permission.RESTRICTED_VR_ACCESS,
142 android.Manifest.permission.ACCESS_VR_STATE
161 @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS)
178 @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS)
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DImsMmTelManager.java20 import android.Manifest;
249 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
250 android.Manifest.permission.READ_PRECISE_PHONE_STATE
306 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
349 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
350 android.Manifest.permission.READ_PRECISE_PHONE_STATE})
392 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
422 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
423 android.Manifest.permission.READ_PRECISE_PHONE_STATE})
448 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
[all …]
DProvisioningManager.java19 import android.Manifest;
1242 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
1273 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
1303 @RequiresPermission(Manifest.permission.READ_PRECISE_PHONE_STATE)
1351 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
1373 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
1402 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
1424 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
1453 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
1488 @RequiresPermission(Manifest.permission.READ_PRECISE_PHONE_STATE)
[all …]
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java28 import android.Manifest;
80 InstallUtils.adoptShellPermissionIdentity(Manifest.permission.TEST_MANAGE_ROLLBACKS); in cleanUp()
113 Manifest.permission.INSTALL_PACKAGES, in testBasic()
114 Manifest.permission.DELETE_PACKAGES, in testBasic()
115 Manifest.permission.TEST_MANAGE_ROLLBACKS, in testBasic()
116 Manifest.permission.MANAGE_ROLLBACKS, in testBasic()
117 Manifest.permission.MANAGE_USERS, in testBasic()
118 Manifest.permission.CREATE_USERS, in testBasic()
119 Manifest.permission.INTERACT_ACROSS_USERS); in testBasic()
204 Manifest.permission.INSTALL_PACKAGES, in testSameVersionUpdate()
[all …]
/frameworks/base/core/java/android/content/rollback/
DRollbackManager.java81 android.Manifest.permission.MANAGE_ROLLBACKS,
82 android.Manifest.permission.TEST_MANAGE_ROLLBACKS
111 android.Manifest.permission.MANAGE_ROLLBACKS,
112 android.Manifest.permission.TEST_MANAGE_ROLLBACKS
199 android.Manifest.permission.MANAGE_ROLLBACKS,
200 android.Manifest.permission.TEST_MANAGE_ROLLBACKS
226 @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS)
247 @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS)
268 @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS)
/frameworks/base/core/java/android/service/persistentdata/
DPersistentDataBlockManager.java120 @RequiresPermission(android.Manifest.permission.ACCESS_PDB_STATE)
149 @RequiresPermission(android.Manifest.permission.OEM_UNLOCK_STATE)
163 @RequiresPermission(android.Manifest.permission.OEM_UNLOCK_STATE)
178 android.Manifest.permission.READ_OEM_UNLOCK_STATE,
179 android.Manifest.permission.OEM_UNLOCK_STATE
197 android.Manifest.permission.READ_OEM_UNLOCK_STATE,
198 android.Manifest.permission.OEM_UNLOCK_STATE
216 @RequiresPermission(android.Manifest.permission.ACCESS_PDB_STATE)
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java19 import android.Manifest;
80 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
88 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
99 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
107 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
116 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
125 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
135 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
146 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
/frameworks/base/media/java/android/media/
DSpatializer.java124 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
142 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
160 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
177 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
291 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
300 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
310 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
320 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
330 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
381 @RequiresPermission(android.Manifest.permission.MODIFY_DEFAULT_AUDIO_EFFECTS)
[all …]
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryController.java287 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
301 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
334 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
365 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
390 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
412 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
427 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
450 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
475 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
500 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE)
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupManager.java382 @RequiresPermission(android.Manifest.permission.BACKUP)
411 @RequiresPermission(android.Manifest.permission.BACKUP)
429 @RequiresPermission(android.Manifest.permission.BACKUP)
461 @RequiresPermission(android.Manifest.permission.BACKUP)
465 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in isBackupServiceActive()
488 @RequiresPermission(android.Manifest.permission.BACKUP)
508 @RequiresPermission(android.Manifest.permission.BACKUP)
528 @RequiresPermission(android.Manifest.permission.BACKUP)
548 @RequiresPermission(android.Manifest.permission.BACKUP)
590 @RequiresPermission(android.Manifest.permission.BACKUP)
[all …]
/frameworks/base/services/core/java/com/android/server/
DDynamicSystemService.java78 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
121 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
132 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
143 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
154 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
160 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
180 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
186 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
202 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
226 @EnforcePermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
[all …]
/frameworks/base/core/java/android/hardware/
DSensorPrivacyManager.java19 import android.Manifest;
416 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
434 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
453 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
486 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
503 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
538 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
561 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
595 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
608 @RequiresPermission(Manifest.permission.OBSERVE_SENSOR_PRIVACY)
[all …]
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobScheduler.java187 @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
245 android.Manifest.permission.MANAGE_ACTIVITY_TASKS,
246 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL})
254 android.Manifest.permission.MANAGE_ACTIVITY_TASKS,
255 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL})
264 android.Manifest.permission.MANAGE_ACTIVITY_TASKS,
265 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL})
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java31 import android.Manifest;
361 @RequiresPermission(Manifest.permission.MANAGE_COMPANION_DEVICES)
375 @RequiresPermission(Manifest.permission.MANAGE_APP_HIBERNATION)
391 @RequiresPermission(Manifest.permission.MANAGE_APP_HIBERNATION)
420 Manifest.permission.REVOKE_RUNTIME_PERMISSIONS); in onBind()
466 enforceSomePermissionsGrantedToCaller(Manifest.permission.GET_RUNTIME_PERMISSIONS); in onBind()
485 enforceSomePermissionsGrantedToCaller(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in onBind()
486 Manifest.permission.RESTORE_RUNTIME_PERMISSIONS); in onBind()
506 enforceSomePermissionsGrantedToCaller(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in onBind()
507 Manifest.permission.RESTORE_RUNTIME_PERMISSIONS); in onBind()
[all …]
/frameworks/base/core/java/android/window/
DTaskOrganizer.java67 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
79 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
158 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
176 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
183 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
193 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
206 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
219 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
233 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
248 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_TASKS)
[all …]
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java36 import android.Manifest;
173 final String permissionName = Manifest.permission.INTERACT_ACROSS_PROFILES; in mockCrossProfileAppRequestsInteractAcrossProfiles()
231 Manifest.permission.MANAGE_APP_OPS_MODES, in grantPermissions()
232 Manifest.permission.UPDATE_APP_OPS_STATS, in grantPermissions()
233 Manifest.permission.CONFIGURE_INTERACT_ACROSS_PROFILES, in grantPermissions()
234 Manifest.permission.INTERACT_ACROSS_USERS, in grantPermissions()
235 Manifest.permission.INTERACT_ACROSS_USERS_FULL); in grantPermissions()
264 Manifest.permission.MANAGE_APP_OPS_MODES, in setInteractAcrossProfilesAppOp_noPermissions_throwsSecurityException()
265 Manifest.permission.UPDATE_APP_OPS_STATS, in setInteractAcrossProfilesAppOp_noPermissions_throwsSecurityException()
266 Manifest.permission.CONFIGURE_INTERACT_ACROSS_PROFILES, in setInteractAcrossProfilesAppOp_noPermissions_throwsSecurityException()
[all …]

12345678910>>...28