11d3ffd26Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
21d3ffd26Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31d3ffd26Sopenharmony_ci# you may not use this file except in compliance with the License.
41d3ffd26Sopenharmony_ci# You may obtain a copy of the License at
51d3ffd26Sopenharmony_ci#
61d3ffd26Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71d3ffd26Sopenharmony_ci#
81d3ffd26Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91d3ffd26Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101d3ffd26Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111d3ffd26Sopenharmony_ci# See the License for the specific language governing permissions and
121d3ffd26Sopenharmony_ci# limitations under the License.
131d3ffd26Sopenharmony_ci
141d3ffd26Sopenharmony_cidomain: CAMERA
151d3ffd26Sopenharmony_ci
161d3ffd26Sopenharmony_ciCAMERA_CONFIG:
171d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera config, preserve: true}
181d3ffd26Sopenharmony_ci  WIDTH: {type: INT32, desc: image width}
191d3ffd26Sopenharmony_ci  HEIGHT: {type: INT32, desc: image height}
201d3ffd26Sopenharmony_ci  TYPE: {type: STRING, desc: stream type}
211d3ffd26Sopenharmony_ci
221d3ffd26Sopenharmony_ciCAMERA_CONNECT:
231d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera connect, preserve: true}
241d3ffd26Sopenharmony_ci  NAME: {type: STRING, desc: package name}
251d3ffd26Sopenharmony_ci  UID: {type: INT32, desc: uid}
261d3ffd26Sopenharmony_ci  ID: {type: STRING, desc: camera id}
271d3ffd26Sopenharmony_ci  PID: {type: INT32, desc: pid}
281d3ffd26Sopenharmony_ci
291d3ffd26Sopenharmony_ciCAMERA_DISCONNECT:
301d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: camera disconnect, preserve: true}
311d3ffd26Sopenharmony_ci  ID: {type: STRING, desc: camera id}
321d3ffd26Sopenharmony_ci
331d3ffd26Sopenharmony_ciCAMERA_ERR:
341d3ffd26Sopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: camera error, preserve: true}
351d3ffd26Sopenharmony_ci  MSG: {type: STRING, desc: message}
361d3ffd26Sopenharmony_ci
371d3ffd26Sopenharmony_ciCAMERA_STATE:
381d3ffd26Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: state change, preserve: true}
391d3ffd26Sopenharmony_ci  MSG: {type: STRING, desc: message}
401d3ffd26Sopenharmony_ci
411d3ffd26Sopenharmony_ciCAMERA_STATISTIC:
421d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: camera stats, preserve: true}
431d3ffd26Sopenharmony_ci  MSG: {type: STRING, desc: message}
441d3ffd26Sopenharmony_ci
451d3ffd26Sopenharmony_ciFLASHLIGHT_OFF:
461d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight off, preserve: true}
471d3ffd26Sopenharmony_ci
481d3ffd26Sopenharmony_ciFLASHLIGHT_ON:
491d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: flashlight on, preserve: true}
501d3ffd26Sopenharmony_ci
511d3ffd26Sopenharmony_ciPERFORMANCE_CAPTURE:
521d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera capture performance Start from camera service capture End with HAL capture end callback, preserve: true}
531d3ffd26Sopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
541d3ffd26Sopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
551d3ffd26Sopenharmony_ci  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
561d3ffd26Sopenharmony_ci  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
571d3ffd26Sopenharmony_ci  COST_TIME: {type: UINT64, desc: capture cost time}
581d3ffd26Sopenharmony_ci  CAPTURE_ID: {type: STRING, desc: camera capture id}
591d3ffd26Sopenharmony_ci  CUR_MODE: {type: INT32, desc: curent mode}
601d3ffd26Sopenharmony_ci  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
611d3ffd26Sopenharmony_ci
621d3ffd26Sopenharmony_ciPERFORMANCE_MODE_CHANGE:
631d3ffd26Sopenharmony_ci  __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}
641d3ffd26Sopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
651d3ffd26Sopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
661d3ffd26Sopenharmony_ci  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
671d3ffd26Sopenharmony_ci  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
681d3ffd26Sopenharmony_ci  COST_TIME: {type: UINT64, desc: mode change cost time}
691d3ffd26Sopenharmony_ci  PRE_MODE: {type: INT32, desc: previous Mode}
701d3ffd26Sopenharmony_ci  CUR_MODE: {type: INT32, desc: curent mode}
711d3ffd26Sopenharmony_ci  PRE_CAMERA_ID: {type: STRING, desc: previous camera id}
721d3ffd26Sopenharmony_ci  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
731d3ffd26Sopenharmony_ci
741d3ffd26Sopenharmony_ciPERFORMANCE_START:
751d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera startup performance Start from camera service open device End with preview on first frame, preserve: true}
761d3ffd26Sopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
771d3ffd26Sopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
781d3ffd26Sopenharmony_ci  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
791d3ffd26Sopenharmony_ci  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
801d3ffd26Sopenharmony_ci  COST_TIME: {type: UINT64, desc: start camera cost time}
811d3ffd26Sopenharmony_ci  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
821d3ffd26Sopenharmony_ci  START_TYPE: {type: STRING, desc: start camera type}
831d3ffd26Sopenharmony_ci  CUR_MODE: {type: INT32, desc: curent mode}
841d3ffd26Sopenharmony_ci
851d3ffd26Sopenharmony_ciPERFORMANCE_SWITCH_CAMERA:
861d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: Report camera switch camera performance Start from camera service preSwitchCamera End with preview on first frame, preserve: true}
871d3ffd26Sopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
881d3ffd26Sopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
891d3ffd26Sopenharmony_ci  CALLER_TOKENID: {type: UINT32, desc: caller tokenId}
901d3ffd26Sopenharmony_ci  CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
911d3ffd26Sopenharmony_ci  COST_TIME: {type: UINT64, desc: switch camera cost time}
921d3ffd26Sopenharmony_ci  PRE_MODE: {type: INT32, desc: previous Mode}
931d3ffd26Sopenharmony_ci  CUR_MODE: {type: INT32, desc: curent mode}
941d3ffd26Sopenharmony_ci  PRE_CAMERA_ID: {type: STRING, desc: previous camera id}
951d3ffd26Sopenharmony_ci  CUR_CAMERA_ID: {type: STRING, desc: curent camera id}
961d3ffd26Sopenharmony_ci
971d3ffd26Sopenharmony_ciTORCH_STATE:
981d3ffd26Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: torch state, preserve: true}
991d3ffd26Sopenharmony_ci  STATE: {type: INT32, desc: status}
1001d3ffd26Sopenharmony_ci  PID: {type: INT32, desc: pid}
1011d3ffd26Sopenharmony_ci  UID: {type: INT32, desc: uid}
102