/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
D | VideoChatTestActivity.java | 8 import android.hardware.Camera; 9 import android.hardware.Camera.Size; 69 for (int i = 0; i < Camera.getNumberOfCameras(); i++) { in onCreate() 80 Camera.CameraInfo info = in getCameraOrientation() 81 new Camera.CameraInfo(); in getCameraOrientation() 82 Camera.getCameraInfo(id, info); in getCameraOrientation() 87 Camera cam = Camera.open(id); in dumpCameraCaps() 88 Camera.Parameters params = cam.getParameters(); in dumpCameraCaps() 91 List<Camera.Size> sizes = params.getSupportedPreviewSizes(); in dumpCameraCaps() 194 int numCameras = Camera.getNumberOfCameras(); in doInBackground() [all …]
|
/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/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/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/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 | 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()
|
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()
|
/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()
|
D | VideoCapture.java | 19 import com.android.camera.Camera; 96 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackVideoCapture() 111 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontVideoCapture()
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/ |
D | CameraTestCase.java | 21 import android.hardware.Camera; 22 import android.hardware.Camera.AutoFocusCallback; 23 import android.hardware.Camera.CameraInfo; 24 import android.hardware.Camera.Parameters; 25 import android.hardware.Camera.PictureCallback; 26 import android.hardware.Camera.ShutterCallback; 77 Camera camera = mOneMockCamera[0].getCamera(); in call() 96 Camera camera = mOneMockCamera[0].getCamera(); in call() 223 mParameters = android.hardware.Camera.getEmptyParameters(); in getParameters()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 24 import android.hardware.Camera.CameraInfo; 57 int n = android.hardware.Camera.getNumberOfCameras(); in hasCamera() 63 int n = android.hardware.Camera.getNumberOfCameras(); in hasBackCamera() 66 android.hardware.Camera.getCameraInfo(i, info); in hasBackCamera()
|
/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/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/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/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()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | CameraPictureSizesCacher.java | 21 import android.hardware.Camera; 76 Camera thisCamera; in getSizesForCamera() 78 thisCamera = Camera.open(cameraId); in getSizesForCamera()
|