Home
last modified time | relevance | path

Searched refs:packageOps (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java137 final List<AppOpsManager.PackageOps> packageOps = mAppsOpsManager.getPackagesForOps( in removeAllMockLocations() local
139 if (packageOps == null) { in removeAllMockLocations()
143 for (AppOpsManager.PackageOps packageOp : packageOps) { in removeAllMockLocations()
163 final List<AppOpsManager.PackageOps> packageOps = mAppsOpsManager.getPackagesForOps( in getCurrentMockLocationApp() local
165 if (packageOps != null) { in getCurrentMockLocationApp()
166 for (AppOpsManager.PackageOps packageOp : packageOps) { in getCurrentMockLocationApp()
168 return packageOps.get(0).getPackageName(); in getCurrentMockLocationApp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java66 final AppOpsManager.PackageOps packageOps = packageOpsList.get(i); in getRestrictedAppsList() local
67 final List<AppOpsManager.OpEntry> entries = packageOps.getOps(); in getRestrictedAppsList()
75 new UserHandle(UserHandle.getUserId(packageOps.getUid())))) { in getRestrictedAppsList()
77 .setPackageName(packageOps.getPackageName()) in getRestrictedAppsList()
78 .setUid(packageOps.getUid()) in getRestrictedAppsList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DRecentlyAccessedByUtils.java55 List<AppOpsManager.PackageOps> packageOps = context.getSystemService( in getAppList() local
57 int packageOpsCount = packageOps != null ? packageOps.size() : 0; in getAppList()
64 AppOpsManager.PackageOps ops = packageOps.get(i); in getAppList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java74 final AppOpsManager.PackageOps packageOps = in updateState_foobarAppSelected_shouldSetSummaryToFoobar() local
78 Collections.singletonList(packageOps)); in updateState_foobarAppSelected_shouldSetSummaryToFoobar()
102 final AppOpsManager.PackageOps packageOps = new AppOpsManager.PackageOps(prevAppName, 0, in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp() local
106 .thenReturn(Collections.singletonList(packageOps)); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java136 List<AppOpsManager.PackageOps> packageOps = mAppOpsManager.getPackagesForOps( in loadAppOpModes() local
138 if (packageOps == null) { in loadAppOpModes()
141 for (AppOpsManager.PackageOps packageOp : packageOps) { in loadAppOpModes()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java261 final List<AppOpsManager.PackageOps> packageOps = mAppOpsManager.getPackagesForOps( in loadAppOpsStates() local
263 final int packageOpsCount = packageOps != null ? packageOps.size() : 0; in loadAppOpsStates()
265 final AppOpsManager.PackageOps packageOp = packageOps.get(i); in loadAppOpsStates()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java440 PackageOps packageOps = allOps.get(pkgNum); in getLocationUsersWithNoNotificationYetLocked() local
442 String pkg = packageOps.getPackageName(); in getLocationUsersWithNoNotificationYetLocked()
447 UserHandle user = getUserHandleForUid(packageOps.getUid()); in getLocationUsersWithNoNotificationYetLocked()
480 int numOps = packageOps.getOps().size(); in getLocationUsersWithNoNotificationYetLocked()
482 OpEntry entry = packageOps.getOps().get(opNum); in getLocationUsersWithNoNotificationYetLocked()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DOpUsageLiveData.kt55 val packageOps = try { in loadDataAndPostValue() constant
61 for (packageOp in packageOps) { in loadDataAndPostValue()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsages.java379 final HistoricalPackageOps packageOps = uidOps.getPackageOpsAt(j); in loadInBackground() local
381 Pair.create(uidOps.getUid(), packageOps.getPackageName()), in loadInBackground()
382 packageOps); in loadInBackground() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java784 List<AppOpsManager.PackageOps> packageOps = in writeMockLocation() local
786 if (packageOps != null) { in writeMockLocation()
788 for (AppOpsManager.PackageOps packageOp : packageOps) { in writeMockLocation()
852 List<AppOpsManager.PackageOps> packageOps = in updateMockLocation() local
854 if (packageOps != null) { in updateMockLocation()
855 for (AppOpsManager.PackageOps packageOp : packageOps) { in updateMockLocation()
857 mMockLocationApp = packageOps.get(0).getPackageName(); in updateMockLocation()