/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 20 import android.hardware.Camera; 21 import android.hardware.Camera.CameraInfo; 88 private static final Camera.ShutterCallback NOOP_SHUTTER_CALLBACK = 89 new Camera.ShutterCallback() { 125 private AsyncTask<Integer, Void, Camera> openCameraTask; 134 private Camera camera; 156 final int cameraCount = Camera.getNumberOfCameras(); in CameraManager() 159 Camera.getCameraInfo(i, cameraInfo); in CameraManager() 248 final int cameraCount = Camera.getNumberOfCameras(); in selectCamera() 255 Camera.getCameraInfo(i, cameraInfo); in selectCamera() [all …]
|
D | CameraPreview.java | 21 import android.hardware.Camera; 41 void startPreview(final Camera camera) throws IOException; in startPreview() 76 public void setSize(final Camera.Size size, final int orientation) { in setSize() 174 public void startPreview(final Camera camera) throws IOException { in startPreview()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 25 import android.hardware.Camera; 26 import android.hardware.Camera.CameraInfo; 85 Camera open(int cameraId); in open() 87 void release(Camera camera); in release() 128 return Camera.getNumberOfCameras(); 133 Camera.getCameraInfo(index, cameraInfo); 137 public Camera open(final int cameraId) { 138 return Camera.open(cameraId); 142 public void release(final Camera camera) { 186 private AsyncTask<Integer, Void, Camera> mOpenCameraTask; [all …]
|
D | CameraPreview.java | 21 import android.hardware.Camera; 37 void startPreview(final Camera camera) throws IOException; in startPreview() 53 public void setSize(final Camera.Size size, final int orientation) { in setSize() 149 public void startPreview(final Camera camera) throws IOException { in startPreview()
|
/packages/apps/Camera2/src/com/android/camera/one/v1/ |
D | LegacyOneCameraManagerImpl.java | 19 import android.hardware.Camera; 45 private final Camera.CameraInfo[] mCameraInfos; 56 Camera.CameraInfo[] cameraInfos; in instance() 58 numberOfCameras = Camera.getNumberOfCameras(); in instance() 59 cameraInfos = new Camera.CameraInfo[numberOfCameras]; in instance() 61 cameraInfos[i] = new Camera.CameraInfo(); in instance() 62 Camera.getCameraInfo(i, cameraInfos[i]); in instance() 73 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in instance() 76 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in instance() 97 Camera.CameraInfo[] info) { in LegacyOneCameraManagerImpl() [all …]
|
D | OneCameraCharacteristicsImpl.java | 20 import android.hardware.Camera; 37 private final Camera.CameraInfo mCameraInfo; 38 private final Camera.Parameters mCameraParameters; 47 Camera.CameraInfo cameraInfo, Camera.Parameters cameraParameters) { in OneCameraCharacteristicsImpl() 51 List<Camera.Size> supportedPictureSizes = cameraParameters.getSupportedPictureSizes(); in OneCameraCharacteristicsImpl() 53 for (Camera.Size pictureSize : supportedPictureSizes) { in OneCameraCharacteristicsImpl() 58 List<Camera.Size> supportedPreviewSizes = cameraParameters.getSupportedPreviewSizes(); in OneCameraCharacteristicsImpl() 60 for (Camera.Size previewSize : supportedPreviewSizes) { in OneCameraCharacteristicsImpl() 84 if (direction == Camera.CameraInfo.CAMERA_FACING_BACK) { in getCameraDirection() 109 Camera.Parameters.SCENE_MODE_HDR); in isHdrSceneSupported()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | MockCameraFactory.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.CameraInfo; 31 private static Map<Camera, CameraInfo> sCameraInfos = new HashMap<Camera, CameraInfo>(); 33 public static Camera createCamera(int facing) { in createCamera() 34 Camera camera = Mockito.mock(Camera.class); in createCamera() 41 public static void getCameraInfo(Camera camera, CameraInfo outCameraInfo) { in getCameraInfo() 48 public static CameraWrapper createCameraWrapper(final Camera... cameras) { in createCameraWrapper() 51 Mockito.when(wrapper.open(Mockito.anyInt())).then(new Answer<Camera>() { in createCameraWrapper() 53 public Camera answer(InvocationOnMock invocation) { in createCameraWrapper()
|
D | CameraManagerTest.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.CameraInfo; 103 Camera backCamera = MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_BACK); in testOpenCamera() 104 Camera frontCamera = MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_FRONT); in testOpenCamera()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | LegacyCameraActions.java | 19 import android.hardware.Camera; 35 public class LegacyCameraActions implements SingleDeviceActions<Camera> { 53 public void executeOpen(SingleDeviceOpenListener<Camera> openListener, in executeOpen() 63 public void executeClose(SingleDeviceCloseListener closeListener, Camera device) in executeClose() 85 private final SingleDeviceOpenListener<Camera> mResults; 89 public OpenCameraRunnable(SingleDeviceOpenListener<Camera> results, in OpenCameraRunnable() 101 Camera device = Camera.open(mCameraId); in run() 116 private final Camera mCameraDevice; 120 Camera cameraDevice, in CloseCameraRunnable()
|
D | LegacyCameraActionProvider.java | 19 import android.hardware.Camera; 28 public class LegacyCameraActionProvider implements CameraDeviceActionProvider<Camera> { 37 public SingleDeviceActions<Camera> get(CameraDeviceKey key) { in get()
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 24 import android.hardware.Camera; 25 import android.hardware.Camera.CameraInfo; 26 import android.hardware.Camera.Parameters; 83 private Camera mCamera; 90 private Camera.Parameters mParameters; 287 final int numberOfCameras = Camera.getNumberOfCameras(); in initCamera() 288 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in initCamera() 291 Camera.getCameraInfo(i, cameraInfo); in initCamera() 293 mCamera = Camera.open(i); in initCamera() 374 private Size getBestPreviewSize(Camera.Parameters parameters) { in getBestPreviewSize() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrCamera.java | 24 import android.hardware.Camera; 25 import android.hardware.Camera.CameraInfo; 26 import android.hardware.Camera.Parameters; 76 private Camera mCamera; 83 private Camera.Parameters mParameters; 277 final int numberOfCameras = Camera.getNumberOfCameras(); in initCamera() 278 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in initCamera() 281 Camera.getCameraInfo(i, cameraInfo); in initCamera() 283 mCamera = Camera.open(i); in initCamera() 344 final Camera.Size size = mParameters.getPictureSize(); in getFrameImage() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 21 import android.hardware.Camera.CameraInfo; 22 import android.hardware.Camera.Parameters; 47 private android.hardware.Camera mCameraDevice; 98 mNumberOfCameras = android.hardware.Camera.getNumberOfCameras(); in CameraHolder() 102 android.hardware.Camera.getCameraInfo(i, mInfo[i]); in CameraHolder() 120 public synchronized android.hardware.Camera open(int cameraId) in open() 131 mCameraDevice = android.hardware.Camera.open(cameraId); in open() 157 public synchronized android.hardware.Camera tryOpen(int cameraId) { in tryOpen()
|
D | Util.java | 32 import android.hardware.Camera; 33 import android.hardware.Camera.CameraInfo; 34 import android.hardware.Camera.Parameters; 35 import android.hardware.Camera.Size; 257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) in openCamera() 341 Camera.CameraInfo info = new Camera.CameraInfo(); in getDisplayOrientation() 342 Camera.getCameraInfo(cameraId, info); in getDisplayOrientation() 344 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getDisplayOrientation() 354 Camera.CameraInfo info = new Camera.CameraInfo(); in getCameraOrientation() 355 Camera.getCameraInfo(cameraId, info); in getCameraOrientation() [all …]
|
D | Camera.java | 40 import android.hardware.Camera.CameraInfo; 41 import android.hardware.Camera.Face; 42 import android.hardware.Camera.FaceDetectionListener; 43 import android.hardware.Camera.Parameters; 44 import android.hardware.Camera.PictureCallback; 45 import android.hardware.Camera.Size; 87 public class Camera extends ActivityBase implements FocusManager.Listener, class 305 if (Util.getDisplayRotation(Camera.this) != mDisplayRotation) { in handleMessage() 358 mOrientationListener = new MyOrientationEventListener(Camera.this); in initializeFirstTime() 464 Camera.this.onZoomValueChanged(index); in onZoomValueChanged() [all …]
|
D | EffectsRecorder.java | 34 import android.hardware.Camera; 81 private Camera mCameraDevice; 95 private int mCameraFacing = Camera.CameraInfo.CAMERA_FACING_BACK; 144 public void setCamera(Camera cameraDevice) { in setCamera() 324 if (mCameraFacing == Camera.CameraInfo.CAMERA_FACING_BACK) { in setRecordingOrientation() 496 if (mCameraFacing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in initializeEffect() 757 Camera.Parameters params = mCameraDevice.getParameters(); in tryEnableVideoStabilization() 772 Camera.Parameters params = mCameraDevice.getParameters(); in tryEnable3ALocks() 786 Camera.Parameters params = mCameraDevice.getParameters(); in enable3ALocks()
|
D | CameraErrorCallback.java | 22 implements android.hardware.Camera.ErrorCallback { 25 public void onError(int error, android.hardware.Camera camera) { in onError() 27 if (error == android.hardware.Camera.CAMERA_ERROR_SERVER_DIED) { in onError()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/ |
D | ImageCapture.java | 19 import com.android.camera.Camera; 42 public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> { 55 super(Camera.class); in ImageCapture() 99 intent.setClass(getInstrumentation().getTargetContext(), Camera.class); in testBackImageCapture() 102 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackImageCapture() 114 intent.setClass(getInstrumentation().getTargetContext(), Camera.class); in testFrontImageCapture() 117 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontImageCapture()
|
D | CameraLatency.java | 19 import com.android.camera.Camera; 36 public class CameraLatency extends ActivityInstrumentationTestCase2 <Camera> { 55 super(Camera.class); in CameraLatency() 81 Camera c = getActivity(); in testImageCapture()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 24 import android.hardware.Camera.CameraInfo; 56 int n = android.hardware.Camera.getNumberOfCameras(); in hasCamera() 62 int n = android.hardware.Camera.getNumberOfCameras(); in hasBackCamera() 65 android.hardware.Camera.getCameraInfo(i, info); in hasBackCamera()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SetActivitiesCameraReceiver.java | 24 import android.hardware.Camera.CameraInfo; 59 int n = android.hardware.Camera.getNumberOfCameras(); in hasCamera() 65 int n = android.hardware.Camera.getNumberOfCameras(); in hasBackCamera() 68 android.hardware.Camera.getCameraInfo(i, info); in hasBackCamera()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | ApiHelper.java | 21 import android.hardware.Camera; 101 hasMethod(Camera.class, "setFaceDetectionListener", listenerClass) && 102 hasMethod(Camera.class, "startFaceDetection") && 103 hasMethod(Camera.class, "stopFaceDetection") && 104 hasMethod(Camera.Parameters.class, "getMaxNumDetectedFaces");
|
/packages/apps/LegacyCamera/ |
D | CleanSpec.mk | 46 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/Camera*) 47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Camera*) 48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Camera*)
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | Size.java | 22 import android.hardware.Camera; 65 public Size(Camera.Size other) { in Size() 206 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) { in buildListFromCameraSizes() 208 for (Camera.Size cameraSize : cameraSizes) { in buildListFromCameraSizes()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/ |
D | ImageAndVideoCapture.java | 19 import com.android.camera.Camera; 39 public class ImageAndVideoCapture extends ActivityInstrumentationTestCase2 <Camera> { 49 super(Camera.class); in ImageAndVideoCapture()
|