1# Copyright (C) 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: COMMUNICATION 15 16# Start or stop Wi-Fi switch 17WIFI_STATE: 18 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: Wifi enable or disable event} 19 TYPE: {type: STRING, desc: Service type} 20 OPER_TYPE: {type: INT32, desc: 0 is enable and 1 is disable} 21 22# Connect or disconnect Wi-Fi 23WIFI_CONNECTION: 24 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: Wifi connection event} 25 TYPE: {type: INT32, desc: 0 is connect and 1 is disconnect} 26 PACKAGE_NAME: {type: STRING, desc: Package name} 27 28# Scans Wi-Fi hotspots 29WIFI_SCAN: 30 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: Wifi scan event} 31 EXECUTE_RESULT: {type: INT32, desc: 0 is scan fail and 1 is scan success} 32 PACKAGE_NAME: {type: STRING, desc: Package name} 33 34# Wi-Fi event received 35WIFI_EVENT_RECEIVED: 36 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: Wifi event} 37 EVENT_TYPE: {type: STRING, desc: Event type} 38 VALUE: {type: INT32, desc: Event value} 39