Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java141 for (AppOpsManager.PackageOps packageOp : packageOps) { in loadAppOpModes()
142 int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpModes()
149 PermissionState permissionState = packageStateMap.get(packageOp.getPackageName()); in loadAppOpModes()
151 LOG.w("AppOp permission exists for package " + packageOp.getPackageName() in loadAppOpModes()
156 if (packageOp.getOps().size() < 1) { in loadAppOpModes()
157 LOG.w("No AppOps permission exists for package " + packageOp.getPackageName()); in loadAppOpModes()
160 permissionState.mAppOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpModes()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java143 for (AppOpsManager.PackageOps packageOp : packageOps) { in removeAllMockLocations()
144 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
145 removeMockLocationForApp(packageOp.getPackageName()); in removeAllMockLocations()
166 for (AppOpsManager.PackageOps packageOp : packageOps) { in getCurrentMockLocationApp()
167 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java265 final AppOpsManager.PackageOps packageOp = packageOps.get(i); in loadAppOpsStates() local
266 final int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpsStates()
276 final PermissionState pe = entriesForProfile.get(packageOp.getPackageName()); in loadAppOpsStates()
278 Log.w(TAG, "AppOp permission exists for package " + packageOp.getPackageName() in loadAppOpsStates()
284 if (packageOp.getOps().size() < 1) { in loadAppOpsStates()
285 Log.w(TAG, "No AppOps permission exists for package " + packageOp.getPackageName()); in loadAppOpsStates()
288 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DOpUsageLiveData.kt61 for (packageOp in packageOps) { in loadDataAndPostValue() constant
62 for (opEntry in packageOp.ops) { in loadDataAndPostValue()
64 val user = UserHandle.getUserHandleForUid(packageOp.uid) in loadDataAndPostValue()
94 accessList.add(OpAccess(packageOp.packageName, attributionTag, in loadDataAndPostValue()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java71 PackageOps packageOp = new PackageOps(key.mPackageName, key.mUid, in getPackagesForOps() local
73 result.add(packageOp); in getPackagesForOps()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java788 for (AppOpsManager.PackageOps packageOp : packageOps) { in writeMockLocation()
789 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in writeMockLocation()
790 String oldMockLocationApp = packageOp.getPackageName(); in writeMockLocation()
855 for (AppOpsManager.PackageOps packageOp : packageOps) { in updateMockLocation()
856 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in updateMockLocation()