Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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.5; |
| 18 | |
| 19 | import @1.0::RadioResponseInfo; |
| 20 | import @1.4::IRadioResponse; |
Nathan Harold | 4bb9d31 | 2019-12-23 14:34:26 -0800 | [diff] [blame] | 21 | import @1.5::BarringInfo; |
Nathan Harold | 500733c | 2020-01-20 17:04:16 -0800 | [diff] [blame^] | 22 | import @1.5::CellInfo; |
Jack Yu | 7f6c8d0 | 2019-12-09 14:02:56 -0800 | [diff] [blame] | 23 | import @1.5::SetupDataCallResult; |
Nathan Harold | 8f6b67b | 2020-01-16 17:00:49 -0800 | [diff] [blame] | 24 | import @1.5::RegStateResult; |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Interface declaring response functions to solicited radio requests. |
| 28 | */ |
| 29 | interface IRadioResponse extends @1.4::IRadioResponse { |
sqian | f1850bf | 2019-11-12 18:26:30 -0800 | [diff] [blame] | 30 | /** |
| 31 | * @param info Response info struct containing response type, serial no. and error |
| 32 | * |
| 33 | * Valid errors returned: |
| 34 | * RadioError:NONE |
| 35 | * RadioError:INVALID_ARGUMENTS |
| 36 | * RadioError:RADIO_NOT_AVAILABLE |
| 37 | */ |
| 38 | oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 39 | |
| 40 | /** |
| 41 | * @param info Response info struct containing response type, serial no. and error |
| 42 | * |
| 43 | * Valid errors returned: |
| 44 | * RadioError:NONE |
| 45 | * RadioError:SIM_ABSENT |
| 46 | * RadioError:RADIO_NOT_AVAILABLE |
| 47 | * RadioError:INTERNAL_ERR |
| 48 | * RadioError:BUSY |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 49 | */ |
| 50 | oneway enableUiccApplicationsResponse(RadioResponseInfo info); |
| 51 | |
| 52 | /** |
| 53 | * @param info Response info struct containing response type, serial no. and error |
| 54 | * @param enabled whether Uicc applications are enabled. |
| 55 | * |
| 56 | * Valid errors returned: |
| 57 | * RadioError:NONE |
| 58 | * RadioError:SIM_ABSENT |
| 59 | * RadioError:RADIO_NOT_AVAILABLE |
| 60 | * RadioError:INTERNAL_ERR |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 61 | */ |
| 62 | oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled); |
| 63 | |
| 64 | /** |
| 65 | * @param info Response info struct containing response type, serial no. and error |
Sarah Chin | b7709bb | 2019-11-01 13:19:31 -0700 | [diff] [blame] | 66 | * |
| 67 | * Valid errors returned: |
| 68 | * RadioError:NONE |
| 69 | * RadioError:RADIO_NOT_AVAILABLE |
| 70 | * RadioError:INTERNAL_ERR |
| 71 | * RadioError:INVALID_ARGUMENTS |
| 72 | */ |
| 73 | oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info); |
| 74 | |
| 75 | /** |
| 76 | * @param info Response info struct containing response type, serial no. and error |
| 77 | * |
| 78 | * Valid errors returned: |
| 79 | * RadioError:NONE |
| 80 | * RadioError:RADIO_NOT_AVAILABLE |
| 81 | * RadioError:DEVICE_IN_USE |
| 82 | * RadioError:INTERNAL_ERR |
| 83 | * RadioError:MODEM_ERR |
| 84 | * RadioError:INVALID_ARGUMENTS |
| 85 | */ |
| 86 | oneway startNetworkScanResponse_1_5(RadioResponseInfo info); |
Sarah Chin | 039d542 | 2019-11-05 15:39:32 -0800 | [diff] [blame] | 87 | |
| 88 | /** |
| 89 | * @param info Response info struct containing response type, serial no. and error |
| 90 | * @param dcResponse SetupDataCallResult defined in types.hal |
| 91 | * |
| 92 | * Valid errors returned: |
| 93 | * RadioError:NONE must be returned on both success and failure of setup with the |
| 94 | * DataCallResponse.status containing the actual status |
| 95 | * For all other errors the DataCallResponse is ignored. |
| 96 | * RadioError:RADIO_NOT_AVAILABLE |
| 97 | * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW |
| 98 | * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL |
| 99 | * RadioError:REQUEST_NOT_SUPPORTED |
| 100 | * RadioError:INVALID_ARGUMENTS |
| 101 | * RadioError:INTERNAL_ERR |
| 102 | * RadioError:NO_RESOURCES |
| 103 | * RadioError:SIM_ABSENT |
| 104 | */ |
| 105 | oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse); |
| 106 | |
| 107 | /** |
| 108 | * @param info Response info struct containing response type, serial no. and error |
| 109 | * |
| 110 | * Valid errors returned: |
| 111 | * RadioError:NONE |
| 112 | * RadioError:RADIO_NOT_AVAILABLE |
| 113 | * RadioError:SUBSCRIPTION_NOT_AVAILABLE |
| 114 | * RadioError:NO_MEMORY |
| 115 | * RadioError:INTERNAL_ERR |
| 116 | * RadioError:SYSTEM_ERR |
| 117 | * RadioError:MODEM_ERR |
| 118 | * RadioError:INVALID_ARGUMENTS |
| 119 | * RadioError:NOT_PROVISIONED |
| 120 | * RadioError:REQUEST_NOT_SUPPORTED |
| 121 | * RadioError:NO_RESOURCES |
| 122 | * RadioError:CANCELLED |
| 123 | */ |
| 124 | oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info); |
| 125 | |
| 126 | /** |
| 127 | * @param info Response info struct containing response type, serial no. and error |
| 128 | * |
| 129 | * Valid errors returned: |
| 130 | * RadioError:NONE |
| 131 | * RadioError:RADIO_NOT_AVAILABLE |
| 132 | * RadioError:SUBSCRIPTION_NOT_AVAILABLE |
| 133 | * RadioError:INTERNAL_ERR |
| 134 | * RadioError:NO_MEMORY |
| 135 | * RadioError:NO_RESOURCES |
| 136 | * RadioError:CANCELLED |
| 137 | * RadioError:REQUEST_NOT_SUPPORTED |
| 138 | * RadioError:SIM_ABSENT |
| 139 | */ |
| 140 | oneway setDataProfileResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | 8f8e3d7 | 2019-12-16 18:53:58 -0800 | [diff] [blame] | 141 | |
| 142 | /** |
| 143 | * @param info Response info struct containing response type, serial no. and error |
| 144 | * |
| 145 | * Valid errors returned: |
| 146 | * RadioError:NONE |
| 147 | * RadioError:INTERNAL_ERR |
| 148 | * RadioError:INVALID_ARGUMENTS |
| 149 | */ |
| 150 | oneway setRadioPowerResponse_1_5(RadioResponseInfo info); |
Nathan Harold | bacb821 | 2019-12-27 12:58:32 -0800 | [diff] [blame] | 151 | |
| 152 | /** |
| 153 | * @param info Response info struct containing response type, serial no. and error |
| 154 | * |
| 155 | * Valid errors returned: |
| 156 | * RadioError:NONE |
| 157 | * RadioError:INVALID_ARGUMENTS |
| 158 | * RadioError:RADIO_NOT_AVAILABLE |
| 159 | * RadioError:INTERNAL_ERR |
| 160 | * RadioError:SYSTEM_ERR |
| 161 | */ |
| 162 | oneway setIndicationFilterResponse_1_5(RadioResponseInfo info); |
Nathan Harold | 4bb9d31 | 2019-12-23 14:34:26 -0800 | [diff] [blame] | 163 | |
| 164 | /** |
| 165 | * @param info Response info struct containing response type, serial no. and error |
| 166 | * @param barringInfos a vector of barring info for all barring service types |
| 167 | * |
| 168 | * Valid errors returned: |
| 169 | * RadioError:NONE |
| 170 | * RadioError:RADIO_NOT_AVAILABLE |
| 171 | * RadioError:INTERNAL_ERR |
| 172 | * RadioError:MODEM_ERR |
| 173 | */ |
| 174 | oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos); |
Nathan Harold | 8f6b67b | 2020-01-16 17:00:49 -0800 | [diff] [blame] | 175 | |
| 176 | /** |
| 177 | * @param info Response info struct containing response type, serial no. and error |
| 178 | * @param voiceRegResponse Current Voice registration response as defined by RegStateResult |
| 179 | * in types.hal |
| 180 | * |
| 181 | * Valid errors returned: |
| 182 | * RadioError:NONE |
| 183 | * RadioError:RADIO_NOT_AVAILABLE |
| 184 | * RadioError:INTERNAL_ERR |
| 185 | */ |
| 186 | oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info, |
| 187 | RegStateResult voiceRegResponse); |
| 188 | |
| 189 | /** |
| 190 | * @param info Response info struct containing response type, serial no. and error |
| 191 | * @param dataRegResponse Current Data registration response as defined by RegStateResult in |
| 192 | * types.hal |
| 193 | * |
| 194 | * Valid errors returned: |
| 195 | * RadioError:NONE |
| 196 | * RadioError:RADIO_NOT_AVAILABLE |
| 197 | * RadioError:INTERNAL_ERR |
| 198 | * RadioError:NOT_PROVISIONED |
| 199 | */ |
| 200 | oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info, |
| 201 | RegStateResult dataRegResponse); |
Nathan Harold | 500733c | 2020-01-20 17:04:16 -0800 | [diff] [blame^] | 202 | |
| 203 | /** |
| 204 | * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo. |
| 205 | * |
| 206 | * @param info Response info struct containing response type, serial no. and error |
| 207 | * @param cellInfo List of current cell information known to radio |
| 208 | * |
| 209 | * Valid errors returned: |
| 210 | * RadioError:NONE |
| 211 | * RadioError:RADIO_NOT_AVAILABLE |
| 212 | * RadioError:INTERNAL_ERR |
| 213 | */ |
| 214 | oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo); |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 215 | }; |