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