146f34cbfSopenharmony_ci#  Copyright (c) 2022 Huawei Device Co., Ltd.
246f34cbfSopenharmony_ci#  Licensed under the Apache License, Version 2.0 (the "License");
346f34cbfSopenharmony_ci#  you may not use this file except in compliance with the License.
446f34cbfSopenharmony_ci#  You may obtain a copy of the License at
546f34cbfSopenharmony_ci#
646f34cbfSopenharmony_ci#      http://www.apache.org/licenses/LICENSE-2.0
746f34cbfSopenharmony_ci#
846f34cbfSopenharmony_ci#  Unless required by applicable law or agreed to in writing, software
946f34cbfSopenharmony_ci#  distributed under the License is distributed on an "AS IS" BASIS,
1046f34cbfSopenharmony_ci#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146f34cbfSopenharmony_ci#  See the License for the specific language governing permissions and
1246f34cbfSopenharmony_ci#  limitations under the License.
1346f34cbfSopenharmony_ci
1446f34cbfSopenharmony_cidomain: AUDIO
1546f34cbfSopenharmony_ci
1646f34cbfSopenharmony_ciDEVICE_CHANGE:
1746f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: audio output device}
1846f34cbfSopenharmony_ci  ISOUTPUT: {type: INT32, desc: is output device}
1946f34cbfSopenharmony_ci  STREAMID: {type: INT32, desc: stream id}
2046f34cbfSopenharmony_ci  STREAMTYPE: {type: INT32, desc: stream type}
2146f34cbfSopenharmony_ci  DEVICETYPE: {type: INT32, desc: device type}
2246f34cbfSopenharmony_ci  NETWORKID: {type: STRING, desc: network id}
2346f34cbfSopenharmony_ci  ADDRESS: {type: STRING, desc: device address}
2446f34cbfSopenharmony_ci  DEVICE_DETAILED_CATEGORY: {type: STRING, desc: device detailed category}
2546f34cbfSopenharmony_ci
2646f34cbfSopenharmony_ciVOLUME_CHANGE:
2746f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: audio input device}
2846f34cbfSopenharmony_ci  ISOUTPUT: {type: INT32, desc: output device}
2946f34cbfSopenharmony_ci  STREAMID: {type: INT32, desc: stream id}
3046f34cbfSopenharmony_ci  APP_UID: {type: INT32, desc: user id}
3146f34cbfSopenharmony_ci  APP_PID: {type: INT32, desc: process id}
3246f34cbfSopenharmony_ci  STREAMTYPE: {type: INT32, desc: stream type}
3346f34cbfSopenharmony_ci  VOLUME: {type: FLOAT, desc: audio volume}
3446f34cbfSopenharmony_ci  SYSVOLUME: {type: FLOAT, desc: sys volume}
3546f34cbfSopenharmony_ci  VOLUMEFACTOR: {type: FLOAT, desc: stream volume factor}
3646f34cbfSopenharmony_ci  POWERVOLUMEFACTOR: {type: FLOAT, desc: power volume factor}
3746f34cbfSopenharmony_ci
3846f34cbfSopenharmony_ciSTREAM_CHANGE:
3946f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: capturer state change}
4046f34cbfSopenharmony_ci  ISOUTPUT: {type: INT32, desc: output device}
4146f34cbfSopenharmony_ci  STREAMID: {type: INT32, desc: stream id}
4246f34cbfSopenharmony_ci  UID: {type: INT32, desc: user id}
4346f34cbfSopenharmony_ci  PID: {type: INT32, desc: process id}
4446f34cbfSopenharmony_ci  TRANSACTIONID: {type: UINT64, desc: transaction id}
4546f34cbfSopenharmony_ci  STREAMTYPE: {type: INT32, desc: stream type}
4646f34cbfSopenharmony_ci  STATE: {type: INT32, desc: audio state}
4746f34cbfSopenharmony_ci  DEVICETYPE: {type: INT32, desc: device type}
4846f34cbfSopenharmony_ci  NETWORKID: {type: STRING, desc: network id}
4946f34cbfSopenharmony_ci
5046f34cbfSopenharmony_ciSTREAM_STANDBY:
5146f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: render stream standby state change}
5246f34cbfSopenharmony_ci  STREAMID: {type: INT32, desc: stream id}
5346f34cbfSopenharmony_ci  STANDBY: {type: INT32, desc: standby state}
5446f34cbfSopenharmony_ci
5546f34cbfSopenharmony_ciHEADSET_CHANGE:
5646f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: headset connection state}
5746f34cbfSopenharmony_ci  ISCONNECT: {type: INT32, desc: is plugged in}
5846f34cbfSopenharmony_ci  HASMIC: {type: INT32, desc: mic available}
5946f34cbfSopenharmony_ci  DEVICETYPE: {type: INT32, desc: device type}
6046f34cbfSopenharmony_ci
6146f34cbfSopenharmony_ciBACKGROUND_SILENT_PLAYBACK:
6246f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: application play silently background}
6346f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application name}
6446f34cbfSopenharmony_ci  APP_VERSION_CODE: {type: UINT32, desc: application version code}
6546f34cbfSopenharmony_ci  TIMES: {type: UINT32, desc: how many times when this event happens}
6646f34cbfSopenharmony_ci
6746f34cbfSopenharmony_ciBG_SILENT_PLAYBACK:
6846f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: report the behavior of silent background playback concerned by power consumption detection }
6946f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application name}
7046f34cbfSopenharmony_ci  APP_VERSION_CODE: {type: UINT32, desc: application version code}
7146f34cbfSopenharmony_ci
7246f34cbfSopenharmony_ciLOAD_CONFIG_ERROR:
7346f34cbfSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: load configuration failed on audio policy service startup}
7446f34cbfSopenharmony_ci  CATEGORY: {type: UINT16, desc: category of audio policy configuration in uint16}
7546f34cbfSopenharmony_ci
7646f34cbfSopenharmony_ciLOAD_EFFECT_ENGINE_ERROR:
7746f34cbfSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: load effect engine failed on audio service startup}
7846f34cbfSopenharmony_ci  ENGINE_TYPE: {type: UINT16, desc: type of audio effect engine in uint16}
7946f34cbfSopenharmony_ci
8046f34cbfSopenharmony_ciAUDIO_SERVICE_STARTUP_ERROR:
8146f34cbfSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: audio service start up failed}
8246f34cbfSopenharmony_ci  SERVICE_ID: {type: UINT8, desc: audio service id}
8346f34cbfSopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
8446f34cbfSopenharmony_ci
8546f34cbfSopenharmony_ciAUDIO_STREAM_EXHAUSTED_STATS:
8646f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: audio stream for playback is exhausted}
8746f34cbfSopenharmony_ci  DUBIOUS_APP: {type: STRING, desc: dubious application name which used most resources when this error happens}
8846f34cbfSopenharmony_ci  TIMES: {type: UINT32, desc: how many times when this error happens}
8946f34cbfSopenharmony_ci
9046f34cbfSopenharmony_ciAUDIO_STREAM_CREATE_ERROR_STATS:
9146f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: audio stream create error}
9246f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application name who created audio stream error}
9346f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: created stream is used for playback or capture}
9446f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
9546f34cbfSopenharmony_ci  ERROR_CODE: {type: INT32, desc: error code}
9646f34cbfSopenharmony_ci  TIMES: {type: UINT32, desc: how many times when this error happen}
9746f34cbfSopenharmony_ci
9846f34cbfSopenharmony_ciSTREAM_PROPERTY_STATS:
9946f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: audio stream property statistic}
10046f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: created stream is used for playback or capture}
10146f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
10246f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: Application name which is using this stream}
10346f34cbfSopenharmony_ci  ENCODING_TYPE: {type: UINT8, desc: encoding type of this stream}
10446f34cbfSopenharmony_ci  CHANNEL_LAYOUT: {type: UINT64, desc: channel layout of this stream}
10546f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of this stream}
10646f34cbfSopenharmony_ci
10746f34cbfSopenharmony_ciSTREAM_UTILIZATION_STATS:
10846f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: audio stream utilization statistic}
10946f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: created stream is used for playback or capture}
11046f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
11146f34cbfSopenharmony_ci  PIPE_TYPE: {type: UINT8, desc: pipe type e.g. normal/lowlatency/offload/multichannel e.t.c.}
11246f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: Application name which is using this stream}
11346f34cbfSopenharmony_ci  SAMPLE_RATE: {type: UINT32, desc: sample rate of this stream}
11446f34cbfSopenharmony_ci  EFFECT_CHAIN: {type: UINT8, desc: effect chain of this stream}
11546f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of this stream}
11646f34cbfSopenharmony_ci
11746f34cbfSopenharmony_ciAUDIO_DEVICE_UTILIZATION_STATS:
11846f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: audio device utilization statistic}
11946f34cbfSopenharmony_ci  DEVICE_TYPE: {type: UINT8, desc: audio device type}
12046f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: this stream is used for playback or capture}
12146f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
12246f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of using this devices}
12346f34cbfSopenharmony_ci
12446f34cbfSopenharmony_ciBT_UTILIZATION_STATS:
12546f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: blue tooth device utilization statistic}
12646f34cbfSopenharmony_ci  BT_TYPE: {type: UINT8, desc: blue tooth type}
12746f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: this stream is used for playback or capture}
12846f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
12946f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of using this devices}
13046f34cbfSopenharmony_ci
13146f34cbfSopenharmony_ciPERFORMANCE_UNDER_OVERRUN_STATS:
13246f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: underrun or overrun statistic}
13346f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: Application name whose audio stream has underrun or overrun}
13446f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
13546f34cbfSopenharmony_ci  PIPE_TYPE: {type: UINT8, desc: pipe type e.g. normal/lowlatency/offload/multichannel e.t.c.}
13646f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: this stream is used for playback or capture}
13746f34cbfSopenharmony_ci  TIMES: {type: UINT32, desc: how many times when this event happend}
13846f34cbfSopenharmony_ci
13946f34cbfSopenharmony_ciPLAYBACK_VOLUME_STATS:
14046f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: playback volume statistic}
14146f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: StreamUsage of playback stream}
14246f34cbfSopenharmony_ci  LEVEL: {type: INT32, desc: volume level}
14346f34cbfSopenharmony_ci  DEVICE_TYPE: {type: UINT8, desc: audio device type}
14446f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of this volume level}
14546f34cbfSopenharmony_ci
14646f34cbfSopenharmony_ciMUTED_CAPTURE_STATS:
14746f34cbfSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: muted audio capture statistic}
14846f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: SourceType of audio capture stream}
14946f34cbfSopenharmony_ci  DEVICE_TYPE: {type: UINT8, desc: audio device type}
15046f34cbfSopenharmony_ci  DURATION: {type: UINT32, desc: duration of muted capture}
15146f34cbfSopenharmony_ci
15246f34cbfSopenharmony_ciAUDIO_ROUTE_CHANGE:
15346f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: audio route change}
15446f34cbfSopenharmony_ci  TIMESTAMP: {type: UINT64, desc: when does this change happens}
15546f34cbfSopenharmony_ci  REASON: {type: UINT8, desc: route change reason}
15646f34cbfSopenharmony_ci  DEVICE_TYPE_BEFORE_CHANGE: {type: UINT8, desc: audio device type before change}
15746f34cbfSopenharmony_ci  DEVICE_TYPE_AFTER_CHANGE: {type: UINT8, desc: audio device type after change}
15846f34cbfSopenharmony_ci
15946f34cbfSopenharmony_ciAUDIO_PIPE_CHANGE:
16046f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: audio pipe change}
16146f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application name}
16246f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
16346f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: this stream is used for playback or capture}
16446f34cbfSopenharmony_ci  PIPE_TYPE_BEFORE_CHANGE: {type: UINT8, desc: pipe type e.g. normal/lowlatency/offload/multichannel e.t.c.}
16546f34cbfSopenharmony_ci  PIPE_TYPE_AFTER_CHANGE: {type: UINT8, desc: pipe type e.g. normal/lowlatency/offload/multichannel e.t.c.}
16646f34cbfSopenharmony_ci  REASON: {type: UINT8, desc: audio pipe change reason}
16746f34cbfSopenharmony_ci
16846f34cbfSopenharmony_ciAUDIO_FOCUS_MIGRATE:
16946f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: audio force migrate between loacal device and remote device}
17046f34cbfSopenharmony_ci  DEVICE_DESC: {type: STRING, desc: device desc}
17146f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application whose focus is migrated}
17246f34cbfSopenharmony_ci  MIGRATE_DIRECTION: {type: UINT8, desc: migrate direction}
17346f34cbfSopenharmony_ci
17446f34cbfSopenharmony_ciSET_FORCE_USE_AUDIO_DEVICE:
17546f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: Forcibly select an audio playback device}
17646f34cbfSopenharmony_ci  APP_NAME: {type: STRING, desc: application name who has forcibly select an audio playback device}
17746f34cbfSopenharmony_ci  DEVICE_TYPE: {type: UINT8, desc: audio device type which is set force used}
17846f34cbfSopenharmony_ci  IS_PLAYBACK: {type: BOOL, desc: this stream is used for playback or capture}
17946f34cbfSopenharmony_ci  STREAM_TYPE: {type: UINT8, desc: stream type which can be either StreamUsage in playback or SourceType in capture}
18046f34cbfSopenharmony_ci
18146f34cbfSopenharmony_ciAI_VOICE_NOISE_SUPPRESSION:
18246f34cbfSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: AI voice noise suppression change}
18346f34cbfSopenharmony_ci  CURRENT_VALUE: {type: INT32, desc: current value after operation triggered}