Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/cts/
DCamera_SizeTest.java21 import android.hardware.Camera;
22 import android.hardware.Camera.Parameters;
48 if (Camera.getNumberOfCameras() < 1) { in testConstructor()
52 Camera camera = Camera.open(0); in testConstructor()
73 for (int id = 0; id < Camera.getNumberOfCameras(); ++id) { in testMaxAspectRatios()
76 Camera camera = Camera.open(id); in testMaxAspectRatios()
79 List<Camera.Size> supportedJpegDimens = parameters.getSupportedPictureSizes(); in testMaxAspectRatios()
80 List<Camera.Size> supportedPreviewDimens = parameters.getSupportedPreviewSizes(); in testMaxAspectRatios()
85 Camera.Size largestJpegDimen = in testMaxAspectRatios()
87 Camera.Size largestPreviewDimen = in testMaxAspectRatios()
DCameraTest.java23 import android.hardware.Camera;
24 import android.hardware.Camera.Area;
25 import android.hardware.Camera.CameraInfo;
26 import android.hardware.Camera.ErrorCallback;
27 import android.hardware.Camera.Face;
28 import android.hardware.Camera.FaceDetectionListener;
29 import android.hardware.Camera.Parameters;
30 import android.hardware.Camera.PictureCallback;
31 import android.hardware.Camera.ShutterCallback;
32 import android.hardware.Camera.Size;
[all …]
DCamera_ParametersTest.java20 import android.hardware.Camera.Parameters;
DCameraGLTest.java21 import android.hardware.Camera;
22 import android.hardware.Camera.Parameters;
23 import android.hardware.Camera.Size;
84 Camera mCamera;
139 mCamera = Camera.open(cameraId); in initializeMessageLooper()
176 implements android.hardware.Camera.PreviewCallback {
177 public void onPreviewFrame(byte [] data, Camera camera) { in onPreviewFrame()
322 int nCameras = Camera.getNumberOfCameras(); in runForAllCameras()
649 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing()
/cts/tests/tests/permission/src/android/permission/cts/
DCameraPermissionTest.java19 import android.hardware.Camera;
40 class ShutterCallback implements Camera.ShutterCallback {
44 class RawPictureCallback implements Camera.PictureCallback {
45 public void onPictureTaken(byte [] rawData, Camera camera) { } in onPictureTaken()
48 class JpegPictureCallback implements Camera.PictureCallback {
49 public void onPictureTaken(byte [] jpegData, Camera camera) { in onPictureTaken()
79 (Camera.open()).takePicture(new ShutterCallback(), in testCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java26 import android.hardware.Camera;
27 import android.hardware.Camera.PictureCallback;
28 import android.hardware.Camera.ShutterCallback;
73 private Camera mCamera;
139 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()
140 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { in onCreate()
195 int numCameras = Camera.getNumberOfCameras(); in onResume()
197 Camera camera = Camera.open(cameraId); in onResume()
200 List<Camera.Size> supportedSizes = in onResume()
202 for (Camera.Size size : supportedSizes) { in onResume()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java21 import android.hardware.Camera;
66 private Camera mCamera;
67 private List<Camera.Size> mPreviewSizes;
68 private Camera.Size mOptimalSize;
87 mNumCameras = Camera.getNumberOfCameras(); in onCreate()
183 mCamera = Camera.open(id); in setUpCamera()
188 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
191 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera()
192 class SizeCompare implements Comparator<Camera.Size> { in setUpCamera()
194 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera()
[all …]
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DCamera1Activity.java20 import android.hardware.Camera;
34 Camera mCamera;
50 mCamera = Camera.open(); in onResume()
55 mCamera.setErrorCallback(new Camera.ErrorCallback() { in onResume()
57 public void onError(int i, Camera camera) { in onResume()
58 if (i == Camera.CAMERA_ERROR_EVICTED) { in onResume()
DCameraEvictionTest.java23 import android.hardware.Camera;
57 private Camera mCamera;
153 final Camera.ErrorCallback mockErrorCb1 = mock(Camera.ErrorCallback.class); in testCamera1ActivityEviction()
159 mCamera = Camera.open(); in testCamera1ActivityEviction()
201 verify(mockErrorCb1, only()).onError(eq(Camera.CAMERA_ERROR_EVICTED), isA(Camera.class)); in testCamera1ActivityEviction()
211 mCamera = Camera.open(); in testCamera1ActivityEviction()
/cts/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewTest.java20 import android.hardware.Camera;
34 if (Camera.getNumberOfCameras() < 1) { in setUp()
41 if (Camera.getNumberOfCameras() < 1) { in testTextureViewActivity()
DTextureViewCameraActivity.java25 import android.hardware.Camera;
42 private Camera mCamera;
63 mCamera = Camera.open(); in onSurfaceTextureAvailable()
65 mCamera = Camera.open(0); in onSurfaceTextureAvailable()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DCameraUtils.java20 import android.hardware.Camera;
69 public static class LegacySizeComparator implements Comparator<Camera.Size> {
71 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java20 import android.hardware.Camera;
58 private Camera mCamera;
152 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback {
153 public void onError(int error, android.hardware.Camera camera) { in onError()
155 android.hardware.Camera.CAMERA_ERROR_SERVER_DIED); in onError()
169 if (Camera.getNumberOfCameras() < 1) { in testStressCamera()
189 mCamera = Camera.open(); in testStressCamera()
191 mCamera = Camera.open(0); in testStressCamera()
223 Camera camera = null; in testStressRecorder()
232 camera = Camera.open(0); in testStressRecorder()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java29 import android.hardware.Camera;
30 import android.hardware.Camera.CameraInfo;
61 implements TextureView.SurfaceTextureListener, Camera.PreviewCallback {
78 private Camera mCamera;
80 private List<Camera.Size> mPreviewSizes;
81 private Camera.Size mNextPreviewSize;
82 private Camera.Size mPreviewSize;
129 int numCameras = Camera.getNumberOfCameras(); in onCreate()
319 mCamera = Camera.open(id); in setUpCamera()
320 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java22 import android.hardware.Camera;
74 Camera.ACTION_NEW_PICTURE,
75 Camera.ACTION_NEW_VIDEO,
77 Camera.ACTION_NEW_VIDEO
163 return android.hardware.Camera.ACTION_NEW_PICTURE; in getStageIntentString()
166 return android.hardware.Camera.ACTION_NEW_VIDEO; in getStageIntentString()
169 return android.hardware.Camera.ACTION_NEW_PICTURE; in getStageIntentString()
172 return android.hardware.Camera.ACTION_NEW_VIDEO; in getStageIntentString()
255 mFilterPicture.addAction(Camera.ACTION_NEW_PICTURE); in onCreate()
256 mFilterPicture.addAction(Camera.ACTION_NEW_VIDEO); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java21 import android.hardware.Camera;
36 private Camera mCamera;
59 public void init(Camera camera, float aspectRatio, int rotation) { in init()
DRVCVRecordActivity.java22 import android.hardware.Camera;
379 private Camera mCamera;
381 private Camera.CameraInfo mCameraInfo;
392 mCamera = Camera.open(); // attempt to get a default Camera instance (0) in CameraContext()
395 mCameraInfo = new Camera.CameraInfo(); in CameraContext()
396 Camera.getCameraInfo(0, mCameraInfo); in CameraContext()
411 Camera.Parameters param = mCamera.getParameters(); in setupCamera()
412 List<Camera.Size> pre_sz = param.getSupportedPreviewSizes(); in setupCamera()
413 List<Camera.Size> pic_sz = param.getSupportedPictureSizes(); in setupCamera()
420 for (Camera.Size j : pre_sz) { in setupCamera()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraTest.java18 import android.graphics.Camera;
24 private Camera mCamera;
29 mCamera = new Camera(); in setUp()
33 new Camera(); in testCamera()
/cts/tests/tests/media/src/android/media/cts/
DCameraProfileTest.java20 import android.hardware.Camera;
47 int nCamera = Camera.getNumberOfCameras(); in testGetWithId()
DCamcorderProfileTest.java21 import android.hardware.Camera;
22 import android.hardware.Camera.Parameters;
23 import android.hardware.Camera.Size;
351 int nCamera = Camera.getNumberOfCameras(); in testGetWithId()
358 Camera camera = (cameraId == -1)? Camera.open(): Camera.open(cameraId); in getSupportedVideoSizes()
DMediaRecorderTest.java24 import android.hardware.Camera;
83 private Camera mCamera;
180 Camera camera = null; in testRecorderCamera()
218 int nCamera = Camera.getNumberOfCameras(); in recordVideoUsingCamera()
221 mCamera = Camera.open(cameraId); in recordVideoUsingCamera()
230 Camera camera, String fileName, int durMs, boolean timelapse) throws Exception { in recordVideoUsingCamera()
234 Camera.Parameters params = camera.getParameters(); in recordVideoUsingCamera()
519 mCamera = Camera.open(0); in setupRecorder()
520 Camera.Parameters params = mCamera.getParameters(); in setupRecorder()
/cts/tests/tests/app/src/android/app/cts/
DSystemFeaturesTest.java30 import android.hardware.Camera;
33 import android.hardware.Camera.CameraInfo;
34 import android.hardware.Camera.Parameters;
115 int numCameras = Camera.getNumberOfCameras(); in testCameraFeatures()
178 int numCameras = Camera.getNumberOfCameras(); in checkFrontCamera()
181 Camera.getCameraInfo(i, info); in checkFrontCamera()
201 Camera camera = null; in checkRearCamera()
203 camera = Camera.open(); in checkRearCamera()
207 Camera.Parameters params = camera.getParameters(); in checkRearCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java22 import android.hardware.Camera;
23 import android.hardware.Camera.CameraInfo;
24 import android.hardware.Camera.Size;
81 private Camera mCamera;
219 int numCameras = Camera.getNumberOfCameras(); in onCreate()
591 mCamera = Camera.open(id); in setUpCamera()
599 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
652 Camera.getCameraInfo(id, info); in setUpCamera()
662 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in setUpCamera()
725 Camera.Parameters p = mCamera.getParameters(); in startPreview()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js307 this.camera = new Flog.RayTracer.Camera(
543 Flog.RayTracer.Camera = Class.create();
545 Flog.RayTracer.Camera.prototype = { class in Flog.RayTracer
814 scene.camera = new Flog.RayTracer.Camera(
/cts/apps/CtsVerifier/libs/
Dopencv-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...