# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. domain: AUDIO DEVICE_CHANGE: __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: audio output device} ISOUTPUT: {type: INT32, desc: is output device} STREAMID: {type: INT32, desc: stream id} STREAMTYPE: {type: INT32, desc: stream type} DEVICETYPE: {type: INT32, desc: device type} VOLUME_CHANGE: __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: audio input device} ISOUTPUT: {type: INT32, desc: output device} STREAMID: {type: INT32, desc: stream id} APP_UID: {type: INT32, desc: user id} APP_PID: {type: INT32, desc: process id} STREAMTYPE: {type: INT32, desc: stream type} VOLUME: {type: FLOAT, desc: audio volume} SYSVOLUME: {type: FLOAT, desc: sys volume} VOLUMEFACTOR: {type: FLOAT, desc: stream volume factor} POWERVOLUMEFACTOR: {type: FLOAT, desc: power volume factor} STREAM_CHANGE: __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: capturer state change} ISOUTPUT: {type: INT32, desc: output device} STREAMID: {type: INT32, desc: stream id} UID: {type: INT32, desc: user id} PID: {type: INT32, desc: process id} TRANSACTIONID: {type: UINT64, desc: transaction id} STREAMTYPE: {type: INT32, desc: stream type} STATE: {type: INT32, desc: audio state} DEVICETYPE: {type: INT32, desc: device type} HEADSET_CHANGE: __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: headset connection state} ISCONNECT: {type: INT32, desc: is plugged in} HASMIC: {type: INT32, desc: mic available} DEVICETYPE: {type: INT32, desc: device type} BACKGROUND_SILENT_PLAYBACK: __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: application play silently background} APP_NAME: {type: STRING, desc: application name} APP_VERSION_CODE: {type: UINT32, desc: application version code}