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_CONFIG:
17  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera config, preserve: true}
18  WIDTH: {type: INT32, desc: image width}
19  HEIGHT: {type: INT32, desc: image height}
20  TYPE: {type: STRING, desc: stream type}
21
22CAMERA_CONNECT:
23  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera connect, preserve: true}
24  NAME: {type: STRING, desc: package name}
25  UID: {type: INT32, desc: uid}
26  ID: {type: STRING, desc: camera id}
27  PID: {type: INT32, desc: pid}
28
29CAMERA_DISCONNECT:
30  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera disconnect, preserve: true}
31  ID: {type: STRING, desc: camera id}
32
33CAMERA_ERR:
34  __BASE: {type: FAULT, level: CRITICAL, desc: camera error, preserve: true}
35  MSG: {type: STRING, desc: message}
36
37CAMERA_STATE:
38  __BASE: {type: BEHAVIOR, level: MINOR, desc: state change, preserve: true}
39  MSG: {type: STRING, desc: message}
40
41CAMERA_STATISTIC:
42  __BASE: {type: STATISTIC, level: MINOR, desc: camera stats, preserve: true}
43  MSG: {type: STRING, desc: message}
44
45FLASHLIGHT_OFF:
46  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight off, preserve: true}
47
48FLASHLIGHT_ON:
49  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight on, preserve: true}
50
51PERFORMANCE_CAPTURE:
52  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera capture performance Start from camera service capture End with HAL capture end callback, preserve: true}
53  CALLER_PID: {type: INT32, desc: caller pid}
54  CALLER_UID: {type: INT32, desc: caller uid}
55  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
56  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
57  COST_TIME: {type: UINT64, desc: capture cost time}
58  CAPTURE_ID: {type: STRING, desc: camera capture id}
59  CUR_MODE: {type: INT32, desc: curent mode}
60  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
61
62PERFORMANCE_MODE_CHANGE:
63  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera mode change performance Start from camera service release session End with preview on first frame, preserve: true}
64  CALLER_PID: {type: INT32, desc: caller pid}
65  CALLER_UID: {type: INT32, desc: caller uid}
66  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
67  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
68  COST_TIME: {type: UINT64, desc: mode change cost time}
69  PRE_MODE: {type: INT32, desc: previous Mode}
70  CUR_MODE: {type: INT32, desc: curent mode}
71  PRE_CAMERA_ID: {type: STRING, desc: previous camera id}
72  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
73
74PERFORMANCE_START:
75  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera startup performance Start from camera service open device End with preview on first frame, preserve: true}
76  CALLER_PID: {type: INT32, desc: caller pid}
77  CALLER_UID: {type: INT32, desc: caller uid}
78  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
79  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
80  COST_TIME: {type: UINT64, desc: start camera cost time}
81  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
82  START_TYPE: {type: STRING, desc: start camera type}
83  CUR_MODE: {type: INT32, desc: curent mode}
84
85PERFORMANCE_SWITCH_CAMERA:
86  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera switch camera performance Start from camera service preSwitchCamera End with preview on first frame, preserve: true}
87  CALLER_PID: {type: INT32, desc: caller pid}
88  CALLER_UID: {type: INT32, desc: caller uid}
89  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
90  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
91  COST_TIME: {type: UINT64, desc: switch camera cost time}
92  PRE_MODE: {type: INT32, desc: previous Mode}
93  CUR_MODE: {type: INT32, desc: curent mode}
94  PRE_CAMERA_ID: {type: STRING, desc: previous camera id}
95  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
96
97TORCH_STATE:
98  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: torch state, preserve: true}
99  STATE: {type: INT32, desc: status}
100  PID: {type: INT32, desc: pid}
101  UID: {type: INT32, desc: uid}
102