Jordan Liu | 57cb7b8 | 2018-10-18 10:23:15 -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.config@1.1; |
| 18 | |
Jordan Liu | 57cb7b8 | 2018-10-18 10:23:15 -0700 | [diff] [blame] | 19 | import @1.0::IRadioConfigResponse; |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame^] | 20 | import @1.1::PhoneCapability; |
| 21 | import android.hardware.radio@1.0::RadioResponseInfo; |
Jordan Liu | 57cb7b8 | 2018-10-18 10:23:15 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame^] | 24 | * Note: IRadioConfig 1.1 is an intermediate layer between Android P and Android Q. |
| 25 | * It's specifically designed for CBRS related interfaces. All other interfaces |
| 26 | * for Q are be added in IRadioConfig 1.2. |
| 27 | * |
Jordan Liu | 57cb7b8 | 2018-10-18 10:23:15 -0700 | [diff] [blame] | 28 | * Interface declaring response functions to solicited radio config requests. |
| 29 | */ |
| 30 | interface IRadioConfigResponse extends @1.0::IRadioConfigResponse { |
Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -0800 | [diff] [blame^] | 31 | /** |
| 32 | * @param info Response info struct containing response type, serial no. and error |
| 33 | * @param phoneCapability <@1.1::PhoneCapability> it defines modem's capability for example |
| 34 | * how many logical modems it has, how many data connections it supports. |
| 35 | * |
| 36 | * Valid errors returned: |
| 37 | * RadioError:NONE |
| 38 | * RadioError:RADIO_NOT_AVAILABLE |
| 39 | * RadioError:INTERNAL_ERR |
| 40 | */ |
| 41 | oneway getPhoneCapabilityResponse(RadioResponseInfo info, PhoneCapability phoneCapability); |
| 42 | |
| 43 | /** |
| 44 | * @param info Response info struct containing response type, serial no. and error |
| 45 | * |
| 46 | * Valid errors returned: |
| 47 | * RadioError:NONE |
| 48 | * RadioError:RADIO_NOT_AVAILABLE |
| 49 | * RadioError:INTERNAL_ERR |
| 50 | * RadioError:INVALID_ARGUMENTS |
| 51 | */ |
| 52 | oneway setPreferredDataModemResponse(RadioResponseInfo info); |
Jordan Liu | 57cb7b8 | 2018-10-18 10:23:15 -0700 | [diff] [blame] | 53 | }; |