blob: 2ed789a7ab85339922c6a97bed53e2828faa019d [file] [log] [blame]
Malcolm Chen360e1f92019-10-02 11:38:13 -07001/*
2 * Copyright (C) 2019 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.5;
18
19import @1.0::RadioResponseInfo;
20import @1.4::IRadioResponse;
Nathan Harold4bb9d312019-12-23 14:34:26 -080021import @1.5::BarringInfo;
Jack Yu7f6c8d02019-12-09 14:02:56 -080022import @1.5::SetupDataCallResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070023
24/**
25 * Interface declaring response functions to solicited radio requests.
26 */
27interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080028 /**
29 * @param info Response info struct containing response type, serial no. and error
30 *
31 * Valid errors returned:
32 * RadioError:NONE
33 * RadioError:INVALID_ARGUMENTS
34 * RadioError:RADIO_NOT_AVAILABLE
35 */
36 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080037
38 /**
39 * @param info Response info struct containing response type, serial no. and error
40 *
41 * Valid errors returned:
42 * RadioError:NONE
43 * RadioError:SIM_ABSENT
44 * RadioError:RADIO_NOT_AVAILABLE
45 * RadioError:INTERNAL_ERR
46 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080047 */
48 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
49
50 /**
51 * @param info Response info struct containing response type, serial no. and error
52 * @param enabled whether Uicc applications are enabled.
53 *
54 * Valid errors returned:
55 * RadioError:NONE
56 * RadioError:SIM_ABSENT
57 * RadioError:RADIO_NOT_AVAILABLE
58 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080059 */
60 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
61
62 /**
63 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070064 *
65 * Valid errors returned:
66 * RadioError:NONE
67 * RadioError:RADIO_NOT_AVAILABLE
68 * RadioError:INTERNAL_ERR
69 * RadioError:INVALID_ARGUMENTS
70 */
71 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
72
73 /**
74 * @param info Response info struct containing response type, serial no. and error
75 *
76 * Valid errors returned:
77 * RadioError:NONE
78 * RadioError:RADIO_NOT_AVAILABLE
79 * RadioError:DEVICE_IN_USE
80 * RadioError:INTERNAL_ERR
81 * RadioError:MODEM_ERR
82 * RadioError:INVALID_ARGUMENTS
83 */
84 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080085
86 /**
87 * @param info Response info struct containing response type, serial no. and error
88 * @param dcResponse SetupDataCallResult defined in types.hal
89 *
90 * Valid errors returned:
91 * RadioError:NONE must be returned on both success and failure of setup with the
92 * DataCallResponse.status containing the actual status
93 * For all other errors the DataCallResponse is ignored.
94 * RadioError:RADIO_NOT_AVAILABLE
95 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
96 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
97 * RadioError:REQUEST_NOT_SUPPORTED
98 * RadioError:INVALID_ARGUMENTS
99 * RadioError:INTERNAL_ERR
100 * RadioError:NO_RESOURCES
101 * RadioError:SIM_ABSENT
102 */
103 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
104
105 /**
106 * @param info Response info struct containing response type, serial no. and error
107 *
108 * Valid errors returned:
109 * RadioError:NONE
110 * RadioError:RADIO_NOT_AVAILABLE
111 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
112 * RadioError:NO_MEMORY
113 * RadioError:INTERNAL_ERR
114 * RadioError:SYSTEM_ERR
115 * RadioError:MODEM_ERR
116 * RadioError:INVALID_ARGUMENTS
117 * RadioError:NOT_PROVISIONED
118 * RadioError:REQUEST_NOT_SUPPORTED
119 * RadioError:NO_RESOURCES
120 * RadioError:CANCELLED
121 */
122 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
123
124 /**
125 * @param info Response info struct containing response type, serial no. and error
126 *
127 * Valid errors returned:
128 * RadioError:NONE
129 * RadioError:RADIO_NOT_AVAILABLE
130 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
131 * RadioError:INTERNAL_ERR
132 * RadioError:NO_MEMORY
133 * RadioError:NO_RESOURCES
134 * RadioError:CANCELLED
135 * RadioError:REQUEST_NOT_SUPPORTED
136 * RadioError:SIM_ABSENT
137 */
138 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800139
140 /**
141 * @param info Response info struct containing response type, serial no. and error
142 *
143 * Valid errors returned:
144 * RadioError:NONE
145 * RadioError:INTERNAL_ERR
146 * RadioError:INVALID_ARGUMENTS
147 */
148 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800149
150 /**
151 * @param info Response info struct containing response type, serial no. and error
152 *
153 * Valid errors returned:
154 * RadioError:NONE
155 * RadioError:INVALID_ARGUMENTS
156 * RadioError:RADIO_NOT_AVAILABLE
157 * RadioError:INTERNAL_ERR
158 * RadioError:SYSTEM_ERR
159 */
160 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800161
162 /**
163 * @param info Response info struct containing response type, serial no. and error
164 * @param barringInfos a vector of barring info for all barring service types
165 *
166 * Valid errors returned:
167 * RadioError:NONE
168 * RadioError:RADIO_NOT_AVAILABLE
169 * RadioError:INTERNAL_ERR
170 * RadioError:MODEM_ERR
171 */
172 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700173};