From 65d14b9825311f9d1847cf282bd0419e71bac666 Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Tue, 17 Jun 2014 12:03:20 -0700 Subject: camera: Add #getLegacyParameters, #supportsCameraApi to ICameraService Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401 --- include/camera/ICameraService.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/camera') diff --git a/include/camera/ICameraService.h b/include/camera/ICameraService.h index 6e48f22..d7e5dac 100644 --- a/include/camera/ICameraService.h +++ b/include/camera/ICameraService.h @@ -32,6 +32,7 @@ class ICameraDeviceUser; class ICameraDeviceCallbacks; class CameraMetadata; class VendorTagDescriptor; +class String16; class ICameraService : public IInterface { @@ -49,12 +50,19 @@ public: REMOVE_LISTENER, GET_CAMERA_CHARACTERISTICS, GET_CAMERA_VENDOR_TAG_DESCRIPTOR, + GET_LEGACY_PARAMETERS, + SUPPORTS_CAMERA_API, }; enum { USE_CALLING_UID = -1 }; + enum { + API_VERSION_1 = 1, + API_VERSION_2 = 2, + }; + public: DECLARE_META_INTERFACE(CameraService); @@ -105,6 +113,18 @@ public: int clientUid, /*out*/ sp& device) = 0; + + virtual status_t getLegacyParameters( + int cameraId, + /*out*/ + String16* parameters) = 0; + + /** + * Returns OK if device supports camera2 api, + * returns -EOPNOTSUPP if it doesn't. + */ + virtual status_t supportsCameraApi( + int cameraId, int apiVersion) = 0; }; // ---------------------------------------------------------------------------- -- cgit v1.1