1# Copyright (c) 2021-2025 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: SENSOR 15 16ENABLE_SENSOR: 17 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: When registering enable sensor} 18 PKG_NAME: {type: STRING, desc: package name} 19 TYPE: {type: INT32, desc: type} 20 UID: {type: INT32, desc: calling uid} 21 PID: {type: INT32, desc: calling pid} 22 23DISABLE_SENSOR: 24 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: When unregistering disable sensor} 25 TYPE: {type: INT32, desc: type} 26 PKG_NAME: {type: STRING, desc: package name} 27 UID: {type: INT32, desc: calling uid} 28 PID: {type: INT32, desc: calling pid} 29 30DATA_CHANNEL_EXCEPTION: 31 __BASE: {type: FAULT, level: MINOR, desc: sensor data channel exception} 32 PKG_NAME: {type: STRING, desc: package name} 33 ERROR_CODE: {type: INT32, desc: error code} 34 35VERIFY_ACCESS_TOKEN_FAIL: 36 __BASE: {type: SECURITY, level: MINOR, desc: sensor verify access token fail} 37 PKG_NAME: {type: STRING, desc: package name} 38 ERROR_CODE: {type: INT32, desc: error code} 39 40SERVICE_IPC_EXCEPTION: 41 __BASE: {type: FAULT, level: MINOR, desc: sensor service ipc exception} 42 PKG_NAME: {type: STRING, desc: package name} 43 ERROR_CODE: {type: INT32, desc: error code} 44 45HDF_SERVICE_EXCEPTION: 46 __BASE: {type: FAULT, level: MINOR, desc: sensor hdf service exception} 47 PKG_NAME: {type: STRING, desc: package name} 48 ERROR_CODE: {type: INT32, desc: error code} 49 50SERVICE_EXCEPTION: 51 __BASE: {type: FAULT, level: MINOR, desc: sensor service exception} 52 PKG_NAME: {type: STRING, desc: package name} 53 ERROR_CODE: {type: INT32, desc: error code} 54 55EVENT_REPORT: 56 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Non consecutive and critical event reporting, preserve: true} 57 SENSOR_ID: {type: INT32, desc: Sensor Type} 58 TIMESTAMP: {type: STRING, desc: Timestamp} 59 DATA: {type: STRING, desc: Data Information}