Home
last modified time | relevance | path

Searched refs:appOp (Results 1 – 13 of 13) sorted by relevance

/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissionContextImpl.java147 for (String appOp : appOps) { in withAppOp()
148 if (mDeniedAppOps.contains(appOp)) { in withAppOp()
151 appOp + " cannot be required to be both granted and denied"); in withAppOp()
204 for (String appOp : appOps) { in withoutAppOp()
205 if (mGrantedAppOps.contains(appOp)) { in withoutAppOp()
208 appOp + " cannot be required to be both granted and denied"); in withoutAppOp()
DPermissionsAnnotationExecutor.kt127 private fun withAppOp(vararg appOp: String) { in withAppOp()
128 permissionContext = permissionContext?.withAppOp(*appOp) in withAppOp()
129 ?: permissions().withAppOp(*appOp) in withAppOp()
132 private fun withoutAppOp(vararg appOp: String) { in withoutAppOp()
133 permissionContext = permissionContext?.withoutAppOp(*appOp) in withoutAppOp()
134 ?: permissions().withoutAppOp(*appOp) in withoutAppOp()
DPermissions.java426 for (String appOp : permissionContext.grantedAppOps()) {
427 grantedAppOps.add(appOp);
428 deniedAppOps.remove(appOp);
431 for (String appOp : permissionContext.deniedAppOps()) {
432 grantedAppOps.remove(appOp);
433 deniedAppOps.add(appOp);
563 public boolean hasAppOpAllowed(String appOp) {
570 return appOpPackage.appOps().get(appOp) == AppOpsMode.ALLOWED;
642 for (String appOp : filteredGrantedAppOps) {
643 sAppOpsManager.setMode(appOp, pkg.uid(sUser),
[all …]
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppPermissionContext.java137 for (String appOp : appOps) { in withAppOp()
138 if (mDeniedAppOps.contains(appOp)) { in withAppOp()
141 appOp + " cannot be required to be both granted and denied"); in withAppOp()
197 for (String appOp : appOps) { in withoutAppOp()
198 if (mGrantedAppOps.contains(appOp)) { in withoutAppOp()
201 appOp + " cannot be required to be both granted and denied"); in withoutAppOp()
DTestAppInstancePermissions.java382 for (String appOp : permissionContext.grantedAppOps()) { in applyPermissions()
383 grantedAppOps.add(appOp); in applyPermissions()
384 deniedAppOps.remove(appOp); in applyPermissions()
387 for (String appOp : permissionContext.deniedAppOps()) { in applyPermissions()
388 grantedAppOps.remove(appOp); in applyPermissions()
389 deniedAppOps.add(appOp); in applyPermissions()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOps.java77 String appOp = AppOpsManager.permissionToOp(permission); in maybeConvertPermissionToAppOp() local
78 if (appOp == null) { in maybeConvertPermissionToAppOp()
81 return appOp; in maybeConvertPermissionToAppOp()
/cts/hostsidetests/os/src/android/os/cts/
DEnvironmentHostTests.java51 private void setAppOp(String appOp, boolean val) throws Exception { in setAppOp() argument
53 + appOp + (val ? " allow" : " deny")); in setAppOp()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DPolicy.java621 for (AppOp appOp : enterprisePolicy.appOps()) {
628 ensureTestAppHasAppOp(DELEGATE_KEY, new String[]{appOp.appliedWith()})
632 "AppOp_" + appOp.appliedWith(), withAppOpAnnotations));
845 for (AppOp appOp : enterprisePolicy.appOps()) {
853 ensureTestAppHasAppOp(DELEGATE_KEY, new String[]{appOp.appliedWith()})
857 "AppOp_" + appOp.appliedWith(), withAppOpAnnotations));
DBedsteadJUnit4.java908 for (EnterprisePolicy.AppOp appOp : enterprisePolicy.appOps()) { in mergePolicies()
909 appOps.add(appOp); in mergePolicies()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DExternalStorageHostTest.java1121 private void updateAppOp(String packageName, int userId, String appOp, boolean allow) in updateAppOp() argument
1123 updateAppOp(packageName, false, userId, appOp, allow); in updateAppOp()
1127 String appOp, boolean allow) in updateAppOp() argument
1132 + " " + appOp + " " + verb); in updateAppOp()
/cts/tests/tests/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt485 private fun setUidMode(appOp: String, uid: Int, mode: Int) { in <lambda>()
487 appOpsManager.setUidMode(appOp, uid, mode) in <lambda>()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java2512 private void setAppOpMode(String appOp, @AppOpsManager.Mode int appOpMode) { in setAppOpMode() argument
2515 (appOpsMan) -> appOpsMan.setUidMode(appOp, Process.myUid(), appOpMode)); in setAppOpMode()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java1736 (String appOp, String packageName) -> changeLatch.countDown(); in setIdentifierAccess()