Searched defs:camera (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
H A DEffectsVideoCapture.java17 package android.camera.mediaeffects.tests.functional;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
H A DCameraFunctionalTest.java17 package com.android.mediaframeworktest.functional.camera;
48 * Junit / Instrumentation test case for the following camera APIs:
55 * -e class com.android.mediaframeworktest.functional.camera.CameraFunctionalTest
H A DCameraPairwiseTest.java17 package com.android.mediaframeworktest.functional.camera;
41 * Junit / Instrumentation test case for camera API pairwise testing
61 // camera setting enums
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DCameraTestHelper.java44 private static final String CAMERA_STRESS_IMAGES_PREFIX = "camera-stress-test";
48 public void onError(int error, android.hardware.Camera camera) { argument
62 public void onPictureTaken(byte[] data, Camera camera) {
69 public void onPictureTaken(byte[] data, Camera camera) {
109 * Helper method for getting the available parameters of the default camera
145 * Helper method for setting the camera parameters
151 Log.e(TAG, "Error setting camera parameters");
156 * Helper method for starting up the camera preview
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java59 final Camera camera = mCamera;
63 rotate(centerX, centerY, camera, matrix, 32.0f);
66 rotate(centerX, centerY, camera, matrix, 12.0f);
69 rotate(centerX, centerY, camera, matrix, 52.0f);
72 rotate(centerX, centerY, camera, matrix, 122.0f);
86 private void rotate(float centerX, float centerY, Camera camera, argument
88 camera.save();
89 camera.rotateY(angle);
90 camera.getMatrix(matrix);
91 camera
[all...]
/frameworks/av/camera/
H A DICameraService.cpp28 #include <camera/ICameraService.h>
29 #include <camera/ICameraServiceListener.h>
30 #include <camera/IProCameraUser.h>
31 #include <camera/IProCameraCallbacks.h>
32 #include <camera/ICamera.h>
33 #include <camera/ICameraClient.h>
34 #include <camera/camera2/ICameraDeviceUser.h>
35 #include <camera/camera2/ICameraDeviceCallbacks.h>
36 #include <camera/CameraMetadata.h>
106 // get information about a camera
285 sp<ICamera> camera; local
305 sp<IProCameraUser> camera; local
325 sp<ICameraDeviceUser> camera; local
[all...]
H A DCamera.cpp27 #include <camera/Camera.h>
28 #include <camera/ICameraRecordingProxyListener.h>
29 #include <camera/ICameraService.h>
30 #include <camera/ICamera.h>
45 // construct a camera client from an existing camera remote
46 sp<Camera> Camera::create(const sp<ICamera>& camera) argument
49 if (camera == 0) {
50 ALOGE("camera remote is a NULL pointer");
55 if (camera
344 RecordingProxy(const sp<Camera>& camera) argument
[all...]
/frameworks/av/include/camera/
H A DProCamera.h23 #include <system/camera.h>
24 #include <camera/IProCameraCallbacks.h>
25 #include <camera/IProCameraUser.h>
26 #include <camera/Camera.h>
27 #include <camera/CameraMetadata.h>
28 #include <camera/ICameraService.h>
36 #include <camera/CameraBase.h>
105 * Connect a shared camera. By default access is restricted to read only
114 * - We may request exclusive access to a camera if no other
115 * clients are using the camera
262 ProFrameListener(wp<ProCamera> camera, int streamID) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCameraTest.java38 * Junit / Instrumentation test case for the camera api
88 // Set up a looper to be used by camera.
113 // callback still uses the camera object (setHasPreviewCallback).
114 // After camera is released, RuntimeException will be thrown from
122 public void onPreviewFrame(byte [] rawData, Camera camera) { argument
148 public void onPictureTaken(byte [] rawData, Camera camera) { argument
157 public void onPictureTaken(byte [] rawData, Camera camera) { argument
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp31 status_t MediaRecorder::setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
33 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
43 status_t ret = mMediaRecorder->setCamera(camera, proxy);
H A DIMediaRecorder.cpp22 #include <camera/ICamera.h>
66 status_t setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
68 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
71 data.writeStrongBinder(camera->asBinder());
453 sp<ICamera> camera = interface_cast<ICamera>(data.readStrongBinder()); local
456 reply->writeInt32(setCamera(camera, proxy));
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp72 status_t MediaRecorderClient::setCamera(const sp<ICamera>& camera, argument
81 return mRecorder->setCamera(camera, proxy);
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp27 #include <camera/Camera.h>
28 #include <camera/CameraParameters.h>
36 const sp<ICamera> &camera,
47 CameraSourceTimeLapse(camera, proxy, cameraId,
62 const sp<ICamera>& camera,
71 : CameraSource(camera, proxy, cameraId, clientName, clientUid,
109 // Force dataCallbackTimestamp() coming from the video camera to
278 // Tell the camera to release its recording frame and return.
35 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs) argument
61 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs) argument
H A DCameraSource.cpp28 #include <camera/Camera.h>
29 #include <camera/CameraParameters.h>
129 sp<ICamera> camera; local
130 return new CameraSource(camera, NULL, 0, clientName, -1,
136 const sp<ICamera>& camera,
146 CameraSource *source = new CameraSource(camera, proxy, cameraId,
153 const sp<ICamera>& camera,
180 mInitCheck = init(camera, proxy, cameraId,
192 const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy,
195 if (camera
135 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
152 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
191 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument
474 init( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
494 initWithCameraAccess( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraDevice.java25 * <p>The CameraDevice class is an interface to a single camera connected to an
31 * in order to access camera devices.</p>
33 * <p>A given camera device may provide support at one of two levels: limited or
38 * provide substantially improved capabilities over the older camera
50 * Create a request suitable for a camera preview window. Specifically, this
113 * Get the ID of this camera device.
116 * this camera device.</p>
118 * <p>This ID can be used to query the camera device's {@link
125 * @return the ID for this camera device
133 * <p>Set up a new output set of Surfaces for the camera devic
628 onCaptureStarted(CameraDevice camera, CaptureRequest request, long timestamp) argument
650 onCaptureCompleted(CameraDevice camera, CaptureRequest request, CaptureResult result) argument
679 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument
702 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, int frameNumber) argument
801 onOpened(CameraDevice camera) argument
821 onUnconfigured(CameraDevice camera) argument
850 onActive(CameraDevice camera) argument
883 onBusy(CameraDevice camera) argument
898 onClosed(CameraDevice camera) argument
930 onIdle(CameraDevice camera) argument
961 onDisconnected(CameraDevice camera) argument
990 onError(CameraDevice camera, int error) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DMediaRecorderStressTest.java136 public void onError(int error, android.hardware.Camera camera) { argument
306 Log.v(TAG, "Start camera time lapse stress:");
311 mOutput.write("No of loop: camera " + i);
335 // http://developer.android.com/guide/topics/media/camera.html#time-lapse-video
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java74 Log.v(TAG, "camera available to open");
80 Log.v(TAG, "camera unavailable to open");
88 public void onCaptureCompleted(CameraDevice camera, CaptureRequest request, argument
96 public void onCaptureFailed(CameraDevice camera, CaptureRequest request, argument
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DColladaParser.java114 nl = docEle.getElementsByTagName("camera");
451 private void convertCamera(Element camera) { argument
452 String name = camera.getAttribute("name");
453 String id = camera.getAttribute("id");
455 if (getString(camera, "yfov") != null) {
456 fov = getFloat(camera, "yfov");
457 } else if(getString(camera, "xfov") != null) {
458 float aspect = getFloat(camera, "aspect_ratio");
459 fov = getFloat(camera, "xfov") / aspect;
462 float near = getFloat(camera, "znea
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingCameraManager.java78 * Thrown when camera device enters error state during open, or if
95 * Create a new blocking camera manager.
109 * Open the camera, blocking it until it succeeds or fails.
124 * highly unrecoverable, and all future calls to opening that camera will fail since the
128 * Id of the camera
130 * Listener to the camera. onOpened, onDisconnected, onError need not be implemented.
168 * <p>Time out after {@link #OPEN_TIME_OUT} and unblock. Clean up camera if it arrives
207 public void onOpened(CameraDevice camera) { argument
209 Log.v(TAG, "onOpened: camera " + ((camera !
229 onDisconnected(CameraDevice camera) argument
252 onError(CameraDevice camera, int error) argument
278 onUnconfigured(CameraDevice camera) argument
283 onIdle(CameraDevice camera) argument
288 onActive(CameraDevice camera) argument
293 onBusy(CameraDevice camera) argument
298 onClosed(CameraDevice camera) argument
[all...]
H A DBlockingStateListener.java32 * A camera device listener that implements blocking operations on state changes.
36 * the last wait, or that will be received from the camera device in the
135 public void onOpened(CameraDevice camera) { argument
137 if (mProxy != null) mProxy.onOpened(camera);
141 public void onDisconnected(CameraDevice camera) { argument
143 if (mProxy != null) mProxy.onDisconnected(camera);
147 public void onError(CameraDevice camera, int error) { argument
149 if (mProxy != null) mProxy.onError(camera, error);
153 public void onUnconfigured(CameraDevice camera) { argument
155 if (mProxy != null) mProxy.onUnconfigured(camera);
159 onIdle(CameraDevice camera) argument
165 onActive(CameraDevice camera) argument
171 onBusy(CameraDevice camera) argument
177 onClosed(CameraDevice camera) argument
[all...]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java55 * Tests for manual verification of the CDD-required camera output formats
342 public void onPreviewFrame(byte[] data, Camera camera) { argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp22 #include <camera/ICameraService.h>
23 #include <camera/Camera.h>
150 static void android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument
152 // we should not pass a null camera to get_native_camera() call.
153 if (camera == NULL) {
154 jniThrowNullPointerException(env, "camera object is a NULL pointer");
157 sp<Camera> c = get_native_camera(env, camera, NULL);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
H A DMediaPlayerPerformance.java164 // callback still uses the camera object (setHasPreviewCallback).
165 // After camera is released, RuntimeException will be thrown from
173 public void onPreviewFrame(byte[] rawData, Camera camera) { argument
251 //Insert 2 seconds to make sure the camera released.
499 // Test case 8: Capture the memory usage after every 20 camera preview
511 assertTrue("camera preview memory test", memoryResult);
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java104 // No changes to default camera parameters
173 public void setCamera(Camera camera) { argument
174 mCamera = camera;
175 Camera.Size previewSize = camera.getParameters().getPreviewSize();
295 // Can't do mipmapping with camera source
308 * Create the SurfaceTexture that will feed this textureID, and pass it to the camera
319 /* Start the camera */
341 * Move the camera surface around based on some simple spring physics with drag
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp33 #include <camera/Camera.h>
61 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
114 sp<Camera> camera; local
118 camera = context->getCamera();
120 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
121 if (camera == 0) {
126 return camera;
129 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument
133 mCamera = camera;
476 sp<Camera> camera = Camera::connect(cameraId, clientName, local
515 sp<Camera> camera; local
544 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
565 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
590 sp<Camera> camera = get_native_camera(env, thiz, &context); local
612 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
646 sp<Camera> camera = get_native_camera(env, thiz, &context); local
692 sp<Camera> camera = get_native_camera(env, thiz, &context); local
722 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
740 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
754 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
766 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
777 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
788 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
804 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
816 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
828 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
848 sp<Camera> camera = get_native_camera(env, thiz, &context); local
864 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
875 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
[all...]

Completed in 460 milliseconds

12