Home
last modified time | relevance | path

Searched refs:OP_CAMERA (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java84 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 …]
DAppOpsStartedWatcherTest.java65 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()
DAppOpsNotedWatcherTest.java65 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()
DAppOpsDeviceAwareServiceTest.java19 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/
DAppOpsUidStateTrackerTest.java22 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/
DAppOpsPrivacyItemMonitorTest.kt138 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/
DAppOpsControllerTest.java302 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/
DCameraOfflineSessionClient.cpp242 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/
DAppOpsPrivacyItemMonitor.kt57 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/
DNotificationGutsManagerTest.java19 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()
DNotificationGutsManagerWithScenesTest.kt371 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/
DVisualQueryDetectorSession.java21 import static android.app.AppOpsManager.OP_CAMERA;
238 enforcePermissionsForVisualQueryDelivery(CAMERA, OP_CAMERA, in startPerceivingLocked()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java469 || !(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/
DAppOpsManager.h69 OP_CAMERA = 26, enumerator
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java21 import static android.app.AppOpsManager.OP_CAMERA;
257 assertOpBlockedOnSuspend(OP_CAMERA); in testCameraBlockedOnSuspend()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java18 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/
DRecentAppOpsAccess.java58 AppOpsManager.OP_CAMERA,
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTrackerImpl.java30 import static android.app.AppOpsManager.OP_CAMERA;
174 case OP_CAMERA: in getOpCapability()
DDiscreteRegistry.java27 import static android.app.AppOpsManager.OP_CAMERA;
138 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
DAppOpsService.java37 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/
DSensorPrivacyService.java25 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/
DPermissionUsageHelper.java35 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/
DAppOpsControllerImpl.java113 AppOpsManager.OP_CAMERA,
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp4312 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/
DBackgroundRestrictionTest.java35 import static android.app.AppOpsManager.OP_CAMERA;
377 OP_CAMERA, in initController()

12