Searched defs:camera (Results 1 - 25 of 40) 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
/frameworks/base/core/java/android/hardware/camera2/legacy/
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
/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/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.
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/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/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
503 onOpened(CameraDevice camera) argument
516 onClosed(CameraDevice camera) argument
547 onDisconnected(CameraDevice camera) argument
576 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...]
/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
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...]
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...]
/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/media/libmedia/
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);
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));
/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
/frameworks/av/media/libstagefright/
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/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.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/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/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

Completed in 2479 milliseconds

12