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 | |
| 17 | package android.hardware.radio@1.3; |
| 18 | |
| 19 | import @1.0::RadioResponseInfo; |
| 20 | import @1.2::IRadioResponse; |
| 21 | |
| 22 | /** |
| 23 | * Interface declaring response functions to solicited radio requests. |
| 24 | */ |
| 25 | interface IRadioResponse extends @1.2::IRadioResponse { |
| 26 | /** |
| 27 | * @param info Response info struct containing response type, serial no. and error |
| 28 | * @param emergencyNumberList List of current Emergency Number information known to radio. |
| 29 | * |
| 30 | * Radio must collect all sources of the emergency number to build the response. For example, |
| 31 | * network operator signals, sim card information, modem configuration, OEM configuration (for |
| 32 | * example, OEM system properties), always-available emergency numbers and sim-absence |
| 33 | * emergency numbers, etc. |
| 34 | * |
| 35 | * The returned list of emergency numbers must not have duplicate @1.3::EmergencyNumber. Please |
| 36 | * refer the document of @1.3::EmergencyNumber to construct each emergency number to be |
| 37 | * returned. |
| 38 | * |
| 39 | * Reference: 3GPP TS 22.101 version 9.1.0 Release 9 |
| 40 | * |
| 41 | * Valid errors returned: |
| 42 | * RadioError:NONE |
| 43 | * RadioError:RADIO_NOT_AVAILABLE |
| 44 | * RadioError:NO_MEMORY |
| 45 | * RadioError:MODEM_ERR |
| 46 | */ |
| 47 | oneway getCurrentEmergencyNumberListResponse(RadioResponseInfo info, |
| 48 | vec<EmergencyNumber> emergencyNumberList); |
| 49 | |
| 50 | /** |
| 51 | * @param info Response info struct containing response type, serial no. and error |
| 52 | * |
| 53 | * Valid errors returned: |
| 54 | * RadioError:NONE |
| 55 | * RadioError:RADIO_NOT_AVAILABLE (radio resetting) |
| 56 | * RadioError:DIAL_MODIFIED_TO_USSD |
| 57 | * RadioError:DIAL_MODIFIED_TO_SS |
| 58 | * RadioError:DIAL_MODIFIED_TO_DIAL |
| 59 | * RadioError:INVALID_ARGUMENTS |
| 60 | * RadioError:NO_MEMORY |
| 61 | * RadioError:NO_RESOURCES |
| 62 | * RadioError:INTERNAL_ERR |
| 63 | * RadioError:FDN_CHECK_FAILURE |
| 64 | * RadioError:MODEM_ERR |
| 65 | * RadioError:NO_SUBSCRIPTION |
| 66 | * RadioError:NO_NETWORK_FOUND |
| 67 | * RadioError:INVALID_CALL_ID |
| 68 | * RadioError:DEVICE_IN_USE |
| 69 | * RadioError:ABORTED |
| 70 | * RadioError:INVALID_MODEM_STATE |
| 71 | * RadioError:CANCELLED |
| 72 | */ |
| 73 | oneway emergencyDialResponse(RadioResponseInfo info); |
| 74 | }; |