Home
last modified time | relevance | path

Searched refs:OPSTR_SYSTEM_ALERT_WINDOW (Results 1 – 7 of 7) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTests.java20 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW;
71 sPreviousSawAppOp = AppOpsUtils.getOpMode(packageName, OPSTR_SYSTEM_ALERT_WINDOW); in grantSystemAlertWindowAccess()
72 AppOpsUtils.setOpMode(packageName, OPSTR_SYSTEM_ALERT_WINDOW, MODE_ALLOWED); in grantSystemAlertWindowAccess()
78 OPSTR_SYSTEM_ALERT_WINDOW, sPreviousSawAppOp); in revokeSystemAlertWindowAccess() local
95 appOpsManager.startWatchingActive(new String[] { OPSTR_SYSTEM_ALERT_WINDOW }, in testSystemAlertWindowAppOpsInitiallyAllowed()
99 assertFalse(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
107 .only()).onOpActiveChanged(eq(OPSTR_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
111 assertTrue(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, in testSystemAlertWindowAppOpsInitiallyAllowed()
123 .only()).onOpActiveChanged(eq(OPSTR_SYSTEM_ALERT_WINDOW), in testSystemAlertWindowAppOpsInitiallyAllowed()
127 assertFalse(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
[all …]
DAlertWindowsTests.java21 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW;
163 OPSTR_SYSTEM_ALERT_WINDOW)); in assertAlertWindows()
208 assertTrue(AppOpsUtils.allowedOperationLogged(packageName, OPSTR_SYSTEM_ALERT_WINDOW)); in assertAlertWindows()
221 AppOpsUtils.setOpMode(activityName.getPackageName(), OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission() local
DAlertWindowsImportanceTests.java24 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW;
175 AppOpsUtils.setOpMode(mServicePackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
DWindowUntrustedTouchTest.java20 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW;
174 mPreviousSawAppOp = AppOpsUtils.getOpMode(APP_SELF, OPSTR_SYSTEM_ALERT_WINDOW); in setUp()
175 AppOpsUtils.setOpMode(APP_SELF, OPSTR_SYSTEM_ALERT_WINDOW, MODE_ALLOWED); in setUp()
201 AppOpsUtils.setOpMode(APP_SELF, OPSTR_SYSTEM_ALERT_WINDOW, mPreviousSawAppOp); in tearDown()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java20 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW;
1550 mPreviousOpMode = AppOpsUtils.getOpMode(mPackageName, OPSTR_SYSTEM_ALERT_WINDOW);
1564 AppOpsUtils.setOpMode(mPackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode);
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt115 AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW in <lambda>()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java130 APP_OPS_ENUM_MAP.put(AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW, 24); in APP_OPS_ENUM_MAP.put() argument