Home
last modified time | relevance | path

Searched refs:Camera (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraCapabilities.java19 import android.hardware.Camera;
40 AndroidCameraCapabilities(Camera.Parameters p) { in AndroidCameraCapabilities()
89 private void buildPreviewFpsRange(Camera.Parameters p) { in buildPreviewFpsRange()
97 private void buildPreviewSizes(Camera.Parameters p) { in buildPreviewSizes()
98 List<Camera.Size> supportedPreviewSizes = p.getSupportedPreviewSizes(); in buildPreviewSizes()
100 for (Camera.Size s : supportedPreviewSizes) { in buildPreviewSizes()
107 private void buildVideoSizes(Camera.Parameters p) { in buildVideoSizes()
108 List<Camera.Size> supportedVideoSizes = p.getSupportedVideoSizes(); in buildVideoSizes()
110 for (Camera.Size s : supportedVideoSizes) { in buildVideoSizes()
117 private void buildPictureSizes(Camera.Parameters p) { in buildPictureSizes()
[all …]
DAndroidCameraAgentImpl.java21 import android.hardware.Camera;
22 import android.hardware.Camera.AutoFocusCallback;
23 import android.hardware.Camera.AutoFocusMoveCallback;
24 import android.hardware.Camera.ErrorCallback;
25 import android.hardware.Camera.FaceDetectionListener;
26 import android.hardware.Camera.OnZoomChangeListener;
27 import android.hardware.Camera.Parameters;
28 import android.hardware.Camera.PictureCallback;
29 import android.hardware.Camera.PreviewCallback;
30 import android.hardware.Camera.ShutterCallback;
[all …]
DAndroidCameraSettings.java19 import android.hardware.Camera;
31 public AndroidCameraSettings(CameraCapabilities capabilities, Camera.Parameters params) { in AndroidCameraSettings()
42 Camera.Size paramPreviewSize = params.getPreviewSize(); in AndroidCameraSettings()
47 setPreviewFpsRange(previewFpsRange[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], in AndroidCameraSettings()
48 previewFpsRange[Camera.Parameters.PREVIEW_FPS_MAX_INDEX]); in AndroidCameraSettings()
70 Camera.Size paramPictureSize = params.getPictureSize(); in AndroidCameraSettings()
DCameraSettings.java19 import android.hardware.Camera;
39 protected final List<Camera.Area> mMeteringAreas = new ArrayList<>();
40 protected final List<Camera.Area> mFocusAreas = new ArrayList<>();
369 public void setMeteringAreas(List<Camera.Area> areas) { in setMeteringAreas()
376 public List<Camera.Area> getMeteringAreas() { in getMeteringAreas()
377 return new ArrayList<Camera.Area>(mMeteringAreas); in getMeteringAreas()
415 public void setFocusAreas(List<Camera.Area> areas) { in setFocusAreas()
422 public List<Camera.Area> getFocusAreas() { in getFocusAreas()
423 return new ArrayList<Camera.Area>(mFocusAreas); in getFocusAreas()
DSize.java20 import android.hardware.Camera;
39 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) { in buildListFromCameraSizes()
41 for (Camera.Size cameraSize : cameraSizes) { in buildListFromCameraSizes()
118 public Size(Camera.Size other) { in Size()
DCameraCapabilitiesFactory.java19 import android.hardware.Camera;
27 public static CameraCapabilities createFrom(Camera.Parameters p) { in createFrom()
/frameworks/av/camera/
DCamera.cpp35 Camera::Camera(int cameraId) in Camera() function in android::Camera
40 CameraTraits<Camera>::TCamConnectService CameraTraits<Camera>::fnConnectService =
44 sp<Camera> Camera::create(const sp<::android::hardware::ICamera>& camera) in create()
52 sp<Camera> c = new Camera(-1); in create()
62 Camera::~Camera() in ~Camera()
72 sp<Camera> Camera::connect(int cameraId, const std::string& clientPackageName, in connect()
81 status_t Camera::reconnect() in reconnect()
89 status_t Camera::lock() in lock()
96 status_t Camera::unlock() in unlock()
104 status_t Camera::setPreviewTarget(const sp<IGraphicBufferProducer>& bufferProducer) in setPreviewTarget()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DCameraSource.java31 import android.hardware.Camera;
70 private Camera mCamera;
90 private Camera.Parameters mCameraParameters;
136 mCamera = Camera.open(mCameraId); in open()
233 … mCameraParameters.setPreviewFpsRange(closestRange[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], in fieldPortValueUpdated()
234 … closestRange[Camera.Parameters.PREVIEW_FPS_MAX_INDEX]); in fieldPortValueUpdated()
239 synchronized public Camera.Parameters getCameraParameters() { in getCameraParameters()
243 mCamera = Camera.open(mCameraId); in getCameraParameters()
261 mCameraParameters.setPreviewFpsRange(closestRange[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], in getCameraParameters()
262 closestRange[Camera.Parameters.PREVIEW_FPS_MAX_INDEX]); in getCameraParameters()
[all …]
/frameworks/av/camera/include/camera/
DCamera.h52 class Camera; variable
55 struct CameraTraits<Camera>
69 class Camera :
70 public CameraBase<Camera>,
82 static sp<Camera> create(const sp<::android::hardware::ICamera>& camera);
83 static sp<Camera> connect(int cameraId,
89 virtual ~Camera();
184 explicit RecordingProxy(const sp<Camera>& camera);
191 sp<Camera> mCamera;
195 explicit Camera(int cameraId);
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestHelper.java21 import android.hardware.Camera;
22 import android.hardware.Camera.Parameters;
23 import android.hardware.Camera.PictureCallback;
24 import android.hardware.Camera.ShutterCallback;
37 public Camera mCamera;
46 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback {
47 public void onError(int error, android.hardware.Camera camera) { in onError()
61 public void onPictureTaken(byte[] data, Camera camera) {
68 public void onPictureTaken(byte[] data, Camera camera) {
106 mCamera = Camera.open(CAMERA_ID); in setupCameraTest()
[all …]
DCameraUtils.java20 import android.hardware.Camera;
73 public static class LegacySizeComparator implements Comparator<Camera.Size> {
75 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java24 import android.hardware.Camera;
77 Camera mCamera;
85 Camera.Parameters mParameters;
185 supportedFlashModes.contains(Camera.Parameters.FLASH_MODE_OFF)) { in setCameraParameter()
186 mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); in setCameraParameter()
190 if (supportedFocusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE)) { in setCameraParameter()
191 mParameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE); in setCameraParameter()
192 } else if (supportedFocusModes.contains(Camera.Parameters.FOCUS_MODE_AUTO)) { in setCameraParameter()
193 mParameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); in setCameraParameter()
224 if (Camera.Parameters.FOCUS_MODE_AUTO.equals(mParameters.getFocusMode())) { in startPreview()
[all …]
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java30 import android.hardware.Camera;
59 implements TextureView.SurfaceTextureListener, Camera.PreviewCallback {
74 private Camera mCamera;
76 private List<Camera.Size> mPreviewSizes;
77 private Camera.Size mNextPreviewSize;
78 private Camera.Size mPreviewSize;
105 int numCameras = Camera.getNumberOfCameras(); in onCreate()
197 mCamera = Camera.open(id); in setUpCamera()
198 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
202 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DTextureViewActivity.java23 import android.hardware.Camera;
41 private Camera mCamera;
102 mCamera = Camera.open(); in onSurfaceTextureAvailable()
105 Camera.Size previewSize = mCamera.getParameters().getPreviewSize(); in onSurfaceTextureAvailable()
119 Camera.CameraInfo info = new Camera.CameraInfo(); in getCameraOrientation()
120 for (int i = 0; i < Camera.getNumberOfCameras(); i++) { in getCameraOrientation()
121 Camera.getCameraInfo(i, info); in getCameraOrientation()
122 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) break; in getCameraOrientation()
DGetBitmapSurfaceViewActivity.java21 import android.hardware.Camera;
38 private Camera mCamera;
83 mCamera = Camera.open(); in surfaceCreated()
96 int cameraId, android.hardware.Camera camera) { in setCameraDisplayOrientation()
97 android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo(); in setCameraDisplayOrientation()
98 android.hardware.Camera.getCameraInfo(cameraId, info); in setCameraDisplayOrientation()
118 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in setCameraDisplayOrientation()
DTransform3dActivity.java23 import android.graphics.Camera;
40 private Camera mCamera;
47 mCamera = new Camera(); in Transform3dView()
59 final Camera camera = mCamera; in onDraw()
86 private void rotate(float centerX, float centerY, Camera camera, in rotate()
DGetBitmapActivity.java22 import android.hardware.Camera;
37 private Camera mCamera;
82 mCamera = Camera.open(); in onSurfaceTextureAvailable()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java20 import android.hardware.Camera;
21 import android.hardware.Camera.PictureCallback;
22 import android.hardware.Camera.PreviewCallback;
23 import android.hardware.Camera.ShutterCallback;
67 Camera mCamera;
94 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
122 public void onPreviewFrame(byte [] rawData, Camera camera) { in onPreviewFrame()
148 public void onPictureTaken(byte [] rawData, Camera camera) { in onPictureTaken()
157 public void onPictureTaken(byte [] rawData, Camera camera) { in onPictureTaken()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraPairwiseTest.java19 import android.hardware.Camera;
385 Camera.Parameters params = mCameraTestHelper.getCameraParameters(); in genericPairwiseTestCase()
397 params.setFlashMode(Camera.Parameters.FLASH_MODE_ON); in genericPairwiseTestCase()
400 params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); in genericPairwiseTestCase()
403 params.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO); in genericPairwiseTestCase()
423 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_DAYLIGHT); in genericPairwiseTestCase()
426 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_FLUORESCENT); in genericPairwiseTestCase()
429 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_INCANDESCENT); in genericPairwiseTestCase()
432 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_CLOUDY_DAYLIGHT); in genericPairwiseTestCase()
435 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_AUTO); in genericPairwiseTestCase()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp73 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
86 sp<Camera> getCamera() { Mutex::Autolock _l(mLock); return mCamera; } in getCamera()
98 sp<Camera> mCamera; // strong reference to native object
129 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) in get_native_camera()
131 sp<Camera> camera; in get_native_camera()
147 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& … in JNICameraContext()
528 return Camera::getNumberOfCameras(deviceId, devicePolicy); in android_hardware_Camera_getNumberOfCameras()
535 if (cameraId >= Camera::getNumberOfCameras(deviceId, devicePolicy) || cameraId < 0) { in android_hardware_Camera_getCameraInfo()
541 status_t rc = Camera::getCameraInfo(cameraId, rotationOverride, deviceId, devicePolicy, in android_hardware_Camera_getCameraInfo()
572 sp<Camera> camera = in android_hardware_Camera_native_setup()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCameraStreamer.java21 import android.hardware.Camera;
22 import android.hardware.Camera.CameraInfo;
23 import android.hardware.Camera.PreviewCallback;
243 protected void setupPreviewTexture(Camera camera) { in setupPreviewTexture()
403 protected void setupPreviewTexture(Camera camera) { in setupPreviewTexture()
561 public void onPreviewFrame(byte[] data, Camera camera) {
572 Camera camera = mRunner.mCamera; in setupServerFrame()
811 private String mFlashMode = Camera.Parameters.FLASH_MODE_OFF;
814 private Camera mCamera = null;
958 public Camera getCamera() { in getCamera()
[all …]
/frameworks/base/media/java/android/media/
DCameraProfile.java19 import android.hardware.Camera;
20 import android.hardware.Camera.CameraInfo;
58 int numberOfCameras = Camera.getNumberOfCameras(); in getJpegEncodingQualityParameter()
61 Camera.getCameraInfo(i, cameraInfo); in getJpegEncodingQualityParameter()
DCamcorderProfile.java26 import android.hardware.Camera;
27 import android.hardware.Camera.CameraInfo;
451 int numberOfCameras = Camera.getNumberOfCameras(); in get()
454 Camera.getCameraInfo(i, cameraInfo); in get()
652 int numberOfCameras = Camera.getNumberOfCameras(); in hasProfile()
655 Camera.getCameraInfo(i, cameraInfo); in hasProfile()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DOWNERS4 # Camera
5 per-file *Camera* = file:platform/frameworks/av:/camera/OWNERS
/frameworks/base/core/java/android/hardware/
DCamera.java158 public class Camera { class
442 public static Camera open(int cameraId) { in open()
455 public static Camera open(int cameraId, @NonNull Context context, int rotationOverride) { in open()
456 return new Camera(cameraId, context, rotationOverride); in open()
468 public static Camera open() { in open()
519 public static Camera openLegacy(int cameraId, int halVersion) { in openLegacy()
565 Camera(int cameraId, @NonNull Context context, int rotationOverride) { in Camera() method in Camera
590 public static Camera openUninitialized() { in openUninitialized()
591 return new Camera(); in openUninitialized()
597 Camera() {} in Camera() method in Camera
[all …]

1234