Tomasz Wasilczyk | 7f51a9a | 2021-10-28 13:22:47 -0700 | [diff] [blame^] | 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 | #pragma once |
| 17 | |
| 18 | #include <aidl/android/hardware/radio/sim/AppStatus.h> |
| 19 | #include <aidl/android/hardware/radio/sim/CardStatus.h> |
| 20 | #include <aidl/android/hardware/radio/sim/Carrier.h> |
| 21 | #include <aidl/android/hardware/radio/sim/CarrierRestrictions.h> |
| 22 | #include <aidl/android/hardware/radio/sim/IccIo.h> |
| 23 | #include <aidl/android/hardware/radio/sim/IccIoResult.h> |
| 24 | #include <aidl/android/hardware/radio/sim/ImsiEncryptionInfo.h> |
| 25 | #include <aidl/android/hardware/radio/sim/PhonebookCapacity.h> |
| 26 | #include <aidl/android/hardware/radio/sim/PhonebookRecordInfo.h> |
| 27 | #include <aidl/android/hardware/radio/sim/SelectUiccSub.h> |
| 28 | #include <aidl/android/hardware/radio/sim/SimApdu.h> |
| 29 | #include <aidl/android/hardware/radio/sim/SimRefreshResult.h> |
| 30 | #include <android/hardware/radio/1.6/types.h> |
| 31 | |
| 32 | namespace android::hardware::radio::compat { |
| 33 | |
| 34 | V1_0::IccIo toHidl(const ::aidl::android::hardware::radio::sim::IccIo& icc); |
| 35 | |
| 36 | V1_0::SimApdu toHidl(const ::aidl::android::hardware::radio::sim::SimApdu& apdu); |
| 37 | |
| 38 | ::aidl::android::hardware::radio::sim::Carrier toAidl(const V1_0::Carrier& carrier); |
| 39 | V1_0::Carrier toHidl(const ::aidl::android::hardware::radio::sim::Carrier& carrier); |
| 40 | |
| 41 | ::aidl::android::hardware::radio::sim::CarrierRestrictions // |
| 42 | toAidl(const V1_0::CarrierRestrictions& cr); |
| 43 | ::aidl::android::hardware::radio::sim::CarrierRestrictions // |
| 44 | toAidl(const V1_4::CarrierRestrictionsWithPriority& cr); |
| 45 | V1_4::CarrierRestrictionsWithPriority // |
| 46 | toHidl(const ::aidl::android::hardware::radio::sim::CarrierRestrictions& cr); |
| 47 | |
| 48 | V1_1::ImsiEncryptionInfo // |
| 49 | toHidl(const ::aidl::android::hardware::radio::sim::ImsiEncryptionInfo& info); |
| 50 | V1_6::ImsiEncryptionInfo // |
| 51 | toHidl_1_6(const ::aidl::android::hardware::radio::sim::ImsiEncryptionInfo& info); |
| 52 | |
| 53 | V1_0::SelectUiccSub toHidl(const ::aidl::android::hardware::radio::sim::SelectUiccSub& sub); |
| 54 | |
| 55 | ::aidl::android::hardware::radio::sim::PhonebookRecordInfo // |
| 56 | toAidl(const V1_6::PhonebookRecordInfo& info); |
| 57 | V1_6::PhonebookRecordInfo // |
| 58 | toHidl(const ::aidl::android::hardware::radio::sim::PhonebookRecordInfo& info); |
| 59 | |
| 60 | ::aidl::android::hardware::radio::sim::SimRefreshResult // |
| 61 | toAidl(const V1_0::SimRefreshResult& res); |
| 62 | |
| 63 | ::aidl::android::hardware::radio::sim::CardStatus toAidl(const V1_0::CardStatus& status); |
| 64 | ::aidl::android::hardware::radio::sim::CardStatus toAidl(const V1_2::CardStatus& status); |
| 65 | ::aidl::android::hardware::radio::sim::CardStatus toAidl(const V1_4::CardStatus& status); |
| 66 | ::aidl::android::hardware::radio::sim::CardStatus toAidl(const V1_5::CardStatus& status); |
| 67 | |
| 68 | ::aidl::android::hardware::radio::sim::AppStatus toAidl(const V1_0::AppStatus& status); |
| 69 | ::aidl::android::hardware::radio::sim::AppStatus toAidl(const V1_5::AppStatus& status); |
| 70 | |
| 71 | ::aidl::android::hardware::radio::sim::PhonebookCapacity toAidl(const V1_6::PhonebookCapacity& c); |
| 72 | |
| 73 | ::aidl::android::hardware::radio::sim::IccIoResult toAidl(const V1_0::IccIoResult& iir); |
| 74 | |
| 75 | } // namespace android::hardware::radio::compat |