/frameworks/base/tools/aapt2/java/ |
D | ManifestClassGenerator_test.cpp | 35 <permission android:name="android.permission.ACCESS_INTERNET" /> 36 <permission android:name="android.DO_DANGEROUS_THINGS" /> 37 <permission android:name="com.test.sample.permission.HUH" /> 38 <permission-group android:name="foo.bar.PERMISSION" /> 44 ASSERT_THAT(actual, HasSubstr("public static final class permission {")); 47 const size_t permission_start_pos = actual.find("public static final class permission {"); 82 <permission android:name="android.permission.ACCESS_INTERNET" /> 83 <!-- @deprecated This permission is for playing outside. --> 84 <permission android:name="android.permission.PLAY_OUTSIDE" /> 85 <!-- This is a private permission for system only! [all …]
|
/frameworks/native/libs/binder/ |
D | PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { in check() argument 41 e.name = permission; in check() 51 void PermissionCache::cache(const String16& permission, in cache() argument 55 ssize_t index = mPermissionNamesPool.indexOf(permission); in cache() 59 mPermissionNamesPool.add(permission); in cache() 60 e.name = permission; in cache() 77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() argument 78 return PermissionCache::checkCallingPermission(permission, nullptr, nullptr); in checkCallingPermission() 82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission() argument 88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission() [all …]
|
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | RollbackTest.java | 92 Manifest.permission.INSTALL_PACKAGES, in testBasic() 93 Manifest.permission.DELETE_PACKAGES, in testBasic() 94 Manifest.permission.TEST_MANAGE_ROLLBACKS, in testBasic() 95 Manifest.permission.MANAGE_ROLLBACKS); in testBasic() 173 Manifest.permission.INSTALL_PACKAGES, in testAvailableRollbackPersistence() 174 Manifest.permission.DELETE_PACKAGES, in testAvailableRollbackPersistence() 175 Manifest.permission.TEST_MANAGE_ROLLBACKS); in testAvailableRollbackPersistence() 226 Manifest.permission.INSTALL_PACKAGES, in testAvailableMultiPackageRollbackPersistence() 227 Manifest.permission.DELETE_PACKAGES, in testAvailableMultiPackageRollbackPersistence() 228 Manifest.permission.TEST_MANAGE_ROLLBACKS); in testAvailableMultiPackageRollbackPersistence() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkScoreManager.java | 19 import android.Manifest.permission; 232 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 233 android.Manifest.permission.REQUEST_NETWORK_SCORES}) 250 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES) 267 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES) 287 @RequiresPermission(android.Manifest.permission.SCORE_NETWORKS) 309 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 310 android.Manifest.permission.REQUEST_NETWORK_SCORES}) 331 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 332 android.Manifest.permission.REQUEST_NETWORK_SCORES}) [all …]
|
/frameworks/base/test-base/src/android/test/ |
D | AndroidTestCase.java | 100 String packageName, String className, String permission) { in assertActivityRequiresPermission() argument 107 fail("expected security exception for " + permission); in assertActivityRequiresPermission() 110 assertTrue("error message should contain " + permission + ".", in assertActivityRequiresPermission() 111 expected.getMessage().contains(permission)); in assertActivityRequiresPermission() 123 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission() argument 126 fail("expected SecurityException requiring " + permission); in assertReadingContentUriRequiresPermission() 129 assertTrue("error message should contain " + permission + ".", in assertReadingContentUriRequiresPermission() 130 expected.getMessage().contains(permission)); in assertReadingContentUriRequiresPermission() 142 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission() argument 145 fail("expected SecurityException requiring " + permission); in assertWritingContentUriRequiresPermission() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestablePermissions.java | 38 public void setPermission(String permission, int value) { in setPermission() argument 39 mPermissions.put(permission, value); in setPermission() 52 boolean wantsCall(String permission) { in wantsCall() argument 53 return mPermissions.containsKey(permission); in wantsCall() 60 int check(String permission) { in check() argument 61 return mPermissions.get(permission); in check() 69 public void enforce(String permission) { in enforce() argument 70 if (check(permission) != PackageManager.PERMISSION_GRANTED) { in enforce()
|
D | TestableContext.java | 316 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() argument 317 if (mTestablePermissions != null && mTestablePermissions.wantsCall(permission)) { in checkCallingOrSelfPermission() 318 return mTestablePermissions.check(permission); in checkCallingOrSelfPermission() 320 return super.checkCallingOrSelfPermission(permission); in checkCallingOrSelfPermission() 324 public int checkCallingPermission(String permission) { in checkCallingPermission() argument 325 if (mTestablePermissions != null && mTestablePermissions.wantsCall(permission)) { in checkCallingPermission() 326 return mTestablePermissions.check(permission); in checkCallingPermission() 328 return super.checkCallingPermission(permission); in checkCallingPermission() 332 public int checkPermission(String permission, int pid, int uid) { in checkPermission() argument 333 if (mTestablePermissions != null && mTestablePermissions.wantsCall(permission)) { in checkPermission() [all …]
|
/frameworks/base/core/java/android/os/image/ |
D | DynamicSystemManager.java | 61 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 76 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 95 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 116 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 133 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 143 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 153 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 163 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 177 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 190 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
|
/frameworks/base/core/java/android/app/ |
D | VrManager.java | 71 android.Manifest.permission.RESTRICTED_VR_ACCESS, 72 android.Manifest.permission.ACCESS_VR_STATE 100 android.Manifest.permission.RESTRICTED_VR_ACCESS, 101 android.Manifest.permission.ACCESS_VR_STATE 124 android.Manifest.permission.RESTRICTED_VR_ACCESS, 125 android.Manifest.permission.ACCESS_VR_STATE 140 android.Manifest.permission.RESTRICTED_VR_ACCESS, 141 android.Manifest.permission.ACCESS_VR_STATE 160 @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) 177 @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) [all …]
|
D | ActivityTaskManager.java | 167 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 193 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 209 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 223 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 233 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 246 @RequiresPermission(android.Manifest.permission.REMOVE_TASKS) 309 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 322 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 334 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) 349 @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestablePermissionsTest.java | 22 import android.Manifest.permission; 44 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testCheck() 46 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS_FULL, in testCheck() 49 mContext.checkPermission(permission.INTERACT_ACROSS_USERS, 0, 0)); in testCheck() 51 mContext.checkPermission(permission.INTERACT_ACROSS_USERS_FULL, 0, 0)); in testCheck() 65 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testEnforceNoException() 67 mContext.enforceCallingOrSelfPermission(permission.INTERACT_ACROSS_USERS, ""); in testEnforceNoException() 72 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testEnforceWithException() 74 mContext.enforceCallingOrSelfPermission(permission.INTERACT_ACROSS_USERS, ""); in testEnforceWithException()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | ChipsUtil.java | 32 void onPermissionCheck(String permission, boolean granted); in onPermissionCheck() argument 39 new String[] { Manifest.permission.READ_CONTACTS }; 62 public static int checkPermission(Context context, String permission) { in checkPermission() argument 65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission() 80 for (String permission : REQUIRED_PERMISSIONS) { in hasPermissions() 82 checkPermission(context, permission) == PackageManager.PERMISSION_GRANTED; in hasPermissions() 84 permissionsCheckListener.onPermissionCheck(permission, granted); in hasPermissions()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | MainActivity.java | 84 String []permission = { in checkPermission() local 85 Manifest.permission.CAMERA, in checkPermission() 86 Manifest.permission.RECORD_AUDIO, in checkPermission() 87 Manifest.permission.WRITE_EXTERNAL_STORAGE, in checkPermission() 88 Manifest.permission.READ_EXTERNAL_STORAGE in checkPermission() 91 boolean []permissionDenied = new boolean[permission.length]; in checkPermission() 92 for (int i = 0; i < permission.length; i++) { in checkPermission() 93 String per = permission[i]; in checkPermission() 95 permission[i] ); in checkPermission() 108 permission[i])) { in checkPermission() [all …]
|
/frameworks/base/core/xsd/schema/ |
D | current.txt | 2 package com.android.xml.permission.configfile { 130 …method public java.util.List<com.android.xml.permission.configfile.OemPermissions.DenyPermission> … 131 …method public java.util.List<com.android.xml.permission.configfile.OemPermissions.Permission> getP… 156 …method public java.util.List<com.android.xml.permission.configfile.AllowAssociation> getAllowAssoc… 157 …method public java.util.List<com.android.xml.permission.configfile.AllowIgnoreLocationSettings> ge… 158 …method public java.util.List<com.android.xml.permission.configfile.AllowImplicitBroadcast> getAllo… 159 …method public java.util.List<com.android.xml.permission.configfile.AllowInDataUsageSave> getAllowI… 160 …method public java.util.List<com.android.xml.permission.configfile.AllowInPowerSaveExceptIdle> get… 161 …method public java.util.List<com.android.xml.permission.configfile.AllowInPowerSave> getAllowInPow… 162 …method public java.util.List<com.android.xml.permission.configfile.AllowUnthrottledLocation> getAl… [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionsState.java | 17 package com.android.server.pm.permission; 196 public int grantInstallPermission(BasePermission permission) { in grantInstallPermission() argument 197 return grantPermission(permission, UserHandle.USER_ALL); in grantInstallPermission() 208 public int revokeInstallPermission(BasePermission permission) { in revokeInstallPermission() argument 209 return revokePermission(permission, UserHandle.USER_ALL); in revokeInstallPermission() 221 public int grantRuntimePermission(BasePermission permission, int userId) { in grantRuntimePermission() argument 226 return grantPermission(permission, userId); in grantRuntimePermission() 238 public int revokeRuntimePermission(BasePermission permission, int userId) { in revokeRuntimePermission() argument 243 return revokePermission(permission, userId); in revokeRuntimePermission() 336 String permission = mPermissions.keyAt(i); in getPermissions() local [all …]
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 91 public static int checkPermission(@NonNull Context context, @NonNull String permission, in checkPermission() argument 93 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { in checkPermission() 98 String op = appOpsManager.permissionToOp(permission); in checkPermission() 132 @NonNull String permission) { in checkSelfPermission() argument 133 return checkPermission(context, permission, Process.myPid(), in checkSelfPermission() 150 @NonNull String permission, @Nullable String packageName) { in checkCallingPermission() argument 154 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingPermission() 169 @NonNull String permission) { in checkCallingOrSelfPermission() argument 172 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermission()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 71 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission() local 72 return (permission == PackageManager.PERMISSION_GRANTED); in checkConfigOverridePermission() 87 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid); in checkChangePermission() local 88 return (permission == PackageManager.PERMISSION_GRANTED); in checkChangePermission() 103 int permission = mWifiPermissionsWrapper.getAccessWifiStatePermission(uid); in checkWifiAccessPermission() local 104 return (permission == PackageManager.PERMISSION_GRANTED); in checkWifiAccessPermission() 158 String permissionType = Manifest.permission.ACCESS_FINE_LOCATION; in checkCallersLocationPermission() 161 permissionType = Manifest.permission.ACCESS_COARSE_LOCATION; in checkCallersLocationPermission() 203 Manifest.permission.ACCESS_FINE_LOCATION, uid) in checkCallersFineLocationPermission() 226 return mWifiPermissionsWrapper.getUidPermission(Manifest.permission.LOCATION_HARDWARE, uid) in checkCallersHardwareLocationPermission() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 332 @RequiresPermission(android.Manifest.permission.BACKUP) 361 @RequiresPermission(android.Manifest.permission.BACKUP) 379 @RequiresPermission(android.Manifest.permission.BACKUP) 400 @RequiresPermission(android.Manifest.permission.BACKUP) 402 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in isBackupServiceActive() 424 @RequiresPermission(android.Manifest.permission.BACKUP) 444 @RequiresPermission(android.Manifest.permission.BACKUP) 464 @RequiresPermission(android.Manifest.permission.BACKUP) 484 @RequiresPermission(android.Manifest.permission.BACKUP) 526 @RequiresPermission(android.Manifest.permission.BACKUP) [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TelecomManager.java | 795 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 821 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 842 @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) 949 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, 950 android.Manifest.permission.READ_PHONE_STATE 975 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 994 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 1257 android.Manifest.permission.MODIFY_PHONE_STATE, 1258 android.Manifest.permission.WRITE_SECURE_SETTINGS}) 1296 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsMmTelManager.java | 362 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 396 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 432 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 466 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 500 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 530 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE) 561 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 588 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 603 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 616 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE) [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | PermissionsSummaryHelper.java | 19 import android.permission.PermissionControllerManager; 20 import android.permission.RuntimePermissionPresentationInfo; 42 RuntimePermissionPresentationInfo permission = permissions.get(i); in getPermissionSummary() 44 if (permission.isGranted()) { in getPermissionSummary() 45 if (permission.isStandard()) { in getPermissionSummary() 46 grantedStandardLabels.add(permission.getLabel()); in getPermissionSummary()
|
/frameworks/base/core/java/android/content/rollback/ |
D | RollbackManager.java | 82 android.Manifest.permission.MANAGE_ROLLBACKS, 83 android.Manifest.permission.TEST_MANAGE_ROLLBACKS 112 android.Manifest.permission.MANAGE_ROLLBACKS, 113 android.Manifest.permission.TEST_MANAGE_ROLLBACKS 200 android.Manifest.permission.MANAGE_ROLLBACKS, 201 android.Manifest.permission.TEST_MANAGE_ROLLBACKS 223 @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS) 244 @RequiresPermission(android.Manifest.permission.TEST_MANAGE_ROLLBACKS)
|
/frameworks/base/core/java/android/security/keystore/recovery/ |
D | RecoveryController.java | 284 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 298 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 331 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 362 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 387 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 409 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 424 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 447 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 472 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) 497 @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 17 package android.permission; 22 import static android.permission.PermissionControllerManager.COUNT_ONLY_WHEN_GRANTED; 23 import static android.permission.PermissionControllerManager.COUNT_WHEN_SYSTEM; 46 import android.permission.PermissionControllerManager.CountPermissionAppsFlag; 203 @NonNull String permission, @PermissionGrantState int grantState, in onSetRuntimePermissionGrantStateByDeviceAdmin() argument 228 enforceCallingPermission(Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, null); in onBind() 264 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind() 282 enforceCallingPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, null); in onBind() 302 enforceCallingPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS, null); in onBind() 318 enforceCallingPermission(Manifest.permission.GET_RUNTIME_PERMISSIONS, null); in onBind() [all …]
|
/frameworks/base/core/java/android/service/persistentdata/ |
D | PersistentDataBlockManager.java | 119 @RequiresPermission(android.Manifest.permission.ACCESS_PDB_STATE) 148 @RequiresPermission(android.Manifest.permission.OEM_UNLOCK_STATE) 162 @RequiresPermission(android.Manifest.permission.OEM_UNLOCK_STATE) 177 android.Manifest.permission.READ_OEM_UNLOCK_STATE, 178 android.Manifest.permission.OEM_UNLOCK_STATE 196 android.Manifest.permission.READ_OEM_UNLOCK_STATE, 197 android.Manifest.permission.OEM_UNLOCK_STATE
|