Searched defs:camera (Results 1 - 25 of 41) 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;
36 * Junit / Instrumentation test case for the following camera APIs:
43 * -e class com.android.mediaframeworktest.functional.camera.CameraFunctionalTest
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapSurfaceViewActivity.java96 int cameraId, android.hardware.Camera camera) {
124 camera.setDisplayOrientation(result);
95 setCameraDisplayOrientation(Activity activity, int cameraId, android.hardware.Camera camera) argument
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/java/android/hardware/camera2/legacy/
H A DLegacyFaceDetectMapper.java50 /** Is the camera capable of face detection? */
52 /** Is the camera is running face detection? */
66 * @param camera a non-{@code null} camera1 device
67 * @param characteristics a non-{@code null} camera characteristics for that camera1
71 public LegacyFaceDetectMapper(Camera camera, CameraCharacteristics characteristics) { argument
72 mCamera = checkNotNull(camera, "camera must not be null");
87 public void onFaceDetection(Camera.Face[] faces, Camera camera) {
194 * Update the {@code result} camera metadata map with the new value for the
201 * 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
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestHelper.java42 private static final String CAMERA_STRESS_IMAGES_PREFIX = "camera-stress-test";
46 public void onError(int error, android.hardware.Camera camera) { argument
60 public void onPictureTaken(byte[] data, Camera camera) {
67 public void onPictureTaken(byte[] data, Camera camera) {
107 * Helper method for getting the available parameters of the default camera
143 * Helper method for setting the camera parameters
149 Log.e(TAG, "Error setting camera parameters");
154 * Helper method for starting up the camera preview
H A DCamera2Focuser.java36 * A focuser utility class to assist camera to do auto focus.
40 * request is used to trigger the auto focus. This class assumes the camera device
41 * supports auto-focus. Don't use this class if the camera device doesn't have focuser
83 * The focuser object will use camera and requestSurface to submit capture
88 * @param camera The camera device associated with this focuser
89 * @param session The camera capture session associated with this focuser
92 * @param staticInfo The CameraCharacteristics of the camera device
96 public Camera2Focuser(CameraDevice camera, CameraCaptureSession session, Surface requestSurface, argument
99 if (camera
[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);
/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.
69 public synchronized void onOpened(CameraDevice camera) { argument
70 mCamera = camera;
75 public void onDisconnected(CameraDevice camera) {} argument
78 public void onError(CameraDevice camera, int error) {} argument
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCallbackProxies.java50 public void onOpened(CameraDevice camera) { argument
51 mProxy.invoke("onOpened", camera);
55 public void onDisconnected(CameraDevice camera) { argument
56 mProxy.invoke("onDisconnected", camera);
60 public void onError(CameraDevice camera, int error) { argument
61 mProxy.invoke("onError", camera, error);
65 public void onUnconfigured(CameraDevice camera) { argument
66 mProxy.invoke("onUnconfigured", camera);
70 public void onActive(CameraDevice camera) { argument
71 mProxy.invoke("onActive", camera);
75 onBusy(CameraDevice camera) argument
80 onClosed(CameraDevice camera) argument
85 onIdle(CameraDevice camera) argument
101 onCaptureStarted(CameraDevice camera, CaptureRequest request, long timestamp, long frameNumber) argument
107 onCapturePartial(CameraDevice camera, CaptureRequest request, CaptureResult result) argument
113 onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult) argument
119 onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result) argument
125 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument
131 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber) argument
137 onCaptureSequenceAborted(CameraDevice camera, int sequenceId) 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/ex/camera2/public/src/com/android/ex/camera2/blocking/
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
113 mProxy.onOpened(camera);
119 public void onDisconnected(CameraDevice camera) { argument
121 mProxy.onDisconnected(camera);
127 public void onError(CameraDevice camera, int error) { argument
129 mProxy.onError(camera, error);
135 public void onClosed(CameraDevice camera) { argument
137 mProxy.onClosed(camera);
[all...]
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_MS} 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...]
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp35 status_t MediaRecorder::setCamera(const sp<hardware::ICamera>& camera, argument
38 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
48 status_t ret = mMediaRecorder->setCamera(camera, proxy);
H A DIMediaRecorder.cpp26 #include <camera/android/hardware/ICamera.h>
27 #include <camera/ICameraRecordingProxy.h>
71 status_t setCamera(const sp<hardware::ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
73 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
76 data.writeStrongBinder(IInterface::asBinder(camera));
483 sp<hardware::ICamera> camera = local
487 reply->writeInt32(setCamera(camera, proxy));
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp79 status_t MediaRecorderClient::setCamera(const sp<hardware::ICamera>& camera, argument
88 return mRecorder->setCamera(camera, proxy);
105 // Check camera permission for sources other than SURFACE
371 sp<IBinder> binder = sm->getService(String16("media.camera"));
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp29 #include <camera/Camera.h>
30 #include <camera/CameraParameters.h>
38 const sp<hardware::ICamera> &camera,
51 CameraSourceTimeLapse(camera, proxy, cameraId,
67 const sp<hardware::ICamera>& camera,
78 : CameraSource(camera, proxy, cameraId, clientName, clientUid, clientPid,
118 // Force dataCallbackTimestamp() coming from the video camera to
287 // Tell the camera to release its recording frame and return.
37 CreateFromCamera( const sp<hardware::ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, pid_t clientPid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
66 CameraSourceTimeLapse( const sp<hardware::ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, pid_t clientPid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraDevice.java33 * <p>The CameraDevice class is a representation of a single camera connected to an
39 * in order to access camera devices.</p>
41 * <p>A given camera device may provide support at one of two levels: limited or
46 * provide substantially improved capabilities over the older camera
49 * proper operation, declare the "android.hardware.camera.level.full" feature in your
58 * Create a request suitable for a camera preview window. Specifically, this
62 * This template is guaranteed to be supported on all camera devices.
72 * This template is guaranteed to be supported on all camera devices.
83 * This template is guaranteed to be supported on all camera devices.
95 * This template is guaranteed to be supported on all camera device
907 onOpened(@onNull CameraDevice camera) argument
920 onClosed(@onNull CameraDevice camera) argument
952 onDisconnected(@onNull CameraDevice camera) argument
982 onError(@onNull CameraDevice camera, @ErrorCode 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/services/core/java/com/android/server/camera/
H A DCameraService.java16 package com.android.server.camera;
43 * CameraService is the system_server analog to the camera service running in mediaserver.
55 private static final String CAMERA_SERVICE_BINDER_NAME = "media.camera";
57 public static final String CAMERA_SERVICE_PROXY_BINDER_NAME = "media.camera.proxy";
59 // State arguments to use with the notifyCameraState call from camera service:
87 private static final String NFC_NOTIFICATION_PROP = "ro.camera.notify_nfc";
195 * Handle the death of the native camera service
199 if (DEBUG) Slog.w(TAG, "Native camera service has died");
203 // All cameras reset to idle on camera service death
246 Slog.i(TAG, "Could not notify camera servic
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java80 Log.v(TAG, "camera available to open");
86 Log.v(TAG, "camera unavailable to open");
94 public void onCaptureCompleted(CameraCaptureSession camera, CaptureRequest request, argument
102 public void onCaptureFailed(CameraCaptureSession camera, CaptureRequest request, argument
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java65 * the template that is provided to the camera framework at that time.</p>
67 * @param camera Device from which to draw default settings
75 * @throws IllegalArgumentException If {@code camera} or {@code activeArray}
79 public AndroidCamera2Settings(CameraDevice camera, int template, Rect activeArray, argument
81 if (camera == null) {
82 throw new NullPointerException("camera must not be null");
88 mTemplateSettings = camera.createCaptureRequest(template);
/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/av/camera/
H A DCamera.cpp45 // construct a camera client from an existing camera remote
46 sp<Camera> Camera::create(const sp<::android::hardware::ICamera>& camera) argument
49 if (camera == 0) {
50 ALOGE("camera remote is a NULL pointer");
55 if (camera->connect(c) == NO_ERROR) {
57 c->mCamera = camera;
58 IInterface::asBinder(camera)->linkToDeath(c);
83 sp<Camera>& camera)
85 ALOGV("%s: connect legacy camera devic
80 connectLegacy(int cameraId, int halVersion, const String16& clientPackageName, int clientUid, sp<Camera>& camera) argument
451 RecordingProxy(const sp<Camera>& camera) argument
[all...]

Completed in 572 milliseconds

12