/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | PackageManagersTest.kt | 65 requestedPermissions = null in hasRequestPermission_requestedPermissionsIsNull_returnFalse() 78 requestedPermissions = emptyArray() in hasRequestPermission_notRequested_returnFalse() 91 requestedPermissions = arrayOf(PERMISSION_A) in hasRequestPermission_requested_returnTrue() 115 requestedPermissions = null in hasGrantPermission_requestedPermissionsIsNull_returnFalse() 128 requestedPermissions = arrayOf(PERMISSION_B) in hasGrantPermission_notRequested_returnFalse() 142 requestedPermissions = arrayOf(PERMISSION_A, PERMISSION_B) in hasGrantPermission_notGranted_returnFalse() 156 requestedPermissions = arrayOf(PERMISSION_A, PERMISSION_B) in hasGrantPermission_granted_returnTrue()
|
/frameworks/base/core/java/android/content/pm/ |
D | InstantAppInfo.java | 46 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument 50 mRequestedPermissions = requestedPermissions; in InstantAppInfo() 55 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument 59 mRequestedPermissions = requestedPermissions; in InstantAppInfo()
|
D | PackageInfo.java | 226 public String[] requestedPermissions; field in PackageInfo 608 dest.writeString8Array(requestedPermissions); in writeToParcel() 682 requestedPermissions = source.createString8Array(); in PackageInfo()
|
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/ |
D | DevicePermissionPolicyTest.kt | 42 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testOnAppIdRemoved_clearPermissionFlags() 65 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testOnDeviceIdRemoved_clearPermissionFlags() 96 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testRemoveInactiveDevicesPermission_clearPermissionFlags() 143 PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_1, PERMISSION_NAME_0) in testOnStorageVolumeMounted_trimsPermissionsNotRequestAnymore() 162 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_1)) in testOnStorageVolumeMounted_trimsPermissionsNotRequestAnymore() 183 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_1)) in testResetRuntimePermissions_trimsPermissionStates() 208 requestedPermissions = setOf(PERMISSION_NAME_1, PERMISSION_NAME_0) in testResetRuntimePermissions_keepsPermissionStates() 213 mockAndroidPackage(PACKAGE_NAME_2, requestedPermissions = setOf(PERMISSION_NAME_0)) in testResetRuntimePermissions_keepsPermissionStates()
|
D | AppIdPermissionPolicyTest.kt | 43 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared() 72 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testOnStorageVolumeMounted_nonSystemAppAfterNonSystemUpdate_remainsRevoked() 105 requestedPermissions = setOf(PERMISSION_NAME_0), in testOnPackageRemoved_packageIsRemoved_permissionDefinitionsAndStatesAreUpdated() 111 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testOnPackageRemoved_packageIsRemoved_permissionDefinitionsAndStatesAreUpdated() 201 mockAndroidPackage(PACKAGE_NAME_2, requestedPermissions = setOf(PERMISSION_NAME_0)), in testOnPackageInstalled_requestedPermissionAlsoRequestedBySystemApp_exemptFlagIsRetained() 262 requestedPermissions = setOf(PERMISSION_NAME_0), in testOnPackageInstalled()
|
D | AppIdPermissionPolicyPermissionDefinitionsTest.kt | 434 requestedPermissions = setOf(PERMISSION_NAME_0) in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked() 574 requestedPermissions = setOf(PERMISSION_READ_EXTERNAL_STORAGE), in testRevokePermissionsOnPackageUpdate() 590 requestedPermissions = setOf(PERMISSION_READ_EXTERNAL_STORAGE), in testRevokePermissionsOnPackageUpdate() 605 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testEvaluatePermissionState_normalPermissionRequestedByInstalledPackage_getsGranted() 705 requestedPermissions = setOf(permissionName), in testEvaluateNormalPermissionStateWithPermissionChanges()
|
D | AppIdPermissionPolicyPermissionStatesTest.kt | 507 requestedPermissions = setOf( in testEvaluatePermissionState_noLongerImplicitNearbyWasGranted_getsRuntimeGranted() 741 requestedPermissions = setOf( in testInheritImplicitPermissionStates() 802 requestedPermissions: Set<String> = setOf(permissionName), in testEvaluatePermissionState() 829 requestedPermissions = requestedPermissions, in testEvaluatePermissionState()
|
D | BasePermissionPolicyTest.kt | 205 requestedPermissions: Set<String> = emptySet(), in <lambda>() 216 whenever(this.requestedPermissions).thenReturn(requestedPermissions) in <lambda>()
|
D | AppIdPermissionPolicyPermissionResetTest.kt | 75 mockAndroidPackage(PACKAGE_NAME_1, requestedPermissions = setOf(PERMISSION_NAME_0)) in testResetRuntimePermissions()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PermissionHelperTest.java | 86 testPkgInfo.requestedPermissions = new String[]{ Manifest.permission.POST_NOTIFICATIONS }; in setUp() 109 notThis.requestedPermissions = new String[] {"something else"}; in testGetAppsRequestingPermission() 116 first.requestedPermissions = in testGetAppsRequestingPermission() 123 second.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsRequestingPermission() 149 info.requestedPermissions = new String[]{"something else"}; in testHasRequestedPermission_otherPermission() 179 info.requestedPermissions = in testHasRequestedPermission_singlePermissions() 195 info.requestedPermissions = in testHasRequestedPermission_twoPermissions() 218 first.requestedPermissions = in testGetAppsGrantedPermission() 225 second.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in testGetAppsGrantedPermission() 376 testPkgInfo.requestedPermissions = new String[]{Manifest.permission.RECORD_AUDIO}; in testSetNotificationPermission_doesntRequestNotChanged() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UnarchiveActivity.java | 128 String[] requestedPermissions = null; in getRequestedPermissions() local 130 requestedPermissions = getPackageManager() in getRequestedPermissions() 131 .getPackageInfo(callingPackage, GET_PERMISSIONS).requestedPermissions; in getRequestedPermissions() 136 return requestedPermissions == null ? new String[]{} : requestedPermissions; in getRequestedPermissions()
|
D | InstallStart.java | 250 if (packageInfo.requestedPermissions != null in isUidRequestingPermission() 251 && Arrays.asList(packageInfo.requestedPermissions).contains(permission)) { in isUidRequestingPermission()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | AppIdPermissionUpgrade.kt | 86 packageState.androidPackage!!.requestedPermissions.forEach { permissionName -> in <lambda>() 107 packageState.androidPackage!!.requestedPermissions in <lambda>() 137 packageState.androidPackage!!.requestedPermissions in <lambda>() 166 val requestedPermissionNames = androidPackage.requestedPermissions in <lambda>() 191 packageState.androidPackage!!.requestedPermissions in <lambda>() 238 val requestedPermissionNames = androidPackage.requestedPermissions in <lambda>()
|
D | DevicePermissionPolicy.kt | 136 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() 140 permissionName in it.androidPackage!!.requestedPermissions in <lambda>() 153 val requestedPermissions = MutableIndexedSet<String>() in <lambda>() constant 155 requestedPermissions += it.androidPackage!!.requestedPermissions in <lambda>() 163 if (permissionName !in requestedPermissions) { in <lambda>()
|
D | AppIdPermissionPolicy.kt | 184 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() 191 it.isSystem && permissionName in it.androidPackage!!.requestedPermissions in <lambda>() 237 if (permissionName in packageState.androidPackage!!.requestedPermissions) { in <lambda>() 246 permissionName in it.androidPackage!!.requestedPermissions && in <lambda>() 282 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() 290 permissionName in it.androidPackage!!.requestedPermissions in <lambda>() 687 val requestedPermissions = MutableIndexedSet<String>() in <lambda>() constant 696 requestedPermissions += it.androidPackage!!.requestedPermissions in <lambda>() 700 if (permissionName !in requestedPermissions) { in <lambda>() 791 permissionName in it.androidPackage!!.requestedPermissions in <lambda>() [all …]
|
D | PermissionService.kt | 842 if (permissionName !in packageState.androidPackage!!.requestedPermissions) { in <lambda>() 962 if (permissionName !in androidPackage.requestedPermissions && oldFlags == 0) { in <lambda>() 1364 if (permissionName in androidPackage.requestedPermissions) { in <lambda>() 1374 permissionName in sharedUserPackage.requestedPermissions in <lambda>() 1449 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>() 1854 androidPackage.requestedPermissions.forEachIndexed { _, requestedPermission -> in <lambda>() 1927 if (permissionName in androidPackage.requestedPermissions) { in <lambda>() 1945 androidPackage.requestedPermissions.forEach requestedPermissions@{ permissionName -> in <lambda>() 1946 val permission = permissions[permissionName] ?: return@requestedPermissions in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PermissionHelper.java | 88 if (pi == null || pi.requestedPermissions == null) { in hasRequestedPermission() 91 for (String perm : pi.requestedPermissions) { in hasRequestedPermission() 115 if (pi.requestedPermissions == null) { in getAppsRequestingPermission() 118 for (String perm : pi.requestedPermissions) { in getAppsRequestingPermission() 292 String[] permissions = pi.requestedPermissions; in packageRequestsNotificationPermission()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DefaultPermissionGrantPolicy.java | 435 if (ArrayUtils.isEmpty(pkg.requestedPermissions)) { in grantRuntimePermissionsForSystemPackage() 439 for (String permission : pkg.requestedPermissions) { in grantRuntimePermissionsForSystemPackage() 473 || ArrayUtils.isEmpty(pkg.requestedPermissions)) { in grantPermissionsToSysComponentsAndPrivApps() 485 || ArrayUtils.isEmpty(pkg.requestedPermissions) in grantPermissionsToSysComponentsAndPrivApps() 1208 if (pkg == null || ArrayUtils.isEmpty(pkg.requestedPermissions)) { in revokeRuntimePermissions() 1211 Set<String> revokablePermissions = new ArraySet<>(Arrays.asList(pkg.requestedPermissions)); in revokeRuntimePermissions() 1278 String[] requestedPermissions = pkg.requestedPermissions; in grantRuntimePermissions() local 1279 if (ArrayUtils.isEmpty(requestedPermissions)) { in grantRuntimePermissions() 1286 .requestedPermissions; in grantRuntimePermissions() 1287 int size = requestedPermissions.length; in grantRuntimePermissions() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/ |
D | PackageManagers.kt | 77 return packageInfo?.requestedPermissions?.let { in getPackageInfoAsUserCached() 85 val index = packageInfo?.requestedPermissions?.indexOf(permission) ?: return false in getPackageInfoAsUserCached()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | AppIdAppOpUpgrade.kt | 43 if (permissionName in packageState.androidPackage!!.requestedPermissions) { in MutateStateScope()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 281 List<String> wearablePerms = Arrays.asList(pkgInfo.requestedPermissions); in installPackage() 313 if (existingPkgInfo.requestedPermissions != null) { in installPackage() 314 for (int i = 0; i < existingPkgInfo.requestedPermissions.length; ++i) { in installPackage() 319 Log.d(TAG, existingPkgInfo.requestedPermissions[i] + in installPackage() 322 wearablePerms.remove(existingPkgInfo.requestedPermissions[i]); in installPackage()
|
/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | RoleServicePlatformHelperImpl.java | 320 final Set<String> requestedPermissions = pkg.getRequestedPermissions(); in computePackageStateHash() 321 dataOutputStream.writeInt(requestedPermissions.size()); in computePackageStateHash() 322 for (String permissionName : requestedPermissions) { in computePackageStateHash()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/ |
D | PackageUtil.kt | 191 if (packageInfo.requestedPermissions != null in isUidRequestingPermission() 192 && listOf(*packageInfo.requestedPermissions!!).contains(permission) in isUidRequestingPermission()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 737 final ArraySet<String> requestedPermissions = new ArraySet<>(); in resetAppOpPermissionsIfNotRequestedForUid() local 745 if (packageInfo == null || packageInfo.requestedPermissions == null) { in resetAppOpPermissionsIfNotRequestedForUid() 748 Collections.addAll(requestedPermissions, packageInfo.requestedPermissions); in resetAppOpPermissionsIfNotRequestedForUid() 758 if (!requestedPermissions.contains(appOpPermission)) { in resetAppOpPermissionsIfNotRequestedForUid() 1065 || pkgInfo.requestedPermissions == null) { in addPackage() 1076 for (String permission : pkgInfo.requestedPermissions) { in addPackage()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppRegistry.java | 974 String[] requestedPermissions = new String[pkg.getRequestedPermissions().size()]; 975 pkg.getRequestedPermissions().toArray(requestedPermissions); 987 return new InstantAppInfo(appInfo, requestedPermissions, grantedPermissions); 992 requestedPermissions, grantedPermissions); 1215 String[] requestedPermissions = new String[outRequestedPermissions.size()]; 1216 outRequestedPermissions.toArray(requestedPermissions); 1222 requestedPermissions, grantedPermissions);
|