Home
last modified time | relevance | path

Searched refs:MODE_ERRORED (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DAppOpsTest.java21 import static android.app.AppOpsManager.MODE_ERRORED;
133 setOpMode(mOpPackageName, OPSTR_READ_SMS, MODE_ERRORED); in testNoteOpAndCheckOp()
134 assertEquals(MODE_ERRORED, mAppOps.noteOpNoThrow(OPSTR_READ_SMS, mMyUid, mOpPackageName)); in testNoteOpAndCheckOp()
135 assertEquals(MODE_ERRORED, mAppOps.checkOpNoThrow(OPSTR_READ_SMS, mMyUid, mOpPackageName)); in testNoteOpAndCheckOp()
163 setOpMode(mOpPackageName, OPSTR_READ_SMS, MODE_ERRORED); in testStartOpAndFinishOp()
164 assertEquals(MODE_ERRORED, mAppOps.startOpNoThrow(OPSTR_READ_SMS, mMyUid, mOpPackageName)); in testStartOpAndFinishOp()
209 setOpMode(mOpPackageName, OPSTR_READ_SMS, MODE_ERRORED); in testWatchingMode()
229 setOpMode(mOpPackageName, OPSTR_READ_SMS, MODE_ERRORED); in testWatchingMode()
303 setOpMode(mOpPackageName, OPSTR_READ_CALENDAR, MODE_ERRORED); in testGetOpsForPackage_opsAreLogged()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DAppOpsUtils.java21 import static android.app.AppOpsManager.MODE_ERRORED;
60 case MODE_ERRORED: in setOpMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTests.java39 import static android.app.AppOpsManager.MODE_ERRORED;
77 OPSTR_SYSTEM_ALERT_WINDOW, MODE_ERRORED); in revokeSystemAlertWindowAccess() local
DAlertWindowsTests.java20 import static android.app.AppOpsManager.MODE_ERRORED;
220 int mode = allow ? MODE_ALLOWED : MODE_ERRORED; in setAlertWindowPermission()
/cts/tests/tests/packageinstaller/externalsources/src/android/packageinstaller/externalsources/cts/
DExternalSourcesInstantAppsTest.java59 setAppOpsMode(AppOpsManager.MODE_ERRORED); in blockedSourceTest()