Home
last modified time | relevance | path

Searched refs:pkgOps (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsRecentAccessPersistence.java226 AppOpsService.Ops ops = uidState.pkgOps.get(pkgName); in readOp()
229 uidState.pkgOps.put(pkgName, ops); in readOp()
292 for (int pkgIndex = 0; pkgIndex < uidState.pkgOps.size(); pkgIndex++) { in writeRecentAccesses()
293 String packageName = uidState.pkgOps.keyAt(pkgIndex); in writeRecentAccesses()
294 AppOpsService.Ops ops = uidState.pkgOps.valueAt(pkgIndex); in writeRecentAccesses()
DAppOpsService.java538 public final ArrayMap<String, Ops> pkgOps = new ArrayMap<>(); field in AppOpsService.UidState
546 for (int i = 0; i < pkgOps.size(); i++) { in clear()
547 String packageName = pkgOps.keyAt(i); in clear()
1049 if (!uidState.pkgOps.containsKey(pkgName)) {
1050 uidState.pkgOps.put(pkgName,
1236 Ops ops = uidState.pkgOps.get(packageName); in initializePackageUidStateLocked()
1239 uidState.pkgOps.put(packageName, ops); in initializePackageUidStateLocked()
1265 ArrayMap<String, Ops> pkgOps = mUidStates.valueAt(uidIdx).pkgOps; in trimUidStatesLocked() local
1266 for (int pkgIdx = pkgOps.size() - 1; pkgIdx >= 0; pkgIdx--) { in trimUidStatesLocked()
1267 String pkgName = pkgOps.keyAt(pkgIdx); in trimUidStatesLocked()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java471 for (PackageOps pkgOps : loggedOps) { in assertContainsOp()
472 assertWithMessage("Unexpected UID").that(mMyUid).isEqualTo(pkgOps.getUid()); in assertContainsOp()
474 pkgOps.getPackageName()); in assertContainsOp()
476 for (OpEntry opEntry : pkgOps.getOps()) { in assertContainsOp()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java513 AppOpsManager.PackageOps pkgOps = ops.get(pkgOpNum); in getOpUsagesByDevice() local
514 int uid = pkgOps.getUid(); in getOpUsagesByDevice()
516 String packageName = pkgOps.getPackageName(); in getOpUsagesByDevice()
518 int numOpEntries = pkgOps.getOps().size(); in getOpUsagesByDevice()
520 AppOpsManager.OpEntry opEntry = pkgOps.getOps().get(opEntryNum); in getOpUsagesByDevice()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsRecentAccessPersistenceTest.java118 ArrayMap<String, AppOpsService.Ops> packageOps = uidState.pkgOps; in validateUidStates()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java1374 for (AppOpsManager.PackageOps pkgOps : allVpnOps) { in clearUserConfiguredVpns()
1375 if (UserHandle.getUserId(pkgOps.getUid()) != userId in clearUserConfiguredVpns()
1376 || pkgOps.getPackageName().equals(adminConfiguredVpnPkg)) { in clearUserConfiguredVpns()
1379 if (pkgOps.getOps().size() != 1) { in clearUserConfiguredVpns()
1383 final @Mode int mode = pkgOps.getOps().get(0).getMode(); in clearUserConfiguredVpns()
1386 pkgOps.getPackageName(), pkgOps.getUid())); in clearUserConfiguredVpns()
1387 mInjector.getAppOpsManager().setMode(AppOpsManager.OP_ACTIVATE_VPN, pkgOps.getUid(), in clearUserConfiguredVpns()
1388 pkgOps.getPackageName(), MODE_DEFAULT); in clearUserConfiguredVpns()