/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 24 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 …]
|
D | MockCameraFactory.java | 22 import com.android.messaging.ui.mediapicker.CameraManager.CameraWrapper;
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraMediaChooser.java | 38 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 …]
|
D | CameraPreview.java | 96 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()
|
D | HardwareCameraPreview.java | 47 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()
|
D | SoftwareCameraPreview.java | 45 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview() 51 CameraManager.get().setSurface(mPreview); in SoftwareCameraPreview() 56 CameraManager.get().setSurface(null); in SoftwareCameraPreview()
|
D | CameraMediaChooserView.java | 45 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()
|
D | ImagePersistTask.java | 46 private final CameraManager.MediaCallback mCallback; 56 final CameraManager.MediaCallback callback) { in ImagePersistTask()
|
D | CameraManager.java | 77 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()
|
D | MediaPicker.java | 279 CameraManager.get().onPause(); in onPause() 288 CameraManager.get().onResume(); in onResume()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | Camera2Actions.java | 22 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()
|
D | Camera2ActionProvider.java | 20 import android.hardware.camera2.CameraManager; 32 private final CameraManager mCameraManager; 37 public Camera2ActionProvider(CameraManager cameraManager, HandlerFactory handlerFactory, in Camera2ActionProvider()
|
D | CameraModuleHelper.java | 19 import android.hardware.camera2.CameraManager; 46 CameraManager cameraManager = AndroidServices.instance().provideCameraManager(); in provideCamera2ActionProvider()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AndroidServices.java | 26 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/ |
D | Camera2OneCameraManagerImpl.java | 23 import android.hardware.camera2.CameraManager; 52 CameraManager cameraManager; in create() 64 private final CameraManager mCameraManager; 66 public Camera2OneCameraManagerImpl(CameraManager cameraManger) { in Camera2OneCameraManagerImpl()
|
D | Camera2OneCameraOpenerImpl.java | 24 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/ |
D | TestVideoProvider.java | 31 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/ |
D | InCallCameraManager.java | 23 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/ |
D | CameraDeviceReport.java | 24 import android.hardware.camera2.CameraManager; 51 …CameraManager cameraMgr = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); // "c… in printCameraSystemInfo() 71 private static void printCameraInfo(CameraManager manager, String id) { in printCameraInfo()
|
D | CameraInfoCache.java | 21 import android.hardware.camera2.CameraManager; 56 public CameraInfoCache(CameraManager cameraMgr, boolean useFrontCamera) { in CameraInfoCache()
|
D | Api2Camera.java | 25 import android.hardware.camera2.CameraManager; 91 private CameraManager mCameraManager; 135 mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in Api2Camera()
|