blob: dfacd666d2af8e026719f385ecd8f56a3b7f7470 [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
allenwtsu1c3dcd32020-09-25 17:58:01 +080019import @1.0::SendSmsResult;
20import @1.6::RadioResponseInfo;
Jayachandran C262b6062020-07-22 15:53:58 -070021import @1.5::IRadioResponse;
Jayachandran C9bc276b2020-07-24 00:46:58 -070022import @1.6::SetupDataCallResult;
Jayachandran C262b6062020-07-22 15:53:58 -070023
24/**
25 * Interface declaring response functions to solicited radio requests.
26 */
27interface IRadioResponse extends @1.5::IRadioResponse {
Jayachandran C9bc276b2020-07-24 00:46:58 -070028 /**
29 * @param info Response info struct containing response type, serial no. and error
30 * @param dcResponse SetupDataCallResult defined in types.hal
31 *
32 * Valid errors returned:
33 * RadioError:NONE must be returned on both success and failure of setup with the
34 * DataCallResponse.status containing the actual status
35 * For all other errors the DataCallResponse is ignored.
36 * RadioError:RADIO_NOT_AVAILABLE
37 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
38 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
39 * RadioError:INVALID_ARGUMENTS
40 * RadioError:INTERNAL_ERR
41 * RadioError:NO_RESOURCES if the vendor is unable handle due to resources
42 * are full.
43 * RadioError:SIM_ABSENT
44 */
45 oneway setupDataCallResponse_1_6(RadioResponseInfo info, SetupDataCallResult dcResponse);
46
47 /**
48 * @param info Response info struct containing response type, serial no. and error
49 * @param dcResponse List of SetupDataCallResult as defined in types.hal
50 *
51 * Valid errors returned:
52 * RadioError:NONE
53 * RadioError:RADIO_NOT_AVAILABLE
54 * RadioError:INTERNAL_ERR
55 * RadioError:SIM_ABSENT
56 */
57 oneway getDataCallListResponse_1_6(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
allenwtsu1c3dcd32020-09-25 17:58:01 +080058
59 /**
60 * @param info Response info struct containing response type, serial no. and error
61 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
62 *
63 * Valid errors returned:
64 * RadioError:NONE
65 * RadioError:RADIO_NOT_AVAILABLE
66 * RadioError:SMS_SEND_FAIL_RETRY
67 * RadioError:NETWORK_REJECT
68 * RadioError:INVALID_STATE
69 * RadioError:INVALID_ARGUMENTS
70 * RadioError:NO_MEMORY
71 * RadioError:REQUEST_RATE_LIMITED
72 * RadioError:INVALID_SMS_FORMAT
73 * RadioError:SYSTEM_ERR
74 * RadioError:ENCODING_ERR
75 * RadioError:INVALID_SMSC_ADDRESS
76 * RadioError:MODEM_ERR
77 * RadioError:NETWORK_ERR
78 * RadioError:INTERNAL_ERR
79 * RadioError:REQUEST_NOT_SUPPORTED
80 * RadioError:INVALID_MODEM_STATE
81 * RadioError:NETWORK_NOT_READY
82 * RadioError:OPERATION_NOT_ALLOWED
83 * RadioError:NO_RESOURCES
84 * RadioError:CANCELLED
85 * RadioError:SIM_ABSENT
86 * RadioError:ACCESS_BARRED
87 * RadioError:BLOCKED_DUE_TO_CALL
88 */
89 oneway sendSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
90
91 /**
92 * @param info Response info struct containing response type, serial no. and error
93 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
94 *
95 * Valid errors returned:
96 * RadioError:NONE
97 * RadioError:RADIO_NOT_AVAILABLE
98 * RadioError:SMS_SEND_FAIL_RETRY
99 * RadioError:NETWORK_REJECT
100 * RadioError:INVALID_STATE
101 * RadioError:INVALID_ARGUMENTS
102 * RadioError:NO_MEMORY
103 * RadioError:REQUEST_RATE_LIMITED
104 * RadioError:INVALID_SMS_FORMAT
105 * RadioError:SYSTEM_ERR
106 * RadioError:FDN_CHECK_FAILURE
107 * RadioError:ENCODING_ERR
108 * RadioError:INVALID_SMSC_ADDRESS
109 * RadioError:MODEM_ERR
110 * RadioError:NETWORK_ERR
111 * RadioError:INTERNAL_ERR
112 * RadioError:REQUEST_NOT_SUPPORTED
113 * RadioError:INVALID_MODEM_STATE
114 * RadioError:NETWORK_NOT_READY
115 * RadioError:OPERATION_NOT_ALLOWED
116 * RadioError:NO_RESOURCES
117 * RadioError:CANCELLED
118 * RadioError:SIM_ABSENT
119 * RadioError:ACCESS_BARRED
120 * RadioError:BLOCKED_DUE_TO_CALL
121 */
122 oneway sendSMSExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
123
124 /**
125 * @param info Response info struct containing response type, serial no. and error
126 * @param sms Sms result struct as defined by SendSmsResult in types.hal
127 *
128 * Valid errors returned:
129 * RadioError:NONE
130 * RadioError:RADIO_NOT_AVAILABLE
131 * RadioError:INVALID_ARGUMENTS
132 * RadioError:SMS_SEND_FAIL_RETRY
133 * RadioError:NETWORK_REJECT
134 * RadioError:INVALID_STATE
135 * RadioError:NO_MEMORY
136 * RadioError:REQUEST_RATE_LIMITED
137 * RadioError:INVALID_SMS_FORMAT
138 * RadioError:SYSTEM_ERR
139 * RadioError:FDN_CHECK_FAILURE
140 * RadioError:MODEM_ERR
141 * RadioError:NETWORK_ERR
142 * RadioError:ENCODING_ERR
143 * RadioError:INVALID_SMSC_ADDRESS
144 * RadioError:INTERNAL_ERR
145 * RadioError:SYSTEM_ERR
146 * RadioError:REQUEST_NOT_SUPPORTED
147 * RadioError:OPERATION_NOT_ALLOWED
148 * RadioError:ENCODING_ERR
149 * RadioError:NO_RESOURCES
150 * RadioError:CANCELLED
151 * RadioError:SIM_ABSENT
152 * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED
153 * RadioError:ACCESS_BARRED
154 * RadioError:BLOCKED_DUE_TO_CALL
155 */
156 oneway sendCdmaSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
157
158 /**
159 * @param info Response info struct containing response type, serial no. and error
160 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
161 *
162 * Valid errors returned:
163 * RadioError:NONE
164 * RadioError:RADIO_NOT_AVAILABLE
165 * RadioError:SMS_SEND_FAIL_RETRY
166 * RadioError:NETWORK_REJECT
167 * RadioError:INVALID_STATE
168 * RadioError:INVALID_ARGUMENTS
169 * RadioError:NO_MEMORY
170 * RadioError:REQUEST_RATE_LIMITED
171 * RadioError:INVALID_SMS_FORMAT
172 * RadioError:SYSTEM_ERR
173 * RadioError:FDN_CHECK_FAILURE
174 * RadioError:ENCODING_ERR
175 * RadioError:INVALID_SMSC_ADDRESS
176 * RadioError:MODEM_ERR
177 * RadioError:NETWORK_ERR
178 * RadioError:INTERNAL_ERR
179 * RadioError:REQUEST_NOT_SUPPORTED
180 * RadioError:INVALID_MODEM_STATE
181 * RadioError:NETWORK_NOT_READY
182 * RadioError:OPERATION_NOT_ALLOWED
183 * RadioError:NO_RESOURCES
184 * RadioError:CANCELLED
185 * RadioError:SIM_ABSENT
186 * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED
187 * RadioError:ACCESS_BARRED
188 * RadioError:BLOCKED_DUE_TO_CALL
189 */
190 oneway sendCdmaSmsExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
Jayachandran C262b6062020-07-22 15:53:58 -0700191};