blob: 288f2d7cdc7077c8c1c77f6aacbb16dbd3a03be7 [file] [log] [blame]
Igor Murashkine7ee7632013-06-11 18:10:18 -07001/*
Shuzhen Wangc28189a2017-11-27 23:05:10 -08002 * Copyright (C) 2013-2018 The Android Open Source Project
Igor Murashkine7ee7632013-06-11 18:10:18 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_SERVERS_CAMERA_PHOTOGRAPHY_CAMERADEVICECLIENT_H
18#define ANDROID_SERVERS_CAMERA_PHOTOGRAPHY_CAMERADEVICECLIENT_H
19
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080020#include <android/hardware/camera2/BnCameraDeviceUser.h>
21#include <android/hardware/camera2/ICameraDeviceCallbacks.h>
Yin-Chia Yehb97babb2015-03-12 13:42:44 -070022#include <camera/camera2/OutputConfiguration.h>
Emilian Peev35ae8262018-11-08 13:11:32 +000023#include <camera/camera2/SessionConfiguration.h>
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080024#include <camera/camera2/SubmitInfo.h>
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070025
Yin-Chia Yehb978c382019-10-30 00:22:37 -070026#include "CameraOfflineSessionClient.h"
Igor Murashkine7ee7632013-06-11 18:10:18 -070027#include "CameraService.h"
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070028#include "common/FrameProcessorBase.h"
29#include "common/Camera2ClientBase.h"
Emilian Peev538c90e2018-12-17 18:03:19 +000030#include "CompositeStream.h"
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -080031#include "utils/SessionConfigurationUtils.h"
Igor Murashkine7ee7632013-06-11 18:10:18 -070032
Emilian Peev40ead602017-09-26 15:46:36 +010033using android::camera3::OutputStreamInfo;
Emilian Peev538c90e2018-12-17 18:03:19 +000034using android::camera3::CompositeStream;
Emilian Peev40ead602017-09-26 15:46:36 +010035
Igor Murashkine7ee7632013-06-11 18:10:18 -070036namespace android {
37
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080038struct CameraDeviceClientBase :
39 public CameraService::BasicClient,
40 public hardware::camera2::BnCameraDeviceUser
Igor Murashkine7ee7632013-06-11 18:10:18 -070041{
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080042 typedef hardware::camera2::ICameraDeviceCallbacks TCamCallbacks;
Igor Murashkine7ee7632013-06-11 18:10:18 -070043
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080044 const sp<hardware::camera2::ICameraDeviceCallbacks>& getRemoteCallback() {
Igor Murashkine7ee7632013-06-11 18:10:18 -070045 return mRemoteCallback;
46 }
47
48protected:
49 CameraDeviceClientBase(const sp<CameraService>& cameraService,
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080050 const sp<hardware::camera2::ICameraDeviceCallbacks>& remoteCallback,
Igor Murashkine7ee7632013-06-11 18:10:18 -070051 const String16& clientPackageName,
Jooyung Hanb3f7cd22020-01-23 12:27:18 +090052 const std::optional<String16>& clientFeatureId,
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -080053 const String8& cameraId,
Yin-Chia Yehc3e9d6f2018-02-06 10:56:32 -080054 int api1CameraId,
Igor Murashkine7ee7632013-06-11 18:10:18 -070055 int cameraFacing,
Emilian Peev8b64f282021-03-25 16:49:57 -070056 int sensorOrientation,
Igor Murashkine7ee7632013-06-11 18:10:18 -070057 int clientPid,
58 uid_t clientUid,
59 int servicePid);
60
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080061 sp<hardware::camera2::ICameraDeviceCallbacks> mRemoteCallback;
Igor Murashkine7ee7632013-06-11 18:10:18 -070062};
63
64/**
65 * Implements the binder ICameraDeviceUser API,
66 * meant for HAL3-public implementation of
67 * android.hardware.photography.CameraDevice
68 */
69class CameraDeviceClient :
70 public Camera2ClientBase<CameraDeviceClientBase>,
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -070071 public camera2::FrameProcessorBase::FilteredListener
Igor Murashkine7ee7632013-06-11 18:10:18 -070072{
73public:
74 /**
75 * ICameraDeviceUser interface (see ICameraDeviceUser for details)
76 */
77
78 // Note that the callee gets a copy of the metadata.
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080079 virtual binder::Status submitRequest(
80 const hardware::camera2::CaptureRequest& request,
81 bool streaming = false,
82 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -080083 hardware::camera2::utils::SubmitInfo *submitInfo = nullptr) override;
Jianing Wei90e59c92014-03-12 18:29:36 -070084 // List of requests are copied.
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080085 virtual binder::Status submitRequestList(
86 const std::vector<hardware::camera2::CaptureRequest>& requests,
87 bool streaming = false,
88 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -080089 hardware::camera2::utils::SubmitInfo *submitInfo = nullptr) override;
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -080090 virtual binder::Status cancelRequest(int requestId,
91 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -080092 int64_t* lastFrameNumber = NULL) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -070093
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -080094 virtual binder::Status beginConfigure() override;
Ruben Brunkb2119af2014-05-09 19:57:56 -070095
Emilian Peev5fbe0ba2017-10-20 15:45:45 +010096 virtual binder::Status endConfigure(int operatingMode,
Emilian Peevcc0b7952020-01-07 13:54:47 -080097 const hardware::camera2::impl::CameraMetadataNative& sessionParams,
Shuzhen Wang316781a2020-08-18 18:11:01 -070098 int64_t startTimeMs,
Emilian Peevcc0b7952020-01-07 13:54:47 -080099 /*out*/
100 std::vector<int>* offlineStreamIds) override;
Ruben Brunkb2119af2014-05-09 19:57:56 -0700101
Emilian Peev35ae8262018-11-08 13:11:32 +0000102 // Verify specific session configuration.
103 virtual binder::Status isSessionConfigurationSupported(
104 const SessionConfiguration& sessionConfiguration,
105 /*out*/
106 bool* streamStatus) override;
107
Yin-Chia Yeh5090c732017-07-20 16:05:29 -0700108 // Returns -EBUSY if device is not idle or in error state
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800109 virtual binder::Status deleteStream(int streamId) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700110
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800111 virtual binder::Status createStream(
112 const hardware::camera2::params::OutputConfiguration &outputConfiguration,
113 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800114 int32_t* newStreamId = NULL) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700115
Chien-Yu Chen618ff8a2015-03-13 11:27:17 -0700116 // Create an input stream of width, height, and format.
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800117 virtual binder::Status createInputStream(int width, int height, int format,
Shuzhen Wang83bff122020-11-20 15:51:39 -0800118 bool isMultiResolution,
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800119 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800120 int32_t* newStreamId = NULL) override;
Chien-Yu Chen618ff8a2015-03-13 11:27:17 -0700121
122 // Get the buffer producer of the input stream
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800123 virtual binder::Status getInputSurface(
124 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800125 view::Surface *inputSurface) override;
Chien-Yu Chen618ff8a2015-03-13 11:27:17 -0700126
Igor Murashkine7ee7632013-06-11 18:10:18 -0700127 // Create a request object from a template.
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800128 virtual binder::Status createDefaultRequest(int templateId,
129 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800130 hardware::camera2::impl::CameraMetadataNative* request) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700131
132 // Get the static metadata for the camera
133 // -- Caller owns the newly allocated metadata
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800134 virtual binder::Status getCameraInfo(
135 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800136 hardware::camera2::impl::CameraMetadataNative* cameraCharacteristics) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700137
Zhijun He2ab500c2013-07-23 08:02:53 -0700138 // Wait until all the submitted requests have finished processing
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800139 virtual binder::Status waitUntilIdle() override;
Eino-Ville Talvalaabaa51d2013-08-14 11:37:00 -0700140
141 // Flush all active and pending requests as fast as possible
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800142 virtual binder::Status flush(
143 /*out*/
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800144 int64_t* lastFrameNumber = NULL) override;
Eino-Ville Talvalaabaa51d2013-08-14 11:37:00 -0700145
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700146 // Prepare stream by preallocating its buffers
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800147 virtual binder::Status prepare(int32_t streamId) override;
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700148
Eino-Ville Talvalab25e3c82015-07-15 16:04:27 -0700149 // Tear down stream resources by freeing its unused buffers
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800150 virtual binder::Status tearDown(int32_t streamId) override;
Eino-Ville Talvalab25e3c82015-07-15 16:04:27 -0700151
Ruben Brunkc78ac262015-08-13 17:58:46 -0700152 // Prepare stream by preallocating up to maxCount of its buffers
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800153 virtual binder::Status prepare2(int32_t maxCount, int32_t streamId) override;
Ruben Brunkc78ac262015-08-13 17:58:46 -0700154
Emilian Peev40ead602017-09-26 15:46:36 +0100155 // Update an output configuration
156 virtual binder::Status updateOutputConfiguration(int streamId,
157 const hardware::camera2::params::OutputConfiguration &outputConfiguration) override;
158
Shuzhen Wang758c2152017-01-10 18:26:18 -0800159 // Finalize the output configurations with surfaces not added before.
160 virtual binder::Status finalizeOutputConfigurations(int32_t streamId,
Eino-Ville Talvalabbbbe842017-02-28 17:50:56 -0800161 const hardware::camera2::params::OutputConfiguration &outputConfiguration) override;
Zhijun He5d677d12016-05-29 16:52:39 -0700162
Yin-Chia Yehcfab4e12019-09-09 13:08:28 -0700163 virtual binder::Status setCameraAudioRestriction(int32_t mode) override;
164
165 virtual binder::Status getGlobalAudioRestriction(/*out*/int32_t* outMode) override;
Yin-Chia Yehdba03232019-08-19 15:54:28 -0700166
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700167 virtual binder::Status switchToOffline(
168 const sp<hardware::camera2::ICameraDeviceCallbacks>& cameraCb,
Emilian Peevb2bc5a42019-11-20 16:02:14 -0800169 const std::vector<int>& offlineOutputIds,
Yin-Chia Yehb978c382019-10-30 00:22:37 -0700170 /*out*/
171 sp<hardware::camera2::ICameraOfflineSession>* session) override;
172
Igor Murashkine7ee7632013-06-11 18:10:18 -0700173 /**
174 * Interface used by CameraService
175 */
176
177 CameraDeviceClient(const sp<CameraService>& cameraService,
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800178 const sp<hardware::camera2::ICameraDeviceCallbacks>& remoteCallback,
Igor Murashkine7ee7632013-06-11 18:10:18 -0700179 const String16& clientPackageName,
Jooyung Hanb3f7cd22020-01-23 12:27:18 +0900180 const std::optional<String16>& clientFeatureId,
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -0800181 const String8& cameraId,
Igor Murashkine7ee7632013-06-11 18:10:18 -0700182 int cameraFacing,
Emilian Peev8b64f282021-03-25 16:49:57 -0700183 int sensorOrientation,
Igor Murashkine7ee7632013-06-11 18:10:18 -0700184 int clientPid,
185 uid_t clientUid,
Shuzhen Wangd4abdf72021-05-28 11:22:50 -0700186 int servicePid,
187 bool overrideForPerfClass);
Igor Murashkine7ee7632013-06-11 18:10:18 -0700188 virtual ~CameraDeviceClient();
189
Emilian Peevbd8c5032018-02-14 23:05:40 +0000190 virtual status_t initialize(sp<CameraProviderManager> manager,
191 const String8& monitorTags) override;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700192
Eino-Ville Talvalaf2e37092020-01-07 15:32:32 -0800193 virtual status_t setRotateAndCropOverride(uint8_t rotateAndCrop) override;
194
Eino-Ville Talvala305cec62020-11-12 14:18:17 -0800195 virtual bool supportsCameraMute();
196 virtual status_t setCameraMute(bool enabled);
197
Igor Murashkine7ee7632013-06-11 18:10:18 -0700198 virtual status_t dump(int fd, const Vector<String16>& args);
199
Eino-Ville Talvalac4003962016-01-13 10:07:04 -0800200 virtual status_t dumpClient(int fd, const Vector<String16>& args);
201
Avichal Rakesh7e53cad2021-10-05 13:46:30 -0700202 virtual status_t startWatchingTags(const String8 &tags, int out);
203 virtual status_t stopWatchingTags(int out);
204 virtual status_t dumpWatchedEventsToVector(std::vector<std::string> &out);
205
Igor Murashkine7ee7632013-06-11 18:10:18 -0700206 /**
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700207 * Device listener interface
208 */
209
Shuzhen Wang316781a2020-08-18 18:11:01 -0700210 virtual void notifyIdle(int64_t requestCount, int64_t resultErrorCount, bool deviceError,
211 const std::vector<hardware::CameraStreamStats>& streamStats);
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800212 virtual void notifyError(int32_t errorCode,
Jianing Weicb0652e2014-03-12 18:29:36 -0700213 const CaptureResultExtras& resultExtras);
214 virtual void notifyShutter(const CaptureResultExtras& resultExtras, nsecs_t timestamp);
Eino-Ville Talvala4d44cad2015-04-11 13:15:45 -0700215 virtual void notifyPrepared(int streamId);
Shuzhen Wang9d066012016-09-30 11:30:20 -0700216 virtual void notifyRequestQueueEmpty();
Chien-Yu Chene8c535e2016-04-14 12:18:26 -0700217 virtual void notifyRepeatingRequestError(long lastFrameNumber);
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700218
Shuzhen Wangabbcb6b2020-12-09 22:32:44 -0800219 void setImageDumpMask(int mask) { if (mDevice != nullptr) mDevice->setImageDumpMask(mask); }
Eino-Ville Talvalaf1e98d82013-09-06 09:32:43 -0700220 /**
Igor Murashkine7ee7632013-06-11 18:10:18 -0700221 * Interface used by independent components of CameraDeviceClient.
222 */
223protected:
224 /** FilteredListener implementation **/
Jianing Weicb0652e2014-03-12 18:29:36 -0700225 virtual void onResultAvailable(const CaptureResult& result);
Igor Murashkine7ee7632013-06-11 18:10:18 -0700226 virtual void detachDevice();
227
Igor Murashkinf8b2a6f2013-09-17 17:03:28 -0700228 // Calculate the ANativeWindow transform from android.sensor.orientation
229 status_t getRotationTransformLocked(/*out*/int32_t* transform);
230
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -0800231 bool isUltraHighResolutionSensor(const String8 &cameraId);
232
233 bool isSensorPixelModeConsistent(const std::list<int> &streamIdList,
234 const CameraMetadata &settings);
235
236 const CameraMetadata &getStaticInfo(const String8 &cameraId);
237
Igor Murashkine7ee7632013-06-11 18:10:18 -0700238private:
Shuzhen Wang0129d522016-10-30 22:43:41 -0700239 // StreamSurfaceId encapsulates streamId + surfaceId for a particular surface.
240 // streamId specifies the index of the stream the surface belongs to, and the
241 // surfaceId specifies the index of the surface within the stream. (one stream
242 // could contain multiple surfaces.)
243 class StreamSurfaceId final {
244 public:
245 StreamSurfaceId() {
246 mStreamId = -1;
247 mSurfaceId = -1;
248 }
249 StreamSurfaceId(int32_t streamId, int32_t surfaceId) {
250 mStreamId = streamId;
251 mSurfaceId = surfaceId;
252 }
253 int32_t streamId() const {
254 return mStreamId;
255 }
256 int32_t surfaceId() const {
257 return mSurfaceId;
258 }
259
260 private:
261 int32_t mStreamId;
262 int32_t mSurfaceId;
263
264 }; // class StreamSurfaceId
265
266private:
Igor Murashkine7ee7632013-06-11 18:10:18 -0700267 /** ICameraDeviceUser interface-related private members */
268
269 /** Preview callback related members */
Eino-Ville Talvala7b82efe2013-07-25 17:12:35 -0700270 sp<camera2::FrameProcessorBase> mFrameProcessor;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700271
Emilian Peev00420d22018-02-05 21:33:13 +0000272 std::vector<int32_t> mSupportedPhysicalRequestKeys;
273
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -0800274 template<typename TProviderPtr>
Emilian Peevbd8c5032018-02-14 23:05:40 +0000275 status_t initializeImpl(TProviderPtr providerPtr, const String8& monitorTags);
Eino-Ville Talvala2f09bac2016-12-13 11:29:54 -0800276
Igor Murashkine7ee7632013-06-11 18:10:18 -0700277 /** Utility members */
Eino-Ville Talvalad56db1d2015-12-17 16:50:35 -0800278 binder::Status checkPidStatus(const char* checkLocation);
Igor Murashkine7ee7632013-06-11 18:10:18 -0700279 bool enforceRequestPermissions(CameraMetadata& metadata);
280
Zhijun He5d677d12016-05-29 16:52:39 -0700281 // Create an output stream with surface deferred for future.
282 binder::Status createDeferredSurfaceStreamLocked(
283 const hardware::camera2::params::OutputConfiguration &outputConfiguration,
Shuzhen Wang758c2152017-01-10 18:26:18 -0800284 bool isShared,
Zhijun He5d677d12016-05-29 16:52:39 -0700285 int* newStreamId = NULL);
286
287 // Set the stream transform flags to automatically rotate the camera stream for preview use
288 // cases.
289 binder::Status setStreamTransformLocked(int streamId);
290
Yin-Chia Yeh4dfa4cc2017-11-10 20:00:09 -0800291 // Utility method to insert the surface into SurfaceMap
292 binder::Status insertGbpLocked(const sp<IGraphicBufferProducer>& gbp,
Emilian Peevf873aa52018-01-26 14:58:28 +0000293 /*out*/SurfaceMap* surfaceMap, /*out*/Vector<int32_t>* streamIds,
294 /*out*/int32_t* currentStreamId);
Yin-Chia Yeh4dfa4cc2017-11-10 20:00:09 -0800295
Emilian Peevf4816702020-04-03 15:44:51 -0700296 // Utility method that maps AIDL request templates.
297 binder::Status mapRequestTemplate(int templateId,
298 camera_request_template_t* tempId /*out*/);
299
Shuzhen Wang0129d522016-10-30 22:43:41 -0700300 // IGraphicsBufferProducer binder -> Stream ID + Surface ID for output streams
301 KeyedVector<sp<IBinder>, StreamSurfaceId> mStreamMap;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700302
Yin-Chia Yeh4dfa4cc2017-11-10 20:00:09 -0800303 // Stream ID -> OutputConfiguration. Used for looking up Surface by stream/surface index
304 KeyedVector<int32_t, hardware::camera2::params::OutputConfiguration> mConfiguredOutputs;
305
Chien-Yu Chen618ff8a2015-03-13 11:27:17 -0700306 struct InputStreamConfiguration {
307 bool configured;
308 int32_t width;
309 int32_t height;
310 int32_t format;
311 int32_t id;
312 } mInputStream;
313
Chien-Yu Chene8c535e2016-04-14 12:18:26 -0700314 // Streaming request ID
315 int32_t mStreamingRequestId;
Shuzhen Wangc9ca6782016-04-26 13:40:31 -0700316 Mutex mStreamingRequestIdLock;
Chien-Yu Chene8c535e2016-04-14 12:18:26 -0700317 static const int32_t REQUEST_ID_NONE = -1;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700318
319 int32_t mRequestIdCounter;
Eino-Ville Talvala412fe562015-08-20 17:08:32 -0700320
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -0800321 std::vector<std::string> mPhysicalCameraIds;
322
Zhijun He5d677d12016-05-29 16:52:39 -0700323 // The list of output streams whose surfaces are deferred. We have to track them separately
324 // as there are no surfaces available and can not be put into mStreamMap. Once the deferred
325 // Surface is configured, the stream id will be moved to mStreamMap.
326 Vector<int32_t> mDeferredStreams;
Shuzhen Wang0129d522016-10-30 22:43:41 -0700327
Shuzhen Wang758c2152017-01-10 18:26:18 -0800328 // stream ID -> outputStreamInfo mapping
329 std::unordered_map<int32_t, OutputStreamInfo> mStreamInfoMap;
330
Jayant Chowdhary13f9b2f2020-12-02 22:46:15 -0800331 // map high resolution camera id (logical / physical) -> list of stream ids configured
332 std::unordered_map<std::string, std::unordered_set<int>> mHighResolutionCameraIdToStreamIdSet;
333
334 // set of high resolution camera id (logical / physical)
335 std::unordered_set<std::string> mHighResolutionSensors;
336
Emilian Peev538c90e2018-12-17 18:03:19 +0000337 KeyedVector<sp<IBinder>, sp<CompositeStream>> mCompositeStreamMap;
338
Shuzhen Wang03d8cc12018-09-12 14:17:09 -0700339 sp<CameraProviderManager> mProviderManager;
Shuzhen Wangd4abdf72021-05-28 11:22:50 -0700340
341 // Override the camera characteristics for performance class primary cameras.
342 bool mOverrideForPerfClass;
Igor Murashkine7ee7632013-06-11 18:10:18 -0700343};
344
345}; // namespace android
346
347#endif