• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package telephonyStatsLog;
20
21option java_package = "com.android.internal.telephony";
22option java_outer_classname = "PersistAtomsProto";
23
24// Holds atoms to store on persist storage in case of power cycle or process crash.
25// NOTE: using int64 rather than google.protobuf.Timestamp for timestamps simplifies implementation.
26// Next id: 82
27message PersistAtoms {
28    /* Aggregated RAT usage during the call. */
29    repeated VoiceCallRatUsage voice_call_rat_usage = 1;
30
31    /* Timestamp of last voice_call_rat_usages pull. */
32    optional int64 voice_call_rat_usage_pull_timestamp_millis = 2;
33
34    /* Per call statistics and information. */
35    repeated VoiceCallSession voice_call_session = 3;
36
37    /* Timestamp of last voice_call_sessions pull. */
38    optional int64 voice_call_session_pull_timestamp_millis = 4;
39
40    /* Incoming SMS statistics and information. */
41    repeated IncomingSms incoming_sms = 5;
42
43    /* Timestamp of last incoming_sms pull. */
44    optional int64 incoming_sms_pull_timestamp_millis = 6;
45
46    /* Outgoing SMS statistics and information. */
47    repeated OutgoingSms outgoing_sms = 7;
48
49    /* Timestamp of last incoming_sms pull. */
50    optional int64 outgoing_sms_pull_timestamp_millis = 8;
51
52    /* List of carrier ID mismatch events already sent. */
53    repeated CarrierIdMismatch carrier_id_mismatch = 9;
54
55    /* Last version of carrier ID table sent. */
56    optional int32 carrier_id_table_version = 10;
57
58    /* Data Call session statistics and information. */
59    repeated DataCallSession data_call_session = 11;
60
61    /* Timestamp of last data_call_session pull. */
62    optional int64 data_call_session_pull_timestamp_millis = 12;
63
64    /* Duration spent in each possible service state. */
65    repeated CellularServiceState cellular_service_state = 13;
66
67    /* Timestamp of last cellular_service_state pull. */
68    optional int64 cellular_service_state_pull_timestamp_millis = 14;
69
70    /* Switch count between data RATs. */
71    repeated CellularDataServiceSwitch cellular_data_service_switch = 15;
72
73    /* Timestamp of last cellular_data_service_switch pull. */
74    optional int64 cellular_data_service_switch_pull_timestamp_millis = 16;
75
76    /* List of IMS registration terminations. */
77    repeated ImsRegistrationTermination ims_registration_termination = 17;
78
79    /* Timestamp of last ims_registration_termination pull. */
80    optional int64 ims_registration_termination_pull_timestamp_millis = 18;
81
82    /* Durations of IMS registrations and capabilities. */
83    repeated ImsRegistrationStats ims_registration_stats = 19;
84
85    /* Timestamp of last ims_registration_stats pull. */
86    optional int64 ims_registration_stats_pull_timestamp_millis = 20;
87
88    /* Last Android build fingerprint. This usually changes after system OTA. */
89    optional string build_fingerprint = 21;
90
91    /* Summary of received network requests. */
92    repeated NetworkRequests network_requests = 22 [deprecated = true];
93
94    /* Timestamp of last network_requests pull. */
95    optional int64 network_requests_pull_timestamp_millis = 23 [deprecated = true];
96
97    /* RCS single registrtions feature tag information. */
98    repeated ImsRegistrationFeatureTagStats ims_registration_feature_tag_stats = 24;
99
100    /* Timestamp of last ims_registration_feature_tag_stats pull. */
101    optional int64 ims_registration_feature_tag_stats_pull_timestamp_millis = 25;
102
103    /* RCS client provisioning statistics and information. */
104    repeated RcsClientProvisioningStats rcs_client_provisioning_stats = 26;
105
106    /* Timestamp of last rcs_client_provisioning_stats pull. */
107    optional int64 rcs_client_provisioning_stats_pull_timestamp_millis = 27;
108
109    /* RCS configuration statistics and information based ACS. */
110    repeated RcsAcsProvisioningStats rcs_acs_provisioning_stats = 28;
111
112    /* Timestamp of last rcs_acs_provisioning_stats pull. */
113    optional int64 rcs_acs_provisioning_stats_pull_timestamp_millis = 29;
114
115    /* SIP delegate statistics and information. */
116    repeated SipDelegateStats sip_delegate_stats = 30;
117
118    /* Timestamp of last sip_delegate_stats pull. */
119    optional int64 sip_delegate_stats_pull_timestamp_millis = 31;
120
121    /* SIP Transport featuere tag statistics and information. */
122    repeated SipTransportFeatureTagStats sip_transport_feature_tag_stats = 32;
123
124    /* Timestamp of last sip_transport_feature_tag_stats pull. */
125    optional int64 sip_transport_feature_tag_stats_pull_timestamp_millis = 33;
126
127    /* SIP Message response statistics and information. */
128    repeated SipMessageResponse sip_message_response = 34;
129
130    /* Timestamp of last sip_message_response pull. */
131    optional int64 sip_message_response_pull_timestamp_millis = 35;
132
133    /* SIP Transport session statistics and information. */
134    repeated SipTransportSession sip_transport_session = 36;
135
136    /* Timestamp of last sip_transport_session pull. */
137    optional int64 sip_transport_session_pull_timestamp_millis = 37;
138
139    /* Dedicated bearer listener statistics and information. */
140    repeated ImsDedicatedBearerListenerEvent ims_dedicated_bearer_listener_event = 38;
141
142    /* Timestamp of last ims_dedicated_bearer_listener_event pull. */
143    optional int64 ims_dedicated_bearer_listener_event_pull_timestamp_millis = 39;
144
145    /* Dedicated bearer event statistics and information. */
146    repeated ImsDedicatedBearerEvent ims_dedicated_bearer_event = 40;
147
148    /* Timestamp of last ims_dedicated_bearer_event pull. */
149    optional int64 ims_dedicated_bearer_event_pull_timestamp_millis = 41;
150
151    /* Publish featere tag statistics and information. */
152    repeated ImsRegistrationServiceDescStats ims_registration_service_desc_stats = 42;
153
154    /* Timestamp of last ims_registration_service_desc_stats pull. */
155    optional int64 ims_registration_service_desc_stats_pull_timestamp_millis = 43;
156
157    /* UCE event stats statistics and information. */
158    repeated UceEventStats uce_event_stats = 44;
159
160    /* Timestamp of last uce_event_stats pull. */
161    optional int64 uce_event_stats_pull_timestamp_millis = 45;
162
163    /* Presence notify event statistics and information. */
164    repeated PresenceNotifyEvent presence_notify_event = 46;
165
166    /* Timestamp of last presence_notify_event pull. */
167    optional int64 presence_notify_event_pull_timestamp_millis = 47;
168
169    /* GBA event statistics and information. */
170    repeated GbaEvent gba_event = 48;
171
172    /* Timestamp of last gba_event pull. */
173    optional int64 gba_event_pull_timestamp_millis = 49;
174
175    /* Summary of received network requests. */
176    repeated NetworkRequestsV2 network_requests_v2 = 50;
177
178    /* Timestamp of last network_requests_v2 pull. */
179    optional int64 network_requests_v2_pull_timestamp_millis = 51;
180
181    /* Unmetered networks information. */
182    repeated UnmeteredNetworks unmetered_networks = 52;
183
184    /* Outgoing Short Code SMS statistics and information. */
185    repeated OutgoingShortCodeSms outgoing_short_code_sms = 53;
186
187    /* Timestamp of last outgoing_short_code_sms pull. */
188    optional int64 outgoing_short_code_sms_pull_timestamp_millis = 54;
189
190    /* Number of time the user toggled the data switch feature since the last collection. */
191    optional int32 auto_data_switch_toggle_count = 55;
192
193    /* Consolidated emergency numbers list information. */
194    repeated EmergencyNumbersInfo emergency_numbers_info = 56;
195
196    /* Timestamp of last emergency number pull. */
197    optional int64 emergency_number_pull_timestamp_millis = 57;
198
199    /** Snapshot of satellite controller. */
200    repeated SatelliteController satellite_controller = 58;
201
202    /* Timestamp of last satellite_controller pull. */
203    optional int64 satellite_controller_pull_timestamp_millis = 59;
204
205    /** Snapshot of satellite controller. */
206    repeated SatelliteSession satellite_session = 60;
207
208    /* Timestamp of last satellite_controller pull. */
209    optional int64 satellite_session_pull_timestamp_millis = 61;
210
211    /** Snapshot of satellite incoming datagram. */
212    repeated SatelliteIncomingDatagram satellite_incoming_datagram = 62;
213
214    /* Timestamp of last satellite_incoming_datagram pull. */
215    optional int64 satellite_incoming_datagram_pull_timestamp_millis = 63;
216
217    /** Snapshot of satellite outgoing datagram. */
218    repeated SatelliteOutgoingDatagram satellite_outgoing_datagram = 64;
219
220    /* Timestamp of last satellite_outgoing_datagram pull. */
221    optional int64 satellite_outgoing_datagram_pull_timestamp_millis = 65;
222
223    /** Snapshot of satellite provision datagram. */
224    repeated SatelliteProvision satellite_provision = 66;
225
226    /* Timestamp of last satellite_provision pull. */
227    optional int64 satellite_provision_pull_timestamp_millis = 67;
228
229    /** Snapshot of satellite SOS message recommender. */
230    repeated SatelliteSosMessageRecommender satellite_sos_message_recommender = 68;
231
232    /* Timestamp of last satellite_sos_message_recommender pull. */
233    optional int64 satellite_sos_message_recommender_pull_timestamp_millis = 69;
234
235    /* Data Network Validation statistics and information. */
236    repeated DataNetworkValidation data_network_validation = 70;
237
238    /* Timestamp of last data_network_validation pull. */
239    optional int64 data_network_validation_pull_timestamp_millis = 71;
240
241    /* Snapshot of carrier roaming satellite session. */
242    repeated CarrierRoamingSatelliteSession carrier_roaming_satellite_session = 72;
243
244    /* Timestamp of last carrier_roaming_satellite_session pull. */
245    optional int64 carrier_roaming_satellite_session_pull_timestamp_millis = 73;
246
247    /* Snapshot of carrier roaming satellite controller stats. */
248    repeated CarrierRoamingSatelliteControllerStats carrier_roaming_satellite_controller_stats = 74;
249
250    /* Timestamp of last carrier_roaming_satellite_controller_stats pull. */
251    optional int64 carrier_roaming_satellite_controller_stats_pull_timestamp_millis = 75;
252
253    /* Snapshot of satellite entitlement. */
254    repeated SatelliteEntitlement satellite_entitlement = 76;
255
256    /* Timestamp of last satellite_entitlement pull. */
257    optional int64 satellite_entitlement_pull_timestamp_millis = 77;
258
259    /* Snapshot of satellite config updater. */
260    repeated SatelliteConfigUpdater satellite_config_updater = 78;
261
262    /* Timestamp of last satellite_config_updater pull. */
263    optional int64 satellite_config_updater_pull_timestamp_millis = 79;
264
265    /** Snapshot of satellite access controller. */
266    repeated SatelliteAccessController satellite_access_controller = 80;
267
268    /* Timestamp of last satellite access controller pull. */
269    optional int64 satellite_access_controller_pull_timestamp_millis = 81;
270}
271
272// The canonical versions of the following enums live in:
273//   frameworks/proto_logging/stats/enums/telephony/enums.proto
274// The canonical versions of the following atoms live in:
275//   frameworks/proto_logging/stats/atoms.proto
276// We cannot link against framework's and statsd's protolite libraries as it is "for test only".
277// NOTE: StatsLog functions use int in place of enum
278
279message VoiceCallSession {
280    reserved 4;
281    optional int32 bearer_at_start = 1;
282    optional int32 bearer_at_end = 2;
283    optional int32 direction = 3;
284    optional bool setup_failed = 5;
285    optional int32 disconnect_reason_code = 6;
286    optional int32 disconnect_extra_code = 7;
287    optional string disconnect_extra_message = 8;
288    optional int32 rat_at_start = 9;
289    optional int32 rat_at_end = 10;
290    optional int64 rat_switch_count = 11;
291    optional int64 codec_bitmask = 12;
292    optional int32 concurrent_call_count_at_start = 13;
293    optional int32 concurrent_call_count_at_end = 14;
294    optional int32 sim_slot_index = 15;
295    optional bool is_multi_sim = 16;
296    optional bool is_esim = 17;
297    optional int32 carrier_id = 18;
298    optional bool srvcc_completed = 19;
299    optional int64 srvcc_failure_count = 20;
300    optional int64 srvcc_cancellation_count = 21;
301    optional bool rtt_enabled = 22;
302    optional bool is_emergency = 23;
303    optional bool is_roaming = 24;
304    optional int32 signal_strength_at_end = 25;
305    optional int32 band_at_end = 26;
306    optional int32 setup_duration_millis = 27;
307    optional int32 main_codec_quality = 28;
308    optional bool video_enabled = 29;
309    optional int32 rat_at_connected = 30;
310    optional bool is_multiparty = 31;
311    optional int32 call_duration = 32;
312    optional int32 last_known_rat = 33;
313    optional int32 fold_state = 34;
314    optional int64 rat_switch_count_after_connected = 35;
315    optional bool handover_in_progress = 36;
316    optional bool is_iwlan_cross_sim_at_start = 37;
317    optional bool is_iwlan_cross_sim_at_end = 38;
318    optional bool is_iwlan_cross_sim_at_connected = 39;
319    optional bool vonr_enabled = 40;
320    optional bool is_ntn = 41;
321    optional bool supports_business_call_composer = 42;
322    optional int32 call_composer_status = 43;
323    optional int32 precise_call_state_on_setup = 44;
324
325    // Internal use only
326    optional int64 setup_begin_millis = 10001;
327}
328
329message VoiceCallRatUsage {
330    optional int32 carrier_id = 1;
331    optional int32 rat = 2;
332    optional int64 total_duration_millis = 3; // Duration needs to be rounded when pulled
333    optional int64 call_count = 4;
334}
335
336message IncomingSms {
337    optional int32 sms_format = 1;
338    optional int32 sms_tech = 2;
339    optional int32 rat = 3;
340    optional int32 sms_type = 4;
341    optional int32 total_parts = 5;
342    optional int32 received_parts = 6;
343    optional bool blocked = 7;
344    optional int32 error = 8;
345    optional bool is_roaming = 9;
346    optional int32 sim_slot_index = 10;
347    optional bool is_multi_sim = 11;
348    optional bool is_esim = 12;
349    optional int32 carrier_id = 13;
350    optional int64 message_id = 14;
351    optional int32 count = 15;
352    optional bool is_managed_profile = 16;
353    optional bool is_ntn = 17;
354    optional bool is_emergency = 18;
355    optional bool is_nb_iot_ntn = 19;
356
357    // Internal use only
358    optional int32 hashCode = 10001;
359}
360
361message OutgoingSms {
362    optional int32 sms_format = 1;
363    optional int32 sms_tech = 2;
364    optional int32 rat = 3;
365    optional int32 send_result = 4;
366    optional int32 error_code = 5;
367    optional bool is_roaming = 6;
368    optional bool is_from_default_app = 7;
369    optional int32 sim_slot_index = 8;
370    optional bool is_multi_sim = 9;
371    optional bool is_esim = 10;
372    optional int32 carrier_id = 11;
373    optional int64 message_id = 12;
374    optional int32 retry_id = 13;
375    optional int64 interval_millis = 14;
376    optional int32 count = 15;
377    optional int32 send_error_code = 16;
378    optional int32 network_error_code = 17;
379    optional bool is_managed_profile = 18;
380    optional bool is_emergency = 19;
381    optional bool is_ntn = 20;
382    optional bool is_mt_sms_polling = 21;
383    optional bool is_nb_iot_ntn = 22;
384
385    // Internal use only
386    optional int32 hashCode = 10001;
387}
388
389message CarrierIdMismatch {
390    optional string mcc_mnc = 1;
391    optional string gid1 = 2;
392    optional string spn = 3;
393    optional string pnn = 4;
394}
395
396message DataCallSession {
397    reserved 4;
398    optional int32 dimension = 1;
399    optional bool is_multi_sim = 2;
400    optional bool is_esim = 3;
401    optional int32 apn_type_bitmask = 5;
402    optional int32 carrier_id = 6;
403    optional bool is_roaming = 7;
404    optional int32 rat_at_end = 8;
405    optional bool oos_at_end = 9;
406    optional int64 rat_switch_count = 10;
407    optional bool is_opportunistic = 11;
408    optional int32 ip_type = 12;
409    optional bool setup_failed = 13;
410    optional int32 failure_cause = 14;
411    optional int32 suggested_retry_millis = 15;
412    optional int32 deactivate_reason = 16;
413    optional int64 duration_minutes = 17;
414    optional bool ongoing = 18;
415    optional int32 band_at_end = 19;
416    repeated int32 handover_failure_causes = 20;
417    repeated int32 handover_failure_rat = 21;
418    optional bool is_non_dds = 22;
419    optional bool is_iwlan_cross_sim = 23;
420    optional bool is_ntn = 24;
421    optional bool is_satellite_transport = 25;
422    optional bool is_provisioning_profile = 26;
423    optional bool is_nb_iot_ntn = 27;
424}
425
426message CellularServiceState {
427    optional int32 voice_rat = 1;
428    optional int32 data_rat = 2;
429    optional int32 voice_roaming_type = 3;
430    optional int32 data_roaming_type = 4;
431    optional bool is_endc = 5;
432    optional int32 sim_slot_index = 6;
433    optional bool is_multi_sim = 7;
434    optional int32 carrier_id = 8;
435    optional int64 total_time_millis = 9; // Duration needs to be rounded when pulled
436    optional bool is_emergency_only = 10;
437    optional bool is_internet_pdn_up = 11;
438    optional int32 fold_state = 12;
439    optional bool override_voice_service = 13;
440    optional bool isDataEnabled = 14;
441    optional bool is_iwlan_cross_sim = 15;
442    optional bool is_ntn = 16;
443    optional bool is_nb_iot_ntn = 17;
444    optional bool is_opportunistic = 18;
445
446    // Internal use only
447    optional int64 last_used_millis = 10001;
448}
449
450message CellularDataServiceSwitch {
451    optional int32 rat_from = 1;
452    optional int32 rat_to = 2;
453    optional int32 sim_slot_index = 3;
454    optional bool is_multi_sim = 4;
455    optional int32 carrier_id = 5;
456    optional int32 switch_count = 6;
457    optional bool is_opportunistic = 7;
458
459    // Internal use only
460    optional int64 last_used_millis = 10001;
461}
462
463message ImsRegistrationTermination {
464    optional int32 carrier_id = 1;
465    optional bool is_multi_sim = 2;
466    optional int32 rat_at_end = 3;
467    optional bool setup_failed = 4;
468    optional int32 reason_code = 5;
469    optional int32 extra_code = 6;
470    optional string extra_message = 7;
471    optional int32 count = 8;
472    optional bool is_iwlan_cross_sim = 9;
473
474    // Internal use only
475    optional int64 last_used_millis = 10001;
476}
477
478message ImsRegistrationStats {
479    reserved 16;
480    optional int32 carrier_id = 1;
481    optional int32 sim_slot_index = 2;
482    optional int32 rat = 3;
483    // Durations need to be rounded when pulled
484    optional int64 registered_millis = 4;
485    optional int64 voice_capable_millis = 5;
486    optional int64 voice_available_millis = 6;
487    optional int64 sms_capable_millis = 7;
488    optional int64 sms_available_millis = 8;
489    optional int64 video_capable_millis = 9;
490    optional int64 video_available_millis = 10;
491    optional int64 ut_capable_millis = 11;
492    optional int64 ut_available_millis = 12;
493    optional int64 registering_millis = 13;
494    optional int64 unregistered_millis = 14;
495    optional bool is_iwlan_cross_sim = 15;
496    optional int32 registered_times = 17;
497
498    // Internal use only
499    optional int64 last_used_millis = 10001;
500}
501
502// deprecated - please use NetworkRequestsV2 instead
503message NetworkRequests {
504    optional int32 carrier_id = 1;
505    optional int32 enterprise_request_count = 2;
506    optional int32 enterprise_release_count = 3;
507}
508
509message NetworkRequestsV2 {
510    enum NetworkCapability {
511        UNKNOWN = 0;
512        PRIORITIZE_LATENCY = 1;
513        PRIORITIZE_BANDWIDTH = 2;
514        CBS = 3;
515        ENTERPRISE = 4;
516        SATELLITE_INTERNET_RESTRICTED = 5;
517        SATELLITE_MMS_RESTRICTED = 6;
518        SATELLITE_IMS_RESTRICTED = 7;
519        SATELLITE_XCAP_RESTRICTED = 8;
520        SATELLITE_EIMS_RESTRICTED = 9;
521        SATELLITE_SUPL_RESTRICTED =10;
522    }
523    optional int32 carrier_id = 1;
524    optional NetworkCapability capability = 2;
525    optional int32 request_count = 3;
526}
527
528message ImsRegistrationFeatureTagStats {
529    optional int32 carrier_id = 1;
530    optional int32 slot_id = 2;
531    optional int32 feature_tag_name = 3;
532    optional int32 registration_tech = 4;
533    optional int64 registered_millis = 5;
534}
535
536message RcsClientProvisioningStats {
537    optional int32 carrier_id = 1;
538    optional int32 slot_id = 2;
539    optional int32 event = 3;
540    optional int32 count = 4;
541}
542
543message RcsAcsProvisioningStats {
544    optional int32 carrier_id = 1;
545    optional int32 slot_id = 2;
546    optional int32 response_code = 3;
547    optional int32 response_type = 4;
548    optional bool is_single_registration_enabled = 5;
549    optional int32 count = 6;
550    optional int64 state_timer_millis = 7;
551}
552
553message SipDelegateStats {
554    optional int32 dimension = 1;
555    optional int32 carrier_id = 2;
556    optional int32 slot_id = 3;
557    optional int32 destroy_reason = 4;
558    optional int64 uptime_millis = 5;
559}
560
561message SipTransportFeatureTagStats {
562    optional int32 carrier_id = 1;
563    optional int32 slot_id = 2;
564    optional int32 feature_tag_name = 3;
565    optional int32 sip_transport_denied_reason = 4;
566    optional int32 sip_transport_deregistered_reason = 5;
567    optional int64 associated_millis = 6;
568}
569
570message SipMessageResponse {
571    optional int32 carrier_id = 1;
572    optional int32 slot_id = 2;
573    optional int32 sip_message_method = 3;
574    optional int32 sip_message_response = 4;
575    optional int32 sip_message_direction = 5;
576    optional int32 message_error = 6;
577    optional int32 count = 7;
578}
579
580message SipTransportSession {
581    optional int32 carrier_id = 1;
582    optional int32 slot_id = 2;
583    optional int32 session_method = 3;
584    optional int32 sip_message_direction = 4;
585    optional int32 sip_response = 5;
586    optional int32 session_count = 6;
587    optional int32 ended_gracefully_count = 7;
588
589    // Internal use only
590    optional bool is_ended_gracefully = 10001;
591}
592
593message ImsDedicatedBearerListenerEvent {
594    optional int32 carrier_id = 1;
595    optional int32 slot_id = 2;
596    optional int32 rat_at_end = 3;
597    optional int32 qci = 4;
598    optional bool dedicated_bearer_established = 5;
599    optional int32 event_count = 6;
600}
601
602message ImsDedicatedBearerEvent {
603    optional int32 carrier_id = 1;
604    optional int32 slot_id = 2;
605    optional int32 rat_at_end = 3;
606    optional int32 qci = 4;
607    optional int32 bearer_state = 5;
608    optional bool local_connection_info_received = 6;
609    optional bool remote_connection_info_received = 7;
610    optional bool has_listeners = 8;
611    optional int32 count = 9;
612}
613
614message ImsRegistrationServiceDescStats {
615    optional int32 carrier_id = 1;
616    optional int32 slot_id = 2;
617    optional int32 service_id_name = 3;
618    optional float service_id_version = 4;
619    optional int32 registration_tech = 5;
620    optional int64 published_millis = 6;
621}
622
623message UceEventStats {
624    optional int32 carrier_id = 1;
625    optional int32 slot_id = 2;
626    optional int32 type = 3;
627    optional bool successful = 4;
628    optional int32 command_code = 5;
629    optional int32 network_response = 6;
630    optional int32 count = 7;
631}
632
633message PresenceNotifyEvent {
634    optional int32 carrier_id = 1;
635    optional int32 slot_id = 2;
636    optional int32 reason = 3;
637    optional bool content_body_received = 4;
638    optional int32 rcs_caps_count = 5;
639    optional int32 mmtel_caps_count = 6;
640    optional int32 no_caps_count = 7;
641    optional int32 count = 8;
642}
643
644message GbaEvent {
645    optional int32 carrier_id = 1;
646    optional int32 slot_id = 2;
647    optional bool successful = 3;
648    optional int32 failed_reason = 4;
649    optional int32 count = 5;
650}
651
652message UnmeteredNetworks {
653    optional int32 phone_id = 1;
654    optional int32 carrier_id = 2;
655    optional int64 unmetered_networks_bitmask = 3;
656}
657
658message OutgoingShortCodeSms {
659    optional int32 category = 1;
660    optional int32 xml_version = 2;
661    optional int32 short_code_sms_count = 3;
662}
663
664message EmergencyNumbersInfo {
665    enum ServiceCategory {
666        EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED = 0;
667        EMERGENCY_SERVICE_CATEGORY_POLICE = 1;
668        EMERGENCY_SERVICE_CATEGORY_AMBULANCE = 2;
669        EMERGENCY_SERVICE_CATEGORY_FIRE_BRIGADE = 3;
670        EMERGENCY_SERVICE_CATEGORY_MARINE_GUARD = 4;
671        EMERGENCY_SERVICE_CATEGORY_MOUNTAIN_RESCUE = 5;
672        EMERGENCY_SERVICE_CATEGORY_MIEC = 6;
673        EMERGENCY_SERVICE_CATEGORY_AIEC = 7;
674    }
675    enum Source {
676        EMERGENCY_NUMBER_SOURCE_NETWORK_SIGNALING = 0;
677        EMERGENCY_NUMBER_SOURCE_SIM = 1;
678        EMERGENCY_NUMBER_SOURCE_DATABASE = 2;
679        EMERGENCY_NUMBER_SOURCE_MODEM_CONFIG = 3;
680        EMERGENCY_NUMBER_SOURCE_DEFAULT = 4;
681    }
682    enum CallRoute {
683        EMERGENCY_CALL_ROUTE_UNKNOWN = 0;
684        EMERGENCY_CALL_ROUTE_EMERGENCY = 1;
685        EMERGENCY_CALL_ROUTE_NORMAL = 2;
686    }
687    optional bool is_db_version_ignored = 1;
688    optional int32 asset_version = 2;
689    optional int32 ota_version = 3;
690    optional string number = 4;
691    optional string country_iso = 5;
692    optional string mnc = 6;
693    optional CallRoute route = 7;
694    repeated string urns = 8;
695    repeated ServiceCategory service_categories = 9;
696    repeated Source sources = 10;
697}
698
699message SatelliteController {
700    optional int32 count_of_satellite_service_enablements_success = 1;
701    optional int32 count_of_satellite_service_enablements_fail = 2;
702    optional int32 count_of_outgoing_datagram_success = 3;
703    optional int32 count_of_outgoing_datagram_fail = 4;
704    optional int32 count_of_incoming_datagram_success = 5;
705    optional int32 count_of_incoming_datagram_fail = 6;
706    optional int32 count_of_datagram_type_sos_sms_success = 7;
707    optional int32 count_of_datagram_type_sos_sms_fail = 8;
708    optional int32 count_of_datagram_type_location_sharing_success = 9;
709    optional int32 count_of_datagram_type_location_sharing_fail = 10;
710    optional int32 count_of_provision_success = 11;
711    optional int32 count_of_provision_fail = 12;
712    optional int32 count_of_deprovision_success = 13;
713    optional int32 count_of_deprovision_fail = 14;
714    optional int32 total_service_uptime_sec = 15;
715    optional int32 total_battery_consumption_percent = 16;
716    optional int32 total_battery_charged_time_sec = 17;
717    optional int32 count_of_demo_mode_satellite_service_enablements_success = 18;
718    optional int32 count_of_demo_mode_satellite_service_enablements_fail = 19;
719    optional int32 count_of_demo_mode_outgoing_datagram_success = 20;
720    optional int32 count_of_demo_mode_outgoing_datagram_fail = 21;
721    optional int32 count_of_demo_mode_incoming_datagram_success = 22;
722    optional int32 count_of_demo_mode_incoming_datagram_fail = 23;
723    optional int32 count_of_datagram_type_keep_alive_success = 24;
724    optional int32 count_of_datagram_type_keep_alive_fail = 25;
725    optional int32 count_of_allowed_satellite_access = 26;
726    optional int32 count_of_disallowed_satellite_access = 27;
727    optional int32 count_of_satellite_access_check_fail = 28;
728    optional bool is_provisioned = 29;
729    optional int32 carrier_id = 30;
730    optional int32 count_of_satellite_allowed_state_changed_events = 31;
731    optional int32 count_of_successful_location_queries = 32;
732    optional int32 count_of_failed_location_queries = 33;
733    optional int32 count_of_p2p_sms_available_notification_shown = 34;
734    optional int32 count_of_p2p_sms_available_notification_removed = 35;
735    optional bool is_ntn_only_carrier = 36;
736    optional int32 version_of_satellite_access_config = 37;
737    optional int32 count_of_incoming_datagram_type_sos_sms_success = 38;
738    optional int32 count_of_incoming_datagram_type_sos_sms_fail = 39;
739    optional int32 count_of_outgoing_datagram_type_sms_success = 40;
740    optional int32 count_of_outgoing_datagram_type_sms_fail = 41;
741    optional int32 count_of_incoming_datagram_type_sms_success = 42;
742    optional int32 count_of_incoming_datagram_type_sms_fail = 43;
743}
744
745message SatelliteSession {
746    optional int32 satellite_service_initialization_result = 1;
747    optional int32 satellite_technology = 2;
748    optional int32 count = 3;
749    optional int32 satellite_service_termination_result = 4;
750    optional int64 initialization_processing_time_millis = 5;
751    optional int64 termination_processing_time_millis = 6;
752    optional int32 session_duration_seconds = 7;
753    optional int32 count_of_outgoing_datagram_success = 8;
754    optional int32 count_of_outgoing_datagram_failed = 9;
755    optional int32 count_of_incoming_datagram_success = 10;
756    optional int32 count_of_incoming_datagram_failed = 11;
757    optional bool is_demo_mode = 12;
758    optional int32 max_ntn_signal_strength_level = 13;
759    optional int32 carrier_id = 14;
760    optional int32 count_of_satellite_notification_displayed = 15;
761    optional int32 count_of_auto_exit_due_to_screen_off = 16;
762    optional int32 count_of_auto_exit_due_to_tn_network = 17;
763    optional bool is_emergency = 18;
764    optional bool is_ntn_only_carrier = 19;
765    optional int32 max_inactivity_duration_sec = 20;
766}
767
768message SatelliteIncomingDatagram {
769    optional int32 result_code = 1;
770    optional int32 datagram_size_bytes = 2;
771    optional int64 datagram_transfer_time_millis = 3;
772    optional bool is_demo_mode = 4;
773    optional int32 carrier_id = 5;
774    optional bool is_ntn_only_carrier = 6;
775}
776
777message SatelliteOutgoingDatagram {
778    optional int32 datagram_type = 1;
779    optional int32 result_code = 2;
780    optional int32 datagram_size_bytes = 3;
781    optional int64 datagram_transfer_time_millis = 4;
782    optional bool is_demo_mode = 5;
783    optional int32 carrier_id = 6;
784    optional bool is_ntn_only_carrier = 7;
785}
786
787message SatelliteProvision {
788    optional int32 result_code = 1;
789    optional int32 provisioning_time_sec = 2;
790    optional bool is_provision_request = 3;
791    optional bool is_canceled = 4;
792    optional int32 carrier_id = 5;
793    optional bool is_ntn_only_carrier = 6;
794}
795
796message SatelliteSosMessageRecommender {
797    optional bool is_display_sos_message_sent = 1;
798    optional int32 count_of_timer_started = 2;
799    optional bool is_ims_registered = 3;
800    optional int32 cellular_service_state = 4;
801    optional int32 count = 5;
802    optional bool is_multi_sim = 6;
803    optional int32 recommending_handover_type = 7;
804    optional bool is_satellite_allowed_in_current_location = 8;
805    optional bool is_wifi_connected = 9;
806    optional int32 carrier_id = 10;
807    optional bool is_ntn_only_carrier = 11;
808}
809
810message DataNetworkValidation {
811    optional int32 network_type = 1;
812    optional int32 apn_type_bitmask = 2;
813    optional int32 signal_strength = 3;
814    optional int32 validation_result = 4;
815    optional int64 elapsed_time_in_millis = 5;
816    optional bool handover_attempted = 6;
817    optional int32 network_validation_count = 7;
818}
819
820message CarrierRoamingSatelliteSession {
821    optional int32 carrier_id = 1;
822    optional bool is_ntn_roaming_in_home_country = 2;
823    optional int32 total_satellite_mode_time_sec = 3;
824    optional int32 number_of_satellite_connections = 4;
825    optional int32 avg_duration_of_satellite_connection_sec = 5;
826    optional int32 satellite_connection_gap_min_sec = 6;
827    optional int32 satellite_connection_gap_avg_sec = 7;
828    optional int32 satellite_connection_gap_max_sec = 8;
829    optional int32 rsrp_avg = 9;
830    optional int32 rsrp_median = 10;
831    optional int32 rssnr_avg = 11;
832    optional int32 rssnr_median = 12;
833    optional int32 count_of_incoming_sms = 13;
834    optional int32 count_of_outgoing_sms = 14;
835    optional int32 count_of_incoming_mms = 15;
836    optional int32 count_of_outgoing_mms = 16;
837    repeated int32 supported_satellite_services = 17;
838    optional int32 service_data_policy = 18;
839    optional int64 satellite_data_consumed_bytes = 19;
840    optional bool is_multi_sim = 20;
841    optional bool is_nb_iot_ntn = 21;
842}
843
844message CarrierRoamingSatelliteControllerStats {
845    optional int32 config_data_source = 1;
846    optional int32 count_of_entitlement_status_query_request = 2;
847    optional int32 count_of_satellite_config_update_request = 3;
848    optional int32 count_of_satellite_notification_displayed = 4;
849    optional int32 satellite_session_gap_min_sec = 5;
850    optional int32 satellite_session_gap_avg_sec = 6;
851    optional int32 satellite_session_gap_max_sec = 7;
852    optional int32 carrier_id = 8;
853    optional bool is_device_entitled = 9;
854    optional bool is_multi_sim = 10;
855    optional int32 count_of_satellite_sessions = 11;
856    optional bool is_nb_iot_ntn = 12;
857}
858
859message SatelliteEntitlement {
860    optional int32 carrier_id = 1;
861    optional int32 result = 2;
862    optional int32 entitlement_status = 3;
863    optional bool is_retry = 4;
864    optional int32 count = 5;
865    optional bool is_allowed_service_entitlement = 6;
866    repeated int32 entitlement_service_type = 7;
867    optional int32 entitlement_data_policy = 8;
868}
869
870message SatelliteConfigUpdater {
871    optional int32 config_version = 1;
872    optional int32 oem_config_result = 2;
873    optional int32 carrier_config_result = 3;
874    optional int32 count = 4;
875}
876
877message SatelliteAccessController {
878    optional int32 access_control_type = 1;
879    optional int64 location_query_time_millis = 2;
880    optional int64 on_device_lookup_time_millis = 3;
881    optional int64 total_checking_time_millis = 4;
882    optional bool is_allowed = 5;
883    optional bool is_emergency = 6;
884    optional int32 result_code = 7;
885    repeated string country_codes = 8;
886    optional int32 config_data_source = 9;
887    optional int32 carrier_id = 10;
888    optional int32 triggering_event = 11;
889    optional bool is_ntn_only_carrier = 12;
890}
891