Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java197 AppOpsManager.PackageOps packageOps = createPackageOp( in startListening_fetchesCurrentActive_oneActive() local
203 .thenReturn(List.of(packageOps)); in startListening_fetchesCurrentActive_oneActive()
259 AppOpsManager.PackageOps packageOps = mock(AppOpsManager.PackageOps.class); in startListening_fetchesCurrentActive_multipleEntries() local
260 when(packageOps.getUid()).thenReturn(1); in startListening_fetchesCurrentActive_multipleEntries()
261 when(packageOps.getPackageName()).thenReturn("package.one"); in startListening_fetchesCurrentActive_multipleEntries()
282 when(packageOps.getOps()).thenReturn(List.of(entry1, entry2, entry3)); in startListening_fetchesCurrentActive_multipleEntries()
284 .thenReturn(List.of(packageOps)); in startListening_fetchesCurrentActive_multipleEntries()
307 AppOpsManager.PackageOps packageOps = mock(AppOpsManager.PackageOps.class); in startListening_fetchesCurrentActive_multipleAttributes() local
308 when(packageOps.getUid()).thenReturn(1); in startListening_fetchesCurrentActive_multipleAttributes()
309 when(packageOps.getPackageName()).thenReturn("package.one"); in startListening_fetchesCurrentActive_multipleAttributes()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsRecentAccessPersistenceTest.java118 ArrayMap<String, AppOpsService.Ops> packageOps = uidState.pkgOps; in validateUidStates() local
119 assertThat(packageOps.size()).isEqualTo(1); in validateUidStates()
121 AppOpsService.Ops ops = packageOps.get("com.android.servicestests.apps.testapp"); in validateUidStates()
DAppOpsDeviceAwareServiceTest.java132 AppOpsManager.PackageOps packageOps = in noteProxyOpWithDeviceId() local
142 packageOps.getOps().stream() in noteProxyOpWithDeviceId()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAppsTest.java140 PackageOps packageOps = createPackageOps( in createTestPackageOpsList() local
146 packageOpsList.add(packageOps); in createTestPackageOpsList()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DRecentAppOpsAccessesTest.java234 PackageOps packageOps = createPackageOps( in createTestPackageOpsList() local
239 packageOpsList.add(packageOps); in createTestPackageOpsList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java231 List<AppOpsManager.PackageOps> packageOps = mAppOps.getPackagesForOps(OPS); in fetchCurrentActiveOps() local
232 if (packageOps == null) { in fetchCurrentActiveOps()
235 for (AppOpsManager.PackageOps op : packageOps) { in fetchCurrentActiveOps()
/frameworks/base/services/core/java/com/android/server/appop/
DHistoricalRegistry.java1525 final HistoricalPackageOps packageOps = uidOps.getPackageOpsAt(i); in writeHistoricalUidOpsDLocked() local
1526 writeHistoricalPackageOpsDLocked(packageOps, serializer); in writeHistoricalUidOpsDLocked()
1531 private void writeHistoricalPackageOpsDLocked(@NonNull HistoricalPackageOps packageOps, in writeHistoricalPackageOpsDLocked() argument
1534 serializer.attributeInterned(null, ATTR_NAME, packageOps.getPackageName()); in writeHistoricalPackageOpsDLocked()
1535 final int numAttributions = packageOps.getAttributedOpsCount(); in writeHistoricalPackageOpsDLocked()
1537 final AppOpsManager.AttributedHistoricalOps op = packageOps.getAttributedOpsAt(i); in writeHistoricalPackageOpsDLocked()
DAppOpsService.java5545 AppOpsManager.PackageOps packageOps = ops.get(i); in onShellCommand() local
5546 if (packageOps.getPackageName() == null) { in onShellCommand()
5549 List<AppOpsManager.OpEntry> entries = packageOps.getOps(); in onShellCommand()
6591 final List<AppOpsManager.PackageOps> packageOps = getOpsForPackage(proxiedUid,
6593 if (packageOps == null || packageOps.isEmpty()) {
6596 final List<OpEntry> opEntries = packageOps.get(0).getOps();
6881 AppOpsManager.HistoricalPackageOps packageOps =
6883 if (packageOps.getOpCount() != 0) {
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java4160 final HistoricalPackageOps packageOps = uidOps.getPackageOpsAt(pkgIdx);
4163 attributionIdx < packageOps.getAttributedOpsCount(); attributionIdx++) {
4165 packageOps.getAttributedOpsAt(attributionIdx);
4169 packageOps.getPackageName(), attributedOps.getTag());
4173 for (int opIdx = 0; opIdx < packageOps.getOpCount(); opIdx++) {
4174 final AppOpsManager.HistoricalOp op = packageOps.getOpAt(opIdx);
4176 packageOps.getPackageName(), null);
/frameworks/base/core/java/android/app/
DAppOpsManager.java5915 final HistoricalPackageOps packageOps = getPackageOpsAt(i); in filter() local
5917 packageOps.getPackageName())) { in filter()
5920 packageOps.filter(attributionTag, opNames, filter, historyFilter, in filter()
5922 if (packageOps.getAttributedOpsCount() == 0) { in filter()
5932 final HistoricalPackageOps packageOps = mHistoricalPackageOps.valueAt(i); in isEmpty() local
5933 if (!packageOps.isEmpty()) { in isEmpty()