/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | PermissionCheckerTest.kt | 54 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_ALLOWED) in resetHelperPermissionState() 68 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForPreflight() 98 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForDataDelivery() 127 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForDataDeliveryFromDataSource()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AppOpsUtils.java | 84 public static void setUidMode(int uid, String opStr, int mode) { in setUidMode() method in AppOpsUtils 87 SystemUtil.runWithShellPermissionIdentity(() -> aom.setUidMode(opStr, uid, mode)); in setUidMode()
|
D | PermissionUtils.java | 172 () -> getTargetContext().getSystemService(AppOpsManager.class).setUidMode(op, in setAppOpByName()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | HistoricalAppopsTest.kt | 284 setUidMode(OPSTR_REQUEST_DELETE_PACKAGES, uid, AppOpsManager.MODE_ALLOWED) in <lambda>() 346 setUidMode(AppOpsManager.OPSTR_START_FOREGROUND, uid, in <lambda>() 348 setUidMode(AppOpsManager.OPSTR_START_FOREGROUND, 2000, in <lambda>() 452 setUidMode(AppOpsManager.OPSTR_START_FOREGROUND, uid, AppOpsManager.MODE_FOREGROUND) in <lambda>() 453 setUidMode(AppOpsManager.OPSTR_START_FOREGROUND, 2000, AppOpsManager.MODE_FOREGROUND) in <lambda>() 485 private fun setUidMode(appOp: String, uid: Int, mode: Int) { in <lambda>() method 487 appOpsManager.setUidMode(appOp, uid, mode) in <lambda>()
|
D | AppOpsTest.kt | 963 mAppOps.setUidMode(OPSTR_PICTURE_IN_PICTURE, Process.myUid(), MODE_ERRORED) in testNonHistoricalStatePersistence() 975 mAppOps.setUidMode(OPSTR_PICTURE_IN_PICTURE, Process.myUid(), in testNonHistoricalStatePersistence() 986 mAppOps.setUidMode(OPSTR_PICTURE_IN_PICTURE, Process.myUid(), defaultMode) in testNonHistoricalStatePersistence() 1015 mAppOps.setUidMode(OPSTR_RESERVED_FOR_TESTING, Process.myUid(), MODE_ERRORED) in checkOpForBadUid() 1024 mAppOps.setUidMode(OPSTR_RESERVED_FOR_TESTING, Process.myUid(), defaultMode) in checkOpForBadUid()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomManagerTest.java | 76 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in testHasManageOngoingCallsPermission() 80 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in testHasManageOngoingCallsPermission()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 253 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in setInCallServiceAppOpsPermission()
|
D | BaseTelecomTestWithMockServices.java | 312 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_PROCESS_OUTGOING_CALLS, in setUp()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileTest.java | 270 mAppOpsManager.setUidMode( in explicitlySetInteractAcrossProfilesAppOp()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | SensitiveNotificationRedactionTest.kt | 409 appOpsManager.setUidMode( in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted() 421 appOpsManager.setUidMode( in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 193 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in testAlarmClockNotBlocked()
|
D | AppStandbyTests.java | 142 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in setUp()
|
D | ExactAlarmsTest.java | 206 AppOpsUtils.setUidMode(uid, AppOpsManager.OPSTR_SCHEDULE_EXACT_ALARM, mode); in setAppOp()
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStoreTest.java | 289 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in setAppOpsModeForUid()
|
D | MediaProviderTestUtils.java | 427 context.getSystemService(AppOpsManager.class).setUidMode( in revokeMediaLocationPermission()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 431 () -> sContext.getSystemService(AppOpsManager.class).setUidMode( in setAppOp()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | BaseAppVerifierImpl.java | 102 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_PROCESS_OUTGOING_CALLS, in setUp()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 607 appOpsManager.setUidMode(op, uid, mode); in setModeForOps()
|
D | SubscriptionManagerTest.java | 1741 appOpsManager, (appOps) -> appOps.setUidMode(op, Process.myUid(), mode)); in setIdentifierAccess()
|
D | TelephonyManagerTest.java | 5921 appOpsManager, (appOps) -> appOps.setUidMode(op, Process.myUid(), mode)); in setAppOpsPermissionAllowed()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 2509 (appOpsMan) -> appOpsMan.setUidMode(appOpCode, Process.myUid(), appOpMode)); in setAppOpMode() 2515 (appOpsMan) -> appOpsMan.setUidMode(appOp, Process.myUid(), appOpMode)); in setAppOpMode()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveTest.java | 931 () -> mAppOpsManager.setUidMode( in setOptInStatus()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 2059 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in setAppOpsModeForUid()
|
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/ |
D | SatelliteManagerTestOnMockService.java | 5231 .setUidMode(AppOpsManager.OPSTR_MOCK_LOCATION, Process.myUid(), in requestMockLocationPermission()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | system-current.txt | 635 …method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setUidMode(@NonN…
|