Home
last modified time | relevance | path

Searched refs:permissionName (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionPolicy.kt117 changedPermissionNames.forEachIndexed { _, permissionName -> in <lambda>() method
118 evaluatePermissionStateForAllPackages(permissionName, null) in <lambda>()
144 changedPermissionNames.forEachIndexed { _, permissionName -> in <lambda>() method
145 evaluatePermissionStateForAllPackages(permissionName, null) in <lambda>()
163 changedPermissionNames.forEachIndexed { _, permissionName -> in <lambda>() method
164 evaluatePermissionStateForAllPackages(permissionName, null) in <lambda>()
184 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() method
185 val permission = newState.systemState.permissions[permissionName] ?: return@forEach in <lambda>()
191 it.isSystem && permissionName in it.androidPackage!!.requestedPermissions in <lambda>()
213 val permissionName = permission.name in <lambda>() constant
[all …]
DPermissionService.kt229 permissionName: String, in <lambda>()
242 service.getState { with(policy) { getPermissions()[permissionName] } } in <lambda>()
348 override fun getPermissionGids(permissionName: String, userId: Int): IntArray { in <lambda>()
350 service.getState { with(policy) { getPermissions()[permissionName] } } in <lambda>()
370 val permissionName = permissionInfo.name in <lambda>() constant
371 requireNotNull(permissionName) { "permissionName cannot be null" } in <lambda>()
382 val permissionTree = getAndEnforcePermissionTree(permissionName) in <lambda>()
385 oldPermission = with(policy) { getPermissions()[permissionName] } in <lambda>()
388 "Not allowed to modify non-dynamic permission $permissionName" in <lambda>()
406 override fun removePermission(permissionName: String) { in <lambda>()
[all …]
DAppIdPermissionUpgrade.kt86 packageState.androidPackage!!.requestedPermissions.forEach { permissionName -> in <lambda>() method
87 if (permissionName in LEGACY_RESTRICTED_PERMISSIONS) { in <lambda>()
92 permissionName, in <lambda>()
168 STORAGE_PERMISSIONS.anyIndexed { _, permissionName -> in <lambda>() method
169 if (permissionName !in requestedPermissionNames) { in <lambda>()
173 with(policy) { getPermissionFlags(packageState.appId, userId, permissionName) } in <lambda>()
177 AURAL_VISUAL_MEDIA_PERMISSIONS.forEachIndexed { _, permissionName -> in <lambda>() method
178 if (permissionName in requestedPermissionNames) { in <lambda>()
179 grantRuntimePermission(packageState, userId, permissionName) in <lambda>()
240 VISUAL_MEDIA_PERMISSIONS.anyIndexed { _, permissionName -> in <lambda>() method
[all …]
DDevicePermissionPolicy.kt136 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() method
140 permissionName in it.androidPackage!!.requestedPermissions in <lambda>()
146 setPermissionFlags(appId, deviceId, userId, permissionName, 0) in <lambda>()
162 permissionFlags.forEachReversedIndexed { _, permissionName, _ -> in <lambda>() method
163 if (permissionName !in requestedPermissions) { in <lambda>()
164 setPermissionFlags(appId, deviceId, userId, permissionName, 0) in <lambda>()
209 permissionName: String in <lambda>()
216 ?.getWithDefault(permissionName, 0) in <lambda>()
222 " deviceId=$deviceId, permissionName=$permissionName," + in <lambda>()
243 permissionName: String, in <lambda>()
[all …]
DAppIdPermissionMigration.kt89 (permissionName, legacyPermissionState) -> in <lambda>() method
90 val permission = state.systemState.permissions[permissionName] in <lambda>()
94 "Dropping unknown permission $permissionName for app ID $appId" + in <lambda>()
99 permissionFlags[permissionName] = in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionAllowlist.java120 @NonNull String permissionName) { in getOemAppAllowlistState() argument
125 return permissions.get(permissionName); in getOemAppAllowlistState()
130 @NonNull String permissionName) { in getPrivilegedAppAllowlistState() argument
135 return permissions.get(permissionName); in getPrivilegedAppAllowlistState()
140 @NonNull String permissionName) { in getVendorPrivilegedAppAllowlistState() argument
145 return permissions.get(permissionName); in getVendorPrivilegedAppAllowlistState()
150 @NonNull String permissionName) { in getProductPrivilegedAppAllowlistState() argument
155 return permissions.get(permissionName); in getProductPrivilegedAppAllowlistState()
160 @NonNull String permissionName) { in getSystemExtPrivilegedAppAllowlistState() argument
165 return permissions.get(permissionName); in getSystemExtPrivilegedAppAllowlistState()
[all …]
DPermissionRegistry.java62 public Permission getPermission(@NonNull String permissionName) { in getPermission() argument
63 return mPermissions.get(permissionName); in getPermission()
70 public void removePermission(@NonNull String permissionName) { in removePermission() argument
71 mPermissions.remove(permissionName); in removePermission()
121 public ArraySet<String> getAppOpPermissionPackages(@NonNull String permissionName) { in getAppOpPermissionPackages() argument
122 return mAppOpPermissionPackages.get(permissionName); in getAppOpPermissionPackages()
125 public void addAppOpPermissionPackage(@NonNull String permissionName, in addAppOpPermissionPackage() argument
127 ArraySet<String> packageNames = mAppOpPermissionPackages.get(permissionName); in addAppOpPermissionPackage()
130 mAppOpPermissionPackages.put(permissionName, packageNames); in addAppOpPermissionPackage()
135 public void removeAppOpPermissionPackage(@NonNull String permissionName, in removeAppOpPermissionPackage() argument
[all …]
DPermissionManagerService.java226 public int checkPermission(String packageName, String permissionName, String persistentDeviceId, in checkPermission() argument
229 if (packageName == null || permissionName == null) { in checkPermission()
239 return mPermissionManagerServiceImpl.checkPermission(packageName, permissionName, in checkPermission()
242 return checkPermissionDelegate.checkPermission(packageName, permissionName, in checkPermission()
248 public int checkUidPermission(int uid, String permissionName, int deviceId) { in checkUidPermission() argument
250 if (permissionName == null) { in checkUidPermission()
261 return mPermissionManagerServiceImpl.checkUidPermission(uid, permissionName, in checkUidPermission()
264 return checkPermissionDelegate.checkUidPermission(uid, permissionName, in checkUidPermission()
506 public PermissionInfo getPermissionInfo(String permissionName, String packageName, int flags) { in getPermissionInfo() argument
507 return mPermissionManagerServiceImpl.getPermissionInfo(permissionName, flags, packageName); in getPermissionInfo()
[all …]
DLegacyPermissionState.java116 public PermissionState getPermissionState(@NonNull String permissionName, in getPermissionState() argument
123 return userState.getPermissionState(permissionName); in getPermissionState()
155 for (final String permissionName : permissionNames) { in hasPermissionState()
156 if (userState.getPermissionState(permissionName) != null) { in hasPermissionState()
237 public PermissionState getPermissionState(@NonNull String permissionName) { in getPermissionState() argument
238 return mPermissionStates.get(permissionName); in getPermissionState()
DPermissionManagerServiceInternal.java57 int checkPermission(@NonNull String packageName, @NonNull String permissionName, in checkPermission() argument
70 int checkUidPermission(int uid, @NonNull String permissionName, int deviceId); in checkUidPermission() argument
151 int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId); in getPermissionGids() argument
161 String[] getAppOpPermissionPackages(@NonNull String permissionName); in getAppOpPermissionPackages() argument
201 int checkPermission(@NonNull String packageName, @NonNull String permissionName, in checkPermission() argument
215 int checkUidPermission(int uid, @NonNull String permissionName, in checkUidPermission() argument
DAccessCheckDelegate.java266 public int checkPermission(@NonNull String packageName, @NonNull String permissionName, in checkPermission() argument
270 if (isDelegatePermission(permissionName)) { in checkPermission()
273 return checkPermission(SHELL_PKG, permissionName, persistentDeviceId, in checkPermission()
285 if (permissionGrants != null && permissionGrants.containsKey(permissionName)) { in checkPermission()
286 return permissionGrants.get(permissionName); in checkPermission()
290 return superImpl.apply(packageName, permissionName, persistentDeviceId, userId); in checkPermission()
294 public int checkUidPermission(int uid, @NonNull String permissionName, in checkUidPermission() argument
298 if (isDelegatePermission(permissionName)) { in checkUidPermission()
301 return checkUidPermission(Process.SHELL_UID, permissionName, in checkUidPermission()
310 if (permissionGrants != null && permissionGrants.containsKey(permissionName)) { in checkUidPermission()
[all …]
DPermissionManagerServiceImpl.java343 @Nullable String permissionName) {
353 if (POST_NOTIFICATIONS.equals(permissionName)
505 private String[] getAppOpPermissionPackagesInternal(@NonNull String permissionName) { in getAppOpPermissionPackagesInternal() argument
508 permissionName); in getAppOpPermissionPackagesInternal()
948 @NonNull String permissionName, @UserIdInt int userId) { in checkPermissionInternal() argument
972 if (checkSinglePermissionInternalLocked(uidState, permissionName, isInstantApp)) { in checkPermissionInternal()
976 final String fullerPermissionName = FULLER_PERMISSION_MAP.get(permissionName); in checkPermissionInternal()
988 @NonNull String permissionName, boolean isInstantApp) { in checkSinglePermissionInternalLocked() argument
989 if (!uidState.isPermissionGranted(permissionName)) { in checkSinglePermissionInternalLocked()
994 final Permission permission = mRegistry.getPermission(permissionName); in checkSinglePermissionInternalLocked()
[all …]
DPermission.java502 @NonNull String permissionName, int callingUid) { in enforcePermissionTree() argument
503 if (permissionName != null) { in enforcePermissionTree()
505 permissionName); in enforcePermissionTree()
518 @NonNull String permissionName) { in findPermissionTree() argument
521 if (permissionName.startsWith(permissionTreeName) in findPermissionTree()
522 && permissionName.length() > permissionTreeName.length() in findPermissionTree()
523 && permissionName.charAt(permissionTreeName.length()) == '.') { in findPermissionTree()
DPermissionManagerServiceLoggingDecorator.java312 public int[] getPermissionGids(@NonNull String permissionName, int userId) { in getPermissionGids() argument
313 Log.i(LOG_TAG, "getPermissionGids(permissionName = " + permissionName + ", userId = " in getPermissionGids()
315 return mService.getPermissionGids(permissionName, userId); in getPermissionGids()
320 public String[] getAppOpPermissionPackages(@NonNull String permissionName) { in getAppOpPermissionPackages() argument
321 Log.i(LOG_TAG, "getAppOpPermissionPackages(permissionName = " + permissionName + ")"); in getAppOpPermissionPackages()
322 return mService.getAppOpPermissionPackages(permissionName); in getAppOpPermissionPackages()
/frameworks/base/core/java/android/permission/
DIPermissionManager.aidl38 PermissionInfo getPermissionInfo(String permissionName, String packageName, int flags); in getPermissionInfo() argument
44 void removePermission(String permissionName); in removePermission() argument
46 int getPermissionFlags(String packageName, String permissionName, String persistentDeviceId, in getPermissionFlags() argument
49 void updatePermissionFlags(String packageName, String permissionName, int flagMask, in updatePermissionFlags() argument
62 boolean addAllowlistedRestrictedPermission(String packageName, String permissionName, in addAllowlistedRestrictedPermission() argument
65 boolean removeAllowlistedRestrictedPermission(String packageName, String permissionName, in removeAllowlistedRestrictedPermission() argument
68 void grantRuntimePermission(String packageName, String permissionName, in grantRuntimePermission() argument
71 void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
76 boolean shouldShowRequestPermissionRationale(String packageName, String permissionName, in shouldShowRequestPermissionRationale() argument
79 boolean isPermissionRevokedByPolicy(String packageName, String permissionName, int deviceId, in isPermissionRevokedByPolicy() argument
[all …]
DPermissionManager.java442 public PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo() argument
446 return mPermissionManager.getPermissionInfo(permissionName, packageName, flags); in getPermissionInfo()
530 public void removePermission(@NonNull String permissionName) { in removePermission() argument
532 mPermissionManager.removePermission(permissionName); in removePermission()
598 @NonNull String permissionName) { in isPermissionRevokedByPolicy() argument
600 return mPermissionManager.isPermissionRevokedByPolicy(packageName, permissionName, in isPermissionRevokedByPolicy()
609 @NonNull String packageName, @NonNull String permissionName, int userId) { in shouldTraceGrant() argument
636 @NonNull String permissionName, @NonNull UserHandle user) { in grantRuntimePermission() argument
642 grantRuntimePermissionInternal(packageName, permissionName, persistentDeviceId, user); in grantRuntimePermission()
663 @NonNull String permissionName, @NonNull String persistentDeviceId) { in grantRuntimePermission() argument
[all …]
DPermissionControllerService.java196 @NonNull String permissionName, @NonNull Runnable callback); in onRevokeRuntimePermission() argument
346 public void onGetGroupOfPlatformPermission(@NonNull String permissionName, in onGetGroupOfPlatformPermission() argument
579 public void revokeRuntimePermission(String packageName, String permissionName) { in onBind() argument
581 checkNotNull(permissionName, "permissionName"); in onBind()
588 permissionName, latch::countDown); in onBind()
706 @NonNull String permissionName, in onBind()
709 Objects.requireNonNull(permissionName); in onBind()
712 permissionName, callback::complete); in onBind()
DIPermissionController.aidl39 void revokeRuntimePermission(String packageName, String permissionName); in revokeRuntimePermission() argument
55 in String permissionName, in getGroupOfPlatformPermission() argument
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppOpService.kt122 AppOpsManager.opToPermission(appOpCode)?.let { permissionName -> in <lambda>() method
125 if (appOpCode == AppOpsManager.permissionToOpCode(permissionName)) { in <lambda>()
126 val permission = permissions[permissionName]!! in <lambda>()
128 runtimePermissionNameToAppOp[permissionName] = appOpCode in <lambda>()
129 runtimeAppOpToPermissionNames[appOpCode] = permissionName in <lambda>()
135 foregroundToBackgroundPermissionName[permissionName] = in <lambda>()
139 .add(permissionName) in <lambda>()
154 runtimePermissionNameToAppOp.forEachIndexed { _, permissionName, appOpCode -> in <lambda>() method
156 getUidModeFromPermissionState(appId, userId, permissionName, deviceId) in <lambda>()
175 val permissionName = runtimeAppOpToPermissionNames[op] in <lambda>() constant
[all …]
DAppIdAppOpUpgrade.kt42 val permissionName = AppOpsManager.opToPermission(AppOpsManager.OP_SCHEDULE_EXACT_ALARM) in MutateStateScope() constant
43 if (permissionName in packageState.androidPackage!!.requestedPermissions) { in MutateStateScope()
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessUri.kt51 data class PermissionUri(val permissionName: String) : AccessUri(SCHEME) { constant in com.android.server.permission.access.PermissionUri
52 override fun toString(): String = "$scheme:///$permissionName" in toString()
59 data class DevicePermissionUri(val permissionName: String, val deviceId: Int) : AccessUri(SCHEME) { constant in com.android.server.permission.access.DevicePermissionUri
60 override fun toString(): String = "$scheme:///$permissionName/$deviceId" in toString()
/frameworks/base/core/java/android/app/admin/
DPackagePermissionPolicyKey.java60 @NonNull String permissionName) { in PackagePermissionPolicyKey() argument
64 PolicySizeVerifier.enforceMaxStringLength(permissionName, "permissionName"); in PackagePermissionPolicyKey()
67 mPermissionName = Objects.requireNonNull((permissionName)); in PackagePermissionPolicyKey()
120 String permissionName = parser.getAttributeValue( in readFromXml() local
122 return new PackagePermissionPolicyKey(identifier, packageName, permissionName); in readFromXml()
/frameworks/native/libs/gui/
DLayerStatePermissions.cpp50 for (const auto& [permissionName, permissionVal] : mPermissionMap) { in getTransactionPermissions()
51 if (callingThreadHasPermission(permissionName, pid, uid)) { in getTransactionPermissions()
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt232 permissionName: String, in <lambda>()
241 whenever(name).thenReturn(permissionName) in <lambda>()
325 permissionName: String, in <lambda>()
327 ): Permission? = state.systemState.permissions[permissionName] in <lambda>()
342 permissionName: String, in <lambda>()
345 state.userStates[userId]?.appIdPermissionFlags?.get(appId).getWithDefault(permissionName, 0) in <lambda>()
350 permissionName: String, in <lambda>()
356 }.put(permissionName, flags) in <lambda>()
DDevicePermissionPolicyTest.kt245 permissionName: String, in getPermissionFlags()
251 ?.getWithDefault(permissionName, 0) in getPermissionFlags()
259 permissionName: String, in getPermissionFlags()
269 permissionFlags.putWithDefault(permissionName, newFlags, 0) in getPermissionFlags()

123