Searched defs:camera (Results 1 - 25 of 40) sorted by path

12

/frameworks/av/camera/
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
80 connectLegacy(int cameraId, int halVersion, const String16& clientPackageName, int clientUid, sp<Camera>& camera) argument
370 RecordingProxy(const sp<Camera>& camera) argument
[all...]
H A DICameraService.cpp30 #include <camera/ICameraService.h>
31 #include <camera/ICameraServiceListener.h>
32 #include <camera/IProCameraUser.h>
33 #include <camera/IProCameraCallbacks.h>
34 #include <camera/ICamera.h>
35 #include <camera/ICameraClient.h>
36 #include <camera/camera2/ICameraDeviceUser.h>
37 #include <camera/camera2/ICameraDeviceCallbacks.h>
38 #include <camera/CameraMetadata.h>
39 #include <camera/VendorTagDescripto
380 sp<ICamera> camera; local
400 sp<IProCameraUser> camera; local
420 sp<ICameraDeviceUser> camera; local
480 sp<ICamera> camera; local
[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/av/media/libmedia/
H A DIMediaRecorder.cpp26 #include <camera/ICamera.h>
68 status_t setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
70 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
73 data.writeStrongBinder(camera->asBinder());
455 sp<ICamera> camera = interface_cast<ICamera>(data.readStrongBinder()); local
458 reply->writeInt32(setCamera(camera, proxy));
H A Dmediarecorder.cpp34 status_t MediaRecorder::setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
36 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
46 status_t ret = mMediaRecorder->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);
98 // Check camera permission for sources other than SURFACE
H A DStagefrightRecorder.cpp47 #include <camera/ICamera.h>
48 #include <camera/CameraParameters.h>
220 status_t StagefrightRecorder::setCamera(const sp<ICamera> &camera, argument
223 if (camera == 0) {
224 ALOGE("camera is NULL");
228 ALOGE("camera proxy is NULL");
232 mCamera = camera;
675 } else if (key == "video-param-camera-id") {
1167 /* hardware codecs must support camera source meta data mode */
1179 ALOGV("encoder %s camera sourc
[all...]
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp30 #include <camera/Camera.h>
31 #include <camera/CameraParameters.h>
141 sp<ICamera> camera; local
142 return new CameraSource(camera, NULL, 0, clientName, -1,
148 const sp<ICamera>& camera,
158 CameraSource *source = new CameraSource(camera, proxy, cameraId,
165 const sp<ICamera>& camera,
192 mInitCheck = init(camera, proxy, cameraId,
204 const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy,
207 if (camera
147 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
164 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
203 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument
486 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
506 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
681 sp<Camera> camera; local
[all...]
H A DCameraSourceTimeLapse.cpp29 #include <camera/Camera.h>
30 #include <camera/CameraParameters.h>
38 const sp<ICamera> &camera,
50 CameraSourceTimeLapse(camera, proxy, cameraId,
66 const sp<ICamera>& camera,
76 : CameraSource(camera, proxy, cameraId, clientName, clientUid,
116 // Force dataCallbackTimestamp() coming from the video camera to
285 // Tell the camera to release its recording frame and return.
37 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, bool storeMetaDataInVideoBuffers) argument
65 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, bool storeMetaDataInVideoBuffers) argument
/frameworks/base/core/java/android/hardware/
H A DCamera.java54 * client for the Camera service, which manages the actual camera hardware.
56 * <p>To access the device camera, you must declare the
60 * manifest element to declare camera features used by your application.
61 * For example, if you use the camera and auto-focus feature, your Manifest
64 * &lt;uses-feature android:name="android.hardware.camera" />
65 * &lt;uses-feature android:name="android.hardware.camera.autofocus" /></pre>
80 * {@link #setPreviewDisplay(SurfaceHolder)}. Without a surface, the camera
95 * <li><b>Important:</b> Call {@link #release()} to release the camera for
96 * use by other applications. Applications should release the camera
106 * <li>Call {@link #unlock()} to allow the media process to access the camera
710 onPreviewFrame(byte[] data, Camera camera) argument
1210 onAutoFocus(boolean success, Camera camera) argument
1317 onAutoFocusMoving(boolean start, Camera camera) argument
1371 onPictureTaken(byte[] data, Camera camera) argument
1604 onZoomChange(int zoomValue, boolean stopped, Camera camera) argument
1634 onFaceDetection(Face[] faces, Camera camera) argument
1842 onError(int error, Camera camera) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraDevice.java27 * <p>The CameraDevice class is a representation of a single camera connected to an
33 * in order to access camera devices.</p>
35 * <p>A given camera device may provide support at one of two levels: limited or
40 * provide substantially improved capabilities over the older camera
52 * 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>Create a new camera captur
523 onOpened(CameraDevice camera) argument
536 onClosed(CameraDevice camera) argument
567 onDisconnected(CameraDevice camera) argument
596 onError(CameraDevice camera, int error) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCallbackProxies.java49 public void onOpened(CameraDevice camera) { argument
50 mProxy.invoke("onOpened", camera);
54 public void onDisconnected(CameraDevice camera) { argument
55 mProxy.invoke("onDisconnected", camera);
59 public void onError(CameraDevice camera, int error) { argument
60 mProxy.invoke("onError", camera, error);
64 public void onUnconfigured(CameraDevice camera) { argument
65 mProxy.invoke("onUnconfigured", camera);
69 public void onActive(CameraDevice camera) { argument
70 mProxy.invoke("onActive", camera);
74 onBusy(CameraDevice camera) argument
79 onClosed(CameraDevice camera) argument
84 onIdle(CameraDevice camera) argument
100 onCaptureStarted(CameraDevice camera, CaptureRequest request, long timestamp, long frameNumber) argument
106 onCapturePartial(CameraDevice camera, CaptureRequest request, CaptureResult result) argument
112 onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult) argument
118 onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result) argument
124 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument
130 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber) argument
136 onCaptureSequenceAborted(CameraDevice camera, int sequenceId) argument
[all...]
H A DCameraDeviceImpl.java264 * Call to indicate failed connection to a remote camera device.
266 * <p>This places the camera device in the error state and informs the callback.
290 Log.wtf(TAG, "Unknown failure in opening camera device: " + failure.getReason());
386 // OK. camera service can reject stream config if it's not supported by HAL
395 throw new IllegalStateException("The camera is currently busy." +
427 // Notify current session that it's going away, before starting camera operations
790 * submitted to the camera device.</p>
804 * This method is called when the camera device has started capturing
809 public void onCaptureStarted(CameraDevice camera, argument
820 public void onCapturePartial(CameraDevice camera, argument
830 onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult) argument
839 onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result) argument
849 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument
859 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber) argument
869 onCaptureSequenceAborted(CameraDevice camera, int sequenceId) argument
884 onUnconfigured(CameraDevice camera) argument
893 onActive(CameraDevice camera) argument
901 onBusy(CameraDevice camera) argument
910 onIdle(CameraDevice camera) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyCameraDevice.java101 * Listener for the camera device state machine. Calls the appropriate
246 * Create a new emulated camera device from a given Camera 1 API camera.
250 * and ownership of the provided camera is passed to this object. No further calls to the
251 * camera methods should be made following this constructor.
254 * @param cameraId the id of the camera.
255 * @param camera an open {@link Camera} device.
256 * @param characteristics the static camera characteristics for this camera device
259 public LegacyCameraDevice(int cameraId, Camera camera, CameraCharacteristic argument
[all...]
H A DLegacyFaceDetectMapper.java51 /** Is the camera capable of face detection? */
53 /** Is the camera is running face detection? */
67 * @param camera a non-{@code null} camera1 device
68 * @param characteristics a non-{@code null} camera characteristics for that camera1
72 public LegacyFaceDetectMapper(Camera camera, CameraCharacteristics characteristics) { argument
73 mCamera = checkNotNull(camera, "camera must not be null");
88 public void onFaceDetection(Camera.Face[] faces, Camera camera) {
195 * Update the {@code result} camera metadata map with the new value for the
202 * the camera wil
[all...]
H A DLegacyFocusStateMapper.java58 * @param camera a non-{@code null} camera1 device
62 public LegacyFocusStateMapper(Camera camera) { argument
63 mCamera = checkNotNull(camera, "camera must not be null");
119 public void onAutoFocusMoving(boolean start, Camera camera) {
207 public void onAutoFocus(boolean success, Camera camera) {
275 * Update the {@code result} camera metadata map with the new value for the
H A DRequestThreadManager.java193 public void onError(int i, Camera camera) {
203 public void onPictureTaken(byte[] data, Camera camera) {
513 * Find a JPEG size (that is supported by the legacy camera device) which is equal to or larger
752 // the camera client, and skip any further work for this request
753 Log.e(TAG, "Exception while setting camera parameters: ", e);
848 // Update parameters to the latest that we think the camera is using
931 * @param cameraId the id of the camera to use.
932 * @param camera an open camera object. The RequestThreadManager takes ownership of this camera
937 RequestThreadManager(int cameraId, Camera camera, CameraCharacteristics characteristics, CameraDeviceState deviceState) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp34 #include <camera/Camera.h>
74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
128 sp<Camera> camera; local
132 camera = context->getCamera();
134 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
135 if (camera == 0) {
141 return camera;
144 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument
148 mCamera = camera;
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/media/jni/
H A Dandroid_media_MediaRecorder.cpp29 #include <camera/ICameraService.h>
30 #include <camera/Camera.h>
152 static void android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument
154 // we should not pass a null camera to get_native_camera() call.
155 if (camera == NULL) {
156 jniThrowNullPointerException(env, "camera object is a NULL pointer");
159 sp<Camera> c = get_native_camera(env, camera, NULL);
/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/
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/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/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/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.
514 // Test case 8: Capture the memory usage after every 20 camera preview
526 assertTrue("camera preview memory test", memoryResult);

Completed in 5277 milliseconds

12