blob: 1461dd20359569351ecd174618dc0b6e17fc8598 [file] [log] [blame]
Tomasz Wasilczyk6301e8f2021-10-18 16:53:40 -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#pragma once
17
18#include <aidl/android/hardware/radio/config/IRadioConfigResponse.h>
19#include <android/hardware/radio/config/1.3/IRadioConfigResponse.h>
20
21namespace android::hardware::radio::compat {
22
23class RadioConfigResponse : public config::V1_3::IRadioConfigResponse {
24 std::shared_ptr<aidl::android::hardware::radio::config::IRadioConfigResponse> mCallback;
25
26 Return<void> getSimSlotsStatusResponse(
27 const V1_0::RadioResponseInfo& info,
28 const hidl_vec<config::V1_0::SimSlotStatus>& slotStatus) override;
29 Return<void> setSimSlotsMappingResponse(const V1_0::RadioResponseInfo& info) override;
30 Return<void> getPhoneCapabilityResponse(
31 const V1_0::RadioResponseInfo& info,
32 const config::V1_1::PhoneCapability& phoneCapability) override;
33 Return<void> setPreferredDataModemResponse(const V1_0::RadioResponseInfo& info) override;
34 Return<void> setModemsConfigResponse(const V1_0::RadioResponseInfo& info) override;
35 Return<void> getModemsConfigResponse(const V1_0::RadioResponseInfo& info,
36 const config::V1_1::ModemsConfig& modemsConfig) override;
37 Return<void> getSimSlotsStatusResponse_1_2(
38 const V1_0::RadioResponseInfo& info,
39 const hidl_vec<config::V1_2::SimSlotStatus>& slotStatus) override;
40 Return<void> getHalDeviceCapabilitiesResponse(const V1_6::RadioResponseInfo& info,
41 bool modemReducedFeatureSet1) override;
42
43 public:
44 RadioConfigResponse(
45 std::shared_ptr<aidl::android::hardware::radio::config::IRadioConfigResponse> callback);
46};
47
48} // namespace android::hardware::radio::compat