Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricCameraManagerImpl.java23 import android.hardware.camera2.CameraManager;
29 private final CameraManager mCameraManager;
33 private final CameraManager.AvailabilityCallback mCameraAvailabilityCallback =
34 new CameraManager.AvailabilityCallback() {
46 public BiometricCameraManagerImpl(@NonNull CameraManager cameraManager, in BiometricCameraManagerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCameraAvailabilityListener.kt22 import android.hardware.camera2.CameraManager
32 private val cameraManager: CameraManager,
42 private val availabilityCallback: CameraManager.AvailabilityCallback =
43 object : CameraManager.AvailabilityCallback() {
167 val manager = context.getSystemService(Context.CAMERA_SERVICE) as CameraManager in onApplyCameraProtection()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraUtils.java22 import android.hardware.camera2.CameraManager;
44 CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in isLegacyHAL()
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2DeviceTester.java21 import android.hardware.camera2.CameraManager;
59 CameraManager manager = in captureCameraDevice()
60 (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in captureCameraDevice()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DCameraStateMonitorTests.java31 import android.hardware.camera2.CameraManager;
61 private CameraManager mMockCameraManager;
66 private CameraManager.AvailabilityCallback mCameraAvailabilityCallback;
100 mMockCameraManager = mock(CameraManager.class); in setUp()
105 any(Executor.class), any(CameraManager.AvailabilityCallback.class)); in setUp()
108 when(mContext.getSystemService(CameraManager.class)).thenReturn(mMockCameraManager); in setUp()
DCameraCompatFreeformPolicyTests.java56 import android.hardware.camera2.CameraManager;
90 private CameraManager mMockCameraManager;
94 private CameraManager.AvailabilityCallback mCameraAvailabilityCallback;
111 mMockCameraManager = mock(CameraManager.class); in setUp()
116 any(Executor.class), any(CameraManager.AvailabilityCallback.class)); in setUp()
118 when(mContext.getSystemService(CameraManager.class)).thenReturn(mMockCameraManager); in setUp()
DDisplayRotationCompatPolicyTests.java59 import android.hardware.camera2.CameraManager;
91 private CameraManager mMockCameraManager;
97 private CameraManager.AvailabilityCallback mCameraAvailabilityCallback;
113 mMockCameraManager = mock(CameraManager.class); in setUp()
118 any(Executor.class), any(CameraManager.AvailabilityCallback.class)); in setUp()
121 when(mContext.getSystemService(CameraManager.class)).thenReturn(mMockCameraManager); in setUp()
/frameworks/base/services/core/java/com/android/server/wm/
DCameraStateMonitor.java24 import android.hardware.camera2.CameraManager;
60 private final CameraManager mCameraManager;
89 private final CameraManager.AvailabilityCallback mAvailabilityCallback =
90 new CameraManager.AvailabilityCallback() {
111 mCameraManager = mWmService.mContext.getSystemService(CameraManager.class); in CameraStateMonitor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DCameraAvailabilityListenerTest.kt6 import android.hardware.camera2.CameraManager
67 private val cameraManager = mock<CameraManager>()
70 private lateinit var cameraAvailabilityCallback: CameraManager.AvailabilityCallback
87 context.addMockSystemService(CameraManager::class.java, cameraManager) in setUp()
92 any(CameraManager.AvailabilityCallback::class.java) in setUp()
96 cameraAvailabilityCallback = it.arguments[1] as CameraManager.AvailabilityCallback in setUp()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCameraManager.java20 import android.hardware.camera2.CameraManager;
92 protected final CameraManager mManager;
101 public BlockingCameraManager(CameraManager manager) { in BlockingCameraManager()
194 OpenListener(CameraManager manager, String cameraId, CameraDevice.StateCallback listener, in OpenListener()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceSetupImpl.java27 import android.hardware.camera2.CameraManager;
44 private final CameraManager mCameraManager;
50 public CameraDeviceSetupImpl(@NonNull String cameraId, @NonNull CameraManager cameraManager, in CameraDeviceSetupImpl()
138 CameraManager.getRotationOverride(mContext), in getSessionCharacteristics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImpl.java23 import android.hardware.camera2.CameraManager;
63 private final CameraManager mCameraManager;
85 CameraManager cameraManager, in FlashlightControllerImpl()
238 private final CameraManager.TorchCallback mTorchCallback =
239 new CameraManager.TorchCallback() {
/frameworks/base/core/java/android/hardware/camera2/utils/
DExtensionSessionStatsAggregator.java21 import android.hardware.camera2.CameraManager;
125 mStats.key = CameraManager.reportExtensionSessionStats(mStats); in commit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImplTest.kt21 import android.hardware.camera2.CameraManager
56 private lateinit var cameraManager: CameraManager
158 val captor = argumentCaptor<CameraManager.TorchCallback>() in testCallbackRemovedWhileDispatching_doesntCrash()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCamera2Source.java26 import android.hardware.camera2.CameraManager;
59 private CameraManager mCameraManager;
75 class MyCameraListener extends CameraManager.AvailabilityCallback {
115 mCameraManager = (CameraManager) ctx.getSystemService(Context.CAMERA_SERVICE); in Camera2Source()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DCameraAccessController.java30 import android.hardware.camera2.CameraManager;
45 class CameraAccessController extends CameraManager.AvailabilityCallback implements AutoCloseable {
54 private final CameraManager mCameraManager;
95 mCameraManager = mContext.getSystemService(CameraManager.class); in CameraAccessController()
/frameworks/base/services/profcollect/src/com/android/server/profcollect/
DProfcollectForwardingService.java28 import android.hardware.camera2.CameraManager;
376 CameraManager cm = getContext().getSystemService(CameraManager.class); in registerCameraOpenObserver()
377 cm.registerAvailabilityCallback(new CameraManager.AvailabilityCallback() { in registerCameraOpenObserver()
/frameworks/ex/camera2/extensions/eyesFreeVidSample/src/android/camera/extensions/impl/service/
DEyesFreeVidService.java33 import android.hardware.camera2.CameraManager;
65 CameraManager mCameraManager;
95 mCameraManager = getSystemService(CameraManager.class); in onInitializeAdvancedExtension()
110 public AdvancedExtenderEyesFreeImpl(@NonNull CameraManager cameraManager) { in AdvancedExtenderEyesFreeImpl()
327 public AdvancedExtenderImpl(@NonNull CameraManager cameraManager) { in AdvancedExtenderImpl()
/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/
DImageCaptureExtenderImplStub.java22 import android.hardware.camera2.CameraManager;
182 CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in init()
DPreviewExtenderImplStub.java23 import android.hardware.camera2.CameraManager;
190 CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in init()
DAdvancedExtenderImplStub.java24 import android.hardware.camera2.CameraManager;
80 CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in init()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DFlashNotificationsController.java40 import android.hardware.camera2.CameraManager;
172 private CameraManager mCameraManager;
175 private final CameraManager.TorchCallback mTorchCallback = new CameraManager.TorchCallback() {
185 final CameraManager.AvailabilityCallback mTorchAvailabilityCallback =
186 new CameraManager.AvailabilityCallback() {
377 mCameraManager = mContext.getSystemService(CameraManager.class); in prepareForCameraFlashNotification()
875 mCameraManager = mContext.getSystemService(CameraManager.class); in onReceive()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFlashNotificationsControllerTest.java51 import android.hardware.camera2.CameraManager;
116 private CameraManager mCameraManager;
130 private final CameraManager.TorchCallback mTorchCallback = new CameraManager.TorchCallback() {
172 mCameraManager = mTestableContext.getSystemService(CameraManager.class); in setUp()
/frameworks/base/core/java/android/hardware/camera2/extension/
DAdvancedExtender.java24 import android.hardware.camera2.CameraManager;
59 private final CameraManager mCameraManager;
70 public AdvancedExtender(@NonNull CameraManager cameraManager) { in AdvancedExtender()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraView.java23 import android.hardware.camera2.CameraManager;
54 CameraManager mCameraManager;
88 mCameraManager = (CameraManager) mContext.getSystemService(mContext.CAMERA_SERVICE); in CameraView()

123