Home
last modified time | relevance | path

Searched refs:setUidMode (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DPermissionCheckerTest.kt54 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/
DAppOpsUtils.java84 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()
DPermissionUtils.java172 () -> getTargetContext().getSystemService(AppOpsManager.class).setUidMode(op, in setAppOpByName()
/cts/tests/tests/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt284 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 in android.app.appops.cts.HistoricalAppopsTest
487 appOpsManager.setUidMode(appOp, uid, mode) in <lambda>()
DAppOpsTest.kt963 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/
DTelecomManagerTest.java76 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in testHasManageOngoingCallsPermission()
80 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in testHasManageOngoingCallsPermission()
DThirdPartyInCallServiceAppOpsPermissionTest.java253 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_MANAGE_ONGOING_CALLS, in setInCallServiceAppOpsPermission()
DBaseTelecomTestWithMockServices.java312 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_PROCESS_OUTGOING_CALLS, in setUp()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileTest.java270 mAppOpsManager.setUidMode( in explicitlySetInteractAcrossProfilesAppOp()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DSensitiveNotificationRedactionTest.kt409 appOpsManager.setUidMode( in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
421 appOpsManager.setUidMode( in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java193 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in testAlarmClockNotBlocked()
DAppStandbyTests.java142 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in setUp()
DExactAlarmsTest.java206 AppOpsUtils.setUidMode(uid, AppOpsManager.OPSTR_SCHEDULE_EXACT_ALARM, mode); in setAppOp()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTest.java289 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in setAppOpsModeForUid()
DMediaProviderTestUtils.java427 context.getSystemService(AppOpsManager.class).setUidMode( in revokeMediaLocationPermission()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java431 () -> sContext.getSystemService(AppOpsManager.class).setUidMode( in setAppOp()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DBaseAppVerifierImpl.java102 (appOpsMan) -> appOpsMan.setUidMode(AppOpsManager.OPSTR_PROCESS_OUTGOING_CALLS, in setUp()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java607 appOpsManager.setUidMode(op, uid, mode); in setModeForOps()
DSubscriptionManagerTest.java1741 appOpsManager, (appOps) -> appOps.setUidMode(op, Process.myUid(), mode)); in setIdentifierAccess()
DTelephonyManagerTest.java5921 appOpsManager, (appOps) -> appOps.setUidMode(op, Process.myUid(), mode)); in setAppOpsPermissionAllowed()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java2509 (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/
DPackageInstallerArchiveTest.java931 () -> mAppOpsManager.setUidMode( in setOptInStatus()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java2059 getContext().getSystemService(AppOpsManager.class).setUidMode(op, uid, mode); in setAppOpsModeForUid()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestOnMockService.java5231 .setUidMode(AppOpsManager.OPSTR_MOCK_LOCATION, Process.myUid(), in requestMockLocationPermission()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt635 …method @RequiresPermission("android.permission.MANAGE_APP_OPS_MODES") public void setUidMode(@NonN…