Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java66 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
81 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps()
85 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
94 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps()
107 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
113 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
123 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
132 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
140 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testIsRunning()
145 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testIsRunning()
[all …]
DAppOpsStartedWatcherTest.java54 AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps()
58 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps()
71 .times(1)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps()
90 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps()
93 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps()
98 .times(2)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps()
107 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps()
DAppOpsNotedWatcherTest.java56 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps()
61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps()
72 .times(1)).onOpNoted(eq(AppOpsManager.OP_CAMERA), in testWatchNotedOps()
89 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java198 mController.removeCallback(new int[]{AppOpsManager.OP_CAMERA}, mCallback); in addCallback_notSameCode()
490 AppOpsManager.OP_CAMERA in testOnlyRecordAudioPhoneCallMicrophonePaused()
499 AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, true); in testOnlyRecordAudioPhoneCallMicrophonePaused()
503 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testOnlyRecordAudioPhoneCallMicrophonePaused()
546 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_CAMERA}, in testAudioFilteredWhenMicDisabled()
564 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testAudioFilteredWhenMicDisabled()
573 int micIdx = list.get(0).getCode() == AppOpsManager.OP_CAMERA ? 1 : 0; in testAudioFilteredWhenMicDisabled()
580 new int[]{AppOpsManager.OP_PHONE_CALL_MICROPHONE, AppOpsManager.OP_CAMERA}, in testPhoneCallMicrophoneFilteredWhenMicDisabled()
598 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testPhoneCallMicrophoneFilteredWhenMicDisabled()
607 int micIdx = list.get(0).getCode() == AppOpsManager.OP_CAMERA ? 1 : 0; in testPhoneCallMicrophoneFilteredWhenMicDisabled()
[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()
147 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testSimilarItemsDifferentTimeStamp()
148 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 1))) in testSimilarItemsDifferentTimeStamp()
229 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testNotSendingLocationWhenLocationDisabled()
284 AppOpItem(AppOpsManager.OP_CAMERA, otherUserUid, TEST_PACKAGE_NAME, 0)) in testListFilterCurrentUser()
332 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneMicOps()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp220 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps()
223 res = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, in startCameraOps()
258 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraOps()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java19 import static android.app.AppOpsManager.OP_CAMERA;
260 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera()
282 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic()
305 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic_overlay()
318 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_overlay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt56 val OPS_MIC_CAMERA = intArrayOf(AppOpsManager.OP_CAMERA, in <lambda>()
208 AppOpsManager.OP_CAMERA -> PrivacyType.TYPE_CAMERA in <lambda>()
/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;
218 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
225 } else if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java55 AppOpsManager.OP_CAMERA,
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java101 AppOpsManager.OP_CAMERA,
535 return op == AppOpsManager.OP_CAMERA || op == AppOpsManager.OP_PHONE_CALL_CAMERA; in isOpCamera()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyService.java25 import static android.app.AppOpsManager.OP_CAMERA;
274 OP_CAMERA, OP_PHONE_CALL_CAMERA}; in SensorPrivacyServiceImpl()
345 } else if (code == OP_CAMERA || code == OP_PHONE_CALL_CAMERA) { in onOpNoted()
1077 mAppOpsManagerInternal.setGlobalRestriction(OP_CAMERA, enabled, in setGlobalRestriction()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java35 import static android.app.AppOpsManager.OP_CAMERA;
190 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java94 AppOpsManager.OP_CAMERA, in testAppOpsChangedCalledFromBgThread()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp3528 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps()
3533 int32_t mode = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, mClientUid, in startCameraOps()
3570 int32_t mode = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, mClientUid, in startCameraStreamingOps()
3593 int32_t mode = mAppOpsManager->noteOp(AppOpsManager::OP_CAMERA, mClientUid, in noteAppOp()
3618 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraStreamingOps()
3668 if (op != AppOpsManager::OP_CAMERA) { in opChanged()
3674 res = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, in opChanged()
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java27 import static android.app.AppOpsManager.OP_CAMERA;
136 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
DAppOpsService.java40 import static android.app.AppOpsManager.OP_CAMERA;
269 OP_CAMERA,
610 case OP_CAMERA: in evalMode()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java35 import static android.app.AppOpsManager.OP_CAMERA;
325 OP_CAMERA, in initController()
/frameworks/base/core/java/android/app/
DAppOpsManager.java964 public static final int OP_CAMERA = AppProtoEnums.APP_OP_CAMERA; field in AppOpsManager
1871 OP_CAMERA,
1946 OP_CAMERA, // CAMERA
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskSupervisor.java1306 AppOpsManager.OP_CAMERA, user, callingPackage, null); in getActionRestrictionForCallingPackage()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java4087 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) { in adjustAllocateFlags()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java2496 AppOpsManager.OP_CAMERA
DActivityManagerService.java1908 final int[] cameraOp = {AppOpsManager.OP_CAMERA}; in setSystemProcess()