/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCameraCapabilities.java | 19 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 …]
|
D | AndroidCameraAgentImpl.java | 21 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 …]
|
D | AndroidCameraSettings.java | 19 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()
|
/frameworks/av/camera/ |
D | Camera.cpp | 37 Camera::Camera(int cameraId) in Camera() function in android::Camera 42 CameraTraits<Camera>::TCamConnectService CameraTraits<Camera>::fnConnectService = 46 sp<Camera> Camera::create(const sp<::android::hardware::ICamera>& camera) in create() 54 sp<Camera> c = new Camera(-1); in create() 64 Camera::~Camera() in ~Camera() 74 sp<Camera> Camera::connect(int cameraId, const String16& clientPackageName, in connect() 80 status_t Camera::connectLegacy(int cameraId, int halVersion, in connectLegacy() 83 sp<Camera>& camera) in connectLegacy() 86 sp<Camera> c = new Camera(cameraId); in connectLegacy() 137 status_t Camera::reconnect() in reconnect() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | CameraSource.java | 31 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/include/camera/ |
D | Camera.h | 49 class Camera; variable 52 struct CameraTraits<Camera> 66 class Camera : 67 public CameraBase<Camera>, 79 static sp<Camera> create(const sp<::android::hardware::ICamera>& camera); 80 static sp<Camera> connect(int cameraId, 86 int clientUid, sp<Camera>& camera); 88 virtual ~Camera(); 173 RecordingProxy(const sp<Camera>& camera); 182 sp<Camera> mCamera; [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestHelper.java | 21 import android.hardware.Camera; 22 import android.hardware.Camera.Parameters; 23 import android.hardware.Camera.PictureCallback; 24 import android.hardware.Camera.ShutterCallback; 36 public Camera mCamera; 45 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback { 46 public void onError(int error, android.hardware.Camera camera) { in onError() 60 public void onPictureTaken(byte[] data, Camera camera) { 67 public void onPictureTaken(byte[] data, Camera camera) { 103 mCamera = Camera.open(CAMERA_ID); in setupCameraTest() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | ParameterUtils.java | 23 import android.hardware.Camera; 24 import android.hardware.Camera.Area; 57 public static final Camera.Area CAMERA_AREA_DEFAULT = 58 new Camera.Area(new Rect(NORMALIZED_RECTANGLE_DEFAULT), 92 public final Camera.Area meteringArea; 236 public static Size convertSize(Camera.Size size) { in convertSize() 245 public static List<Size> convertSizeList(List<Camera.Size> sizeList) { in convertSizeList() 249 for (Camera.Size s : sizeList) { in convertSizeList() 258 public static Size[] convertSizeListToArray(List<Camera.Size> sizeList) { in convertSizeListToArray() 263 for (Camera.Size s : sizeList) { in convertSizeListToArray() [all …]
|
D | LegacyMetadataMapper.java | 22 import android.hardware.Camera; 23 import android.hardware.Camera.CameraInfo; 24 import android.hardware.Camera.Parameters; 119 public static CameraCharacteristics createCharacteristics(Camera.Parameters parameters, in createCharacteristics() 151 Camera.Parameters params = Camera.getEmptyParameters(); in createCharacteristics() 172 Camera.Parameters p) { in mapCharacteristicsFromParameters() 256 private static void mapScalerStreamConfigs(CameraMetadataNative m, Camera.Parameters p) { in mapScalerStreamConfigs() 268 List<Camera.Size> previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs() 269 List<Camera.Size> jpegSizes = p.getSupportedPictureSizes(); in mapScalerStreamConfigs() 286 Camera.Size maxJpegSize = SizeAreaComparator.findLargestByArea(jpegSizes); in mapScalerStreamConfigs() [all …]
|
D | LegacyFaceDetectMapper.java | 20 import android.hardware.Camera; 21 import android.hardware.Camera.FaceDetectionListener; 49 private final Camera mCamera; 61 private Camera.Face[] mFaces; 62 private Camera.Face[] mFacesPrev; 71 public LegacyFaceDetectMapper(Camera camera, CameraCharacteristics characteristics) { in LegacyFaceDetectMapper() 87 public void onFaceDetection(Camera.Face[] faces, Camera camera) { in LegacyFaceDetectMapper() 122 Camera.Parameters parameters) { in processFaceDetectMode() 211 Camera.Face[] faces, previousFaces; in mapResultFaces() 233 Camera.Parameters params = legacyRequest.parameters; in mapResultFaces() [all …]
|
D | SizeAreaComparator.java | 19 import android.hardware.Camera; 33 public class SizeAreaComparator implements Comparator<Camera.Size> { 38 public int compare(Camera.Size size, Camera.Size size2) { in compare() 67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { in findLargestByArea()
|
D | LegacyFocusStateMapper.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.Parameters; 43 private final Camera mCamera; 62 public LegacyFocusStateMapper(Camera camera) { in LegacyFocusStateMapper() 81 Camera.Parameters parameters) { in processRequestTriggers() 117 Camera.AutoFocusMoveCallback afMoveCallback = new Camera.AutoFocusMoveCallback() { in processRequestTriggers() 119 public void onAutoFocusMoving(boolean start, Camera camera) { in processRequestTriggers() 205 mCamera.autoFocus(new Camera.AutoFocusCallback() { in processRequestTriggers() 207 public void onAutoFocus(boolean success, Camera camera) { in processRequestTriggers()
|
D | LegacyRequest.java | 19 import android.hardware.Camera; 37 public final Camera.Parameters parameters; 48 Size previewSize, Camera.Parameters parameters) { in LegacyRequest() 54 this.parameters = Camera.getParametersCopy(parameters); in LegacyRequest() 62 public void setParameters(Camera.Parameters parameters) { in setParameters()
|
D | LegacyResultMapper.java | 20 import android.hardware.Camera; 21 import android.hardware.Camera.Parameters; 115 Camera.Parameters params = legacyRequest.parameters; in convertResultMetadata() 276 Camera.Size s = params.getJpegThumbnailSize(); in convertResultMetadata() 351 Rect activeArray, ZoomData zoomData, Camera.Parameters p) { in mapAf() 369 private static void mapAwb(CameraMetadataNative m, Camera.Parameters p) { in mapAwb() 385 List<Camera.Area> meteringAreaList, String regionName) { in getMeteringRectangles() 388 for (Camera.Area area : meteringAreaList) { in getMeteringRectangles() 487 case Camera.Parameters.WHITE_BALANCE_AUTO: in convertLegacyAwbMode() 489 case Camera.Parameters.WHITE_BALANCE_INCANDESCENT: in convertLegacyAwbMode() [all …]
|
D | LegacyRequestMapper.java | 20 import android.hardware.Camera; 21 import android.hardware.Camera.Parameters; 62 Camera.Parameters params = legacyRequest.parameters; in convertRequestMetadata() 136 List<Camera.Area> meteringAreaList = convertMeteringRegionsToLegacy( in convertRequestMetadata() 150 List<Camera.Area> focusAreaList = convertMeteringRegionsToLegacy( in convertRequestMetadata() 177 params.setPreviewFpsRange(rangeToApply[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], in convertRequestMetadata() 178 rangeToApply[Camera.Parameters.PREVIEW_FPS_MAX_INDEX]); in convertRequestMetadata() 423 List<Camera.Size> sizes = params.getSupportedJpegThumbnailSizes(); in convertRequestMetadata() 484 private static List<Camera.Area> convertMeteringRegionsToLegacy( in convertMeteringRegionsToLegacy() 511 List<Camera.Area> meteringAreaList = new ArrayList<>(countMeteringAreas); in convertMeteringRegionsToLegacy() [all …]
|
/frameworks/base/docs/html/training/camera/ |
D | cameradirect.jd | 1 page.title=Controlling the Camera 17 <li><a href="#TaskOpenCamera">Open the Camera Object</a></li> 18 <li><a href="#camera-preview">Create the Camera Preview</a></li> 19 <li><a href="#TaskSettings">Modify Camera Settings</a></li> 23 <li><a href="#TaskReleaseCamera">Stop the Preview and Release the Camera</a></li> 29 a Camera App</a></li> 42 <h2 id="TaskOpenCamera">Open the Camera Object</h2> 44 <p>Getting an instance of the {@link android.hardware.Camera} object is the first step in the 45 process of directly controlling the camera. As Android's own Camera application does, the 46 recommended way to access the camera is to open {@link android.hardware.Camera} on a separate thread [all …]
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | CameraPreviewActivity.java | 30 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() 196 mCamera = Camera.open(id); in setUpCamera() 197 Camera.Parameters p = mCamera.getParameters(); in setUpCamera() 201 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera() [all …]
|
/frameworks/base/docs/html/guide/topics/media/ |
D | camera.jd | 1 page.title=Camera 12 <li><a href="#camera-apps">Using Existing Camera Apps</a> 13 <li><a href="#custom-camera">Building a Camera App</a> 26 <li><a href="#camera-features">Camera Features</a> 38 <li>{@link android.hardware.Camera}</li> 62 <li><strong>Camera Requirement</strong> - Is the use of a camera so important to your 67 <li><strong>Quick Picture or Customized Camera</strong> - How will your application use the 70 <a href="#camera-apps">Using Existing Camera Apps</a>. For developing a customized camera feature, … 71 out the <a href="#custom-camera">Building a Camera App</a> section.</li> 92 <dt>{@link android.hardware.Camera}</dt> [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextureViewActivity.java | 23 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()
|
D | GetBitmapSurfaceViewActivity.java | 21 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()
|
/frameworks/base/core/jni/ |
D | android_hardware_Camera.cpp | 74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera); 84 sp<Camera> getCamera() { Mutex::Autolock _l(mLock); return mCamera; } in getCamera() 96 sp<Camera> mCamera; // strong reference to native object 127 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) in get_native_camera() 129 sp<Camera> camera; in get_native_camera() 145 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& … in JNICameraContext() 499 return Camera::getNumberOfCameras(); in android_hardware_Camera_getNumberOfCameras() 506 if (cameraId >= Camera::getNumberOfCameras() || cameraId < 0) { in android_hardware_Camera_getCameraInfo() 512 status_t rc = Camera::getCameraInfo(cameraId, &cameraInfo); in android_hardware_Camera_getCameraInfo() 539 sp<Camera> camera; in android_hardware_Camera_native_setup() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CameraTest.java | 23 import android.hardware.Camera; 24 import android.hardware.Camera.PictureCallback; 25 import android.hardware.Camera.PreviewCallback; 26 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/ |
D | CameraPairwiseTest.java | 19 import android.hardware.Camera; 384 Camera.Parameters params = mCameraTestHelper.getCameraParameters(); in genericPairwiseTestCase() 396 params.setFlashMode(Camera.Parameters.FLASH_MODE_ON); in genericPairwiseTestCase() 399 params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); in genericPairwiseTestCase() 402 params.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO); in genericPairwiseTestCase() 422 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_DAYLIGHT); in genericPairwiseTestCase() 425 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_FLUORESCENT); in genericPairwiseTestCase() 428 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_INCANDESCENT); in genericPairwiseTestCase() 431 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_CLOUDY_DAYLIGHT); in genericPairwiseTestCase() 434 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_AUTO); in genericPairwiseTestCase() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | CameraOpenTest.java | 19 import android.hardware.Camera; 33 private Camera mCamera; 40 int nCameras = Camera.getNumberOfCameras(); in testOpenLegacy() 43 mCamera.openLegacy(id, Camera.CAMERA_HAL_API_VERSION_1_0); in testOpenLegacy()
|
/frameworks/base/media/java/android/media/ |
D | CamcorderProfile.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.CameraInfo; 326 int numberOfCameras = Camera.getNumberOfCameras(); in get() 329 Camera.getCameraInfo(i, cameraInfo); in get() 425 int numberOfCameras = Camera.getNumberOfCameras(); in hasProfile() 428 Camera.getCameraInfo(i, cameraInfo); in hasProfile()
|