1 /* 2 * Copyright (C) 2025 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 #define FAILURE_DEBUG_PREFIX "ImsMedia" 18 19 #include "ImsMedia.h" 20 #include "debug.h" 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace radio { 26 namespace implementation { 27 ImsMedia(std::shared_ptr<AtChannel>)28ImsMedia::ImsMedia(std::shared_ptr<AtChannel> /*atChannel*/) { 29 } 30 openSession(const int32_t sessionId,const ims::media::LocalEndPoint &,const ims::media::RtpConfig &)31ScopedAStatus ImsMedia::openSession( 32 const int32_t sessionId, const ims::media::LocalEndPoint& /*localEndPoint*/, 33 const ims::media::RtpConfig& /*config*/) { 34 NOT_NULL(mMediaListener)->onOpenSessionFailure( 35 sessionId, FAILURE(ims::media::RtpError::NOT_SUPPORTED)); 36 return ScopedAStatus::ok(); 37 } 38 closeSession(const int32_t sessionId)39ScopedAStatus ImsMedia::closeSession(const int32_t sessionId) { 40 NOT_NULL(mMediaListener)->onSessionClosed(sessionId); 41 return ScopedAStatus::ok(); 42 } 43 atResponseSink(const AtResponsePtr &)44void ImsMedia::atResponseSink(const AtResponsePtr& /*response*/) {} 45 setListener(const std::shared_ptr<ims::media::IImsMediaListener> & mediaListener)46ScopedAStatus ImsMedia::setListener( 47 const std::shared_ptr<ims::media::IImsMediaListener>& mediaListener) { 48 mMediaListener = NOT_NULL(mediaListener); 49 return ScopedAStatus::ok(); 50 } 51 52 } // namespace implementation 53 } // namespace radio 54 } // namespace hardware 55 } // namespace android 56 } // namespace aidl 57