sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 17 | package android.hardware.radio@1.4; |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 18 | |
| 19 | import @1.0::RadioIndicationType; |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 20 | import @1.3::IRadioIndication; |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 21 | |
| 22 | /** |
| 23 | * Interface declaring unsolicited radio indications. |
| 24 | */ |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 25 | interface IRadioIndication extends @1.3::IRadioIndication { |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 26 | /** |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 27 | * Report the current list of emergency numbers |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 28 | * |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 29 | * Each emergency number (@1.4::EmergencyNumber) in the emergency number list contains a |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 30 | * dialing number, zero or more service category(s), mobile country code, and source(s) that |
| 31 | * indicate where it comes from. |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 32 | * |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 33 | * 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 |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 38 | * reported emergency number list must not have duplicate @1.4::EmergencyNumber entries. Please |
| 39 | * refer the documentation of @1.4::EmergencyNumber to construct each emergency number to |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 40 | * report. |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 41 | * |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 42 | * 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. |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 44 | * |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 45 | * Reference: 3gpp 22.101, Section 10 - Emergency Calls |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 46 | * |
| 47 | * @param type Type of radio indication |
sqian | 968f531 | 2018-09-19 14:10:42 -0700 | [diff] [blame] | 48 | * @param emergencyNumberList Current list of emergency numbers known to radio. |
sqian | 8ffbfa5 | 2018-08-29 20:26:03 -0700 | [diff] [blame] | 49 | */ |
| 50 | oneway currentEmergencyNumberList(RadioIndicationType type, |
| 51 | vec<EmergencyNumber> emergencyNumberList); |
Pengquan Meng | 1d4e8ae | 2018-11-07 16:22:32 -0800 | [diff] [blame] | 52 | |
| 53 | /** |
| 54 | * Request all of the current cell information known to the radio. |
| 55 | * |
| 56 | * @param type Type of radio indication |
| 57 | * @param records Current cell information |
| 58 | */ |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 59 | oneway cellInfoList_1_4(RadioIndicationType type, vec<CellInfo> records); |
Pengquan Meng | 1d4e8ae | 2018-11-07 16:22:32 -0800 | [diff] [blame] | 60 | |
| 61 | /** |
| 62 | * Incremental network scan results |
| 63 | */ |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 64 | oneway networkScanResult_1_4(RadioIndicationType type, NetworkScanResult result); |
Pengquan Meng | 7687650 | 2018-11-14 19:33:25 -0800 | [diff] [blame] | 65 | |
| 66 | /** |
| 67 | * Indicates physical channel configurations. |
| 68 | * |
| 69 | * An empty configs list indicates that the radio is in idle mode. |
| 70 | * |
| 71 | * @param type Type of radio indication |
| 72 | * @param configs Vector of PhysicalChannelConfigs |
| 73 | */ |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 74 | oneway currentPhysicalChannelConfigs_1_4(RadioIndicationType type, |
Pengquan Meng | 7687650 | 2018-11-14 19:33:25 -0800 | [diff] [blame] | 75 | vec<PhysicalChannelConfig> configs); |
Malcolm Chen | 638f005 | 2018-11-26 13:11:03 -0800 | [diff] [blame] | 76 | }; |