Searched defs:camera (Results 26 - 40 of 40) sorted by relevance

12

/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyCameraDevice.java92 * Listener for the camera device state machine. Calls the appropriate
237 * Create a new emulated camera device from a given Camera 1 API camera.
241 * and ownership of the provided camera is passed to this object. No further calls to the
242 * camera methods should be made following this constructor.
245 * @param cameraId the id of the camera.
246 * @param camera an open {@link Camera} device.
247 * @param characteristics the static camera characteristics for this camera device
250 public LegacyCameraDevice(int cameraId, Camera camera, CameraCharacteristic argument
[all...]
H A DRequestThreadManager.java188 public void onError(int i, Camera camera) {
198 public void onPictureTaken(byte[] data, Camera camera) {
484 * Find a JPEG size (that is supported by the legacy camera device) which is equal to or larger
724 // the camera client, and skip any further work for this request
725 Log.e(TAG, "Exception while setting camera parameters: ", e);
815 // Update parameters to the latest that we think the camera is using
896 * @param cameraId the id of the camera to use.
897 * @param camera an open camera object. The RequestThreadManager takes ownership of this camera
902 RequestThreadManager(int cameraId, Camera camera, CameraCharacteristics characteristics, CameraDeviceState deviceState) argument
[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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
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);
/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/av/media/libstagefright/
H A DCameraSource.cpp30 #include <camera/Camera.h>
31 #include <camera/CameraParameters.h>
140 sp<ICamera> camera; local
141 return new CameraSource(camera, NULL, 0, clientName, -1,
147 const sp<ICamera>& camera,
157 CameraSource *source = new CameraSource(camera, proxy, cameraId,
164 const sp<ICamera>& camera,
191 mInitCheck = init(camera, proxy, cameraId,
203 const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy,
206 if (camera
146 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
163 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
202 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument
485 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
505 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
680 sp<Camera> camera; local
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
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/jni/
H A Dandroid_hardware_Camera.cpp34 #include <camera/Camera.h>
67 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
120 sp<Camera> camera; local
124 camera = context->getCamera();
126 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
127 if (camera == 0) {
132 return camera;
135 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument
139 mCamera = camera;
482 sp<Camera> camera; local
530 sp<Camera> camera; local
559 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
580 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
605 sp<Camera> camera = get_native_camera(env, thiz, &context); local
627 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
661 sp<Camera> camera = get_native_camera(env, thiz, &context); local
707 sp<Camera> camera = get_native_camera(env, thiz, &context); local
737 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
755 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
769 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
781 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
792 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
803 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
819 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
831 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
843 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
863 sp<Camera> camera = get_native_camera(env, thiz, &context); local
879 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
890 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2AgentImpl.java70 * Number of camera devices. The length of {@code mCameraDevices} does not reveal this
76 * Transformation between integral camera indices and the {@link java.lang.String} indices used
102 * Updates the camera device index assignments stored in {@link mCameraDevices}, without
111 // Invalidate the indices assigned to any camera devices that are no longer present
119 // Assign fresh indices to any new camera devices
130 Log.e(TAG, "Could not get device listing from camera subsystem", ex);
229 Log.i(TAG, String.format("Opening camera index %d (id %s) with camera2 API",
428 // Send a one-time capture to trigger the camera driver to lock focus.
457 // Send a one-time capture to trigger the camera driver to resume scanning.
608 // Set a one-time capture to trigger the camera drive
970 AndroidCamera2ProxyImpl(int cameraIndex, CameraDevice camera, CameraDeviceInfo.Characteristics characteristics, CameraCharacteristics properties) argument
[all...]
H A DAndroidCameraAgentImpl.java46 * A class to implement {@link CameraAgent} of the Android camera framework.
140 // Get the first (smallest) back and first front camera id.
212 public ParametersCache(Camera camera) { argument
213 mCamera = camera;
230 throw new IllegalStateException("camera.getParameters returned null");
238 * The handler on which the actual camera operations happen.
293 android.hardware.Camera camera, Object cb) {
295 camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb);
305 // TODO: output camera state and focus state for debugging.
338 Log.i(TAG, "Opening camera "
292 setAutoFocusMoveCallback( android.hardware.Camera camera, Object cb) argument
729 AndroidCameraProxyImpl(int cameraId, Camera camera, CameraDeviceInfo.Characteristics characteristics, AndroidCameraCapabilities capabilities) argument
1036 getNewInstance( Handler handler, CameraProxy camera, CameraAFCallback cb) argument
1044 AFCallbackForward( Handler h, CameraProxy camera, CameraAFCallback cb) argument
1052 onAutoFocus(final boolean b, Camera camera) argument
1079 getNewInstance( Handler handler, CameraProxy camera, CameraErrorCallback cb) argument
1087 ErrorCallbackForward( Handler h, CameraProxy camera, CameraErrorCallback cb) argument
1095 onError(final int error, Camera camera) argument
1121 getNewInstance( Handler handler, CameraProxy camera, CameraAFMoveCallback cb) argument
1129 AFMoveCallbackForward( Handler h, CameraProxy camera, CameraAFMoveCallback cb) argument
1137 onAutoFocusMoving( final boolean moving, android.hardware.Camera camera) argument
1165 getNewInstance( Handler handler, CameraProxy camera, CameraShutterCallback cb) argument
1173 ShutterCallbackForward( Handler h, CameraProxy camera, CameraShutterCallback cb) argument
1208 getNewInstance( Handler handler, CameraProxy camera, CameraPictureCallback cb) argument
1216 PictureCallbackForward( Handler h, CameraProxy camera, CameraPictureCallback cb) argument
1224 onPictureTaken( final byte[] data, android.hardware.Camera camera) argument
1252 getNewInstance( Handler handler, CameraProxy camera, CameraPreviewDataCallback cb) argument
1260 PreviewCallbackForward( Handler h, CameraProxy camera, CameraPreviewDataCallback cb) argument
1268 onPreviewFrame( final byte[] data, android.hardware.Camera camera) argument
1293 getNewInstance( Handler handler, CameraProxy camera, CameraFaceDetectionCallback cb) argument
1301 FaceDetectionCallbackForward( Handler h, CameraProxy camera, CameraFaceDetectionCallback cb) argument
1309 onFaceDetection( final Camera.Face[] faces, Camera camera) argument
[all...]
H A DCameraAgent.java32 * An interface which provides possible camera device operations.
35 * of {@link CameraAgent.CameraProxy} to control the camera. Classes
37 * other than the main thread for camera operations. Camera device callbacks
112 public void onCameraOpened(final CameraProxy camera) { argument
116 mCallback.onCameraOpened(camera);
158 * A handler for all camera api runtime exceptions.
170 public void onError(int error, CameraProxy camera); argument
178 public void onAutoFocus(boolean focused, CameraProxy camera); argument
186 public void onAutoFocusMoving(boolean moving, CameraProxy camera); argument
194 public void onShutter(CameraProxy camera); argument
202 onPictureTaken(byte[] data, CameraProxy camera) argument
210 onPreviewFrame(byte[] data, CameraProxy camera) argument
224 onFaceDetection(Camera.Face[] faces, CameraProxy camera) argument
247 onCameraOpened(CameraProxy camera) argument
310 closeCamera(CameraProxy camera, boolean synced) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DCameraStreamer.java49 * The CameraStreamer streams Frames from a camera to connected clients.
58 /** Camera Facing: Don't Care: Picks any available camera. */
60 /** Camera Facing: Front: Use the front facing camera. */
62 /** Camera Facing: Back: Use the rear facing camera. */
65 /** How long the streamer should wait to acquire the camera before giving up. */
69 * The global camera lock, that is closed when the camera is acquired by any CameraStreamer,
70 * and opened when a streamer is done using the camera.
74 /** The Camera thread that grabs frames from the camera */
96 /** List of clients that are consuming camera frame
243 setupPreviewTexture(Camera camera) argument
403 setupPreviewTexture(Camera camera) argument
1542 onCameraOpened(CameraStreamer camera) argument
1547 onCameraClosed(CameraStreamer camera) argument
[all...]
/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...]

Completed in 483 milliseconds

12