Malcolm Chen | f168f0b | 2018-11-26 15:16:10 -0800 | [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.2::IRadioResponse; |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame] | 20 | import @1.0::RadioResponseInfo; |
Malcolm Chen | f168f0b | 2018-11-26 15:16:10 -0800 | [diff] [blame] | 21 | |
| 22 | /** |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame] | 23 | * Note: IRadio 1.3 is an intermediate layer between Android P and Android Q. It's specifically |
| 24 | * designed for CBRS related interfaces. All other interfaces for Q are added in IRadio 1.4. |
| 25 | * |
Malcolm Chen | f168f0b | 2018-11-26 15:16:10 -0800 | [diff] [blame] | 26 | * Interface declaring response functions to solicited radio requests. |
| 27 | */ |
| 28 | interface IRadioResponse extends @1.2::IRadioResponse { |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame] | 29 | /** |
| 30 | * @param info Response info struct containing response type, serial no. and error |
| 31 | * |
| 32 | * Valid errors returned: |
| 33 | * RadioError:NONE |
| 34 | * RadioError:RADIO_NOT_AVAILABLE |
| 35 | * RadioError:INTERNAL_ERR |
| 36 | * RadioError:INVALID_ARGUMENTS |
| 37 | */ |
| 38 | oneway setSystemSelectionChannelsResponse(RadioResponseInfo info); |
| 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:RADIO_NOT_AVAILABLE |
Nazanin Bakhshi | 50eed92 | 2019-01-17 10:05:10 -0800 | [diff] [blame] | 46 | * RadioError:MODEM_ERR |
Nazanin Bakhshi | 52b3503 | 2019-05-15 15:28:42 -0700 | [diff] [blame] | 47 | * RadioError:INVALID_STATE: this is for the case that the API is called in a single-sim |
| 48 | * mode, or when there is only one modem available, as this API should only |
| 49 | * be called in multi sim status. |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame] | 50 | */ |
| 51 | oneway enableModemResponse(RadioResponseInfo info); |
Nazanin Bakhshi | 50eed92 | 2019-01-17 10:05:10 -0800 | [diff] [blame] | 52 | |
| 53 | /** |
| 54 | * @param info Response info struct containing response type, serial no. and error |
| 55 | * |
| 56 | * Valid errors returned: |
| 57 | * RadioError:NONE |
| 58 | * RadioError:RADIO_NOT_AVAILABLE |
| 59 | * RadioError:MODEM_ERR |
| 60 | */ |
| 61 | oneway getModemStackStatusResponse(RadioResponseInfo info, bool isEnabled); |
Malcolm Chen | f168f0b | 2018-11-26 15:16:10 -0800 | [diff] [blame] | 62 | }; |