/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobSchedulingTest.java | 71 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);
|
D | ExpeditedJobTest.java | 65 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, APP_OP_GET_USAGE_STATS, in setUp()
|
D | TestAppInterface.java | 223 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, in postFgsStartingAlarm() 286 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, "RUN_ANY_IN_BACKGROUND", in setTestPackageRestricted()
|
D | JobThrottlingTest.java | 1353 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, "RUN_ANY_IN_BACKGROUND", in setTestPackageRestricted()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsTest.kt | 165 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/ |
D | AlertWindowsAppOpsTests.java | 80 AppOpsUtils.setOpMode(packageName, OPSTR_SYSTEM_ALERT_WINDOW, MODE_ALLOWED); in grantSystemAlertWindowAccess() 85 AppOpsUtils.setOpMode(getInstrumentation().getContext().getPackageName(), in revokeSystemAlertWindowAccess()
|
D | AlertWindowsTests.java | 225 AppOpsUtils.setOpMode(activityName.getPackageName(), OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
|
D | AlertWindowsImportanceTests.java | 175 AppOpsUtils.setOpMode(mServicePackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AppOpsUtils.java | 58 public static String setOpMode(String packageName, String opStr, int mode) in setOpMode() method in AppOpsUtils
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 117 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/ |
D | AppOpsUtils.kt | 53 fun setOpMode(packageName: String, opStr: String, mode: Int): String { in setOpMode() method
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CarrierConfigManagerTest.java | 37 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/ |
D | AudioPlaybackConfigurationTest.java | 40 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/ |
D | UninstallTest.java | 170 AppOpsUtils.setOpMode(mContext.getPackageName(), "SYSTEM_ALERT_WINDOW", MODE_ALLOWED); in overlaysAreSuppressedWhenConfirmingUninstall()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowUntrustedTouchTest.java | 200 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/ |
D | BackgroundActivityTestBase.java | 130 AppOpsUtils.setOpMode(components.APP_PACKAGE_NAME, "android:system_alert_window", in setUp()
|
D | BackgroundActivityLaunchTest.java | 1383 AppOpsUtils.setOpMode(packageName, opStr, mode); in grantSystemAlertWindow()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallConstraintsTest.kt | 120 AppOpsUtils.setOpMode(TestApp.A, OPSTR_TAKE_AUDIO_FOCUS, MODE_ALLOWED) in <lambda>()
|
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/ |
D | PackageInstallerCujTestBase.java | 224 AppOpsUtils.setOpMode(TEST_INSTALLER_PACKAGE_NAME, OPSTR_REQUEST_INSTALL_PACKAGES, in grantRequestInstallPackagesPermission()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 1719 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/ |
D | BroadcastResponseStatsTest.java | 158 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/ |
D | PinnedStackTests.java | 2059 AppOpsUtils.setOpMode(mPackageName, op, mode); in setOpToMode()
|