Searched refs:packageOps (Results 1 – 10 of 10) sorted by relevance
137 final List<AppOpsManager.PackageOps> packageOps = mAppsOpsManager.getPackagesForOps( in removeAllMockLocations() local139 if (packageOps == null) { in removeAllMockLocations()143 for (AppOpsManager.PackageOps packageOp : packageOps) { in removeAllMockLocations()163 final List<AppOpsManager.PackageOps> packageOps = mAppsOpsManager.getPackagesForOps( in getCurrentMockLocationApp() local165 if (packageOps != null) { in getCurrentMockLocationApp()166 for (AppOpsManager.PackageOps packageOp : packageOps) { in getCurrentMockLocationApp()168 return packageOps.get(0).getPackageName(); in getCurrentMockLocationApp()
66 final AppOpsManager.PackageOps packageOps = packageOpsList.get(i); in getRestrictedAppsList() local67 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()
55 List<AppOpsManager.PackageOps> packageOps = context.getSystemService( in getAppList() local57 int packageOpsCount = packageOps != null ? packageOps.size() : 0; in getAppList()64 AppOpsManager.PackageOps ops = packageOps.get(i); in getAppList()
74 final AppOpsManager.PackageOps packageOps = in updateState_foobarAppSelected_shouldSetSummaryToFoobar() local78 Collections.singletonList(packageOps)); in updateState_foobarAppSelected_shouldSetSummaryToFoobar()102 final AppOpsManager.PackageOps packageOps = new AppOpsManager.PackageOps(prevAppName, 0, in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp() local106 .thenReturn(Collections.singletonList(packageOps)); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
136 List<AppOpsManager.PackageOps> packageOps = mAppOpsManager.getPackagesForOps( in loadAppOpModes() local138 if (packageOps == null) { in loadAppOpModes()141 for (AppOpsManager.PackageOps packageOp : packageOps) { in loadAppOpModes()
261 final List<AppOpsManager.PackageOps> packageOps = mAppOpsManager.getPackagesForOps( in loadAppOpsStates() local263 final int packageOpsCount = packageOps != null ? packageOps.size() : 0; in loadAppOpsStates()265 final AppOpsManager.PackageOps packageOp = packageOps.get(i); in loadAppOpsStates()
440 PackageOps packageOps = allOps.get(pkgNum); in getLocationUsersWithNoNotificationYetLocked() local442 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()
55 val packageOps = try { in loadDataAndPostValue() constant61 for (packageOp in packageOps) { in loadDataAndPostValue()
379 final HistoricalPackageOps packageOps = uidOps.getPackageOpsAt(j); in loadInBackground() local381 Pair.create(uidOps.getUid(), packageOps.getPackageName()), in loadInBackground()382 packageOps); in loadInBackground() local
784 List<AppOpsManager.PackageOps> packageOps = in writeMockLocation() local786 if (packageOps != null) { in writeMockLocation()788 for (AppOpsManager.PackageOps packageOp : packageOps) { in writeMockLocation()852 List<AppOpsManager.PackageOps> packageOps = in updateMockLocation() local854 if (packageOps != null) { in updateMockLocation()855 for (AppOpsManager.PackageOps packageOp : packageOps) { in updateMockLocation()857 mMockLocationApp = packageOps.get(0).getPackageName(); in updateMockLocation()