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, 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 #pragma clang diagnostic push 19 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 20 #include <libradiocompat/RadioIms.h> 21 #pragma clang diagnostic pop 22 23 namespace cf::ril { 24 25 class RefRadioIms : public android::hardware::radio::compat::RadioIms { 26 public: 27 using android::hardware::radio::compat::RadioIms::RadioIms; 28 29 ::ndk::ScopedAStatus setSrvccCallInfo( 30 int32_t serial, 31 const std::vector<::aidl::android::hardware::radio::ims::SrvccCall>& srvccCalls) 32 override; 33 ::ndk::ScopedAStatus updateImsRegistrationInfo( 34 int32_t serial, 35 const ::aidl::android::hardware::radio::ims::ImsRegistration& imsRegistration) override; 36 ::ndk::ScopedAStatus startImsTraffic( 37 int32_t serial, int32_t token, 38 ::aidl::android::hardware::radio::ims::ImsTrafficType imsTrafficType, 39 ::aidl::android::hardware::radio::AccessNetwork accessNetworkType, 40 ::aidl::android::hardware::radio::ims::ImsCall::Direction trafficDirection) override; 41 ::ndk::ScopedAStatus stopImsTraffic(int32_t serial, int32_t token) override; 42 ::ndk::ScopedAStatus triggerEpsFallback( 43 int32_t serial, 44 ::aidl::android::hardware::radio::ims::EpsFallbackReason reason) override; 45 ::ndk::ScopedAStatus sendAnbrQuery( 46 int32_t serial, ::aidl::android::hardware::radio::ims::ImsStreamType mediaType, 47 ::aidl::android::hardware::radio::ims::ImsStreamDirection direction, 48 int32_t bitsPerSecond) override; 49 ::ndk::ScopedAStatus updateImsCallStatus( 50 int32_t serial, 51 const std::vector<::aidl::android::hardware::radio::ims::ImsCall>& imsCalls) override; 52 }; 53 54 } // namespace cf::ril 55