Home
last modified time | relevance | path

Searched refs:MODE_IGNORED (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/app/src/android/app/cts/
DActivityManagerApi29Test.java26 import static android.app.AppOpsManager.MODE_IGNORED;
193 assertEquals(MODE_IGNORED, noteOp(OPSTR_COARSE_LOCATION)); in testTopActivityWithAppOps()
228 assertEquals(MODE_IGNORED, noteOp(OPSTR_COARSE_LOCATION)); in testFgsLocationWithAppOps()
235 assertEquals(MODE_IGNORED, noteOp(OPSTR_COARSE_LOCATION)); in testFgsLocationWithAppOps()
322 assertEquals(MODE_IGNORED, noteOp(OPSTR_CAMERA)); in testCameraWithAppOps()
323 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
341 assertEquals(MODE_IGNORED, noteOp(OPSTR_CAMERA)); in testCameraWithAppOps()
342 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
349 assertEquals(MODE_IGNORED, noteOp(OPSTR_CAMERA)); in testCameraWithAppOps()
350 assertEquals(MODE_IGNORED, noteOp(OPSTR_RECORD_AUDIO)); in testCameraWithAppOps()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOpsMode.java29 private static final int MODE_IGNORED = 1; field in AppOpsMode
49 case MODE_IGNORED: in forValue()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java25 import static android.app.AppOpsManager.MODE_IGNORED;
120 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testGrantDeniedRuntimePermission22()
127 assertEquals(MODE_IGNORED, getAppOp(APP22, READ_CONTACTS)); in testGrantDeniedRuntimePermission22()
157 assertEquals(MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission()
168 setAppOp(APP22, ACCESS_FINE_LOCATION, MODE_IGNORED); in testNoTriStateRuntimePermission22()
174 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, ACCESS_FINE_LOCATION))); in testNoTriStateRuntimePermission22()
249 setAppOp(APP22, WRITE_CONTACTS, MODE_IGNORED); in testGrantForegroundAndBackgroundRuntimePermission22()
257 assertEquals(MODE_IGNORED, getAppOp(APP22, WRITE_CONTACTS)); in testGrantForegroundAndBackgroundRuntimePermission22()
337 setAppOp(APP22, READ_CONTACTS, MODE_IGNORED); in testDelayedRestore()
354 eventually(() -> assertEquals(MODE_IGNORED, getAppOp(APP22, READ_CONTACTS))); in testDelayedRestore()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAppOpsUtils.java22 import static android.app.AppOpsManager.MODE_IGNORED;
68 case MODE_IGNORED: in setOpMode()
101 return MODE_IGNORED; in getOpMode()
DPermissionUtils.java20 import static android.app.AppOpsManager.MODE_IGNORED;
74 return getAppOp(packageName, permission) != MODE_IGNORED; in isPermissionAndAppOpGranted()
106 setAppOpByPermission(packageName, permission, MODE_IGNORED); in revokePermissionAndAppOp()
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt23 import android.app.AppOpsManager.MODE_IGNORED
57 MODE_IGNORED -> "ignore" in setOpMode()
73 opState.contains(" ignore") -> MODE_IGNORED in getOpMode()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsMultiUserTest.kt81 AppOpsManager.MODE_IGNORED in <lambda>()
89 Assert.assertEquals(AppOpsManager.MODE_IGNORED, mode) in <lambda>()
110 Assert.assertEquals(AppOpsManager.MODE_IGNORED, mode) in <lambda>()
DForegroundModeAndActiveTest.kt26 import android.app.AppOpsManager.MODE_IGNORED in <lambda>()
133 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
229 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
249 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
295 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
317 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
343 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
580 assertThat(testPkgAppOpMode).isEqualTo(MODE_IGNORED) in <lambda>()
DAppOpsTest.kt24 import android.app.AppOpsManager.MODE_IGNORED
175 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_IGNORED) in testNoteOpAndCheckOp()
176 assertEquals(MODE_IGNORED, mAppOps.noteOp(OPSTR_RESERVED_FOR_TESTING, in testNoteOpAndCheckOp()
178 assertEquals(MODE_IGNORED, mAppOps.noteOpNoThrow(OPSTR_RESERVED_FOR_TESTING, in testNoteOpAndCheckOp()
180 assertEquals(MODE_IGNORED, mAppOps.unsafeCheckOp(OPSTR_RESERVED_FOR_TESTING, in testNoteOpAndCheckOp()
182 assertEquals(MODE_IGNORED, mAppOps.unsafeCheckOpNoThrow(OPSTR_RESERVED_FOR_TESTING, in testNoteOpAndCheckOp()
223 setOpMode(mOpPackageName, OPSTR_RESERVED_FOR_TESTING, MODE_IGNORED) in testStartOpAndFinishOp()
224 assertEquals(MODE_IGNORED, mAppOps.startOp(OPSTR_RESERVED_FOR_TESTING, in testStartOpAndFinishOp()
226 assertEquals(MODE_IGNORED, mAppOps.startOpNoThrow(OPSTR_RESERVED_FOR_TESTING, in testStartOpAndFinishOp()
962 mOpPackageName, MODE_IGNORED) in testNonHistoricalStatePersistence()
[all …]
DAppOpsDeviceAwareTest.kt90 .isEqualTo(AppOpsManager.MODE_IGNORED) in getUidMode_shouldBeInferredFromPermissionState()
103 .isEqualTo(AppOpsManager.MODE_IGNORED) in getUidMode_shouldBeInferredFromPermissionState()
DDiscreteAppopsTest.kt31 import android.app.AppOpsManager.MODE_IGNORED in <lambda>()
1152 if (testPkgAppOpMode == MODE_IGNORED) { in <lambda>()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DPermissionCheckerTest.kt68 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForPreflight()
98 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForDataDelivery()
127 appOpsManager.setUidMode(HELPER_APP_OP_NAME, helperUid, AppOpsManager.MODE_IGNORED) in testCheckPermissionForDataDeliveryFromDataSource()
/cts/tests/tests/security/src/android/security/cts/
DPermissionBackupCertificateCheckTest.kt482 assertEquals(AppOpsManager.MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)) in testRestore_fgBgDenied_matchingCerts_restoresFgBgPermissions()
517 assertEquals(AppOpsManager.MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)) in testRestore_fgBgDenied_notMatchingCerts_doesNotRestorePerms()
573 assertEquals(AppOpsManager.MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)) in testRestore_fgGranted_notMatchingCerts_doesNotRestoreFgBgPerms()
626 assertEquals(AppOpsManager.MODE_IGNORED, getAppOp(APP, ACCESS_FINE_LOCATION)) in testRestore_fgBgGranted_notMatchingCerts_restoresFgBgPerms()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java20 import static android.app.AppOpsManager.MODE_IGNORED;
117 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_IGNORED); in setUp()
DAppStandbyTests.java20 import static android.app.AppOpsManager.MODE_IGNORED;
143 MODE_IGNORED); in setUp() local
DExactAlarmsTest.java201 setAppOp(packageName, AppOpsManager.MODE_IGNORED); in revokeAppOp()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobSchedulingTest.java23 import static android.app.AppOpsManager.MODE_IGNORED;
168 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_IGNORED); in testCanRunUserInitiatedJobs()
644 AppOpsUtils.setOpMode(MY_PACKAGE, OPSTR_RUN_USER_INITIATED_JOBS, MODE_IGNORED);
DTestAppInterface.java287 restricted ? AppOpsManager.MODE_IGNORED : AppOpsManager.MODE_ALLOWED); in setTestPackageRestricted()
DJobThrottlingTest.java1354 restricted ? AppOpsManager.MODE_IGNORED : AppOpsManager.MODE_ALLOWED); in setTestPackageRestricted()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DSensitiveNotificationRedactionTest.kt402 AppOpsManager.MODE_IGNORED, in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
424 AppOpsManager.MODE_IGNORED in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierConfigManagerTest.java20 import static android.app.AppOpsManager.MODE_IGNORED;
420 setOpMode("--uid android.telephony.cts", OPSTR_READ_PHONE_STATE, MODE_IGNORED); in testRevokePermission()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioPlaybackConfigurationTest.java21 import static android.app.AppOpsManager.MODE_IGNORED;
545 setOpMode(getContext().getPackageName(), OPSTR_PLAY_AUDIO, MODE_IGNORED); in checkMuteFromAppOpsNotification()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaProviderTestUtils.java429 AppOpsManager.MODE_IGNORED); in revokeMediaLocationPermission()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInstallerArchiveTest.java934 optIn ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED), in setOptInStatus()
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/
DBroadcastResponseStatsTest.java159 AppOpsManager.MODE_IGNORED); in setUpClass()

12