blob: 60fad57f518cf19f4bdf0e25d5afb524eac26342 [file] [log] [blame]
Tomasz Wasilczykd2e74592021-11-02 12:14:52 -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/data/DataProfileInfo.h>
19#include <aidl/android/hardware/radio/data/KeepaliveRequest.h>
20#include <aidl/android/hardware/radio/data/KeepaliveStatus.h>
21#include <aidl/android/hardware/radio/data/LinkAddress.h>
22#include <aidl/android/hardware/radio/data/OsAppId.h>
23#include <aidl/android/hardware/radio/data/PcoDataInfo.h>
24#include <aidl/android/hardware/radio/data/RouteSelectionDescriptor.h>
25#include <aidl/android/hardware/radio/data/SetupDataCallResult.h>
26#include <aidl/android/hardware/radio/data/SliceInfo.h>
27#include <aidl/android/hardware/radio/data/SlicingConfig.h>
28#include <aidl/android/hardware/radio/data/TrafficDescriptor.h>
29#include <aidl/android/hardware/radio/data/UrspRule.h>
30#include <android/hardware/radio/1.6/types.h>
31
32namespace android::hardware::radio::compat {
33
34V1_5::DataProfileInfo toHidl(const ::aidl::android::hardware::radio::data::DataProfileInfo& info);
35
36V1_5::LinkAddress toHidl(const ::aidl::android::hardware::radio::data::LinkAddress& addr);
37
38::aidl::android::hardware::radio::data::SliceInfo toAidl(const V1_6::SliceInfo& info);
39V1_6::SliceInfo toHidl(const ::aidl::android::hardware::radio::data::SliceInfo& info);
40
41::aidl::android::hardware::radio::data::TrafficDescriptor toAidl(const V1_6::TrafficDescriptor& td);
42V1_6::TrafficDescriptor toHidl(const ::aidl::android::hardware::radio::data::TrafficDescriptor& td);
43
44V1_1::KeepaliveRequest toHidl(const ::aidl::android::hardware::radio::data::KeepaliveRequest& keep);
45
46::aidl::android::hardware::radio::data::OsAppId toAidl(const V1_6::OsAppId& appId);
47V1_6::OsAppId toHidl(const ::aidl::android::hardware::radio::data::OsAppId& appId);
48
49::aidl::android::hardware::radio::data::SetupDataCallResult //
50toAidl(const V1_5::SetupDataCallResult& res);
51::aidl::android::hardware::radio::data::SetupDataCallResult //
52toAidl(const V1_6::SetupDataCallResult& res);
53
54::aidl::android::hardware::radio::data::LinkAddress toAidl(const V1_5::LinkAddress& addr);
55
56::aidl::android::hardware::radio::data::QosSession toAidl(const V1_6::QosSession& session);
57
58::aidl::android::hardware::radio::data::QosFilter toAidl(const V1_6::QosFilter& filter);
59
60::aidl::android::hardware::radio::data::KeepaliveStatus toAidl(const V1_1::KeepaliveStatus& status);
61
62::aidl::android::hardware::radio::data::PcoDataInfo toAidl(const V1_0::PcoDataInfo& info);
63
64::aidl::android::hardware::radio::data::SlicingConfig toAidl(const V1_6::SlicingConfig& cfg);
65
66::aidl::android::hardware::radio::data::UrspRule toAidl(const V1_6::UrspRule& rule);
67
68::aidl::android::hardware::radio::data::RouteSelectionDescriptor //
69toAidl(const V1_6::RouteSelectionDescriptor& descr);
70
71} // namespace android::hardware::radio::compat