blob: 42a31b1a84e58c0c37645258ddff9654e410ec1d [file] [log] [blame]
Jordan Liu57cb7b82018-10-18 10:23:15 -07001/*
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
17package android.hardware.radio.config@1.1;
18
Jordan Liu57cb7b82018-10-18 10:23:15 -070019import @1.0::IRadioConfigResponse;
Malcolm Chended43992018-11-27 20:23:13 -080020import @1.1::PhoneCapability;
21import android.hardware.radio@1.0::RadioResponseInfo;
Jordan Liu57cb7b82018-10-18 10:23:15 -070022
23/**
Malcolm Chended43992018-11-27 20:23:13 -080024 * 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 Liu57cb7b82018-10-18 10:23:15 -070028 * Interface declaring response functions to solicited radio config requests.
29 */
30interface IRadioConfigResponse extends @1.0::IRadioConfigResponse {
Malcolm Chended43992018-11-27 20:23:13 -080031 /**
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 Liu57cb7b82018-10-18 10:23:15 -070053};