blob: e91b9c1a5fda6cc82113ba361d16a2357597af1c [file] [log] [blame]
Jayachandran C262b6062020-07-22 15:53:58 -07001/*
2 * Copyright (C) 2020 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@1.6;
18
Jayachandran C9bc276b2020-07-24 00:46:58 -070019import @1.0::RadioResponseInfo;
Jayachandran C262b6062020-07-22 15:53:58 -070020import @1.5::IRadioResponse;
Jayachandran C9bc276b2020-07-24 00:46:58 -070021import @1.6::SetupDataCallResult;
Jayachandran C262b6062020-07-22 15:53:58 -070022
23/**
24 * Interface declaring response functions to solicited radio requests.
25 */
26interface IRadioResponse extends @1.5::IRadioResponse {
Jayachandran C9bc276b2020-07-24 00:46:58 -070027 /**
28 * @param info Response info struct containing response type, serial no. and error
29 * @param dcResponse SetupDataCallResult defined in types.hal
30 *
31 * Valid errors returned:
32 * RadioError:NONE must be returned on both success and failure of setup with the
33 * DataCallResponse.status containing the actual status
34 * For all other errors the DataCallResponse is ignored.
35 * RadioError:RADIO_NOT_AVAILABLE
36 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
37 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
38 * RadioError:INVALID_ARGUMENTS
39 * RadioError:INTERNAL_ERR
40 * RadioError:NO_RESOURCES if the vendor is unable handle due to resources
41 * are full.
42 * RadioError:SIM_ABSENT
43 */
44 oneway setupDataCallResponse_1_6(RadioResponseInfo info, SetupDataCallResult dcResponse);
45
46 /**
47 * @param info Response info struct containing response type, serial no. and error
48 * @param dcResponse List of SetupDataCallResult as defined in types.hal
49 *
50 * Valid errors returned:
51 * RadioError:NONE
52 * RadioError:RADIO_NOT_AVAILABLE
53 * RadioError:INTERNAL_ERR
54 * RadioError:SIM_ABSENT
55 */
56 oneway getDataCallListResponse_1_6(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
Jayachandran C262b6062020-07-22 15:53:58 -070057};