1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "daudio_sink_dev_ctrl_mgr.h"
17 
18 #include "if_system_ability_manager.h"
19 #include "iservice_registry.h"
20 
21 #include "audio_param.h"
22 #include "daudio_constants.h"
23 #include "daudio_errorcode.h"
24 #include "daudio_log.h"
25 #include "daudio_util.h"
26 
27 #undef DH_LOG_TAG
28 #define DH_LOG_TAG "DAudioSinkDevCtrlMgr"
29 
30 namespace OHOS {
31 namespace DistributedHardware {
DAudioSinkDevCtrlMgr(const std::string & devId,std::shared_ptr<IAudioEventCallback> audioEventCallback)32 DAudioSinkDevCtrlMgr::DAudioSinkDevCtrlMgr(const std::string &devId,
33     std::shared_ptr<IAudioEventCallback> audioEventCallback)
34 {
35     DHLOGD("Control manager constructed.");
36 }
37 
~DAudioSinkDevCtrlMgr()38 DAudioSinkDevCtrlMgr::~DAudioSinkDevCtrlMgr()
39 {
40     DHLOGD("Control manager deconstructed.");
41 }
42 
SetUp()43 int32_t DAudioSinkDevCtrlMgr::SetUp()
44 {
45     DHLOGI("Set up sink device control manager.");
46     return DH_SUCCESS;
47 }
48 
Start()49 int32_t DAudioSinkDevCtrlMgr::Start()
50 {
51     DHLOGI("Start sink device control manager.");
52     return DH_SUCCESS;
53 }
54 
Stop()55 int32_t DAudioSinkDevCtrlMgr::Stop()
56 {
57     DHLOGI("Stop sink device control manager.");
58     return DH_SUCCESS;
59 }
60 
Release()61 int32_t DAudioSinkDevCtrlMgr::Release()
62 {
63     DHLOGI("Release sink device control manager.");
64     return DH_SUCCESS;
65 }
66 
IsOpened()67 bool DAudioSinkDevCtrlMgr::IsOpened()
68 {
69     return true;
70 }
71 
SendAudioEvent(const AudioEvent & event)72 int32_t DAudioSinkDevCtrlMgr::SendAudioEvent(const AudioEvent &event)
73 {
74     DHLOGD("Send audio event.");
75     return DH_SUCCESS;
76 }
77 } // namespace DistributedHardware
78 } // namespace OHOS
79