Home
last modified time | relevance | path

Searched refs:camera (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCameraManager.java207 public void onOpened(CameraDevice camera) { in onOpened() argument
209 Log.v(TAG, "onOpened: camera " + ((camera != null) ? camera.getId() : "null")); in onOpened()
216 mDevice = camera; in onOpened()
219 if (mTimedOut && camera != null) { in onOpened()
220 camera.close(); in onOpened()
225 if (mProxy != null) mProxy.onOpened(camera); in onOpened()
229 public void onDisconnected(CameraDevice camera) { in onDisconnected() argument
232 + ((camera != null) ? camera.getId() : "null")); in onDisconnected()
241 mDevice = camera; in onDisconnected()
244 if (mTimedOut && camera != null) { in onDisconnected()
[all …]
DBlockingStateCallback.java111 public void onOpened(CameraDevice camera) { in onOpened() argument
113 mProxy.onOpened(camera); in onOpened()
119 public void onDisconnected(CameraDevice camera) { in onDisconnected() argument
121 mProxy.onDisconnected(camera); in onDisconnected()
127 public void onError(CameraDevice camera, int error) { in onError() argument
129 mProxy.onError(camera, error); in onError()
135 public void onClosed(CameraDevice camera) { in onClosed() argument
137 mProxy.onClosed(camera); in onClosed()
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
132 sp<Camera> camera; in get_native_camera() local
136 camera = context->getCamera(); in get_native_camera()
138 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get()); in get_native_camera()
139 if (camera == 0) { in get_native_camera()
145 return camera; in get_native_camera()
148 …raContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) in JNICameraContext() argument
152 mCamera = camera; in JNICameraContext()
569 sp<Camera> camera; in android_hardware_Camera_native_setup() local
572 camera = Camera::connect(cameraId, clientName, in android_hardware_Camera_native_setup()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.h55 const hardware::hidl_vec<hardware::camera::common::V1_0::VendorTagSection>& vts,
103 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> tryGetService(
106 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> getService(
119 return hardware::camera::provider::V2_4::ICameraProvider::registerForNotifications( in registerForNotifications()
122 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> tryGetService( in tryGetService()
124 return hardware::camera::provider::V2_4::ICameraProvider::tryGetService(serviceName); in tryGetService()
126 virtual sp<hardware::camera::provider::V2_4::ICameraProvider> getService( in getService()
128 return hardware::camera::provider::V2_4::ICameraProvider::getService(serviceName); in getService()
141 hardware::camera::common::V1_0::CameraDeviceStatus newStatus) = 0;
144 hardware::camera::common::V1_0::CameraDeviceStatus newStatus) = 0;
[all …]
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_tracking-test.cpp29 DvrTrackingCamera* camera = reinterpret_cast<DvrTrackingCamera*>(42); in TEST_F() local
30 ret = api_.TrackingCameraCreate(&camera); in TEST_F()
35 DvrTrackingCamera* camera = nullptr; in TEST_F() local
36 int ret = api_.TrackingCameraCreate(&camera); in TEST_F()
39 ASSERT_TRUE(camera != nullptr); in TEST_F()
41 api_.TrackingCameraDestroy(camera); in TEST_F()
49 DvrTrackingFeatureExtractor* camera = in TEST_F() local
51 ret = api_.TrackingFeatureExtractorCreate(&camera); in TEST_F()
56 DvrTrackingFeatureExtractor* camera = nullptr; in TEST_F() local
57 int ret = api_.TrackingFeatureExtractorCreate(&camera); in TEST_F()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DAndroid.mk32 android.hardware.camera.common@1.0 \
33 android.hardware.camera.provider@2.4 \
34 android.hardware.camera.provider@2.5 \
35 android.hardware.camera.provider@2.6 \
36 android.hardware.camera.device@1.0 \
37 android.hardware.camera.device@3.2 \
38 android.hardware.camera.device@3.4 \
45 system/media/private/camera/include \
DCameraProviderManagerTest.cpp29 using namespace android::hardware::camera;
30 using android::hardware::camera::common::V1_0::Status;
31 using android::hardware::camera::common::V1_0::VendorTag;
32 using android::hardware::camera::common::V1_0::VendorTagSection;
33 using android::hardware::camera::common::V1_0::CameraMetadataType;
34 using android::hardware::camera::device::V3_2::ICameraDeviceCallback;
35 using android::hardware::camera::device::V3_2::ICameraDeviceSession;
36 using android::hardware::camera::provider::V2_5::DeviceState;
53 hardware::camera::common::V1_0::Status status,
54 const hardware::camera::common::V1_0::CameraResourceCost& resourceCost)>;
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCaptureCallback.java65 public abstract void onCaptureStarted(CameraDevice camera, in onCaptureStarted() argument
74 public abstract void onCapturePartial(CameraDevice camera, in onCapturePartial() argument
82 public abstract void onCaptureProgressed(CameraDevice camera, in onCaptureProgressed() argument
89 public abstract void onCaptureCompleted(CameraDevice camera, in onCaptureCompleted() argument
97 public abstract void onCaptureFailed(CameraDevice camera, in onCaptureFailed() argument
105 public abstract void onCaptureSequenceCompleted(CameraDevice camera, in onCaptureSequenceCompleted() argument
113 public abstract void onCaptureSequenceAborted(CameraDevice camera, in onCaptureSequenceAborted() argument
122 public abstract void onCaptureBufferLost(CameraDevice camera, in onCaptureBufferLost() argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransform3dActivity.java59 final Camera camera = mCamera; in onDraw() local
63 rotate(centerX, centerY, camera, matrix, 32.0f); in onDraw()
66 rotate(centerX, centerY, camera, matrix, 12.0f); in onDraw()
69 rotate(centerX, centerY, camera, matrix, 52.0f); in onDraw()
72 rotate(centerX, centerY, camera, matrix, 122.0f); in onDraw()
86 private void rotate(float centerX, float centerY, Camera camera, in rotate() argument
88 camera.save(); in rotate()
89 camera.rotateY(angle); in rotate()
90 camera.getMatrix(matrix); in rotate()
91 camera.restore(); in rotate()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h88 public virtual hardware::camera::device::V1_0::ICameraDeviceCallback,
89 public virtual hardware::camera::device::V1_0::ICameraDevicePreviewCallback {
301 sp<hardware::camera::device::V1_0::ICameraDevice> mHidlDevice;
377 hardware::camera::device::V1_0::NotifyCallbackMsg msgType,
384 hardware::camera::device::V1_0::DataCallbackMsg msgType,
386 const hardware::camera::device::V1_0::CameraFrameMetadata& metadata) override;
388 hardware::camera::device::V1_0::DataCallbackMsg msgType,
391 hardware::camera::device::V1_0::DataCallbackMsg msgType,
395 hardware::camera::device::V1_0::DataCallbackMsg msgType,
397 hardware::camera::device::V1_0::HandleTimestampMessage>&) override;
[all …]
/frameworks/hardware/interfaces/cameraservice/service/2.0/
DICameraService.hal32 * Note: The client must have camera permissions to call this method
38 * @param cameraId the cameraId of the camera device to connect to.
41 * @return device ICameraDeviceUser interface to the camera device requested.
47 * Add listener for changes to camera device status.
49 * Also returns the set of currently-known camera IDs and state of each
55 * call callbacks on this interface when a camera device's status
65 * Remove listener for changes to camera device status.
74 * Read the static camera metadata for a camera device.
75 * @param cameraId the camera id of the camera device, whose metadata is
78 * @return metadata the static metadata of the camera device requested.
[all …]
/frameworks/av/camera/cameraserver/
DAndroid.bp32 "android.hardware.camera.common@1.0",
33 "android.hardware.camera.provider@2.4",
34 "android.hardware.camera.provider@2.5",
35 "android.hardware.camera.provider@2.6",
36 "android.hardware.camera.device@1.0",
37 "android.hardware.camera.device@3.2",
38 "android.hardware.camera.device@3.4",
/frameworks/hardware/interfaces/cameraservice/service/2.1/
DICameraService.hal27 * Add listener for changes to camera device status.
32 * which is called by the camera service when a physical camera backing a
33 * logical multi-camera becomes unavailable or available again.
35 * which contains unavailable physical cameras if the specified camera is a
36 * logical multi-camera.
39 * call callbacks on this interface when a camera device's status
43 * their corresponding statuses, and the unavailable physical camera Ids
44 * if the device is a logical multi-camera.
DICameraServiceListener.hal24 * camera device backing a logical camera changes
26 * @param statusAndId the current device status of a physical camera device
27 * backing a logical camera.
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraAgentImpl.java232 public ParametersCache(Camera camera) { in ParametersCache() argument
233 mCamera = camera; in ParametersCache()
314 android.hardware.Camera camera, Object cb) { in setAutoFocusMoveCallback() argument
316 camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb); in setAutoFocusMoveCallback()
332 public void onError(final int errorCode, Camera camera) { in onError() argument
768 Camera camera, in AndroidCameraProxyImpl() argument
772 mCamera = camera; in AndroidCameraProxyImpl()
853 public void onAutoFocus(final boolean b, Camera camera) { in autoFocus()
907 public void onPictureTaken(final byte[] data, Camera camera) { in takePicture()
1104 Handler handler, CameraProxy camera, CameraAFCallback cb) { in getNewInstance() argument
[all …]
/frameworks/av/services/camera/libcameraservice/
DAndroid.bp121 "android.hardware.camera.common@1.0",
122 "android.hardware.camera.provider@2.4",
123 "android.hardware.camera.provider@2.5",
124 "android.hardware.camera.provider@2.6",
125 "android.hardware.camera.device@1.0",
126 "android.hardware.camera.device@3.2",
127 "android.hardware.camera.device@3.3",
128 "android.hardware.camera.device@3.4",
129 "android.hardware.camera.device@3.5",
130 "android.hardware.camera.device@3.6"
[all …]
/frameworks/hardware/interfaces/cameraservice/device/2.0/
Dtypes.hal27 * Ref: system/media/camera/src/camera_metadata.c
41 * Camera operation has failed because the camera device has been closed,
48 * The camera device has encountered a fatal error and needs to be
54 * The camera service has encountered a fatal error.
59 * The camera device encountered an error while processing a request.
66 * The camera device encountered an error while producing an output result
73 * A camera device encountered an error occured due to which an output
79 * The camera device has been disabled and cannot be opened.
99 * Normal stream configuration operation mode. This is the default camera
112 * A set of vendor-defined operating modes, for custom default camera
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.h77 virtual public hardware::camera::device::V3_5::ICameraDeviceCallback,
149 static_cast<int>(hardware::camera::device::V3_2::StreamConfigurationMode::NORMAL_MODE))
241 static hardware::camera::device::V3_2::DataspaceFlags mapToHidlDataspace(
243 static hardware::camera::device::V3_2::BufferUsageFlags mapToConsumerUsage(uint64_t usage);
244 static hardware::camera::device::V3_2::StreamRotation mapToStreamRotation(
248 /*out*/ hardware::camera::device::V3_2::StreamConfigurationMode *mode);
251 hardware::camera::device::V3_2::DataspaceFlags);
253 hardware::camera::device::V3_2::BufferUsageFlags usage);
255 hardware::camera::device::V3_2::BufferUsageFlags usage);
318 HalInterface(sp<hardware::camera::device::V3_2::ICameraDeviceSession> &session,
[all …]
DCamera3OutputUtils.h111 const hardware::camera::device::V3_2::CaptureResult& result,
113 hardware::camera::device::V3_4::PhysicalCameraMetadata> physicalCameraMetadata);
117 const hardware::camera::device::V3_2::NotifyMsg& msg);
130 const hardware::hidl_vec<hardware::camera::device::V3_5::BufferRequest>& bufReqs,
131 … hardware::camera::device::V3_5::ICameraDeviceCallback::requestStreamBuffers_cb _hidl_cb);
141 const hardware::hidl_vec<hardware::camera::device::V3_2::StreamBuffer>& buffers);
DCamera3OfflineSession.h135 virtual public hardware::camera::device::V3_5::ICameraDeviceCallback,
149 sp<hardware::camera::device::V3_6::ICameraOfflineSession> offlineSession);
185 hardware::camera::device::V3_4::CaptureResult>& results) override;
188 hardware::camera::device::V3_2::CaptureResult>& results) override;
191 hardware::camera::device::V3_2::NotifyMsg>& msgs) override;
195 hardware::camera::device::V3_5::BufferRequest>& bufReqs,
200 hardware::camera::device::V3_2::StreamBuffer>& buffers) override;
216 sp<hardware::camera::device::V3_6::ICameraOfflineSession> mSession;
/frameworks/base/media/mca/samples/CameraEffectsRecordingSample/res/raw/
Dcameraeffectsrecordingsample.graph15 // A simple graph that displays the raw camera stream.
34 @filter CameraSource camera {
54 // Render camera output on to a surface
55 @connect camera[video] => renderer[frame];
57 @connect camera[video] => mediaEncoder[videoframe];
/frameworks/av/camera/ndk/
DAndroid.bp28 from: "include/camera",
29 to: "camera",
30 srcs: ["include/camera/**/*.h"],
72 "system/media/private/camera/include",
129 "android.hardware.camera.common@1.0-helper",
134 "system/media/private/camera/include",
161 "android.hardware.camera.common@1.0-helper",
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2DeviceTester.java70 public synchronized void onOpened(CameraDevice camera) { in onOpened() argument
71 mCamera = camera; in onOpened()
76 public void onDisconnected(CameraDevice camera) {} in onDisconnected() argument
79 public void onError(CameraDevice camera, int error) {} in onError() argument
/frameworks/av/camera/
DAndroid.bp27 // AIDL files for camera interfaces
32 // Source for camera interface parcelables, and manually-written interfaces
63 "system/media/private/camera/include",
68 "include/camera"
80 // AIDL interface between camera clients and the camera service.
/frameworks/av/camera/tests/
DAndroid.mk38 system/media/private/camera/include \
39 system/media/camera/tests \
40 frameworks/av/services/camera/libcameraservice \

123456