1 /* 2 * Copyright (C) 2023 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 17 #include "radio_imsmedia_utils.h" 18 ImsMediaSessionListener(RadioServiceTest & parent)19ImsMediaSessionListener::ImsMediaSessionListener(RadioServiceTest& parent) 20 : parent_imsmedia(parent) {} 21 onModifySessionResponse(const RtpConfig & in_config,RtpError in_error)22ndk::ScopedAStatus ImsMediaSessionListener::onModifySessionResponse(const RtpConfig& in_config, 23 RtpError in_error) { 24 mConfig = in_config; 25 mError = in_error; 26 parent_imsmedia.notify(SERIAL_MODIFY_SESSION); 27 return ndk::ScopedAStatus::ok(); 28 } onFirstMediaPacketReceived(const RtpConfig &)29ndk::ScopedAStatus ImsMediaSessionListener::onFirstMediaPacketReceived( 30 const RtpConfig& /*in_config*/) { 31 return ndk::ScopedAStatus::ok(); 32 } onHeaderExtensionReceived(const std::vector<RtpHeaderExtension> &)33ndk::ScopedAStatus ImsMediaSessionListener::onHeaderExtensionReceived( 34 const std::vector<RtpHeaderExtension>& /*in_extensions*/) { 35 return ndk::ScopedAStatus::ok(); 36 } notifyMediaQualityStatus(const MediaQualityStatus &)37ndk::ScopedAStatus ImsMediaSessionListener::notifyMediaQualityStatus( 38 const MediaQualityStatus& /*in_quality*/) { 39 return ndk::ScopedAStatus::ok(); 40 } triggerAnbrQuery(const RtpConfig &)41ndk::ScopedAStatus ImsMediaSessionListener::triggerAnbrQuery(const RtpConfig& /*in_config*/) { 42 return ndk::ScopedAStatus::ok(); 43 } onDtmfReceived(char16_t,int32_t)44ndk::ScopedAStatus ImsMediaSessionListener::onDtmfReceived(char16_t /*in_dtmfDigit*/, 45 int32_t /*in_durationMs*/) { 46 return ndk::ScopedAStatus::ok(); 47 } onCallQualityChanged(const CallQuality &)48ndk::ScopedAStatus ImsMediaSessionListener::onCallQualityChanged( 49 const CallQuality& /*in_callQuality*/) { 50 return ndk::ScopedAStatus::ok(); 51 } notifyRtpReceptionStats(const RtpReceptionStats &)52ndk::ScopedAStatus ImsMediaSessionListener::notifyRtpReceptionStats( 53 const RtpReceptionStats& /*in_stats*/) { 54 return ndk::ScopedAStatus::ok(); 55 } 56