Home
last modified time | relevance | path

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

/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 …]
DMockCameraFactory.java22 import com.android.messaging.ui.mediapicker.CameraManager.CameraWrapper;
/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()
DImagePersistTask.java46 private final CameraManager.MediaCallback mCallback;
56 final CameraManager.MediaCallback callback) { in ImagePersistTask()
DCameraManager.java77 class CameraManager implements FocusOverlayManager.Listener { class
122 private static CameraManager sInstance;
212 private CameraManager() { in CameraManager() method in CameraManager
244 static CameraManager get() { in get()
246 sInstance = new CameraManager(); in get()
DMediaPicker.java279 CameraManager.get().onPause(); in onPause()
288 CameraManager.get().onResume(); in onResume()
/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/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/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java23 import android.hardware.camera2.CameraManager;
52 CameraManager cameraManager; in create()
64 private final CameraManager mCameraManager;
66 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/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/Dialer/InCallUI/src/com/android/incallui/
DInCallCameraManager.java23 import android.hardware.camera2.CameraManager;
128 CameraManager cameraManager = null; in maybeInitializeCameraList()
130 cameraManager = (CameraManager) context.getSystemService( 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()
DCameraInfoCache.java21 import android.hardware.camera2.CameraManager;
56 public CameraInfoCache(CameraManager cameraMgr, boolean useFrontCamera) { in CameraInfoCache()
DApi2Camera.java25 import android.hardware.camera2.CameraManager;
91 private CameraManager mCameraManager;
135 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in Api2Camera()