/frameworks/base/services/robotests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplRoboTest.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 271 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_noPermissions_throwsSecurityException() 284 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_missingInteractAcrossUsersAndFull_throwsSecurityException() 292 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_setsAppOp() 293 assertThat(getCrossProfileAppOp()).isEqualTo(MODE_ALLOWED); in setInteractAcrossProfilesAppOp_setsAppOp() 306 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_configureInteractAcrossProfilesPermissionWithoutAppOpsPermissions_setsAppOp() 308 assertThat(getCrossProfileAppOp()).isEqualTo(MODE_ALLOWED); in setInteractAcrossProfilesAppOp_configureInteractAcrossProfilesPermissionWithoutAppOpsPermissions_setsAppOp() 320 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_appOpsPermissionsWithoutConfigureInteractAcrossProfilesPermission_setsAppOp() 322 assertThat(getCrossProfileAppOp()).isEqualTo(MODE_ALLOWED); in setInteractAcrossProfilesAppOp_appOpsPermissionsWithoutConfigureInteractAcrossProfilesPermission_setsAppOp() 330 CROSS_PROFILE_APP_PACKAGE_NAME, MODE_ALLOWED); in setInteractAcrossProfilesAppOp_setsAppOpWithUsersAndWithoutFull() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUidStateTrackerTest.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 144 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() 145 assertEquals(MODE_ALLOWED, in testForegroundWithMicrophoneCapability() 160 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testBackgroundWithMicrophoneCapability() 161 assertEquals(MODE_ALLOWED, in testBackgroundWithMicrophoneCapability() 176 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testForegroundWithCameraCapability() 192 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testBackgroundWithCameraCapability() 208 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testForegroundWithLocationCapability() 209 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testForegroundWithLocationCapability() 224 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testBackgroundWithLocationCapability() [all …]
|
D | AppOpsServiceTest.java | 18 import static android.app.AppOpsManager.MODE_ALLOWED; 256 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 262 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 268 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 279 assertThat(allowedResult.getOpMode()).isEqualTo(MODE_ALLOWED); in testNoteOperationFromSdkSandbox() 295 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 298 null, false).getOpMode()).isEqualTo(MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 301 MODE_ALLOWED /* default for WIFI_SCAN; this is not changed or used in this test */); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() local 309 MODE_ALLOWED /* default for WIFI_SCAN; this is not changed or used in this test */); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() local 315 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testStatePersistence() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppOpsControllerTest.kt | 20 import android.app.AppOpsManager.MODE_ALLOWED 60 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, MODE_ALLOWED) in setAllowed_setToTrue() 95 verify(appOpsManager).setUidMode(OP, APP.uid, MODE_ALLOWED) in setAllowed_setToTrueByUid() 114 .thenReturn(MODE_ALLOWED) in getMode() 119 assertThat(mode).isEqualTo(MODE_ALLOWED) in getMode()
|
D | AppOpsPermissionControllerTest.kt | 54 on { modeFlow } doReturn flowOf(AppOpsManager.MODE_ALLOWED) in <lambda>() 142 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, AppOpsManager.MODE_ALLOWED) in setAllowed_notSetModeByUid() 156 verify(appOpsManager).setUidMode(OP, APP.uid, AppOpsManager.MODE_ALLOWED) in setAllowed_setModeByUid()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemAppOpsHelper.java | 71 callerIdentity.getListenerId()) == AppOpsManager.MODE_ALLOWED; in startOpNoThrow() 102 callerIdentity.getPackageName()) == AppOpsManager.MODE_ALLOWED; in checkOpNoThrow() 119 callerIdentity.getListenerId()) == AppOpsManager.MODE_ALLOWED; in noteOp() 136 callerIdentity.getListenerId()) == AppOpsManager.MODE_ALLOWED; in noteOpNoThrow()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemAppOpsHelperTest.java | 18 import static android.app.AppOpsManager.MODE_ALLOWED; 109 doReturn(MODE_ALLOWED).when( in testCheckOp() 119 doReturn(MODE_ALLOWED).when( in testCheckOp() 132 doReturn(MODE_ALLOWED).when( in testNoteOpNoThrow() 145 doReturn(MODE_ALLOWED).when( in testNoteOpNoThrow() 160 doReturn(MODE_ALLOWED).when( in testStartOp() 183 doReturn(MODE_ALLOWED).when( in testNoteOp()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | AppOpModes.kt | 22 const val MODE_ALLOWED = AppOpsManager.MODE_ALLOWED constant
|
D | AppIdAppOpUpgrade.kt | 58 AppOpsManager.MODE_ALLOWED in MutateStateScope()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 355 callingPkg, attributionTag, null) != AppOpsManager.MODE_ALLOWED) { in sendMessage() 375 callingPkg, attributionTag, null) != AppOpsManager.MODE_ALLOWED) { in downloadMessage() 392 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in importTextMessage() 406 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in importMultimediaMessage() 419 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in deleteStoredMessage() 429 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in deleteStoredConversation() 439 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in updateStoredMessageStatus() 450 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in archiveStoredConversation() 461 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in addTextMessageDraft() 473 callingPkg, null, null) != AppOpsManager.MODE_ALLOWED) { in addMultimediaMessageDraft() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppOpsController.kt | 20 import android.app.AppOpsManager.MODE_ALLOWED 34 get() = modeFlow.map { it == MODE_ALLOWED } in <lambda>() 63 val mode = if (allowed) MODE_ALLOWED else appOps.modeForNotAllowed in setAllowed()
|
D | AppOpsPermissionController.kt | 45 AppOpsManager.MODE_ALLOWED -> true in mode()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 390 MODE_ALLOWED, 402 public static final int MODE_ALLOWED = 0; field in AppOpsManager 2621 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2626 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2630 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2633 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2636 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2639 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2643 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), 2647 .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(), [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 80 eq(AppOpsManager.MODE_ALLOWED)); in testWatchNotedOps() 86 eq(AppOpsManager.MODE_ALLOWED)); in testWatchNotedOps() 112 eq(AppOpsManager.MODE_ALLOWED)); in testWatchNotedOps() 146 eq(AppOpsManager.OP_FLAG_SELF), eq(AppOpsManager.MODE_ALLOWED)); in testWatchNotedOpsForExternalDevice()
|
D | AppOpsStartedWatcherTest.java | 77 eq(AppOpsManager.OP_FLAG_SELF), eq(AppOpsManager.MODE_ALLOWED), in testWatchStartedOps() 85 eq(AppOpsManager.OP_FLAG_SELF), eq(AppOpsManager.MODE_ALLOWED), in testWatchStartedOps() 113 eq(AppOpsManager.OP_FLAG_SELF), eq(AppOpsManager.MODE_ALLOWED), in testWatchStartedOps() 155 eq(AppOpsManager.MODE_ALLOWED), eq(OnOpStartedListener.START_TYPE_STARTED), in testWatchStartedOpsForExternalDevice()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 87 if (mode != AppOpsManager.MODE_ALLOWED) { in checkAudioOperation() 91 return AppOpsManager.MODE_ALLOWED; in checkAudioOperation() 102 return AppOpsManager.MODE_ALLOWED; in checkZenModeRestrictionLocked() 114 if (mode != AppOpsManager.MODE_ALLOWED) { in setZenModeAudioRestriction()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | PermissionCheckerTest.java | 79 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() 91 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted() 152 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForDataDelivery_appOpPermission_modeAllowed_returnsGranted() 164 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForDataDelivery_appOpPermission_packageNameIsNull_returnsGranted()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | TestDocumentsProvider.java | 97 return AppOpsManager.MODE_ALLOWED; in enforceReadPermissionInner() 102 return AppOpsManager.MODE_ALLOWED; in enforceWritePermissionInner()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 397 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in addCallback_includedCode() 485 AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in getActiveItems_differentDetails() 497 AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in getActiveItemsForUser() 538 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in opNotedScheduledForRemoval() 551 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in noItemsAfterStopListening() 566 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in noDoubleUpdateOnOpNoted() 568 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in noDoubleUpdateOnOpNoted() 582 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in onDoubleOPNoted_scheduleTwiceForRemoval() 584 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in onDoubleOPNoted_scheduleTwiceForRemoval() 633 TEST_ATTRIBUTION_NAME, AppOpsManager.OP_FLAG_SELF, AppOpsManager.MODE_ALLOWED); in testActiveOpNotRemovedAfterNoted() [all …]
|
/frameworks/native/libs/permission/include/binder/ |
D | AppOpsManager.h | 36 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionController.h | 39 MODE_ALLOWED = 0, enumerator
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AssistDataRequester.java | 21 import static android.app.AppOpsManager.MODE_ALLOWED; 241 callingPackage, callingAttributionTag, /* message */ null) == MODE_ALLOWED in requestData() 292 callingPackage, callingAttributionTag, /* message */ null) == MODE_ALLOWED in requestData()
|
D | BroadcastSkipPolicy.java | 142 != AppOpsManager.MODE_ALLOWED) { in shouldSkipMessage() 263 == AppOpsManager.MODE_ALLOWED)) { in shouldSkipMessage() 406 != AppOpsManager.MODE_ALLOWED) { in shouldSkipMessage() 500 != AppOpsManager.MODE_ALLOWED) { in shouldSkipMessage() 543 == AppOpsManager.MODE_ALLOWED)) { in shouldSkipMessage() 590 != AppOpsManager.MODE_ALLOWED) { in shouldSkipMessage() 657 != AppOpsManager.MODE_ALLOWED) { in noteOpForManifestReceiverInner()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 108 callingAttributionTag, null) == AppOpsManager.MODE_ALLOWED; in checkCallingCanSendSms() 123 == AppOpsManager.MODE_ALLOWED; in checkCallingOrSelfCanSendSms()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipAppOpsListener.kt | 42 ) != AppOpsManager.MODE_ALLOWED in <lambda>()
|