Add default template initialization.
Adds a flow for Metadata to initialize templates.
PartialMetadataInterfaces expose another populate method,
which use a default value getter from ControlOptionsInterfaces.
BUG: 30140438
TEST: unit tests pass
Change-Id: I1c01469dcf4d06f7c4c62ebe2acd3d9b2294a161
diff --git a/modules/camera/3_4/metadata/property.h b/modules/camera/3_4/metadata/property.h
index 3ded4c4..03da434 100644
--- a/modules/camera/3_4/metadata/property.h
+++ b/modules/camera/3_4/metadata/property.h
@@ -47,6 +47,12 @@
return 0;
};
+ virtual int PopulateTemplateRequest(
+ int template_type, android::CameraMetadata* metadata) const override {
+ HAL_LOG_ENTER();
+ return 0;
+ };
+
virtual bool SupportsRequestValues(
const android::CameraMetadata& metadata) const override {
HAL_LOG_ENTER();