1# Copyright (C) 2021-2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: BT_SERVICE 15 16BR_SWITCH_STATE: 17 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth br state message} 18 PID: {type: INT32, desc: application pid} 19 UID: {type: INT32, desc: application uid} 20 STATE: {type: INT32, desc: br state} 21 22BLE_SWITCH_STATE: 23 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth ble state message} 24 PID: {type: INT32, desc: application pid} 25 UID: {type: INT32, desc: application uid} 26 STATE: {type: INT32, desc: ble state} 27 28DISCOVERY_STATE: 29 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth discovery state message} 30 PID: {type: INT32, desc: application pid} 31 UID: {type: INT32, desc: application uid} 32 STATE: {type: INT32, desc: br discovery state} 33 34A2DP_CONNECTED_STATE: 35 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth a2dp profile connected state message} 36 STATE: {type: INT32, desc: a2dp profile connected state} 37 38HFP_CONNECTED_STATE: 39 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth hfp profile state message} 40 STATE: {type: INT32, desc: hfp profile connected state} 41 42GATT_SERVER_CONN_STATE: 43 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth gatt server profile state message} 44 PID: {type: INT32, desc: application pid} 45 UID: {type: INT32, desc: application uid} 46 STATE: {type: INT32, desc: gatt profile connected state} 47 48GATT_CLIENT_CONN_STATE: 49 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth gatt clinet profile state message} 50 PID: {type: INT32, desc: application pid} 51 UID: {type: INT32, desc: application uid} 52 STATE: {type: INT32, desc: gatt profile connected state} 53 54BLE_SCAN_START: 55 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth scan start message} 56 PID: {type: INT32, desc: application pid} 57 UID: {type: INT32, desc: application uid} 58 TYPE: {type: INT32, desc: 1 is batch 0 is not} 59 60BLE_SCAN_STOP: 61 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth scan stop message} 62 PID: {type: INT32, desc: application pid} 63 UID: {type: INT32, desc: application uid} 64 65BLE_SCAN_DUTY_CYCLE: 66 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth scan duly cycle message} 67 WINDOW: {type: INT32, desc: scan duration time} 68 INTERVAL: {type: INT32, desc: 'Total time, scan time + rest time'} 69 TYPE: {type: INT32, desc: scan type} 70 71GATT_CONNECT_STATE: 72 __BASE: {type: STATISTIC, level: MINOR, desc: bluetooth gatt connect message} 73 ADDRESS: {type: STRING, desc: ble device address} 74 STATE: {type: INT32, desc: connect state} 75 ROLE: {type: INT32, desc: device role} 76 77GATT_APP_REGISTER: 78 __BASE: {type: STATISTIC, level: MINOR, desc: bluetooth gatt app register message} 79 ACTION: {type: STRING, desc: register or deregister} 80 SIDE: {type: STRING, desc: client or server} 81 ADDRESS: {type: STRING, desc: remote ble device address} 82 PID: {type: INT32, desc: PID value} 83 UID: {type: INT32, desc: UID value} 84 APPID: {type: INT32, desc: gatt app id}