Home
last modified time | relevance | path

Searched refs:packageOp (Results 1 – 7 of 7) 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java245 final AppOpsManager.PackageOps packageOp = packageOps.get(i); in loadAppOpsStates() local
246 final int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpsStates()
256 final PermissionState pe = entriesForProfile.get(packageOp.getPackageName()); in loadAppOpsStates()
258 Log.w(TAG, "AppOp permission exists for package " + packageOp.getPackageName() in loadAppOpsStates()
264 if (packageOp.getOps().size() < 1) { in loadAppOpsStates()
265 Log.w(TAG, "No AppOps permission exists for package " + packageOp.getPackageName()); in loadAppOpsStates()
268 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java245 final AppOpsManager.PackageOps packageOp = packageOps.get(i); in loadAppOpsStates() local
246 final int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpsStates()
256 final PermissionState pe = entriesForProfile.get(packageOp.getPackageName()); in loadAppOpsStates()
258 Log.w(TAG, "AppOp permission exists for package " + packageOp.getPackageName() in loadAppOpsStates()
264 if (packageOp.getOps().size() < 1) { in loadAppOpsStates()
265 Log.w(TAG, "No AppOps permission exists for package " + packageOp.getPackageName()); in loadAppOpsStates()
268 pe.appOpMode = packageOp.getOps().get(0).getMode(); in loadAppOpsStates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java136 for (AppOpsManager.PackageOps packageOp : packageOps) { in removeAllMockLocations()
137 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
138 removeMockLocationForApp(packageOp.getPackageName()); in removeAllMockLocations()
158 for (AppOpsManager.PackageOps packageOp : packageOps) { in getCurrentMockLocationApp()
159 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java142 for (AppOpsManager.PackageOps packageOp : packageOps) { in removeAllMockLocations()
143 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
144 removeMockLocationForApp(packageOp.getPackageName()); in removeAllMockLocations()
164 for (AppOpsManager.PackageOps packageOp : packageOps) { in getCurrentMockLocationApp()
165 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in getCurrentMockLocationApp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java70 PackageOps packageOp = new PackageOps(key.mPackageName, key.mUid, in getPackagesForOps() local
72 result.add(packageOp); in getPackagesForOps()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java738 for (AppOpsManager.PackageOps packageOp : packageOps) { in writeMockLocation()
739 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in writeMockLocation()
740 String oldMockLocationApp = packageOp.getPackageName(); in writeMockLocation()
805 for (AppOpsManager.PackageOps packageOp : packageOps) { in updateMockLocation()
806 if (packageOp.getOps().get(0).getMode() == AppOpsManager.MODE_ALLOWED) { in updateMockLocation()