blob: 35b0ac1d824eebea0875ba5bcd95b01ed9abcbf8 [file] [log] [blame]
Tomasz Wasilczyk9ddc87f2021-10-25 20:20:49 -07001/*
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 "debug.h"
20
Tomasz Wasilczyk9ddc87f2021-10-25 20:20:49 -070021#define RADIO_MODULE "Common"
22
23namespace android::hardware::radio::compat {
24
25Return<void> RadioResponse::acknowledgeRequest(int32_t serial) {
26 LOG_CALL << serial;
Tomasz Wasilczyk7f51a9a2021-10-28 13:22:47 -070027 // TODO(b/203699028): send to correct requestor or confirm if spam is not a problem
Tomasz Wasilczyk07161692021-11-02 12:14:52 -070028 if (mDataCb) mDataCb->acknowledgeRequest(serial);
Tomasz Wasilczyk9ddc87f2021-10-25 20:20:49 -070029 if (mMessagingCb) mMessagingCb->acknowledgeRequest(serial);
Tomasz Wasilczykdcbae482021-11-08 16:10:28 -080030 if (mModemCb) mModemCb->acknowledgeRequest(serial);
Tomasz Wasilczyk70ac7bf2021-11-03 15:15:48 -070031 if (mNetworkCb) mNetworkCb->acknowledgeRequest(serial);
Tomasz Wasilczyk7f51a9a2021-10-28 13:22:47 -070032 if (mSimCb) mSimCb->acknowledgeRequest(serial);
Tomasz Wasilczyk6e084182021-11-05 10:53:55 -070033 if (mVoiceCb) mVoiceCb->acknowledgeRequest(serial);
Tomasz Wasilczyk9ddc87f2021-10-25 20:20:49 -070034 return {};
35}
36
Tomasz Wasilczyk9ddc87f2021-10-25 20:20:49 -070037} // namespace android::hardware::radio::compat