Home
last modified time | relevance | path

Searched refs:setOpMode (Results 1 – 22 of 22) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobSchedulingTest.java71 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_DEFAULT); in tearDown()
157 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_DEFAULT); in testCanRunUserInitiatedJobs()
162 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_ERRORED); in testCanRunUserInitiatedJobs()
165 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_ALLOWED); in testCanRunUserInitiatedJobs()
168 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_IGNORED); in testCanRunUserInitiatedJobs()
626 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_DEFAULT);
629 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_ERRORED);
641 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_ALLOWED);
644 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_IGNORED);
DExpeditedJobTest.java65 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, APP_OP_GET_USAGE_STATS, in setUp()
DTestAppInterface.java223 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, in postFgsStartingAlarm()
286 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, "RUN_ANY_IN_BACKGROUND", in setTestPackageRestricted()
DJobThrottlingTest.java1353 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, "RUN_ANY_IN_BACKGROUND", in setTestPackageRestricted()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt165 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_ALLOWED) in testNoteOpAndCheckOp()
175 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_IGNORED) in testNoteOpAndCheckOp()
185 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_DEFAULT) in testNoteOpAndCheckOp()
195 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_ERRORED) in testNoteOpAndCheckOp()
214 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_ALLOWED) in testStartOpAndFinishOp()
223 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_IGNORED) in testStartOpAndFinishOp()
229 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_DEFAULT) in testStartOpAndFinishOp()
235 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_ERRORED) in testStartOpAndFinishOp()
942 setOpMode(mOpPackageName, OPSTR_VIBRATE, MODE_ALLOWED) in testGetOpsForPackageOpsAreLogged()
943 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_ERRORED) in testGetOpsForPackageOpsAreLogged()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DAlertWindowsAppOpsTests.java80 AppOpsUtils.setOpMode(packageName, OPSTR_SYSTEM_ALERT_WINDOW, MODE_ALLOWED); in grantSystemAlertWindowAccess()
85 AppOpsUtils.setOpMode(getInstrumentation().getContext().getPackageName(), in revokeSystemAlertWindowAccess()
DAlertWindowsTests.java225 AppOpsUtils.setOpMode(activityName.getPackageName(), OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
DAlertWindowsImportanceTests.java175 AppOpsUtils.setOpMode(mServicePackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppOpsUtils.java58 public static String setOpMode(String packageName, String opStr, int mode) in setOpMode() method in AppOpsUtils
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java117 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_IGNORED); in setUp()
158 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_ALLOWED); in testRepeatingAlarmBlocked()
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt53 fun setOpMode(packageName: String, opStr: String, mode: Int): String { in setOpMode() method
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierConfigManagerTest.java37 import static com.android.compatibility.common.util.AppOpsUtils.setOpMode;
138 setOpMode("--uid android.telephony.cts", OPSTR_READ_PHONE_STATE, MODE_ALLOWED); in tearDown()
420 setOpMode("--uid android.telephony.cts", OPSTR_READ_PHONE_STATE, MODE_IGNORED); in testRevokePermission()
429 setOpMode("--uid android.telephony.cts", OPSTR_READ_PHONE_STATE, MODE_ALLOWED); in testRevokePermission()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioPlaybackConfigurationTest.java40 import static com.android.compatibility.common.util.AppOpsUtils.setOpMode;
545 setOpMode(getContext().getPackageName(), OPSTR_PLAY_AUDIO, MODE_IGNORED); in checkMuteFromAppOpsNotification()
554 setOpMode(getContext().getPackageName(), OPSTR_PLAY_AUDIO, in checkMuteFromAppOpsNotification()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java170 AppOpsUtils.setOpMode(mContext.getPackageName(), "SYSTEM_ALERT_WINDOW", MODE_ALLOWED); in overlaysAreSuppressedWhenConfirmingUninstall()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java200 AppOpsUtils.setOpMode(APP_SELF, OPSTR_SYSTEM_ALERT_WINDOW, MODE_ALLOWED); in setUp()
224 AppOpsUtils.setOpMode(APP_SELF, OPSTR_SYSTEM_ALERT_WINDOW, mPreviousSawAppOp); in tearDown()
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityTestBase.java130 AppOpsUtils.setOpMode(components.APP_PACKAGE_NAME, "android:system_alert_window", in setUp()
DBackgroundActivityLaunchTest.java1383 AppOpsUtils.setOpMode(packageName, opStr, mode); in grantSystemAlertWindow()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallConstraintsTest.kt120 AppOpsUtils.setOpMode(TestApp.A, OPSTR_TAKE_AUDIO_FOCUS, MODE_ALLOWED) in <lambda>()
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DPackageInstallerCujTestBase.java224 AppOpsUtils.setOpMode(TEST_INSTALLER_PACKAGE_NAME, OPSTR_REQUEST_INSTALL_PACKAGES, in grantRequestInstallPackagesPermission()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1719 setOpMode(mode);
1724 setOpMode(mPreviousOpMode);
1727 void setOpMode(int mode) {
1729 AppOpsUtils.setOpMode(mPackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode);
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/
DBroadcastResponseStatsTest.java158 AppOpsUtils.setOpMode(sTargetPackage, AppOpsManager.OPSTR_GET_USAGE_STATS, in setUpClass()
165 AppOpsUtils.setOpMode(sTargetPackage, AppOpsManager.OPSTR_GET_USAGE_STATS, in tearDownClass()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPinnedStackTests.java2059 AppOpsUtils.setOpMode(mPackageName, op, mode); in setOpToMode()