1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: CAMERA 15 16CAMERA_ERR: 17 __BASE: {type: FAULT, level: CRITICAL, desc: camera error} 18 MSG: {type: STRING, desc: message} 19 20CAMERA_STATE: 21 __BASE: {type: BEHAVIOR, level: MINOR, desc: state change} 22 MSG: {type: STRING, desc: message} 23 24CAMERA_STATISTIC: 25 __BASE: {type: STATISTIC, level: MINOR, desc: camera stats} 26 MSG: {type: STRING, desc: message} 27 28CAMERA_CONNECT: 29 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera connect} 30 PID: {type: INT32, desc: pid} 31 UID: {type: INT32, desc: uid} 32 ID: {type: STRING, desc: camera id} 33 NAME: {type: STRING, desc: package name} 34 35CAMERA_DISCONNECT: 36 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera disconnect} 37 ID: {type: STRING, desc: camera id} 38 39TORCH_STATE: 40 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: torch state} 41 PID: {type: INT32, desc: pid} 42 UID: {type: INT32, desc: uid} 43 STATE: {type: INT32, desc: status} 44 45CAMERA_CONFIG: 46 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera config} 47 TYPE: {type: STRING, desc: stream type} 48 WIDTH: {type: INT32, desc: image width} 49 HEIGHT: {type: INT32, desc: image height} 50 51FLASHLIGHT_ON: 52 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight on} 53 54FLASHLIGHT_OFF: 55 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight off} 56