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: BLUETOOTH 15 16BLUETOOTH_BR_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 22BLUETOOTH_BLE_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 28BLUETOOTH_DISCOVERY_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 34BLUETOOTH_A2DP_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 38BLUETOOTH_HFP_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 42BLUETOOTH_GATT_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 48BLUETOOTH_GATT_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 54BLUETOOTH_BLE_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 60BLUETOOTH_BLE_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 65BLUETOOTH_BLE_SCAN_DUTY_CYCLE: 66 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: bluetooth scan duly cycle message} 67 WINDOW: {type: INT32, desc: window} 68 INTERVAL: {type: INT32, desc: interval} 69 TYPE: {type: INT32, desc: type} 70 71SPP_CONNECT_STATE: 72 __BASE: {type: STATISTIC, level: MINOR, desc: bluetooth spp connect message} 73 ACTION: {type: STRING, desc: connect or close} 74 ID: {type: INT32, desc: socket number} 75 ADDRESS: {type: STRING, desc: bt device address} 76 PID: {type: INT32, desc: PID value} 77 UID: {type: INT32, desc: UID value} 78 79GATT_CONNECT_STATE: 80 __BASE: {type: STATISTIC, level: MINOR, desc: bluetooth gatt connect message} 81 ADDRESS: {type: STRING, desc: ble device address} 82 STATE: {type: INT32, desc: connect state} 83 ROLE: {type: INT32, desc: device role} 84 85GATT_APP_REGISTER: 86 __BASE: {type: STATISTIC, level: MINOR, desc: bluetooth gatt app register message} 87 ACTION: {type: STRING, desc: register or deregister} 88 SIDE: {type: STRING, desc: client or server} 89 ADDRESS: {type: STRING, desc: remote ble device address} 90 PID: {type: INT32, desc: PID value} 91 UID: {type: INT32, desc: UID value} 92 APPID: {type: INT32, desc: gatt app id}