Searched refs:OPSTR_SYSTEM_ALERT_WINDOW (Results 1 – 7 of 7) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTests.java | 20 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 …]
|
D | AlertWindowsTests.java | 21 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
|
D | AlertWindowsImportanceTests.java | 24 import static android.app.AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW; 175 AppOpsUtils.setOpMode(mServicePackageName, OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
|
D | WindowUntrustedTouchTest.java | 20 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/ |
D | ActivityManagerTestBase.java | 20 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/ |
D | AppOpsTest.kt | 115 AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW in <lambda>()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | AtomTests.java | 130 APP_OPS_ENUM_MAP.put(AppOpsManager.OPSTR_SYSTEM_ALERT_WINDOW, 24); in APP_OPS_ENUM_MAP.put() argument
|