Searched refs:camera (Results 1 - 25 of 114) sorted by relevance

12345

/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...]
/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 onClosed(CameraDevice camera) argument
[all...]
H A DBlockingStateCallback.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
111 public void onOpened(CameraDevice camera) { argument
112 if (mProxy != null) mProxy.onOpened(camera);
117 public void onDisconnected(CameraDevice camera) { argument
118 if (mProxy != null) mProxy.onDisconnected(camera);
123 public void onError(CameraDevice camera, int error) { argument
124 if (mProxy != null) mProxy.onError(camera, error);
129 public void onClosed(CameraDevice camera) { argument
130 if (mProxy != null) mProxy.onClosed(camera);
[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/include/android_runtime/
H A Dandroid_hardware_camera2_CameraMetadata.h20 #include <camera/CameraMetadata.h>
/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/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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DCameraStressTestRunner.java22 import com.android.mediaframeworktest.functional.camera.CameraFunctionalTest;
23 import com.android.mediaframeworktest.functional.camera.CameraPairwiseTest;
/frameworks/av/include/camera/
H A DCameraUtils.h20 #include <camera/CameraMetadata.h>
29 * camera client, and the camera service.
34 * Calculate the ANativeWindow transform from the static camera
36 * attributes of the camera device.
H A DCamera.h22 #include <system/camera.h>
23 #include <camera/ICameraClient.h>
24 #include <camera/ICameraRecordingProxy.h>
25 #include <camera/ICameraRecordingProxyListener.h>
26 #include <camera/ICameraService.h>
27 #include <camera/ICamera.h>
28 #include <camera/CameraBase.h>
71 // construct a camera client from an existing remote
72 static sp<Camera> create(const sp<ICamera>& camera);
79 int clientUid, sp<Camera>& camera);
[all...]
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...]
H A DCaptureResult.h21 #include <camera/CameraMetadata.h>
H A DICameraClient.h25 #include <system/camera.h>
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
H A DCamera2DeviceTester.java32 * Subclasses of this have an {@code mCamera} instance variable representing the first camera.
70 public synchronized void onOpened(CameraDevice camera) { argument
71 mCamera = camera;
76 public void onDisconnected(CameraDevice camera) {} argument
79 public void onError(CameraDevice camera, int error) {} argument
/frameworks/av/camera/tests/
H A DAndroid.mk43 system/media/camera/include \
44 system/media/private/camera/include \
45 system/media/camera/tests \
46 frameworks/av/services/camera/libcameraservice \
47 frameworks/av/include/camera \
/frameworks/av/include/camera/camera2/
H A DICameraDeviceCallbacks.h25 #include <system/camera.h>
27 #include <camera/CaptureResult.h>
H A DCaptureRequest.h22 #include <camera/CameraMetadata.h>
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCameraAgentImpl.java46 * A class to implement {@link CameraAgent} of the Android camera framework.
160 // Get the first (smallest) back and first front camera id.
232 public ParametersCache(Camera camera) { argument
233 mCamera = camera;
250 throw new IllegalStateException("camera.getParameters returned null");
258 * The handler on which the actual camera operations happen.
314 android.hardware.Camera camera, Object cb) {
316 camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb);
332 public void onError(final int errorCode, Camera camera) { argument
369 Log.i(TAG, "Opening camera "
313 setAutoFocusMoveCallback( android.hardware.Camera camera, Object cb) argument
765 AndroidCameraProxyImpl( CameraAgent cameraAgent, int cameraId, Camera camera, CameraDeviceInfo.Characteristics characteristics, AndroidCameraCapabilities capabilities) argument
1103 getNewInstance( Handler handler, CameraProxy camera, CameraAFCallback cb) argument
1111 AFCallbackForward( Handler h, CameraProxy camera, CameraAFCallback cb) argument
1119 onAutoFocus(final boolean b, Camera camera) argument
1145 getNewInstance( Handler handler, CameraProxy camera, CameraAFMoveCallback cb) argument
1153 AFMoveCallbackForward( Handler h, CameraProxy camera, CameraAFMoveCallback cb) argument
1161 onAutoFocusMoving( final boolean moving, android.hardware.Camera camera) argument
1189 getNewInstance( Handler handler, CameraProxy camera, CameraShutterCallback cb) argument
1197 ShutterCallbackForward( Handler h, CameraProxy camera, CameraShutterCallback cb) argument
1232 getNewInstance( Handler handler, CameraProxy camera, CameraPictureCallback cb) argument
1240 PictureCallbackForward( Handler h, CameraProxy camera, CameraPictureCallback cb) argument
1248 onPictureTaken( final byte[] data, android.hardware.Camera camera) argument
1276 getNewInstance( Handler handler, CameraProxy camera, CameraPreviewDataCallback cb) argument
1284 PreviewCallbackForward( Handler h, CameraProxy camera, CameraPreviewDataCallback cb) argument
1292 onPreviewFrame( final byte[] data, android.hardware.Camera camera) argument
1317 getNewInstance( Handler handler, CameraProxy camera, CameraFaceDetectionCallback cb) argument
1325 FaceDetectionCallbackForward( Handler h, CameraProxy camera, CameraFaceDetectionCallback cb) argument
1333 onFaceDetection( final Camera.Face[] faces, Camera camera) argument
[all...]
/frameworks/av/camera/
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...]
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...]
/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...]
/frameworks/av/include/media/stagefright/
H A DCameraSource.h23 #include <camera/ICamera.h>
24 #include <camera/ICameraRecordingProxyListener.h>
25 #include <camera/CameraParameters.h>
41 * from the default camera.
52 * @param camera the video input frame data source. If it is NULL,
53 * we will try to connect to the camera with the given
56 * @param cameraId the id of the camera that the source will connect
57 * to if camera is NULL; otherwise ignored.
58 * @param clientName the package/process name of the camera-using
59 * application if camera i
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DFrameProcessorBase.h25 #include <camera/CameraMetadata.h>
26 #include <camera/CaptureResult.h>
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.h25 #include <camera/ICameraService.h>
26 #include <hardware/camera.h>
28 #include <camera/ICamera.h>
29 #include <camera/ICameraClient.h>
30 #include <camera/IProCameraUser.h>
31 #include <camera/IProCameraCallbacks.h>
32 #include <camera/camera2/ICameraDeviceUser.h>
33 #include <camera/camera2/ICameraDeviceCallbacks.h>
34 #include <camera/VendorTagDescriptor.h>
35 #include <camera/CaptureResul
[all...]
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java219 * @param camera The camera from which to capture.
223 * @return The request, ready to be passed to the camera framework.
228 public CaptureRequest createRequest(CameraDevice camera, int template, Surface... targets) argument
230 if (camera == null) {
234 Builder reqBuilder = camera.createCaptureRequest(template);

Completed in 623 milliseconds

12345