/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerApi29Test.java | 26 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/ |
D | AppOpsMode.java | 29 private static final int MODE_IGNORED = 1; field in AppOpsMode 49 case MODE_IGNORED: in forValue()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 25 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/ |
D | AppOpsUtils.java | 22 import static android.app.AppOpsManager.MODE_IGNORED; 68 case MODE_IGNORED: in setOpMode() 101 return MODE_IGNORED; in getOpMode()
|
D | PermissionUtils.java | 20 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/ |
D | AppOpsUtils.kt | 23 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/ |
D | AppOpsMultiUserTest.kt | 81 AppOpsManager.MODE_IGNORED in <lambda>() 89 Assert.assertEquals(AppOpsManager.MODE_IGNORED, mode) in <lambda>() 110 Assert.assertEquals(AppOpsManager.MODE_IGNORED, mode) in <lambda>()
|
D | ForegroundModeAndActiveTest.kt | 26 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>()
|
D | AppOpsTest.kt | 24 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 …]
|
D | AppOpsDeviceAwareTest.kt | 90 .isEqualTo(AppOpsManager.MODE_IGNORED) in getUidMode_shouldBeInferredFromPermissionState() 103 .isEqualTo(AppOpsManager.MODE_IGNORED) in getUidMode_shouldBeInferredFromPermissionState()
|
D | DiscreteAppopsTest.kt | 31 import android.app.AppOpsManager.MODE_IGNORED in <lambda>() 1152 if (testPkgAppOpMode == MODE_IGNORED) { in <lambda>()
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | PermissionCheckerTest.kt | 68 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/ |
D | PermissionBackupCertificateCheckTest.kt | 482 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/ |
D | BackgroundRestrictedAlarmsTest.java | 20 import static android.app.AppOpsManager.MODE_IGNORED; 117 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_IGNORED); in setUp()
|
D | AppStandbyTests.java | 20 import static android.app.AppOpsManager.MODE_IGNORED; 143 MODE_IGNORED); in setUp() local
|
D | ExactAlarmsTest.java | 201 setAppOp(packageName, AppOpsManager.MODE_IGNORED); in revokeAppOp()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobSchedulingTest.java | 23 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);
|
D | TestAppInterface.java | 287 restricted ? AppOpsManager.MODE_IGNORED : AppOpsManager.MODE_ALLOWED); in setTestPackageRestricted()
|
D | JobThrottlingTest.java | 1354 restricted ? AppOpsManager.MODE_IGNORED : AppOpsManager.MODE_ALLOWED); in setTestPackageRestricted()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | SensitiveNotificationRedactionTest.kt | 402 AppOpsManager.MODE_IGNORED, in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted() 424 AppOpsManager.MODE_IGNORED in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CarrierConfigManagerTest.java | 20 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/ |
D | AudioPlaybackConfigurationTest.java | 21 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/ |
D | MediaProviderTestUtils.java | 429 AppOpsManager.MODE_IGNORED); in revokeMediaLocationPermission()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveTest.java | 934 optIn ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED), in setOptInStatus()
|
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/ |
D | BroadcastResponseStatsTest.java | 159 AppOpsManager.MODE_IGNORED); in setUpClass()
|