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  SLOT_ID: {type: INT32, desc: slot id}
74  APN_TYPE: {type: INT32, desc: apn type}
75  SUPPLIER_ID: {type: INT32, desc: net supplier id}
76  STATE: {type: INT32, desc: 0_OFF 1_ON}
77
78DATA_DEACTIVED:
79  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: data disconnection type}
80  SLOT_ID: {type: INT32, desc: slot id}
81  APN_TYPE: {type: INT32, desc: apn type}
82  TYPE: {type: INT32, desc: 0 NETWORK_DISCONNECTION 1 USER_INITIATED 2 HAS_HIGN_PRIORITY_NETWORK}
83
84ROAMING_DATA_CONNECTION_STATE:
85  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: roaming data connection state}
86  STATE: {type: INT32, desc: 0_OFF 1_ON}
87
88DATA_ACTIVATE_FAILED:
89  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: data active failed}
90  SLOT_ID: {type: INT32, desc: slot id}
91  DATA_SWITCH: {type: INT32, desc: switch}
92  UPLINK_DATA: {type: INT32, desc: uplink data}
93  DOWNLINK_DATA: {type: INT32, desc: downlink data}
94  DATASTATE: {type: INT32, desc: cellular data state}
95  ERROR_TYPE: {type: INT32, desc: error code}
96  ERROR_MSG: {type: STRING, desc: add supplements to error code}
97
98CALL_STATE:
99  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: call state}
100  SLOT_ID: {type: INT32, desc: slot id}
101  STATE: {type: INT32, desc: call state}
102  INDEX_ID: {type: INT32, desc: differentiate multiple calls simultaneously}
103
104CALL_END_EXCEPTION:
105  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone hang up call event}
106  SLOT_ID: {type: INT32, desc: slot id}
107  FAIL_CAUSE: {type: INT32, desc: reason for end of call}
108
109DIAL:
110  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone outgoing call event}
111  SLOT_ID: {type: INT32, desc: slot id}
112  CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE}
113  RESULT: {type: INT32, desc: dial result}
114
115ANSWER:
116  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone answering event}
117  SLOT_ID: {type: INT32, desc: slot id}
118  CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO_TO_VOICE 2 IMS_VIDEO_TO_VIDEO 3 CS_VOICE}
119  RESULT: {type: INT32, desc: answer result}
120
121HANG_UP:
122  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone hang up call event}
123  SLOT_ID: {type: INT32, desc: slot id}
124  CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE}
125  RESULT: {type: INT32, desc: hang up result}
126
127INCOMING_CALL:
128  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: phone incoming call event}
129  SLOT_ID: {type: INT32, desc: slot id}
130  CALL_TYPE: {type: INT32, desc: 0 IMS_VOICE 1 IMS_VIDEO 2 CS_VOICE}
131
132CALL_DIAL_FAILED:
133  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call outgoing failed event}
134  MODULE: {type: STRING, desc: module name}
135  SLOT_ID: {type: INT32, desc: slot id}
136  CALL_TYPE: {type: INT32, desc: call type}
137  VIDEO_STATE: {type: INT32, desc: voice or video}
138  ERROR_TYPE: {type: INT32, desc: error code}
139  ERROR_MSG: {type: STRING, desc: add supplements to error code}
140
141CALL_INCOMING_FAILED:
142  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call incoming failed event}
143  MODULE: {type: STRING, desc: module name}
144  SLOT_ID: {type: INT32, desc: slot id}
145  VIDEO_STATE: {type: INT32, desc: voice or video}
146  CALL_TYPE: {type: INT32, desc: call type}
147  ERROR_TYPE: {type: INT32, desc: error code}
148  ERROR_MSG: {type: STRING, desc: add supplements to error code}
149
150CALL_ANSWER_FAILED:
151  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call answer failed event}
152  MODULE: {type: STRING, desc: module name}
153  SLOT_ID: {type: INT32, desc: slot id}
154  CALL_ID: {type: INT32, desc: phone call id}
155  VIDEO_STATE: {type: INT32, desc: voice or video}
156  ERROR_TYPE: {type: INT32, desc: error code}
157  ERROR_MSG: {type: STRING, desc: add supplements to error code}
158
159CALL_HANGUP_FAILED:
160  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: call hangup failed event}
161  MODULE: {type: STRING, desc: module name}
162  SLOT_ID: {type: INT32, desc: slot id}
163  CALL_ID: {type: INT32, desc: phone call id}
164  ERROR_TYPE: {type: INT32, desc: error code}
165  ERROR_MSG: {type: STRING, desc: add supplements to error code}
166
167FOUNDATION_RESTART:
168  __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: foundation restart event}
169  RESTART_COUNT: {type: INT32, desc: foundation restart times}
170