From abe080d6e3574a005052962e59eb8347bc448579 Mon Sep 17 00:00:00 2001 From: Rucha Katakwar Date: Tue, 12 Oct 2021 10:21:24 -0700 Subject: [PATCH] Camera: Add torch brightness control keys. 1.FLASH_INFO_STRENGTH_MAXIMUM_LEVEL : Number of brightness levels. 2.FLASH_INFO_STRENGTH_DEFAULT_LEVEL : Default brightness level to be set via setTorchBrightnessLevel API. bug: 200174275 Change-Id: Iab35bc3cbc8c8ede0b1729f45be4b8ba1b3fed78 --- camera/metadata/3.8/types.hal | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 camera/metadata/3.8/types.hal diff --git a/camera/metadata/3.8/types.hal b/camera/metadata/3.8/types.hal new file mode 100644 index 0000000000..dcee775c89 --- /dev/null +++ b/camera/metadata/3.8/types.hal @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Autogenerated from camera metadata definitions in + * /system/media/camera/docs/metadata_definitions.xml + * *** DO NOT EDIT BY HAND *** + */ + +package android.hardware.camera.metadata@3.8; + +import android.hardware.camera.metadata@3.2; +import android.hardware.camera.metadata@3.3; +import android.hardware.camera.metadata@3.4; +import android.hardware.camera.metadata@3.5; +import android.hardware.camera.metadata@3.6; +import android.hardware.camera.metadata@3.7; + +// No new metadata sections added in this revision + +/** + * Main enumeration for defining camera metadata tags added in this revision + * + *

Partial documentation is included for each tag; for complete documentation, reference + * '/system/media/camera/docs/docs.html' in the corresponding Android source tree.

+ */ +enum CameraMetadataTag : @3.7::CameraMetadataTag { + /** android.flash.info.strengthMaximumLevel [static, int32, public] + * + *

Maximum flashlight brightness level.

+ */ + ANDROID_FLASH_INFO_STRENGTH_MAXIMUM_LEVEL = android.hardware.camera.metadata@3.2::CameraMetadataTag:ANDROID_FLASH_INFO_END, + + /** android.flash.info.strengthDefaultLevel [static, int32, public] + * + *

Default flashlight brightness level to be set via + * {android.hardware.camera2.CameraManager#setTorchStrengthLevel}.

+ */ + ANDROID_FLASH_INFO_STRENGTH_DEFAULT_LEVEL, + + ANDROID_FLASH_INFO_END_3_8, + +}; + +/* + * Enumeration definitions for the various entries that need them + */