/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 84 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 99 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 103 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 112 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 125 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 131 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 141 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 150 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 184 AppOpsManager.OP_CAMERA, attributionSource, false, "", in testWatchActiveOpsForExternalDevice() 196 AppOpsManager.OP_CAMERA, attributionSource); in testWatchActiveOpsForExternalDevice() [all …]
|
D | AppOpsStartedWatcherTest.java | 65 AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps() 69 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 82 .times(1)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps() 102 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps() 105 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 110 .times(2)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps() 120 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 144 AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOpsForExternalDevice()
|
D | AppOpsNotedWatcherTest.java | 65 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps() 70 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps() 100 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps() 138 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOpsForExternalDevice()
|
D | AppOpsDeviceAwareServiceTest.java | 19 import static android.app.AppOpsManager.OP_CAMERA; 124 int mode = mAppOpsManager.noteProxyOp(OP_CAMERA, proxyAttributionSource, null, false); in noteProxyOpWithDeviceId() 143 .filter(op -> op.getOp() == OP_CAMERA) in noteProxyOpWithDeviceId()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUidStateTrackerTest.java | 22 import static android.app.AppOpsManager.OP_CAMERA; 130 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testNoCapability() 148 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() 164 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); 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() 212 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testForegroundWithLocationCapability() 228 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testBackgroundWithLocationCapability() 365 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testCameraCapabilityAdded() 379 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testCameraCapabilityRemoved() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 138 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testDistinctItems() 139 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0))) in testDistinctItems() 157 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testSimilarItemsDifferentTimeStamp() 158 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 1))) in testSimilarItemsDifferentTimeStamp() 239 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testNotSendingLocationWhenLocationDisabled() 294 AppOpItem(AppOpsManager.OP_CAMERA, otherUserUid, TEST_PACKAGE_NAME, 0)) in testListFilterCurrentUser() 342 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneMicOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 302 assertThat(second.getCode()).isEqualTo(AppOpsManager.OP_CAMERA); in startListening_fetchesCurrentActive_multipleEntries() 459 mController.removeCallback(new int[]{AppOpsManager.OP_CAMERA}, mCallback); in addCallback_notSameCode() 763 AppOpsManager.OP_CAMERA in testOnlyRecordAudioPhoneCallMicrophonePaused() 773 AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, true); in testOnlyRecordAudioPhoneCallMicrophonePaused() 777 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testOnlyRecordAudioPhoneCallMicrophonePaused() 797 int nonMicOp = AppOpsManager.OP_CAMERA; in testAudioFilteredWhenMicDisabled() 826 int nonMicOp = AppOpsManager.OP_CAMERA; in testPhoneCallMicrophoneFilteredWhenMicDisabled() 855 int nonMicOp = AppOpsManager.OP_CAMERA; in testAmbientTriggerMicrophoneFilteredWhenMicDisabled() 884 int nonMicOp = AppOpsManager.OP_CAMERA; in testSandboxTriggerMicrophoneFilteredWhenMicDisabled() 912 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_CAMERA}, in testCameraFilteredWhenCameraDisabled() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraOfflineSessionClient.cpp | 242 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 245 res = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, in startCameraOps() 280 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraOps()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitor.kt | 57 AppOpsManager.OP_CAMERA, in <lambda>() 212 AppOpsManager.OP_CAMERA -> PrivacyType.TYPE_CAMERA in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 19 import static android.app.AppOpsManager.OP_CAMERA; 376 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera() 398 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic() 421 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic_overlay() 434 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_overlay()
|
D | NotificationGutsManagerWithScenesTest.kt | 371 ops.add(AppOpsManager.OP_CAMERA) in <lambda>() 401 ops.add(AppOpsManager.OP_CAMERA) in <lambda>() 432 ops.add(AppOpsManager.OP_CAMERA) in <lambda>() 449 ops.add(AppOpsManager.OP_CAMERA) in <lambda>()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VisualQueryDetectorSession.java | 21 import static android.app.AppOpsManager.OP_CAMERA; 238 enforcePermissionsForVisualQueryDelivery(CAMERA, OP_CAMERA, in startPerceivingLocked()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AppOpsPolicy.java | 469 || !(code == AppOpsManager.OP_RECORD_AUDIO || code == AppOpsManager.OP_CAMERA)) { in resolveSandboxedServiceOp() 481 case AppOpsManager.OP_CAMERA: in resolveSandboxedServiceOp() 498 || code == AppOpsManager.OP_CAMERA)) { in resolveUid()
|
/frameworks/native/libs/permission/include/binder/ |
D | AppOpsManager.h | 69 OP_CAMERA = 26, enumerator
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 21 import static android.app.AppOpsManager.OP_CAMERA; 257 assertOpBlockedOnSuspend(OP_CAMERA); in testCameraBlockedOnSuspend()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManager.java | 18 import static android.app.AppOpsManager.OP_CAMERA; 259 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity() 266 } else if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 58 AppOpsManager.OP_CAMERA,
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsUidStateTrackerImpl.java | 30 import static android.app.AppOpsManager.OP_CAMERA; 174 case OP_CAMERA: in getOpCapability()
|
D | DiscreteRegistry.java | 27 import static android.app.AppOpsManager.OP_CAMERA; 138 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
|
D | AppOpsService.java | 37 import static android.app.AppOpsManager.OP_CAMERA; 241 OP_CAMERA, 3616 result = checkOperation(OP_CAMERA, uid, packageName); in startOperationImpl() 4864 if ((code == OP_CAMERA) && isAutomotive()) { in isOpRestrictedLocked()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorPrivacyService.java | 25 import static android.app.AppOpsManager.OP_CAMERA; 310 OP_CAMERA, OP_PHONE_CALL_CAMERA, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO}; in SensorPrivacyServiceImpl() 411 } else if (code == OP_CAMERA || code == OP_PHONE_CALL_CAMERA) { in onOpNoted() 1424 mAppOpsManagerInternal.setGlobalRestriction(OP_CAMERA, enabled, in setGlobalRestriction()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionUsageHelper.java | 35 import static android.app.AppOpsManager.OP_CAMERA; 188 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 113 AppOpsManager.OP_CAMERA,
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 4312 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 4316 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 4322 int32_t mode = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, mClientUid, in startCameraOps() 4359 int32_t mode = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, mClientUid, in startCameraStreamingOps() 4383 int32_t mode = mAppOpsManager->noteOp(AppOpsManager::OP_CAMERA, mClientUid, in noteAppOp() 4408 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraStreamingOps() 4458 if (op != AppOpsManager::OP_CAMERA) { in opChanged() 4464 res = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, in opChanged()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 35 import static android.app.AppOpsManager.OP_CAMERA; 377 OP_CAMERA, in initController()
|