Home
last modified time | relevance | path

Searched refs:appOps (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appops/
DAppOpsTests.java114 AtomsProto.AppOps appOps = atom.getAppOps(); in testAppOps() local
115 if (appOps.getPackageName().equals(DeviceUtils.STATSD_ATOM_TEST_PKG)) { in testAppOps()
116 if (appOps.getOpId().getNumber() == -1) { in testAppOps()
119 long totalNoted = appOps.getTrustedForegroundGrantedCount() in testAppOps()
120 + appOps.getTrustedBackgroundGrantedCount() in testAppOps()
121 + appOps.getTrustedForegroundRejectedCount() in testAppOps()
122 + appOps.getTrustedBackgroundRejectedCount(); in testAppOps()
124 appOps.getOpId().getNumber() + 1 in testAppOps()
125 + computeExpectedTransformedNoted(appOps.getOpId().getNumber()); in testAppOps()
126 assertWithMessage("Operation in APP_OPS_ENUM_MAP: " + appOps.getOpId().getNumber()) in testAppOps()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.appOps;
49 appOps(getInstrumentation(), getTestContext().getPackageName(), in setUp()
57 appOps(getInstrumentation(), getTestContext().getPackageName(), in tearDown()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java272 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in checkPermissionAndAppOp() local
274 appOps.checkPackage(uid, packageName); in checkPermissionAndAppOp()
279 return appOps.unsafeCheckOpNoThrow(op, uid, packageName) == AppOpsManager.MODE_ALLOWED; in checkPermissionAndAppOp()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1323 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in checkPermissionAndAppOp() local
1325 appOps.checkPackage(uid, packageName); in checkPermissionAndAppOp()
1330 return appOps.unsafeCheckOpNoThrow(op, uid, packageName) == AppOpsManager.MODE_ALLOWED; in checkPermissionAndAppOp()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java4584 appOpsManager, (appOps) -> appOps.setUidMode(op, Process.myUid(), mode)); in setAppOpsPermissionAllowed()