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: TELEPHONY 15 16SIGNAL_LEVEL: 17 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: signal level} 18 SLOT_ID: {type: INT32, desc: slot id} 19 LEVEL: {type: INT32, desc: signal strength level} 20 21NETWORK_REGISTER: 22 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: network register} 23 SLOT_ID: {type: INT32, desc: slot id} 24 REGISTRATION_DOMAIN: {type: INT32, desc: network domain type} 25 RADIO_TECH: {type: INT32, desc: radio technology} 26 REGISTRATION_STATE: {type: INT32, desc: network registration state} 27 28SET_DEFAULT_CELLULAR_DATA: 29 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: default cellular data slot id} 30 SLOT_ID: {type: INT32, desc: slot id} 31 32SIM_STATE_CHANGE: 33 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: sim state} 34 SLOT_ID: {type: INT32, desc: slot id} 35 STATE: {type: INT32, desc: sim state} 36 37AIRPLANE_MODE_STATE: 38 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: airplane mode change event} 39 SWITCH: {type: INT32, desc: 0_OFF 1_ON} 40 41VONR_SWITCH_STATE: 42 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: vonr swtich state change event} 43 SWITCH: {type: INT32, desc: 0_OFF 1_ON} 44 45SMS_RECEIVE_FAILED: 46 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: receive sms failed event} 47 MODULE: {type: STRING, desc: module name} 48 SLOT_ID: {type: INT32, desc: slot id} 49 MSG_TYPE: {type: INT32, desc: the type of sms} 50 ERROR_TYPE: {type: INT32, desc: receive sms event error code} 51 ERROR_MSG: {type: STRING, desc: add supplements to error code} 52 53SMS_SEND_FAILED: 54 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: send sms failed event} 55 MODULE: {type: STRING, desc: module name} 56 SLOT_ID: {type: INT32, desc: slot id} 57 MSG_TYPE: {type: INT32, desc: the type of sms} 58 ERROR_TYPE: {type: INT32, desc: send sms event error code} 59 ERROR_MSG: {type: STRING, desc: add supplements to error code} 60 61SMS_SEND: 62 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: send sms event} 63 SLOT_ID: {type: INT32, desc: slot id} 64 MSG_TYPE: {type: INT32, desc: the type of sms} 65 66SMS_RECEIVE: 67 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: receive sms event} 68 SLOT_ID: {type: INT32, desc: slot id} 69 MSG_TYPE: {type: INT32, desc: the type of sms} 70 71DATA_CONNECTION_STATE: 72 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: data connection status} 73 STATE: {type: INT32, desc: 0_OFF 1_ON} 74 75DATA_DEACTIVED: 76 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: data disconnection type} 77 SLOT_ID: {type: INT32, desc: slot id} 78 TYPE: {type: INT32, desc: 0 NETWORK_DISCONNECTION 1 USER_INITIATED 2 HAS_HIGN_PRIORITY_NETWORK} 79 80ROAMING_DATA_CONNECTION_STATE: 81 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: roaming data connection state} 82 STATE: {type: INT32, desc: 0_OFF 1_ON} 83 84DATA_ACTIVATE_FAILED: 85 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: data active failed} 86 SLOT_ID: {type: INT32, desc: slot id} 87 DATA_SWITCH: {type: INT32, desc: switch} 88 UPLINK_DATA: {type: INT32, desc: uplink data} 89 DOWNLINK_DATA: {type: INT32, desc: downlink data} 90 DATASTATE: {type: INT32, desc: cellular data state} 91 ERROR_TYPE: {type: INT32, desc: error code} 92 ERROR_MSG: {type: STRING, desc: add supplements to error code} 93 94CALL_STATE: 95 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: call state} 96 SLOT_ID: {type: INT32, desc: slot id} 97 STATE: {type: INT32, desc: call state} 98 INDEX_ID: {type: INT32, desc: differentiate multiple calls simultaneously} 99 100CALL_END_EXCEPTION: 101 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone hang up call event} 102 SLOT_ID: {type: INT32, desc: slot id} 103 FAIL_CAUSE: {type: INT32, desc: reason for end of call} 104 105DIAL: 106 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone outgoing call event} 107 SLOT_ID: {type: INT32, desc: slot id} 108 CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE} 109 RESULT: {type: INT32, desc: dial result} 110 111ANSWER: 112 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone answering event} 113 SLOT_ID: {type: INT32, desc: slot id} 114 CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO_TO_VOICE 2 IMS_VIDEO_TO_VIDEO 3 CS_VOICE} 115 RESULT: {type: INT32, desc: answer result} 116 117HANG_UP: 118 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone hang up call event} 119 SLOT_ID: {type: INT32, desc: slot id} 120 CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE} 121 RESULT: {type: INT32, desc: hang up result} 122 123INCOMING_CALL: 124 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone incoming call event} 125 SLOT_ID: {type: INT32, desc: slot id} 126 CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE} 127 128CALL_DIAL_FAILED: 129 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call outgoing failed event} 130 MODULE: {type: STRING, desc: module name} 131 SLOT_ID: {type: INT32, desc: slot id} 132 CALL_TYPE: {type: INT32, desc: call type} 133 VIDEO_STATE: {type: INT32, desc: voice or video} 134 ERROR_TYPE: {type: INT32, desc: error code} 135 ERROR_MSG: {type: STRING, desc: add supplements to error code} 136 137CALL_INCOMING_FAILED: 138 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call incoming failed event} 139 MODULE: {type: STRING, desc: module name} 140 SLOT_ID: {type: INT32, desc: slot id} 141 VIDEO_STATE: {type: INT32, desc: voice or video} 142 CALL_TYPE: {type: INT32, desc: call type} 143 ERROR_TYPE: {type: INT32, desc: error code} 144 ERROR_MSG: {type: STRING, desc: add supplements to error code} 145 146CALL_ANSWER_FAILED: 147 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call answer failed event} 148 MODULE: {type: STRING, desc: module name} 149 SLOT_ID: {type: INT32, desc: slot id} 150 CALL_ID: {type: INT32, desc: phone call id} 151 VIDEO_STATE: {type: INT32, desc: voice or video} 152 ERROR_TYPE: {type: INT32, desc: error code} 153 ERROR_MSG: {type: STRING, desc: add supplements to error code} 154 155CALL_HANGUP_FAILED: 156 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call hangup failed event} 157 MODULE: {type: STRING, desc: module name} 158 SLOT_ID: {type: INT32, desc: slot id} 159 CALL_ID: {type: INT32, desc: phone call id} 160 ERROR_TYPE: {type: INT32, desc: error code} 161 ERROR_MSG: {type: STRING, desc: add supplements to error code} 162 163FOUNDATION_RESTART: 164 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: foundation restart event} 165 RESTART_COUNT: {type: INT32, desc: foundation restart times} 166