• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2023 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 android.os.statsd.telephony;
20
21import "frameworks/proto_logging/stats/atoms.proto";
22import "frameworks/proto_logging/stats/atom_field_options.proto";
23import "frameworks/proto_logging/stats/enums/telephony/enums.proto";
24
25option java_package = "com.android.os.telephony";
26option java_multiple_files = true;
27
28extend Atom {
29    optional EmergencyNumbersInfo emergency_numbers_info = 10180 [(module) = "telephony"];
30}
31
32/**
33 * pulled atom to capture all emergency numbers information stored.
34 */
35message EmergencyNumbersInfo {
36    // flag for db version ignored
37    optional bool is_db_version_ignored = 1;
38
39    // version number read from assets
40    optional int32 asset_version = 2;
41
42    // version number from OTA updated DB
43    optional int32 ota_version = 3;
44
45    // the emergency number
46    optional string number = 4;
47
48    // iso code for the country
49    optional string country_iso = 5;
50
51    // Carrier mnc
52    optional string mnc = 6;
53
54    // call route associated with emergency number.
55    optional android.telephony.CallRoute route = 7;
56
57    // list of URNs associated with emergency number.
58    repeated string urns = 8;
59
60    // service categories of the emergency number.
61    repeated android.telephony.ServiceCategory service_categories = 9;
62
63    // sources of the captured emergency number.
64    repeated android.telephony.Source sources = 10;
65}
66
67