1 /* 2 * Copyright (C) 2022 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, eithe r 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/sap/ISap.h> 19 #include <android/hardware/radio/1.0/types.h> 20 21 namespace android::hardware::radio::compat { 22 23 V1_0::SapApduType toHidl(aidl::android::hardware::radio::sap::SapApduType sapAdpuType); 24 V1_0::SapTransferProtocol toHidl( 25 aidl::android::hardware::radio::sap::SapTransferProtocol sapTransferProtocol); 26 27 aidl::android::hardware::radio::sap::SapResultCode toAidl(V1_0::SapResultCode sapResultCode); 28 aidl::android::hardware::radio::sap::SapConnectRsp toAidl(V1_0::SapConnectRsp sapConnectRsp); 29 aidl::android::hardware::radio::sap::SapDisconnectType toAidl( 30 V1_0::SapDisconnectType sapDisconnectType); 31 aidl::android::hardware::radio::sap::SapStatus toAidl(V1_0::SapStatus sapStatus); 32 33 } // namespace android::hardware::radio::compat 34