1 /*
2 * Copyright (C) 2021 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 #include <libradiocompat/RadioResponse.h>
18
19 #include "commonStructs.h"
20 #include "debug.h"
21 #include "structs.h"
22 #include "utils.h"
23
24 #include "collections.h"
25
26 #define RADIO_MODULE "NetworkResponse"
27
28 namespace android::hardware::radio::compat {
29
30 using ::aidl::android::hardware::radio::RadioTechnology;
31 using ::aidl::android::hardware::radio::RadioTechnologyFamily;
32 namespace aidl = ::aidl::android::hardware::radio::network;
33
setResponseFunction(std::shared_ptr<aidl::IRadioNetworkResponse> netCb)34 void RadioResponse::setResponseFunction(std::shared_ptr<aidl::IRadioNetworkResponse> netCb) {
35 mNetworkCb = netCb;
36 }
37
networkCb()38 std::shared_ptr<aidl::IRadioNetworkResponse> RadioResponse::networkCb() {
39 return mNetworkCb.get();
40 }
41
getAllowedNetworkTypesBitmapResponse(const V1_6::RadioResponseInfo & info,hidl_bitfield<V1_4::RadioAccessFamily> networkTypeBitmap)42 Return<void> RadioResponse::getAllowedNetworkTypesBitmapResponse(
43 const V1_6::RadioResponseInfo& info,
44 hidl_bitfield<V1_4::RadioAccessFamily> networkTypeBitmap) {
45 LOG_CALL << info.serial;
46 networkCb()->getAllowedNetworkTypesBitmapResponse(toAidl(info), networkTypeBitmap);
47 return {};
48 }
49
getPreferredNetworkTypeResponse(const V1_0::RadioResponseInfo & info,V1_0::PreferredNetworkType nwType)50 Return<void> RadioResponse::getPreferredNetworkTypeResponse(const V1_0::RadioResponseInfo& info,
51 V1_0::PreferredNetworkType nwType) {
52 LOG_CALL << info.serial;
53 networkCb()->getAllowedNetworkTypesBitmapResponse(toAidl(info), getRafFromNetworkType(nwType));
54 return {};
55 }
56
getPreferredNetworkTypeBitmapResponse(const V1_0::RadioResponseInfo & info,hidl_bitfield<V1_4::RadioAccessFamily>)57 Return<void> RadioResponse::getPreferredNetworkTypeBitmapResponse(
58 const V1_0::RadioResponseInfo& info, hidl_bitfield<V1_4::RadioAccessFamily>) {
59 LOG_CALL << info.serial;
60 LOG(ERROR) << "IRadio HAL 1.4 not supported";
61 return {};
62 }
63
getAvailableBandModesResponse(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_0::RadioBandMode> & bandModes)64 Return<void> RadioResponse::getAvailableBandModesResponse(
65 const V1_0::RadioResponseInfo& info, const hidl_vec<V1_0::RadioBandMode>& bandModes) {
66 LOG_CALL << info.serial;
67 networkCb()->getAvailableBandModesResponse(toAidl(info), toAidl(bandModes));
68 return {};
69 }
70
getAvailableNetworksResponse(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_0::OperatorInfo> & networkInfos)71 Return<void> RadioResponse::getAvailableNetworksResponse(
72 const V1_0::RadioResponseInfo& info, const hidl_vec<V1_0::OperatorInfo>& networkInfos) {
73 LOG_CALL << info.serial;
74 networkCb()->getAvailableNetworksResponse(toAidl(info), toAidl(networkInfos));
75 return {};
76 }
77
getBarringInfoResponse(const V1_0::RadioResponseInfo & info,const V1_5::CellIdentity & cellIdentity,const hidl_vec<V1_5::BarringInfo> & barringInfos)78 Return<void> RadioResponse::getBarringInfoResponse(
79 const V1_0::RadioResponseInfo& info, const V1_5::CellIdentity& cellIdentity,
80 const hidl_vec<V1_5::BarringInfo>& barringInfos) {
81 LOG_CALL << info.serial;
82 networkCb()->getBarringInfoResponse(toAidl(info), toAidl(cellIdentity), toAidl(barringInfos));
83 return {};
84 }
85
getCdmaRoamingPreferenceResponse(const V1_0::RadioResponseInfo & info,V1_0::CdmaRoamingType type)86 Return<void> RadioResponse::getCdmaRoamingPreferenceResponse(const V1_0::RadioResponseInfo& info,
87 V1_0::CdmaRoamingType type) {
88 LOG_CALL << info.serial;
89 networkCb()->getCdmaRoamingPreferenceResponse(toAidl(info), aidl::CdmaRoamingType(type));
90 return {};
91 }
92
getCellInfoListResponse(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_0::CellInfo> &)93 Return<void> RadioResponse::getCellInfoListResponse(const V1_0::RadioResponseInfo& info,
94 const hidl_vec<V1_0::CellInfo>&) {
95 LOG_CALL << info.serial;
96 LOG(ERROR) << "IRadio HAL 1.0 not supported";
97 return {};
98 }
99
getCellInfoListResponse_1_2(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_2::CellInfo> &)100 Return<void> RadioResponse::getCellInfoListResponse_1_2(const V1_0::RadioResponseInfo& info,
101 const hidl_vec<V1_2::CellInfo>&) {
102 LOG_CALL << info.serial;
103 LOG(ERROR) << "IRadio HAL 1.2 not supported";
104 return {};
105 }
106
getCellInfoListResponse_1_4(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_4::CellInfo> &)107 Return<void> RadioResponse::getCellInfoListResponse_1_4(const V1_0::RadioResponseInfo& info,
108 const hidl_vec<V1_4::CellInfo>&) {
109 LOG_CALL << info.serial;
110 LOG(ERROR) << "IRadio HAL 1.4 not supported";
111 return {};
112 }
113
getCellInfoListResponse_1_5(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_5::CellInfo> & cellInfo)114 Return<void> RadioResponse::getCellInfoListResponse_1_5(const V1_0::RadioResponseInfo& info,
115 const hidl_vec<V1_5::CellInfo>& cellInfo) {
116 LOG_CALL << info.serial;
117 networkCb()->getCellInfoListResponse(toAidl(info), toAidl(cellInfo));
118 return {};
119 }
120
getCellInfoListResponse_1_6(const V1_6::RadioResponseInfo & info,const hidl_vec<V1_6::CellInfo> & cellInfo)121 Return<void> RadioResponse::getCellInfoListResponse_1_6(const V1_6::RadioResponseInfo& info,
122 const hidl_vec<V1_6::CellInfo>& cellInfo) {
123 LOG_CALL << info.serial;
124 networkCb()->getCellInfoListResponse(toAidl(info), toAidl(cellInfo));
125 return {};
126 }
127
getDataRegistrationStateResponse(const V1_0::RadioResponseInfo & info,const V1_0::DataRegStateResult &)128 Return<void> RadioResponse::getDataRegistrationStateResponse(const V1_0::RadioResponseInfo& info,
129 const V1_0::DataRegStateResult&) {
130 LOG_CALL << info.serial;
131 LOG(ERROR) << "IRadio HAL 1.0 not supported";
132 return {};
133 }
134
getDataRegistrationStateResponse_1_2(const V1_0::RadioResponseInfo & info,const V1_2::DataRegStateResult &)135 Return<void> RadioResponse::getDataRegistrationStateResponse_1_2(
136 const V1_0::RadioResponseInfo& info, const V1_2::DataRegStateResult&) {
137 LOG_CALL << info.serial;
138 LOG(ERROR) << "IRadio HAL 1.2 not supported";
139 return {};
140 }
141
getDataRegistrationStateResponse_1_4(const V1_0::RadioResponseInfo & info,const V1_4::DataRegStateResult &)142 Return<void> RadioResponse::getDataRegistrationStateResponse_1_4(
143 const V1_0::RadioResponseInfo& info, const V1_4::DataRegStateResult&) {
144 LOG_CALL << info.serial;
145 LOG(ERROR) << "IRadio HAL 1.4 not supported";
146 return {};
147 }
148
getDataRegistrationStateResponse_1_5(const V1_0::RadioResponseInfo & info,const V1_5::RegStateResult & dataRegResponse)149 Return<void> RadioResponse::getDataRegistrationStateResponse_1_5(
150 const V1_0::RadioResponseInfo& info, const V1_5::RegStateResult& dataRegResponse) {
151 LOG_CALL << info.serial;
152 networkCb()->getDataRegistrationStateResponse(toAidl(info), toAidl(dataRegResponse));
153 return {};
154 }
155
getDataRegistrationStateResponse_1_6(const V1_6::RadioResponseInfo & info,const V1_6::RegStateResult & dataRegResponse)156 Return<void> RadioResponse::getDataRegistrationStateResponse_1_6(
157 const V1_6::RadioResponseInfo& info, const V1_6::RegStateResult& dataRegResponse) {
158 LOG_CALL << info.serial;
159 networkCb()->getDataRegistrationStateResponse(toAidl(info), toAidl(dataRegResponse));
160 return {};
161 }
162
getImsRegistrationStateResponse(const V1_0::RadioResponseInfo & info,bool isRegd,V1_0::RadioTechnologyFamily ratFamily)163 Return<void> RadioResponse::getImsRegistrationStateResponse( //
164 const V1_0::RadioResponseInfo& info, bool isRegd, V1_0::RadioTechnologyFamily ratFamily) {
165 LOG_CALL << info.serial;
166 networkCb()->getImsRegistrationStateResponse(toAidl(info), isRegd,
167 RadioTechnologyFamily(ratFamily));
168 return {};
169 }
170
getNeighboringCidsResponse(const V1_0::RadioResponseInfo & info,const hidl_vec<V1_0::NeighboringCell> &)171 Return<void> RadioResponse::getNeighboringCidsResponse(const V1_0::RadioResponseInfo& info,
172 const hidl_vec<V1_0::NeighboringCell>&) {
173 LOG_CALL << info.serial;
174 LOG(ERROR) << "getNeighboringCidsResponse is not supposed to be called";
175 return {};
176 }
177
getNetworkSelectionModeResponse(const V1_0::RadioResponseInfo & info,bool manual)178 Return<void> RadioResponse::getNetworkSelectionModeResponse(const V1_0::RadioResponseInfo& info,
179 bool manual) {
180 LOG_CALL << info.serial;
181 networkCb()->getNetworkSelectionModeResponse(toAidl(info), manual);
182 return {};
183 }
184
getOperatorResponse(const V1_0::RadioResponseInfo & info,const hidl_string & longName,const hidl_string & shortName,const hidl_string & numeric)185 Return<void> RadioResponse::getOperatorResponse( //
186 const V1_0::RadioResponseInfo& info, const hidl_string& longName,
187 const hidl_string& shortName, const hidl_string& numeric) {
188 LOG_CALL << info.serial;
189 networkCb()->getOperatorResponse(toAidl(info), longName, shortName, numeric);
190 return {};
191 }
192
getSignalStrengthResponse(const V1_0::RadioResponseInfo & info,const V1_0::SignalStrength &)193 Return<void> RadioResponse::getSignalStrengthResponse(const V1_0::RadioResponseInfo& info,
194 const V1_0::SignalStrength&) {
195 LOG_CALL << info.serial;
196 LOG(ERROR) << "IRadio HAL 1.0 not supported";
197 return {};
198 }
199
getSignalStrengthResponse_1_2(const V1_0::RadioResponseInfo & info,const V1_2::SignalStrength &)200 Return<void> RadioResponse::getSignalStrengthResponse_1_2(const V1_0::RadioResponseInfo& info,
201 const V1_2::SignalStrength&) {
202 LOG_CALL << info.serial;
203 LOG(ERROR) << "IRadio HAL 1.2 not supported";
204 return {};
205 }
206
getSignalStrengthResponse_1_4(const V1_0::RadioResponseInfo & info,const V1_4::SignalStrength & signalStrength)207 Return<void> RadioResponse::getSignalStrengthResponse_1_4(
208 const V1_0::RadioResponseInfo& info, const V1_4::SignalStrength& signalStrength) {
209 LOG_CALL << info.serial;
210 networkCb()->getSignalStrengthResponse(toAidl(info), toAidl(signalStrength));
211 return {};
212 }
213
getSignalStrengthResponse_1_6(const V1_6::RadioResponseInfo & info,const V1_6::SignalStrength & signalStrength)214 Return<void> RadioResponse::getSignalStrengthResponse_1_6(
215 const V1_6::RadioResponseInfo& info, const V1_6::SignalStrength& signalStrength) {
216 LOG_CALL << info.serial;
217 networkCb()->getSignalStrengthResponse(toAidl(info), toAidl(signalStrength));
218 return {};
219 }
220
getSystemSelectionChannelsResponse(const V1_6::RadioResponseInfo & info,const hidl_vec<V1_5::RadioAccessSpecifier> & specifiers)221 Return<void> RadioResponse::getSystemSelectionChannelsResponse(
222 const V1_6::RadioResponseInfo& info,
223 const hidl_vec<V1_5::RadioAccessSpecifier>& specifiers) {
224 LOG_CALL << info.serial;
225 networkCb()->getSystemSelectionChannelsResponse(toAidl(info), toAidl(specifiers));
226 return {};
227 }
228
getVoiceRadioTechnologyResponse(const V1_0::RadioResponseInfo & info,V1_0::RadioTechnology rat)229 Return<void> RadioResponse::getVoiceRadioTechnologyResponse(const V1_0::RadioResponseInfo& info,
230 V1_0::RadioTechnology rat) {
231 LOG_CALL << info.serial;
232 networkCb()->getVoiceRadioTechnologyResponse(toAidl(info), RadioTechnology(rat));
233 return {};
234 }
235
getVoiceRegistrationStateResponse(const V1_0::RadioResponseInfo & info,const V1_0::VoiceRegStateResult &)236 Return<void> RadioResponse::getVoiceRegistrationStateResponse(const V1_0::RadioResponseInfo& info,
237 const V1_0::VoiceRegStateResult&) {
238 LOG_CALL << info.serial;
239 LOG(ERROR) << "IRadio HAL 1.0 not supported";
240 return {};
241 }
242
getVoiceRegistrationStateResponse_1_2(const V1_0::RadioResponseInfo & info,const V1_2::VoiceRegStateResult &)243 Return<void> RadioResponse::getVoiceRegistrationStateResponse_1_2(
244 const V1_0::RadioResponseInfo& info, const V1_2::VoiceRegStateResult&) {
245 LOG_CALL << info.serial;
246 LOG(ERROR) << "IRadio HAL 1.2 not supported";
247 return {};
248 }
249
getVoiceRegistrationStateResponse_1_5(const V1_0::RadioResponseInfo & info,const V1_5::RegStateResult & voiceRegResponse)250 Return<void> RadioResponse::getVoiceRegistrationStateResponse_1_5(
251 const V1_0::RadioResponseInfo& info, const V1_5::RegStateResult& voiceRegResponse) {
252 LOG_CALL << info.serial;
253 networkCb()->getVoiceRegistrationStateResponse(toAidl(info), toAidl(voiceRegResponse));
254 return {};
255 }
256
getVoiceRegistrationStateResponse_1_6(const V1_6::RadioResponseInfo & info,const V1_6::RegStateResult & voiceRegResponse)257 Return<void> RadioResponse::getVoiceRegistrationStateResponse_1_6(
258 const V1_6::RadioResponseInfo& info, const V1_6::RegStateResult& voiceRegResponse) {
259 LOG_CALL << info.serial;
260 networkCb()->getVoiceRegistrationStateResponse(toAidl(info), toAidl(voiceRegResponse));
261 return {};
262 }
263
isNrDualConnectivityEnabledResponse(const V1_6::RadioResponseInfo & info,bool isEnabled)264 Return<void> RadioResponse::isNrDualConnectivityEnabledResponse(const V1_6::RadioResponseInfo& info,
265 bool isEnabled) {
266 LOG_CALL << info.serial;
267 networkCb()->isNrDualConnectivityEnabledResponse(toAidl(info), isEnabled);
268 return {};
269 }
270
pullLceDataResponse(const V1_0::RadioResponseInfo & info,const V1_0::LceDataInfo &)271 Return<void> RadioResponse::pullLceDataResponse(const V1_0::RadioResponseInfo& info,
272 const V1_0::LceDataInfo&) {
273 LOG_CALL << info.serial;
274 LOG(ERROR) << "pullLceDataResponse is not supposed to be called";
275 return {};
276 }
277
setAllowedNetworkTypesBitmapResponse(const V1_6::RadioResponseInfo & i)278 Return<void> RadioResponse::setAllowedNetworkTypesBitmapResponse(const V1_6::RadioResponseInfo& i) {
279 LOG_CALL << i.serial;
280 networkCb()->setAllowedNetworkTypesBitmapResponse(toAidl(i));
281 return {};
282 }
283
setPreferredNetworkTypeResponse(const V1_0::RadioResponseInfo & info)284 Return<void> RadioResponse::setPreferredNetworkTypeResponse(const V1_0::RadioResponseInfo& info) {
285 LOG_CALL << info.serial;
286 networkCb()->setAllowedNetworkTypesBitmapResponse(toAidl(info));
287 return {};
288 }
289
setPreferredNetworkTypeBitmapResponse(const V1_0::RadioResponseInfo & info)290 Return<void> RadioResponse::setPreferredNetworkTypeBitmapResponse(
291 const V1_0::RadioResponseInfo& info) {
292 LOG_CALL << info.serial;
293 LOG(ERROR) << "IRadio HAL 1.4 not supported";
294 return {};
295 }
296
setBandModeResponse(const V1_0::RadioResponseInfo & info)297 Return<void> RadioResponse::setBandModeResponse(const V1_0::RadioResponseInfo& info) {
298 LOG_CALL << info.serial;
299 networkCb()->setBandModeResponse(toAidl(info));
300 return {};
301 }
302
setBarringPasswordResponse(const V1_0::RadioResponseInfo & info)303 Return<void> RadioResponse::setBarringPasswordResponse(const V1_0::RadioResponseInfo& info) {
304 LOG_CALL << info.serial;
305 networkCb()->setBarringPasswordResponse(toAidl(info));
306 return {};
307 }
308
setCdmaRoamingPreferenceResponse(const V1_0::RadioResponseInfo & info)309 Return<void> RadioResponse::setCdmaRoamingPreferenceResponse(const V1_0::RadioResponseInfo& info) {
310 LOG_CALL << info.serial;
311 networkCb()->setCdmaRoamingPreferenceResponse(toAidl(info));
312 return {};
313 }
314
setCellInfoListRateResponse(const V1_0::RadioResponseInfo & info)315 Return<void> RadioResponse::setCellInfoListRateResponse(const V1_0::RadioResponseInfo& info) {
316 LOG_CALL << info.serial;
317 networkCb()->setCellInfoListRateResponse(toAidl(info));
318 return {};
319 }
320
setIndicationFilterResponse(const V1_0::RadioResponseInfo & info)321 Return<void> RadioResponse::setIndicationFilterResponse(const V1_0::RadioResponseInfo& info) {
322 LOG_CALL << info.serial;
323 networkCb()->setIndicationFilterResponse(toAidl(info));
324 return {};
325 }
326
setIndicationFilterResponse_1_5(const V1_0::RadioResponseInfo & info)327 Return<void> RadioResponse::setIndicationFilterResponse_1_5(const V1_0::RadioResponseInfo& info) {
328 LOG_CALL << info.serial;
329 networkCb()->setIndicationFilterResponse(toAidl(info));
330 return {};
331 }
332
setLinkCapacityReportingCriteriaResponse(const V1_0::RadioResponseInfo & info)333 Return<void> RadioResponse::setLinkCapacityReportingCriteriaResponse(
334 const V1_0::RadioResponseInfo& info) {
335 LOG_CALL << info.serial;
336 networkCb()->setLinkCapacityReportingCriteriaResponse(toAidl(info));
337 return {};
338 }
339
setLinkCapacityReportingCriteriaResponse_1_5(const V1_0::RadioResponseInfo & info)340 Return<void> RadioResponse::setLinkCapacityReportingCriteriaResponse_1_5(
341 const V1_0::RadioResponseInfo& info) {
342 LOG_CALL << info.serial;
343 networkCb()->setLinkCapacityReportingCriteriaResponse(toAidl(info));
344 return {};
345 }
346
setLocationUpdatesResponse(const V1_0::RadioResponseInfo & info)347 Return<void> RadioResponse::setLocationUpdatesResponse(const V1_0::RadioResponseInfo& info) {
348 LOG_CALL << info.serial;
349 networkCb()->setLocationUpdatesResponse(toAidl(info));
350 return {};
351 }
352
setNetworkSelectionModeAutomaticResponse(const V1_0::RadioResponseInfo & info)353 Return<void> RadioResponse::setNetworkSelectionModeAutomaticResponse(
354 const V1_0::RadioResponseInfo& info) {
355 LOG_CALL << info.serial;
356 networkCb()->setNetworkSelectionModeAutomaticResponse(toAidl(info));
357 return {};
358 }
359
setNetworkSelectionModeManualResponse(const V1_0::RadioResponseInfo & info)360 Return<void> RadioResponse::setNetworkSelectionModeManualResponse(
361 const V1_0::RadioResponseInfo& info) {
362 LOG_CALL << info.serial;
363 networkCb()->setNetworkSelectionModeManualResponse(toAidl(info));
364 return {};
365 }
366
setNetworkSelectionModeManualResponse_1_5(const V1_0::RadioResponseInfo & info)367 Return<void> RadioResponse::setNetworkSelectionModeManualResponse_1_5(
368 const V1_0::RadioResponseInfo& info) {
369 LOG_CALL << info.serial;
370 networkCb()->setNetworkSelectionModeManualResponse(toAidl(info));
371 return {};
372 }
373
setNrDualConnectivityStateResponse(const V1_6::RadioResponseInfo & info)374 Return<void> RadioResponse::setNrDualConnectivityStateResponse(
375 const V1_6::RadioResponseInfo& info) {
376 LOG_CALL << info.serial;
377 networkCb()->setNrDualConnectivityStateResponse(toAidl(info));
378 return {};
379 }
380
setSignalStrengthReportingCriteriaResponse(const V1_0::RadioResponseInfo & info)381 Return<void> RadioResponse::setSignalStrengthReportingCriteriaResponse(
382 const V1_0::RadioResponseInfo& info) {
383 LOG_CALL << info.serial;
384 networkCb()->setSignalStrengthReportingCriteriaResponse(toAidl(info));
385 return {};
386 }
387
setSignalStrengthReportingCriteriaResponse_1_5(const V1_0::RadioResponseInfo & info)388 Return<void> RadioResponse::setSignalStrengthReportingCriteriaResponse_1_5(
389 const V1_0::RadioResponseInfo& info) {
390 LOG_CALL << info.serial;
391 networkCb()->setSignalStrengthReportingCriteriaResponse(toAidl(info));
392 return {};
393 }
394
setSuppServiceNotificationsResponse(const V1_0::RadioResponseInfo & info)395 Return<void> RadioResponse::setSuppServiceNotificationsResponse(
396 const V1_0::RadioResponseInfo& info) {
397 LOG_CALL << info.serial;
398 networkCb()->setSuppServiceNotificationsResponse(toAidl(info));
399 return {};
400 }
401
setSystemSelectionChannelsResponse(const V1_0::RadioResponseInfo & info)402 Return<void> RadioResponse::setSystemSelectionChannelsResponse(
403 const V1_0::RadioResponseInfo& info) {
404 LOG_CALL << info.serial;
405 networkCb()->setSystemSelectionChannelsResponse(toAidl(info));
406 return {};
407 }
408
setSystemSelectionChannelsResponse_1_5(const V1_0::RadioResponseInfo & info)409 Return<void> RadioResponse::setSystemSelectionChannelsResponse_1_5(
410 const V1_0::RadioResponseInfo& info) {
411 LOG_CALL << info.serial;
412 networkCb()->setSystemSelectionChannelsResponse(toAidl(info));
413 return {};
414 }
415
startNetworkScanResponse(const V1_0::RadioResponseInfo & info)416 Return<void> RadioResponse::startNetworkScanResponse(const V1_0::RadioResponseInfo& info) {
417 LOG_CALL << info.serial;
418 networkCb()->startNetworkScanResponse(toAidl(info));
419 return {};
420 }
421
startNetworkScanResponse_1_4(const V1_0::RadioResponseInfo & info)422 Return<void> RadioResponse::startNetworkScanResponse_1_4(const V1_0::RadioResponseInfo& info) {
423 LOG_CALL << info.serial;
424 networkCb()->startNetworkScanResponse(toAidl(info));
425 return {};
426 }
427
startNetworkScanResponse_1_5(const V1_0::RadioResponseInfo & info)428 Return<void> RadioResponse::startNetworkScanResponse_1_5(const V1_0::RadioResponseInfo& info) {
429 LOG_CALL << info.serial;
430 networkCb()->startNetworkScanResponse(toAidl(info));
431 return {};
432 }
433
stopNetworkScanResponse(const V1_0::RadioResponseInfo & info)434 Return<void> RadioResponse::stopNetworkScanResponse(const V1_0::RadioResponseInfo& info) {
435 LOG_CALL << info.serial;
436 networkCb()->stopNetworkScanResponse(toAidl(info));
437 return {};
438 }
439
supplyNetworkDepersonalizationResponse(const V1_0::RadioResponseInfo & info,int32_t remainingRetries)440 Return<void> RadioResponse::supplyNetworkDepersonalizationResponse(
441 const V1_0::RadioResponseInfo& info, int32_t remainingRetries) {
442 LOG_CALL << info.serial;
443 networkCb()->supplyNetworkDepersonalizationResponse(toAidl(info), remainingRetries);
444 return {};
445 }
446
startLceServiceResponse(const V1_0::RadioResponseInfo & info,const V1_0::LceStatusInfo &)447 Return<void> RadioResponse::startLceServiceResponse(const V1_0::RadioResponseInfo& info,
448 const V1_0::LceStatusInfo&) {
449 LOG_CALL << info.serial;
450 LOG(WARNING) << "startLceServiceResponse is deprecated";
451 return {};
452 }
453
stopLceServiceResponse(const V1_0::RadioResponseInfo & info,const V1_0::LceStatusInfo &)454 Return<void> RadioResponse::stopLceServiceResponse(const V1_0::RadioResponseInfo& info,
455 const V1_0::LceStatusInfo&) {
456 LOG_CALL << info.serial;
457 LOG(WARNING) << "stopLceServiceResponse is deprecated";
458 return {};
459 }
460
461 } // namespace android::hardware::radio::compat
462