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/voice/Call.h> 19 #include <aidl/android/hardware/radio/voice/CallForwardInfo.h> 20 #include <aidl/android/hardware/radio/voice/CdmaCallWaiting.h> 21 #include <aidl/android/hardware/radio/voice/CdmaDisplayInfoRecord.h> 22 #include <aidl/android/hardware/radio/voice/CdmaInformationRecord.h> 23 #include <aidl/android/hardware/radio/voice/CdmaLineControlInfoRecord.h> 24 #include <aidl/android/hardware/radio/voice/CdmaNumberInfoRecord.h> 25 #include <aidl/android/hardware/radio/voice/CdmaRedirectingNumberInfoRecord.h> 26 #include <aidl/android/hardware/radio/voice/CdmaSignalInfoRecord.h> 27 #include <aidl/android/hardware/radio/voice/CdmaT53AudioControlInfoRecord.h> 28 #include <aidl/android/hardware/radio/voice/CdmaT53ClirInfoRecord.h> 29 #include <aidl/android/hardware/radio/voice/CfData.h> 30 #include <aidl/android/hardware/radio/voice/Dial.h> 31 #include <aidl/android/hardware/radio/voice/EmergencyNumber.h> 32 #include <aidl/android/hardware/radio/voice/LastCallFailCauseInfo.h> 33 #include <aidl/android/hardware/radio/voice/SsInfoData.h> 34 #include <aidl/android/hardware/radio/voice/StkCcUnsolSsResult.h> 35 #include <aidl/android/hardware/radio/voice/UusInfo.h> 36 #include <android/hardware/radio/1.6/types.h> 37 38 namespace android::hardware::radio::compat { 39 40 V1_0::Dial toHidl(const ::aidl::android::hardware::radio::voice::Dial& info); 41 42 V1_0::UusInfo toHidl(const ::aidl::android::hardware::radio::voice::UusInfo& info); 43 44 ::aidl::android::hardware::radio::voice::CallForwardInfo toAidl(const V1_0::CallForwardInfo& info); 45 V1_0::CallForwardInfo toHidl(const ::aidl::android::hardware::radio::voice::CallForwardInfo& info); 46 47 ::aidl::android::hardware::radio::voice::CdmaSignalInfoRecord // 48 toAidl(const V1_0::CdmaSignalInfoRecord& record); 49 50 ::aidl::android::hardware::radio::voice::CdmaCallWaiting toAidl(const V1_0::CdmaCallWaiting& call); 51 52 ::aidl::android::hardware::radio::voice::CdmaInformationRecord // 53 toAidl(const V1_0::CdmaInformationRecord& record); 54 55 ::aidl::android::hardware::radio::voice::CdmaDisplayInfoRecord // 56 toAidl(const V1_0::CdmaDisplayInfoRecord& record); 57 58 ::aidl::android::hardware::radio::voice::CdmaNumberInfoRecord // 59 toAidl(const V1_0::CdmaNumberInfoRecord& record); 60 61 ::aidl::android::hardware::radio::voice::CdmaRedirectingNumberInfoRecord // 62 toAidl(const V1_0::CdmaRedirectingNumberInfoRecord& record); 63 64 ::aidl::android::hardware::radio::voice::CdmaLineControlInfoRecord // 65 toAidl(const V1_0::CdmaLineControlInfoRecord& record); 66 67 ::aidl::android::hardware::radio::voice::CdmaT53ClirInfoRecord // 68 toAidl(const V1_0::CdmaT53ClirInfoRecord& record); 69 70 ::aidl::android::hardware::radio::voice::CdmaT53AudioControlInfoRecord // 71 toAidl(const V1_0::CdmaT53AudioControlInfoRecord& record); 72 73 ::aidl::android::hardware::radio::voice::EmergencyNumber toAidl(const V1_4::EmergencyNumber& num); 74 75 ::aidl::android::hardware::radio::voice::StkCcUnsolSsResult // 76 toAidl(const V1_0::StkCcUnsolSsResult& res); 77 78 ::aidl::android::hardware::radio::voice::SsInfoData toAidl(const V1_0::SsInfoData& info); 79 80 ::aidl::android::hardware::radio::voice::CfData toAidl(const V1_0::CfData& data); 81 82 ::aidl::android::hardware::radio::voice::Call toAidl(const V1_0::Call& call); 83 ::aidl::android::hardware::radio::voice::Call toAidl(const V1_2::Call& call); 84 ::aidl::android::hardware::radio::voice::Call toAidl(const V1_6::Call& call); 85 86 ::aidl::android::hardware::radio::voice::UusInfo toAidl(const V1_0::UusInfo& info); 87 88 ::aidl::android::hardware::radio::voice::LastCallFailCauseInfo // 89 toAidl(const V1_0::LastCallFailCauseInfo& info); 90 91 } // namespace android::hardware::radio::compat 92