/frameworks/base/tools/aapt2/java/ |
D | ManifestClassGenerator_test.cpp | 36 <permission android:name="android.permission.ACCESS_INTERNET" /> 37 <permission android:name="android.DO_DANGEROUS_THINGS" /> 38 <permission android:name="com.test.sample.permission.HUH" /> 39 <permission-group android:name="foo.bar.PERMISSION" /> 46 ASSERT_THAT(actual, HasSubstr("public static final class permission {")); 49 const size_t permission_start_pos = actual.find("public static final class permission {"); 84 <permission android:name="android.permission.ACCESS_INTERNET" /> 85 <!-- @deprecated This permission is for playing outside. --> 86 <permission android:name="android.permission.PLAY_OUTSIDE" /> 87 <!-- 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/core/java/android/content/ |
D | PermissionChecker.java | 124 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForDataDelivery() argument 125 return checkPermissionCommon(context, permission, pid, uid, packageName, in checkPermissionForDataDelivery() 161 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForPreflight() argument 162 return checkPermissionCommon(context, permission, pid, uid, packageName, in checkPermissionForPreflight() 195 @NonNull String permission) { in checkSelfPermissionForDataDelivery() argument 196 return checkPermissionForDataDelivery(context, permission, Process.myPid(), in checkSelfPermissionForDataDelivery() 230 @NonNull String permission) { in checkSelfPermissionForPreflight() argument 231 return checkPermissionForPreflight(context, permission, Process.myPid(), in checkSelfPermissionForPreflight() 263 @NonNull String permission, @Nullable String packageName) { in checkCallingPermissionForDataDelivery() argument 267 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingPermissionForDataDelivery() [all …]
|
/frameworks/base/core/java/android/os/image/ |
D | DynamicSystemManager.java | 65 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 81 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 97 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 112 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 126 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 145 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 161 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 177 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 194 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) 204 @RequiresPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM) [all …]
|
/frameworks/base/test-base/src/android/test/ |
D | AndroidTestCase.java | 99 String packageName, String className, String permission) { in assertActivityRequiresPermission() argument 106 fail("expected security exception for " + permission); in assertActivityRequiresPermission() 109 assertTrue("error message should contain " + permission + ".", in assertActivityRequiresPermission() 110 expected.getMessage().contains(permission)); in assertActivityRequiresPermission() 122 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission() argument 125 fail("expected SecurityException requiring " + permission); in assertReadingContentUriRequiresPermission() 128 assertTrue("error message should contain " + permission + ".", in assertReadingContentUriRequiresPermission() 129 expected.getMessage().contains(permission)); in assertReadingContentUriRequiresPermission() 141 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission() argument 144 fail("expected SecurityException requiring " + permission); in assertWritingContentUriRequiresPermission() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
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 …]
|
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()
|
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | RollbackTest.java | 96 Manifest.permission.INSTALL_PACKAGES, in testBasic() 97 Manifest.permission.DELETE_PACKAGES, in testBasic() 98 Manifest.permission.TEST_MANAGE_ROLLBACKS, in testBasic() 99 Manifest.permission.MANAGE_ROLLBACKS); in testBasic() 182 Manifest.permission.INSTALL_PACKAGES, in testAvailableRollbackPersistence() 183 Manifest.permission.DELETE_PACKAGES, in testAvailableRollbackPersistence() 184 Manifest.permission.TEST_MANAGE_ROLLBACKS); in testAvailableRollbackPersistence() 239 Manifest.permission.INSTALL_PACKAGES, in testAvailableMultiPackageRollbackPersistence() 240 Manifest.permission.DELETE_PACKAGES, in testAvailableMultiPackageRollbackPersistence() 241 Manifest.permission.TEST_MANAGE_ROLLBACKS); in testAvailableMultiPackageRollbackPersistence() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkScoreManager.java | 19 import android.Manifest.permission; 247 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 248 android.Manifest.permission.REQUEST_NETWORK_SCORES}) 265 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES) 282 @RequiresPermission(android.Manifest.permission.REQUEST_NETWORK_SCORES) 302 @RequiresPermission(android.Manifest.permission.SCORE_NETWORKS) 324 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 325 android.Manifest.permission.REQUEST_NETWORK_SCORES}) 346 @RequiresPermission(anyOf = {android.Manifest.permission.SCORE_NETWORKS, 347 android.Manifest.permission.REQUEST_NETWORK_SCORES}) [all …]
|
/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/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 …]
|
D | DefaultPermissionGrantPolicy.java | 17 package com.android.server.pm.permission; 51 import android.permission.PermissionManager; 130 PHONE_PERMISSIONS.add(Manifest.permission.READ_PHONE_STATE); 131 PHONE_PERMISSIONS.add(Manifest.permission.CALL_PHONE); 132 PHONE_PERMISSIONS.add(Manifest.permission.READ_CALL_LOG); 133 PHONE_PERMISSIONS.add(Manifest.permission.WRITE_CALL_LOG); 134 PHONE_PERMISSIONS.add(Manifest.permission.ADD_VOICEMAIL); 135 PHONE_PERMISSIONS.add(Manifest.permission.USE_SIP); 136 PHONE_PERMISSIONS.add(Manifest.permission.PROCESS_OUTGOING_CALLS); 141 CONTACTS_PERMISSIONS.add(Manifest.permission.READ_CONTACTS); [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsMmTelManager.java | 238 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, 239 android.Manifest.permission.READ_PRECISE_PHONE_STATE 284 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 327 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, 328 android.Manifest.permission.READ_PRECISE_PHONE_STATE}) 370 @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 400 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, 401 android.Manifest.permission.READ_PRECISE_PHONE_STATE}) 426 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 464 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, [all …]
|
/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() 159 String permissionType = Manifest.permission.ACCESS_FINE_LOCATION; in checkCallersLocationPermission() 162 permissionType = Manifest.permission.ACCESS_COARSE_LOCATION; in checkCallersLocationPermission() 204 Manifest.permission.ACCESS_FINE_LOCATION, uid) in checkCallersFineLocationPermission() 227 return mWifiPermissionsWrapper.getUidPermission(Manifest.permission.LOCATION_HARDWARE, uid) in checkCallersHardwareLocationPermission() [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/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/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/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/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) 265 @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/telephony/java/android/telephony/ |
D | TelephonyManager.java | 544 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 1312 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 1366 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 1771 @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) 1789 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 1832 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 1876 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 1900 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 1936 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) 2001 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) [all …]
|
/frameworks/base/core/java/android/os/ |
D | Vibrator.java | 166 @RequiresPermission(android.Manifest.permission.VIBRATE_ALWAYS_ON) 175 @RequiresPermission(android.Manifest.permission.VIBRATE_ALWAYS_ON) 190 @RequiresPermission(android.Manifest.permission.VIBRATE) 207 @RequiresPermission(android.Manifest.permission.VIBRATE) 240 @RequiresPermission(android.Manifest.permission.VIBRATE) 270 @RequiresPermission(android.Manifest.permission.VIBRATE) 287 @RequiresPermission(android.Manifest.permission.VIBRATE) 292 @RequiresPermission(android.Manifest.permission.VIBRATE) 302 @RequiresPermission(android.Manifest.permission.VIBRATE) 309 @RequiresPermission(android.Manifest.permission.VIBRATE)
|