blob: 509eef8f7d1ba3db3e4c4ddc9c475feece67c770 [file] [log] [blame]
sqian8ffbfa52018-08-29 20:26:03 -07001/*
2 * Copyright (C) 2018 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
17package android.hardware.radio@1.3;
18
19import @1.0::RadioIndicationType;
20import @1.2::IRadioIndication;
21
22/**
23 * Interface declaring unsolicited radio indications.
24 */
25interface IRadioIndication extends @1.2::IRadioIndication {
26 /**
sqian968f5312018-09-19 14:10:42 -070027 * Report the current list of emergency numbers
sqian8ffbfa52018-08-29 20:26:03 -070028 *
sqian968f5312018-09-19 14:10:42 -070029 * Each emergency number (@1.3::EmergencyNumber) in the emergency number list contains a
30 * dialing number, zero or more service category(s), mobile country code, and source(s) that
31 * indicate where it comes from.
sqian8ffbfa52018-08-29 20:26:03 -070032 *
sqian968f5312018-09-19 14:10:42 -070033 * Radio must report all the valid emergency numbers with known mobile country code and
34 * emergency service categories from all available sources including network signaling, sim,
35 * modem/oem configuration, and default configuration (112 and 911 must be always available;
36 * additionally, 000, 08, 110, 999, 118 and 119 must be available when sim is not present).
37 * Radio shall not report emergency numbers that are invalid in the current locale. The
38 * reported emergency number list must not have duplicate @1.3::EmergencyNumber entries. Please
39 * refer the documentation of @1.3::EmergencyNumber to construct each emergency number to
40 * report.
sqian8ffbfa52018-08-29 20:26:03 -070041 *
sqian968f5312018-09-19 14:10:42 -070042 * Radio must report the complete list of emergency numbers whenever the emergency numbers in
43 * the list are changed or whenever the client and the radio server are connected.
sqian8ffbfa52018-08-29 20:26:03 -070044 *
sqian968f5312018-09-19 14:10:42 -070045 * Reference: 3gpp 22.101, Section 10 - Emergency Calls
sqian8ffbfa52018-08-29 20:26:03 -070046 *
47 * @param type Type of radio indication
sqian968f5312018-09-19 14:10:42 -070048 * @param emergencyNumberList Current list of emergency numbers known to radio.
sqian8ffbfa52018-08-29 20:26:03 -070049 */
50 oneway currentEmergencyNumberList(RadioIndicationType type,
51 vec<EmergencyNumber> emergencyNumberList);
52};