180922886Sopenharmony_ci#  Copyright (c) 2022 Huawei Device Co., Ltd.
280922886Sopenharmony_ci#  Licensed under the Apache License, Version 2.0 (the "License");
380922886Sopenharmony_ci#  you may not use this file except in compliance with the License.
480922886Sopenharmony_ci#  You may obtain a copy of the License at
580922886Sopenharmony_ci#
680922886Sopenharmony_ci#      http://www.apache.org/licenses/LICENSE-2.0
780922886Sopenharmony_ci#
880922886Sopenharmony_ci#  Unless required by applicable law or agreed to in writing, software
980922886Sopenharmony_ci#  distributed under the License is distributed on an "AS IS" BASIS,
1080922886Sopenharmony_ci#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1180922886Sopenharmony_ci#  See the License for the specific language governing permissions and
1280922886Sopenharmony_ci#  limitations under the License.
1380922886Sopenharmony_ci
1480922886Sopenharmony_cidomain: AV_SESSION
1580922886Sopenharmony_ci
1680922886Sopenharmony_ciAVSESSION_CAST_BEHAVIOR:
1780922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: avsession cast radar behavior, preserve: false}
1880922886Sopenharmony_ci  ORG_PKG: {type: STRING, desc: The package name of current module}
1980922886Sopenharmony_ci  HOST_PKG: {type: STRING, desc: host package}
2080922886Sopenharmony_ci  TO_CALL_PKG: {type: STRING, desc: The package to be called}
2180922886Sopenharmony_ci  TRIGGER_MODE: {type: INT32, desc: trigger mode}
2280922886Sopenharmony_ci  FUNC: {type: STRING, desc: function name}
2380922886Sopenharmony_ci  BIZ_SCENE: {type: INT32, desc: business scene}
2480922886Sopenharmony_ci  BIZ_STAGE: {type: INT32, desc: business stage}
2580922886Sopenharmony_ci  STAGE_RES: {type: INT32, desc: current stage result}
2680922886Sopenharmony_ci  BIZ_STATE: {type: INT32, desc: business scene state of beginning or ending}
2780922886Sopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
2880922886Sopenharmony_ci  DISCOVERY_DEVICE_LIST: {type: STRING, arrsize: 10, desc: device found list}
2980922886Sopenharmony_ci  LOCAL_UDID: {type: STRING, desc: local device udid}
3080922886Sopenharmony_ci  LOCAL_NET_ID: {type: STRING, desc: local networkid}
3180922886Sopenharmony_ci  LOCAL_DEVICE_TYPE: {type: STRING, desc: local device type}
3280922886Sopenharmony_ci  PEER_UDID: {type: STRING, desc: peer device udid}
3380922886Sopenharmony_ci  PEER_BT_MAC: {type: STRING, desc: peer device bluetooth mac address}
3480922886Sopenharmony_ci  PEER_NET_ID: {type: STRING, desc: peer networkid}
3580922886Sopenharmony_ci  PEER_DEVICE_TYPE: {type: STRING, desc: peer device type}
3680922886Sopenharmony_ci  IS_TRUST: {type: BOOL, desc: trusted device or not}
3780922886Sopenharmony_ci
3880922886Sopenharmony_ciSESSION_SERVICE_START:
3980922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: start avsession service}
4080922886Sopenharmony_ci  SERVICE_NAME: {type: STRING, desc: avsession service name}
4180922886Sopenharmony_ci  SERVICE_ID: {type: INT32, desc: avsession service id}
4280922886Sopenharmony_ci  DETAILED_MSG: {type: STRING, desc: detailed msg}
4380922886Sopenharmony_ci
4480922886Sopenharmony_ciFOCUS_CHANGE:
4580922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: focus change}
4680922886Sopenharmony_ci  PID: {type: INT32, desc: the pid of focus change}
4780922886Sopenharmony_ci  OLD_BUNDLE_NAME: {type: STRING, desc: old bundle name}
4880922886Sopenharmony_ci  OLD_MODULE_NAME: {type: STRING, desc: old module name}
4980922886Sopenharmony_ci  OLD_ABILITY_NAME: {type: STRING, desc: old ability name}
5080922886Sopenharmony_ci  OLD_SESSION_PID: {type: INT32, desc: old session pid}
5180922886Sopenharmony_ci  OLD_SESSION_UID: {type: INT32, desc: old session uid}
5280922886Sopenharmony_ci  OLD_SESSION_ID: {type: STRING, desc: old session id}
5380922886Sopenharmony_ci  OLD_SESSION_TAG: {type: STRING, desc: old session tag}
5480922886Sopenharmony_ci  OLD_SESSION_TYPE: {type: INT32, desc: old session type}
5580922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: change bundle name}
5680922886Sopenharmony_ci  MODULE_NAME: {type: STRING, desc: change module name}
5780922886Sopenharmony_ci  ABILITY_NAME: {type: STRING, desc: change ability name}
5880922886Sopenharmony_ci  SESSION_PID: {type: INT32, desc: change session pid}
5980922886Sopenharmony_ci  SESSION_UID: {type: INT32, desc: change session uid}
6080922886Sopenharmony_ci  SESSION_ID: {type: STRING, desc: change session id}
6180922886Sopenharmony_ci  SESSION_TAG: {type: STRING, desc: change session tag}
6280922886Sopenharmony_ci  SESSION_TYPE: {type: INT32, desc: change session type}
6380922886Sopenharmony_ci  FOCUS_SESSION_UID: {type: INT32, desc: focus session change info uid}
6480922886Sopenharmony_ci  AUDIO_INFO_CONTENT_TYPE: {type: INT32, desc: audiorendererinfo contenttype}
6580922886Sopenharmony_ci  AUDIO_INFO_RENDERER_STATE: {type: INT32, desc: audiorendererinfo rendererstate}
6680922886Sopenharmony_ci  DETAILED_MSG: {type: STRING, desc: detailed msg}
6780922886Sopenharmony_ci
6880922886Sopenharmony_ciCONTROL_PERMISSION_DENIED:
6980922886Sopenharmony_ci  __BASE: {type: SECURITY, level: CRITICAL, desc: permission verification errors}
7080922886Sopenharmony_ci  CALLER_UID: {type: INT32, desc: caller uid}
7180922886Sopenharmony_ci  CALLER_PID: {type: INT32, desc: caller pid}
7280922886Sopenharmony_ci  SESSION_ID: {type: STRING, desc: session id}
7380922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
7480922886Sopenharmony_ci  KEY_CODE: {type: INT32, desc: key code}
7580922886Sopenharmony_ci  KEY_ACTION: {type: INT32, desc: key action}
7680922886Sopenharmony_ci  CMD: {type: INT32, desc: command}
7780922886Sopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
7880922886Sopenharmony_ci  ERROR_MSG: {type: STRING, desc: error msg}
7980922886Sopenharmony_ci
8080922886Sopenharmony_ciCONTROL_COMMAND_FAILED:
8180922886Sopenharmony_ci  __BASE: {type: FAULT, level: MINOR, desc: no response exception timeout invalid}
8280922886Sopenharmony_ci  ERROR_TYPE: {type: STRING, desc: error type}
8380922886Sopenharmony_ci  CMD: {type: INT32, desc: command}
8480922886Sopenharmony_ci  TIME: {type: UINT64, desc: seek time}
8580922886Sopenharmony_ci  SPEED: {type: DOUBLE, desc: control command failed speed}
8680922886Sopenharmony_ci  MODE: {type: STRING, desc: loop mode}
8780922886Sopenharmony_ci  ASSETID: {type: STRING, desc: control command failed assetId}
8880922886Sopenharmony_ci  CALLING_PID: {type: INT32, desc: calling pid}
8980922886Sopenharmony_ci  CLIENT_PID: {type: INT32, desc: cliend pid}
9080922886Sopenharmony_ci  TAG: {type: STRING, desc: control command failed tag}
9180922886Sopenharmony_ci  TYPE: {type: INT32, desc: control command failed type}
9280922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
9380922886Sopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
9480922886Sopenharmony_ci  ERROR_INFO: {type: STRING, desc: error info}
9580922886Sopenharmony_ci
9680922886Sopenharmony_ciCONTROL_COMMAND_STATISTICS:
9780922886Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: avsession control command statistics}
9880922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
9980922886Sopenharmony_ci  CONTROLLER_PID: {type: INT32, desc: controller pid}
10080922886Sopenharmony_ci  CMD: {type: INT32, desc: command}
10180922886Sopenharmony_ci  POSITION: {type: BOOL, desc: sender is true and receiver is false}
10280922886Sopenharmony_ci  PLAY_COUNT: {type: UINT32, desc: play count}
10380922886Sopenharmony_ci  PAUSE_COUNT: {type: UINT32, desc: pause count}
10480922886Sopenharmony_ci  STOP_COUNT: {type: UINT32, desc: stop count}
10580922886Sopenharmony_ci  PLAY_NEXT_COUNT: {type: UINT32, desc: playnext count}
10680922886Sopenharmony_ci  PLAY_PREVIOUS_COUNT: {type: UINT32, desc: playprevious count}
10780922886Sopenharmony_ci  FAST_FORWARD_COUNT: {type: UINT32, desc: fastforward count}
10880922886Sopenharmony_ci  REWIND_COUNT: {type: UINT32, desc: rewind count}
10980922886Sopenharmony_ci  SEEK_COUNT: {type: UINT32, desc: seek count}
11080922886Sopenharmony_ci  SET_SPEED_COUNT: {type: UINT32, desc: setspeed count}
11180922886Sopenharmony_ci  SET_LOOP_MODE_COUNT: {type: UINT32, desc: setloopmode count}
11280922886Sopenharmony_ci  TOGGLE_FAVORITE_COUNT: {type: UINT32, desc: togglefavorite count}
11380922886Sopenharmony_ci  DETAILED_MSG: {type: STRING, desc: detailed msg}
11480922886Sopenharmony_ci
11580922886Sopenharmony_ciSESSION_LIFECYCLE_STATISTICS:
11680922886Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: avsession control command statistics}
11780922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
11880922886Sopenharmony_ci  APP_STATUS: {type: BOOL, desc: app in background is true}
11980922886Sopenharmony_ci  SESSION_TYPE: {type: INT32, desc: sessiontype}
12080922886Sopenharmony_ci  SESSION_LIFE_CYCLE: {type: BOOL, desc: create avsession is true and delete avsession is false}
12180922886Sopenharmony_ci  CREATE_SESSION_COUNT: {type: UINT32, desc: create session count}
12280922886Sopenharmony_ci  DELETE_SESSION_COUNT: {type: UINT32, desc: delete session count}
12380922886Sopenharmony_ci
12480922886Sopenharmony_ciCONTROL_COMMAND_FAILED_RATE:
12580922886Sopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: avsession control command failed rate}
12680922886Sopenharmony_ci  ALL_CTRL_COMMAND_COUNT: {type: UINT32, desc: all command count}
12780922886Sopenharmony_ci  ALL_SUCCESS_CTRL_COMMAND: {type: UINT32, desc: success command count}
12880922886Sopenharmony_ci  COMMAND_FAILED_RATE: {type: FLOAT, desc: command failed rate}
12980922886Sopenharmony_ci
13080922886Sopenharmony_ciSESSION_CAST:
13180922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: session cast}
13280922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
13380922886Sopenharmony_ci  MODULE_NAME: {type: STRING, desc: module name}
13480922886Sopenharmony_ci  ABILITY_NAME: {type: STRING, desc: ability name}
13580922886Sopenharmony_ci  SESSION_PID: {type: INT32, desc: session pid}
13680922886Sopenharmony_ci  SESSION_UID: {type: INT32, desc: session uid}
13780922886Sopenharmony_ci  SESSION_ID: {type: STRING, desc: session id}
13880922886Sopenharmony_ci  SESSION_TAG: {type: STRING, desc: session tag}
13980922886Sopenharmony_ci  SESSION_TYPE: {type: INT32, desc: session type}
14080922886Sopenharmony_ci  CAST_TYPE: {type: INT32, desc: cast type}
14180922886Sopenharmony_ci  DEST_DEVICE_TYPE: {type: STRING, desc: dest device type}
14280922886Sopenharmony_ci  DEST_DEVICE_NAME: {type: STRING, desc: dest device name}
14380922886Sopenharmony_ci  DEST_DEVICE_ID: {type: INT32, desc: dest device id}
14480922886Sopenharmony_ci  DETAILED_MSG: {type: STRING, desc: detailed msg}
14580922886Sopenharmony_ci
14680922886Sopenharmony_ciREMOTE_CONTROL_FAILED:
14780922886Sopenharmony_ci  __BASE: {type: FAULT, level: MINOR, desc: remote control failed}
14880922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
14980922886Sopenharmony_ci  SESSION_TYPE: {type: INT32, desc: session type}
15080922886Sopenharmony_ci  AUDIO_STATUS: {type: INT32, desc: audio status}
15180922886Sopenharmony_ci  ERROR_TYPE: {type: STRING, desc: error type}
15280922886Sopenharmony_ci  ERROR_INFO: {type: STRING, desc: error info}
15380922886Sopenharmony_ci
15480922886Sopenharmony_ciSESSION_API_BEHAVIOR:
15580922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: session API behavior}
15680922886Sopenharmony_ci  API_NAME: {type: STRING, desc: api name}
15780922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
15880922886Sopenharmony_ci  SESSION_ID: {type: STRING, desc: session id}
15980922886Sopenharmony_ci  SESSION_TAG: {type: STRING, desc: session tag}
16080922886Sopenharmony_ci  SESSION_TYPE: {type: STRING, desc: session type}
16180922886Sopenharmony_ci  API_PARAM: {type: STRING, desc: api parameter}
16280922886Sopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
16380922886Sopenharmony_ci  ERROR_MSG: {type: STRING, desc: error msg}
16480922886Sopenharmony_ci  APP_VERSION_NAME: {type: STRING, desc: app version name}
16580922886Sopenharmony_ci  COST_TIME: {type: STRING, desc: cost time}
16680922886Sopenharmony_ci  OS_VERSION: {type: STRING, desc: os version}
16780922886Sopenharmony_ci  SDK_VERSION: {type: STRING, desc: sdk version}
16880922886Sopenharmony_ci
16980922886Sopenharmony_ciSESSION_CAST_CONTROL:
17080922886Sopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: session register listener}
17180922886Sopenharmony_ci  CONTROL_TYPE: {type: STRING, desc: control type}
17280922886Sopenharmony_ci  PEER_DEVICE_ID: {type: STRING, desc: peer device id}
17380922886Sopenharmony_ci  PEER_DEVICE_NAME: {type: STRING, desc: device name}
17480922886Sopenharmony_ci  PEER_DEVICE_TYPE: {type: STRING, desc: device type}
17580922886Sopenharmony_ci  PEER_NETWORK_ID: {type: STRING, desc: peer network id}
17680922886Sopenharmony_ci  PEER_SUPPORTED_PROTOCOL: {type: INT32, desc: supported protocol}
17780922886Sopenharmony_ci  BUNDLE_NAME: {type: STRING, desc: bundle name}
178