HomeSort by relevance Sort by last modified time
    Searched refs:Camera (Results 76 - 100 of 326) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/chromium_org/media/base/android/java/src/org/chromium/media/
VideoCaptureAndroid.java 83 android.hardware.Camera camera; local
85 camera = android.hardware.Camera.open(id);
87 Log.e(TAG, "Camera.open: " + ex);
90 android.hardware.Camera.Parameters parameters = getCameraParameters(camera);
97 // with at least one element, but when the camera is in bad state, they
124 List<android.hardware.Camera.Size> supportedSizes =
127 supportedSizes = new ArrayList<android.hardware.Camera.Size>()
    [all...]
  /frameworks/base/core/jni/
android_hardware_Camera.cpp 19 #define LOG_TAG "Camera-JNI"
34 #include <camera/Camera.h>
40 // Keep up to date with Camera.java
74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
83 sp<Camera> getCamera() { Mutex::Autolock _l(mLock); return mCamera; }
95 sp<Camera> mCamera; // strong reference to native object
126 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext)
128 sp<Camera> camera local
525 sp<Camera> camera; local
573 sp<Camera> camera; local
602 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
623 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
648 sp<Camera> camera = get_native_camera(env, thiz, &context); local
670 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
704 sp<Camera> camera = get_native_camera(env, thiz, &context); local
750 sp<Camera> camera = get_native_camera(env, thiz, &context); local
780 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
798 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
812 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
824 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
835 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
846 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
862 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
874 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
886 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
906 sp<Camera> camera = get_native_camera(env, thiz, &context); local
922 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
933 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GetBitmapActivity.java 22 import android.hardware.Camera;
37 private Camera mCamera;
82 mCamera = Camera.open();
95 // Ignored, the Camera does all the work for us
  /packages/apps/Camera2/src/com/android/camera/settings/
CameraPictureSizesCacher.java 17 package com.android.camera.settings;
21 import android.hardware.Camera;
30 * Facilitates caching of camera supported picture sizes, which is slow
60 * Note: This method calls Camera.open(), so the camera must be closed
65 * @return List of valid sizes, or null if the Camera can not be opened.
79 // No cached value, so need to query Camera API.
80 Camera thisCamera;
82 thisCamera = Camera.open(cameraId);
84 // Camera open will fail if already open
    [all...]
  /packages/apps/LegacyCamera/tests/src/com/android/camera/power/
ImageAndVideoCapture.java 17 package com.android.camera.power;
19 import com.android.camera.Camera;
20 import com.android.camera.VideoCamera;
29 * Junit / Instrumentation test case for camera power measurement
34 * -e com.android.camera.power.ImageAndVideoCapture \
35 * -w com.android.camera.tests/android.test.InstrumentationTestRunner
39 public class ImageAndVideoCapture extends ActivityInstrumentationTestCase2 <Camera> {
49 super(Camera.class);
76 // This test case will use the default camera settin
    [all...]
  /cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java 25 import android.hardware.Camera;
42 private Camera mCamera;
63 mCamera = Camera.open();
65 mCamera = Camera.open(0);
67 // no camera, and no frame update, so just complete here.
  /frameworks/base/core/java/android/hardware/camera2/legacy/
LegacyResultMapper.java 20 import android.hardware.Camera;
21 import android.hardware.Camera.Parameters;
51 * Generate capture result metadata from the legacy camera request.
104 * Generate capture result metadata from the legacy camera request.
113 Camera.Parameters params = legacyRequest.parameters;
188 " returned by camera HAL, setting to disabled.");
203 " returned by camera HAL, setting to off.");
274 Camera.Size s = params.getJpegThumbnailSize();
349 Rect activeArray, ZoomData zoomData, Camera.Parameters p) {
367 private static void mapAwb(CameraMetadataNative m, Camera.Parameters p)
    [all...]
LegacyRequestMapper.java 20 import android.hardware.Camera;
21 import android.hardware.Camera.Parameters;
63 Camera.Parameters params = legacyRequest.parameters;
136 List<Camera.Area> meteringAreaList = convertMeteringRegionsToLegacy(
150 List<Camera.Area> focusAreaList = convertMeteringRegionsToLegacy(
175 params.setPreviewFpsRange(legacyFps[Camera.Parameters.PREVIEW_FPS_MIN_INDEX],
176 legacyFps[Camera.Parameters.PREVIEW_FPS_MAX_INDEX]);
421 List<Camera.Size> sizes = params.getSupportedJpegThumbnailSizes();
431 // (0,0) = "no thumbnail" in Camera API 1
481 private static List<Camera.Area> convertMeteringRegionsToLegacy
    [all...]
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
Size.java 20 import android.hardware.Camera;
34 * {@link android.hardware.Camera.Size}.
39 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) {
41 for (Camera.Size cameraSize : cameraSizes) {
114 * Constructor from a source {@link android.hardware.Camera.Size}.
118 public Size(Camera.Size other) {
CameraSettings.java 19 import android.hardware.Camera;
29 * A class which stores the camera settings.
39 protected final List<Camera.Area> mMeteringAreas = new ArrayList<>();
40 protected final List<Camera.Area> mFocusAreas = new ArrayList<>();
332 * com.android.camera.cameradevice.CameraCapabilities#getMaxZoomRatio()}.
369 public void setMeteringAreas(List<Camera.Area> areas) {
376 public List<Camera.Area> getMeteringAreas() {
377 return new ArrayList<Camera.Area>(mMeteringAreas);
415 public void setFocusAreas(List<Camera.Area> areas) {
422 public List<Camera.Area> getFocusAreas()
    [all...]
  /packages/apps/Camera2/src/com/android/camera/app/
CameraProvider.java 17 package com.android.camera.app;
19 import android.hardware.Camera;
26 * An interface which defines the camera provider.
31 * Requests the camera device. If the camera device of the same ID is
34 * @param id The ID of the requested camera device.
39 * Requests the camera device. If the camera device of the same ID is
42 * @param id The ID of the requested camera device.
50 * Releases the camera device
    [all...]
  /packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
CameraLatency.java 17 package com.android.camera.stress;
19 import com.android.camera.Camera;
32 * Junit / Instrumentation test case for camera test
36 public class CameraLatency extends ActivityInstrumentationTestCase2 <Camera> {
55 super(Camera.class);
81 Camera c = getActivity();
96 //failure condition of the camera latency.
113 out.write("Camera Latency : \n");
126 fail("Camera Latency write output to file")
    [all...]
  /packages/apps/Camera/tests/src/com/android/camera/activity/
CameraTestCase.java 17 package com.android.camera.activity;
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;
32 import com.android.camera.CameraHolder;
33 import com.android.camera.CameraManager.CameraProxy;
34 import com.android.camera.R
    [all...]
  /packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
CameraTestCase.java 17 package com.android.camera.activity;
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;
32 import com.android.camera.CameraTestDevice;
33 import com.android.camera.util.CameraUtil;
77 Camera camera = mOneMockCamera[0].getCamera()
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
CameraProfileTest.java 20 import android.hardware.Camera;
47 int nCamera = Camera.getNumberOfCameras();
  /frameworks/av/include/camera/
ICamera.h 25 #include <camera/Camera.h>
39 DECLARE_META_INTERFACE(Camera);
43 // connect new client with existing camera remote
52 // pass the buffered IGraphicBufferProducer to the camera service
109 // send command to camera driver
112 // tell the camera hal to store meta data or real YUV data in video buffers.
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/
MeteringTest.java 17 package com.android.cts.verifier.camera.analyzer;
23 import android.hardware.Camera;
24 import android.hardware.Camera.Area;
36 * Implements a test to verify whether the camera metering system works as
63 private List<Camera.Area> mGreyAreas;
78 /** Camera Parameters. */
79 private Camera.Parameters mParams;
84 * camera pointer.
179 * the data taken by the camera so far.
478 List<Camera.Area> meteringAreas = new ArrayList<Camera.Area>()
    [all...]
ExposureCompensationTest.java 17 package com.android.cts.verifier.camera.analyzer;
22 import android.hardware.Camera;
37 /** Lock for the camera object.*/
39 /** Lock for the camera's auto focusing task.*/
47 /** Camera Parameters. */
48 private Camera.Parameters mParams;
58 /** Prepares the camera and the related parameters for the test.*/
124 Log.v(TAG, String.format("Camera exposure level is %d", mCameraExposure));
147 private Camera.PictureCallback mTestJpegListener = new Camera.PictureCallback()
    [all...]
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
39 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
40 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
45 private Camera mCamera;
64 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
73 // stop recording and release camera
76 mCamera.lock(); // take camera access back from MediaRecorder
104 // release the camera immediately on pause event
115 // Lock camera for later use i.e taking it back from MediaRecorder.
123 // release the camera for other application
    [all...]
  /developers/samples/android/media/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
39 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
40 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
45 private Camera mCamera;
64 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
73 // stop recording and release camera
76 mCamera.lock(); // take camera access back from MediaRecorder
104 // release the camera immediately on pause event
115 // Lock camera for later use i.e taking it back from MediaRecorder.
123 // release the camera for other application
    [all...]
  /development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
39 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
40 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
45 private Camera mCamera;
64 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
73 // stop recording and release camera
76 mCamera.lock(); // take camera access back from MediaRecorder
104 // release the camera immediately on pause event
115 // Lock camera for later use i.e taking it back from MediaRecorder.
123 // release the camera for other application
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
CameraIntentsActivity.java 16 package com.android.cts.verifier.camera.intents;
22 import android.hardware.Camera;
39 * Tests for manual verification of camera intents being fired.
41 * android.hardware.Camera.ACTION_NEW_PICTURE - this should fire
42 * when a new picture was captured by the camera app, and it has been
44 * android.hardware.Camera.ACTION_NEW_VIDEO - this should fire when a new
45 * video has been captured by the camera app, and it has been added
49 * the camera activity, as well as by programatically launching the camera
52 * Please ensure when replacing the default camera app on a device
    [all...]
  /packages/apps/Camera/src/com/android/camera/
CameraManager.java 17 package com.android.camera;
19 import static com.android.camera.Util.Assert;
23 import android.hardware.Camera.AutoFocusCallback;
24 import android.hardware.Camera.AutoFocusMoveCallback;
25 import android.hardware.Camera.ErrorCallback;
26 import android.hardware.Camera.FaceDetectionListener;
27 import android.hardware.Camera.OnZoomChangeListener;
28 import android.hardware.Camera.Parameters;
29 import android.hardware.Camera.PictureCallback;
30 import android.hardware.Camera.PreviewCallback
    [all...]
  /pdk/apps/TestingCamera/src/com/android/testingcamera/
TestingCamera.java 24 import android.hardware.Camera;
25 import android.hardware.Camera.Parameters;
26 import android.hardware.Camera.ErrorCallback;
69 * A simple test application for the camera API.
71 * The goal of this application is to allow all camera API features to be
75 implements SurfaceHolder.Callback, Camera.PreviewCallback,
76 Camera.ErrorCallback {
121 /** Camera state */
123 private Camera mCamera;
124 private Camera.Parameters mParams
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
CameraParametersTest.java 5 import android.hardware.Camera;
23 private Camera.Parameters parameters;
28 parameters = Robolectric.newInstanceOf(Camera.Parameters.class);
37 Camera.Size pictureSize = parameters.getPictureSize();
68 Camera.Size size = parameters.getPreviewSize();
100 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes();
109 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes();

Completed in 2099 milliseconds

1 2 34 5 6 7 8 91011>>