Malcolm Chen | ded4399 | 2018-11-27 20:23:13 -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.config@1.1; |
| 18 | |
| 19 | import @1.0::IRadioConfig; |
| 20 | import @1.1::IRadioConfigResponse; |
| 21 | import @1.1::PhoneCapability; |
| 22 | |
| 23 | /** |
| 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 added in IRadioConfig 1.2. |
| 27 | * |
| 28 | * This interface is used by telephony and telecom to talk to cellular radio for the purpose of |
| 29 | * radio configuration, and it is not associated with any specific modem or slot. |
| 30 | * All the functions have minimum one parameter: |
| 31 | * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the |
| 32 | * duration of a method call. If clients provide colliding serials (including passing the same |
| 33 | * serial to different methods), multiple responses (one for each method call) must still be served. |
| 34 | */ |
| 35 | interface IRadioConfig extends @1.0::IRadioConfig { |
| 36 | /** |
| 37 | * Request current phone capability. |
| 38 | * |
| 39 | * @param serial Serial number of request. |
| 40 | * |
| 41 | * Response callback is IRadioResponse.getPhoneCapabilityResponse() which |
| 42 | * will return <@1.1::PhoneCapability>. |
| 43 | */ |
| 44 | oneway getPhoneCapability(int32_t serial); |
| 45 | |
| 46 | /** |
| 47 | * Set preferred data modem Id. |
| 48 | * In a multi-SIM device, notify modem layer which logical modem will be used primarily |
| 49 | * for data. It helps modem with resource optimization and decisions of what data connections |
| 50 | * should be satisfied. |
| 51 | * |
| 52 | * @param serial Serial number of request. |
| 53 | * @param modem Id the logical modem ID, which should match one of modem IDs returned |
| 54 | * from getPhoneCapability(). |
| 55 | * |
| 56 | * Response callback is IRadioConfigResponse.setPreferredDataModemResponse() |
| 57 | */ |
| 58 | oneway setPreferredDataModem(int32_t serial, uint8_t modemId); |
| 59 | }; |