Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java24 import com.android.messaging.ui.mediapicker.CameraManager.CameraWrapper;
34 CameraManager.setCameraWrapper(null); in setUp()
44 CameraManager.setCameraWrapper(MockCameraFactory.createCameraWrapper()); in testNoCameraDeviceGetInfo()
45 assertEquals(false, CameraManager.get().hasAnyCamera()); in testNoCameraDeviceGetInfo()
46 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testNoCameraDeviceGetInfo()
48 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testNoCameraDeviceGetInfo()
55 CameraManager.setCameraWrapper(MockCameraFactory.createCameraWrapper( in testFrontFacingOnlyGetInfo()
58 assertEquals(true, CameraManager.get().hasAnyCamera()); in testFrontFacingOnlyGetInfo()
59 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testFrontFacingOnlyGetInfo()
60 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testFrontFacingOnlyGetInfo()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraMediaChooser.java38 import com.android.messaging.ui.mediapicker.CameraManager.MediaCallback;
49 CameraManager.CameraManagerListener {
68 if (CameraManager.get().hasAnyCamera()) { in getSupportedMediaTypes()
77 CameraManager.get().closeCamera(); in destroyView()
78 CameraManager.get().setListener(null); in destroyView()
79 CameraManager.get().setSubscriptionDataProvider(null); in destroyView()
85 CameraManager.get().setListener(this); in createView()
86 CameraManager.get().setSubscriptionDataProvider(this); in createView()
87 CameraManager.get().setVideoMode(false); in createView()
98 if (CameraManager.get().isVideoMode()) { in createView()
[all …]
DCameraPreview.java96 if (CameraManager.hasCameraPermission()) { in onVisibilityChanged()
98 CameraManager.get().openCamera(); in onVisibilityChanged()
100 CameraManager.get().closeCamera(); in onVisibilityChanged()
118 if (CameraManager.hasCameraPermission()) { in onAttachedToWindow()
119 CameraManager.get().openCamera(); in onAttachedToWindow()
124 CameraManager.get().closeCamera(); in onDetachedFromWindow()
128 if (CameraManager.hasCameraPermission()) { in onRestoreInstanceState()
129 CameraManager.get().openCamera(); in onRestoreInstanceState()
134 CameraManager.get().openCamera(); in onCameraPermissionGranted()
DHardwareCameraPreview.java47 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview()
52 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview()
57 CameraManager.get().setSurface(null); in HardwareCameraPreview()
63 CameraManager.get().setSurface(mPreview); in HardwareCameraPreview()
DSoftwareCameraPreview.java45 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview()
51 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview()
56 CameraManager.get().setSurface(null); in SoftwareCameraPreview()
DCameraMediaChooserView.java45 bundle.putInt(KEY_CAMERA_INDEX, CameraManager.get().getCameraIndex()); in onSaveInstanceState()
56 CameraManager.get().selectCameraByIndex(bundle.getInt(KEY_CAMERA_INDEX)); in onRestoreInstanceState()
71 CameraManager.get().selectCamera(Camera.CameraInfo.CAMERA_FACING_BACK); in resetState()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java41 import com.android.dialer.callcomposer.camera.CameraManager;
42 import com.android.dialer.callcomposer.camera.CameraManager.CameraManagerListener;
43 import com.android.dialer.callcomposer.camera.CameraManager.MediaCallback;
56 implements CameraManagerListener, OnClickListener, CameraManager.MediaCallback {
136 CameraManager.get().setListener(this); in setupCamera()
138 CameraManager.get().setRenderOverlay(focus); in setupCamera()
139 CameraManager.get().selectCamera(cameraDirection); in setupCamera()
176 CameraManager.get().takePicture(heightPercent, this); in onClick()
179 CameraManager.get().swapCamera(); in onClick()
180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
[all …]
/packages/apps/Settings/src/com/android/settings/flashlight/
DFlashlightSlice.java30 import android.hardware.camera2.CameraManager;
105 final CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in onNotifyChange()
120 final CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/flashlight/
DFlashlightSlice.java30 import android.hardware.camera2.CameraManager;
105 final CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in onNotifyChange()
120 final CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraId()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java60 public class CameraManager implements FocusOverlayManager.Listener { class
96 private static CameraManager instance;
148 private CameraManager() { in CameraManager() method in CameraManager
180 public static CameraManager get() { in get()
182 instance = new CameraManager(); in get()
357 "Opening camera " + CameraManager.this.cameraIndex); in openCamera()
379 "Opened camera " + CameraManager.this.cameraIndex + " " + (camera != null)); in openCamera()
399 openCameraTask.execute(CameraManager.this.cameraIndex); in openCamera()
446 if (CameraManager.this.camera != camera) { in takePicture()
DHardwareCameraPreview.java48 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
54 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
59 CameraManager.get().setSurface(null); in HardwareCameraPreview()
65 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
DSoftwareCameraPreview.java46 CameraManager.get().setSurface(preview); in SoftwareCameraPreview()
55 CameraManager.get().setSurface(preview); in SoftwareCameraPreview()
60 CameraManager.get().setSurface(null); in SoftwareCameraPreview()
DCameraPreview.java72 CameraManager.get().openCamera(); in maybeOpenCamera()
125 CameraManager.get().closeCamera(); in onVisibilityChanged()
152 CameraManager.get().closeCamera(); in onDetachedFromWindow()
/packages/apps/Camera2/src/com/android/camera/device/
DCamera2Actions.java22 import android.hardware.camera2.CameraManager;
44 private final CameraManager mCameraManager;
50 CameraManager cameraManager, in Camera2Actions()
90 private final CameraManager mCameraManager;
93 public OpenCameraRunnable(CameraManager cameraManager, String cameraId, in OpenCameraRunnable()
DCamera2ActionProvider.java20 import android.hardware.camera2.CameraManager;
32 private final CameraManager mCameraManager;
37 public Camera2ActionProvider(CameraManager cameraManager, HandlerFactory handlerFactory, in Camera2ActionProvider()
DCameraModuleHelper.java19 import android.hardware.camera2.CameraManager;
46 CameraManager cameraManager = AndroidServices.instance().provideCameraManager(); in provideCamera2ActionProvider()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/cameraui/
DCameraMediaChooserView.java27 import com.android.dialer.callcomposer.camera.CameraManager;
49 final int cameraIndex = CameraManager.get().getCameraIndex(); in onSaveInstanceState()
68 CameraManager.get().selectCameraByIndex(cameraIndex); in onRestoreInstanceState()
75 CameraManager.get().selectCamera(Camera.CameraInfo.CAMERA_FACING_BACK); in resetState()
/packages/apps/Camera2/src/com/android/camera/util/
DAndroidServices.java26 import android.hardware.camera2.CameraManager;
78 public CameraManager provideCameraManager() { in provideCameraManager()
79 CameraManager cameraManager = null; in provideCameraManager()
84 cameraManager = (CameraManager) service; in provideCameraManager()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java31 import android.hardware.camera2.CameraManager;
66 private CameraManager mCameraManager;
81 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in TestVideoProvider()
329 CameraManager cameraManager = (CameraManager) mContext.getSystemService( in setCameraCapabilities()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java23 import android.hardware.camera2.CameraManager;
54 CameraManager cameraManager; in create()
66 private final CameraManager mCameraManager;
69 public Camera2OneCameraManagerImpl(CameraManager cameraManger) { in Camera2OneCameraManagerImpl()
DCamera2OneCameraOpenerImpl.java24 import android.hardware.camera2.CameraManager;
58 private final CameraManager mCameraManager;
69 CameraManager cameraManager; in create()
92 CameraManager cameraManager, in Camera2OneCameraOpenerImpl()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorPreviewCamera.java25 import android.hardware.camera2.CameraManager;
62 .getSystemService(CameraManager.class) in startCamera()
86 CameraManager cameraManager = context.getSystemService(CameraManager.class); in getCameraCapabilities()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java25 import android.hardware.camera2.CameraManager;
121 CameraManager manager = context.getSystemService(CameraManager.class); in openCamera()
142 private StreamConfigurationMap getFrontFacingCameraSizes(CameraManager manager) { in getFrontFacingCameraSizes()
/packages/apps/Dialer/java/com/android/incallui/
DInCallCameraManager.java22 import android.hardware.camera2.CameraManager;
111 CameraManager cameraManager = null; in maybeInitializeCameraList()
113 cameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in maybeInitializeCameraList()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java24 import android.hardware.camera2.CameraManager;
51CameraManager cameraMgr = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); // "c… in printCameraSystemInfo()
71 private static void printCameraInfo(CameraManager manager, String id) { in printCameraInfo()

12