/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | KotlinUtils.kt | 399 val perm = app.packageManager.getPermissionInfo(splitPerm.splitPermission, 0) in <lambda>() constant 400 return perm != null && perm.protection != PermissionInfo.PROTECTION_DANGEROUS in <lambda>() 433 for ((permName, perm) in group.permissions) { in <lambda>() constant 438 if (flagMask and (perm.flags xor flagsToSet) != 0) { in <lambda>() 442 newPerms[permName] = LightPermission(group.packageInfo, perm.permInfo, in <lambda>() 443 perm.isGrantedIncludingAppOp, perm.flags or flagsToSet, perm.foregroundPerms) in <lambda>() 505 val perm = group.permissions[permName] ?: continue in <lambda>() constant 508 val (newPerm, shouldKill) = grantRuntimePermission(app, perm, isOneTime, group) in <lambda>() 543 perm: LightPermission, in <lambda>() 550 val isGrantingAllowed = (!pkgInfo.isInstantApp || perm.isInstantPerm) && in <lambda>() [all …]
|
D | UserSensitiveFlagsUtils.kt | 66 for (perm in pkg.requestedPermissions) { in updateUserSensitiveForUidsInternal() constant 67 var flags = uidState.permStates[perm] ?: continue in updateUserSensitiveForUidsInternal() 70 val oldFlags = pm.getPermissionFlags(perm, pkg.packageName, user) and in updateUserSensitiveForUidsInternal() 73 pm.updatePermissionFlags(perm, pkg.packageName, in updateUserSensitiveForUidsInternal() 79 "${pkg.packageName} (uid $uid) permission $perm", e) in updateUserSensitiveForUidsInternal()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 147 PermissionInfo perm; in updateUi() local 149 perm = pm.getPermissionInfo(mPackageInfo.requestedPermissions[i], 0); in updateUi() 156 if ((perm.flags & PermissionInfo.FLAG_INSTALLED) == 0 in updateUi() 157 || (perm.flags & PermissionInfo.FLAG_REMOVED) != 0) { in updateUi() 161 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) == 0) { in updateUi() 165 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in updateUi() 170 PermissionGroupInfo group = getGroup(Utils.getGroupOfPermission(perm), pm); in updateUi() 171 if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi() 173 PreferenceGroup pref = findOrCreate(group != null ? group : perm, pm, prefs); in updateUi() 174 pref.addPreference(getPreference(perm, group)); in updateUi() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | GrantPermissionsViewModel.kt | 239 val allAffectedGranted = state.affectedPermissions.all { perm -> in <lambda>() method 240 appPermGroup.permissions[perm]?.isGrantedIncludingAppOp == true in <lambda>() 276 for (perm in fgState.affectedPermissions) { in <lambda>() constant 277 if (fgGroup.permissions[perm]?.isGrantedIncludingAppOp == false) { in <lambda>() 283 if (fgGroup.permissions[perm]?.isUserSet == true) { in <lambda>() 508 val filteredPermissions = unfilteredAffectedPermissions.filter { perm -> in <lambda>() method 509 val group = getGroupWithPerm(perm, groups) in <lambda>() 510 group != null && isPermissionGrantableAndNotFixed(perm, group) in <lambda>() 512 for (perm in filteredPermissions) { in <lambda>() constant 513 val group = getGroupWithPerm(perm, groups)!! in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoAllAppPermissionsFragment.java | 131 PermissionInfo perm; in updateUi() local 133 perm = pm.getPermissionInfo(info.requestedPermissions[i], /* flags= */ 0); in updateUi() 140 if ((perm.flags & PermissionInfo.FLAG_INSTALLED) == 0 in updateUi() 141 || (perm.flags & PermissionInfo.FLAG_REMOVED) != 0) { in updateUi() 146 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) in updateUi() 151 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in updateUi() 156 if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi() 158 PackageItemInfo group = getGroup(Utils.getGroupOfPermission(perm), pm); in updateUi() 160 group = perm; in updateUi() 167 pref.addPreference(getPreference(info, perm, group, pm)); in updateUi() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | BackupHelper.java | 452 private static boolean isPermGrantedIncludingAppOp(@NonNull Permission perm) { in isPermGrantedIncludingAppOp() argument 453 return perm.isGranted() && (!perm.affectsAppOp() || perm.isAppOpAllowed()); in isPermGrantedIncludingAppOp() 465 private static @Nullable BackupPermissionState fromPermission(@NonNull Permission perm, in fromPermission() argument 467 int grantFlags = perm.getFlags(); in fromPermission() 473 if (!perm.isUserSet() && perm.isGrantedByDefault()) { in fromPermission() 480 isNotInDefaultGrantState = isPermGrantedIncludingAppOp(perm); in fromPermission() 483 isNotInDefaultGrantState = !isPermGrantedIncludingAppOp(perm); in fromPermission() 484 permissionWasReviewed = !perm.isReviewRequired(); in fromPermission() 487 if (isNotInDefaultGrantState || perm.isUserSet() || perm.isUserFixed() in fromPermission() 489 return new BackupPermissionState(perm.getName(), isPermGrantedIncludingAppOp(perm), in fromPermission() [all …]
|
D | RuntimePermissionsUpgradeController.kt | 207 for ((perm, flags) in requestedPerms.zip(requestedPermFlags)) { in <lambda>() 209 perm == permission.ACCESS_BACKGROUND_LOCATION) { in <lambda>() 215 if (perm == permission.ACCESS_MEDIA_LOCATION) { in <lambda>() 219 if (perm == permission.READ_EXTERNAL_STORAGE && in <lambda>() 381 val perm = bgApp.allPermissions[permission.ACCESS_BACKGROUND_LOCATION] ?: continue in <lambda>() constant 385 LightPermission(perm.pkgInfo, perm.permInfo, perm.isGrantedIncludingAppOp, in <lambda>() 386 perm.flags or FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT, in <lambda>() 387 perm.foregroundPerms) in <lambda>() 443 val perm = appPermGroup.permissions[permission.ACCESS_MEDIA_LOCATION] in <lambda>() constant 446 if (!perm.isUserSet && !perm.isSystemFixed && !perm.isPolicyFixed && in <lambda>() [all …]
|
D | PermissionControllerServiceImpl.java | 256 Permission perm = perms.get(permNum); in revokePermissionGroups() local 259 if (perm.isGrantedIncludingAppOp()) { in revokePermissionGroups() 260 revokedPerms.add(perm.getName()); in revokePermissionGroups() 550 Permission perm = group.getPermission(permName); in onSetRuntimePermissionGrantStateByDeviceAdmin() local 551 if (perm == null) { in onSetRuntimePermissionGrantStateByDeviceAdmin() 557 if (AdminRestrictedPermissionsUtils.mayAdminGrantPermission(perm.getName(), in onSetRuntimePermissionGrantStateByDeviceAdmin() 559 perm.setPolicyFixed(true); in onSetRuntimePermissionGrantStateByDeviceAdmin() 564 perm.setPolicyFixed(false); in onSetRuntimePermissionGrantStateByDeviceAdmin() 568 perm.setPolicyFixed(true); in onSetRuntimePermissionGrantStateByDeviceAdmin() 572 perm.setPolicyFixed(false); in onSetRuntimePermissionGrantStateByDeviceAdmin()
|
D | AutoRevokePermissions.kt | 95 val granted = group.permissions.any { (_, perm) -> in <lambda>() method 96 perm.isGrantedIncludingAppOp && perm.name !in EXEMPT_PERMISSIONS in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | AppPermissionsFragmentWear.java | 146 for (PermissionInfo perm : getPermissionInfosFromGroup(group)) { in onResume() 147 setPreferenceCheckedIfPresent(perm.name, in onResume() 148 group.areRuntimePermissionsGranted(new String[]{ perm.name })); in onResume() 180 for (PermissionInfo perm : getPermissionInfosFromGroup(group)) { in initializePermissionGroupList() 181 final SwitchPreference pref = createSwitchPreferenceForPermission(group, perm); in initializePermissionGroupList() 208 PermissionInfo perm) { in createSwitchPreferenceForPermission() argument 210 pref.setKey(perm.name); in createSwitchPreferenceForPermission() 211 pref.setTitle(perm.loadLabel(mPackageManager)); in createSwitchPreferenceForPermission() 212 pref.setChecked(group.areRuntimePermissionsGranted(new String[]{ perm.name })); in createSwitchPreferenceForPermission() 215 group.grantRuntimePermissions(true, false, new String[]{ perm.name }); in createSwitchPreferenceForPermission() [all …]
|
/packages/modules/NeuralNetworks/common/operations/ |
D | Transpose.cpp | 48 bool transposeGeneric(const T* inputData, const Shape& inputShape, const int32_t* perm, in transposeGeneric() argument 56 int32_t permSize = perm == nullptr ? 2 : static_cast<int32_t>(getSizeOfDimension(permShape, 0)); in transposeGeneric() 58 if (perm == nullptr) { in transposeGeneric() 59 perm = perm_tmp; in transposeGeneric() 63 reversed_perm[output_k] = permSize - perm[input_k] - 1; in transposeGeneric()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/ |
D | LightAppPermGroup.kt | 197 private val hasPreRuntimePerm = permissions.any { (_, perm) -> !perm.isRuntimeOnly } in <lambda>() method 199 private val hasInstantPerm = permissions.any { (_, perm) -> perm.isInstantPerm } in <lambda>() method
|
D | LightPackageInfo.kt | 52 pI.permissions?.map { perm -> LightPermInfo(perm) } ?: emptyList(), in <lambda>() method
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | UserSensitivityLiveData.kt | 120 for (perm in pkg.requestedPermissions.intersect(runtimePerms)) { in <lambda>() constant 128 val permGrantedByDefault = pm.getPermissionFlags(perm, pkg.packageName, in <lambda>() 147 val previousFlags = userSensitiveState.permStates[perm] in <lambda>() 156 userSensitiveState.permStates[perm] = flags in <lambda>()
|
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/ |
D | PermissionAppsFragmentTest.kt | 46 val perm: String, constant in com.android.permissioncontroller.permission.ui.PermissionAppsFragmentTest 53 .putExtra(EXTRA_PERMISSION_NAME, perm) in getActivityIntent()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | HibernatedAppsItemManager.java | 110 for (String perm : pi.requestedPermissions) { in getNumHibernated() 111 if ((pm.getPermissionFlags(perm, packageName, mContext.getUser()) in getNumHibernated()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveFileTestRule.java | 103 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in generateFile() local 104 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in generateFile()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | HibernatedAppsPreferenceController.java | 171 for (String perm : pi.requestedPermissions) { in getUnusedCount() 172 if ((pm.getPermissionFlags(perm, packageName, mContext.getUser()) in getUnusedCount()
|
D | AppStorageSettings.java | 423 for (GrantedUriPermission perm : perms) { in refreshGrantedUriPermissions() 424 String authority = perm.uri.getAuthority(); in refreshGrantedUriPermissions()
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 540 String perm = AppOpsManager.opToPermission(tpl.ops[i]); in buildState() local 541 if (perm != null && !perms.contains(perm)) { in buildState() 542 perms.add(perm); in buildState()
|
/packages/modules/NeuralNetworks/tools/test_generator/ |
D | test_generator.py | 830 self.perm = (0, 3, 1, 2) if self.targetLayout == "nchw" else (0, 2, 3, 1) 845 op.SetValueFromNumpy(op.GetValueAsNumpy().transpose(self.perm)) 846 newDim = [op.type.dimensions[i] for i in self.perm] 849 op.SetValueFromNumpy(op.GetValueAsNumpy()[list(self.perm)]) 865 self.perm = list(range(dim)) 866 self.perm.insert(target if target >= 0 else target + dim, self.perm.pop(origin)) 885 op.SetValueFromNumpy(op.GetValueAsNumpy().transpose(self.perm)) 886 newDim = [op.type.dimensions[i] for i in self.perm]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | ReviewPermissionsFragment.java | 240 for (String perm : pkg.requestedPermissions) { in confirmPermissionsReview() 242 pm.updatePermissionFlags(perm, pkg.packageName, FLAG_PERMISSION_REVIEW_REQUIRED, in confirmPermissionsReview() 245 Log.e(LOG_TAG, "Cannot unmark " + perm + " requested by " + pkg.packageName in confirmPermissionsReview()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 9130 final PermissionGroupInfo perm = pm.getPermissionGroupInfo(groupName, 0); 9131 return Icon.createWithResource(perm.packageName, perm.icon);
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 9645 int targetSdk, boolean locationToggle, String op, String perm) throws Exception { in setupLocationPermissions() argument 9662 if (perm != null) { in setupLocationPermissions() 9663 mServiceContext.setPermission(perm, PERMISSION_GRANTED); in setupLocationPermissions()
|
/packages/modules/NeuralNetworks/tools/api/ |
D | types.spec | 2933 * perm[i]. If perm is not given, it is set to (n-1...0), where n is the
|