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 <libradiocompat/RadioImsMedia.h>
18 
19 #include "commonStructs.h"
20 #include "debug.h"
21 
22 #include "collections.h"
23 
24 #define RADIO_MODULE "ImsMedia"
25 
26 namespace android::hardware::radio::compat {
27 
28 using ::ndk::ScopedAStatus;
29 constexpr auto ok = &ScopedAStatus::ok;
30 
setListener(const std::shared_ptr<::aidl::android::hardware::radio::ims::media::IImsMediaListener> &)31 ScopedAStatus RadioImsMedia::setListener(
32         const std::shared_ptr<::aidl::android::hardware::radio::ims::media::
33                                       IImsMediaListener>& /*in_mediaListener*/) {
34     LOG(ERROR) << " setListener is unsupported by HIDL HALs";
35     return ok();
36 }
openSession(int32_t,const::aidl::android::hardware::radio::ims::media::LocalEndPoint &,const::aidl::android::hardware::radio::ims::media::RtpConfig &)37 ScopedAStatus RadioImsMedia::openSession(
38         int32_t /*in_sessionId*/,
39         const ::aidl::android::hardware::radio::ims::media::LocalEndPoint& /*in_localEndPoint*/,
40         const ::aidl::android::hardware::radio::ims::media::RtpConfig& /*in_config*/) {
41     LOG(ERROR) << " openSession is unsupported by HIDL HALs";
42     return ok();
43 }
closeSession(int32_t)44 ScopedAStatus RadioImsMedia::closeSession(int32_t /*in_sessionId*/) {
45     LOG(ERROR) << " closeSession is unsupported by HIDL HALs";
46     return ok();
47 }
48 
49 }  // namespace android::hardware::radio::compat
50