# 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 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} AUDIO_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} STREAMTYPE: {type: INT32, desc: stream type} VOLUME: {type: FLOAT, desc: audio volume} AUDIO_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} AUDIO_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}