/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_control_center/test/unittest/services/ |
H A D | av_trans_control_center_test.cpp | 48 int32_t engineId = BASE_ENGINE_ID; in HWTEST_F() local 49 int32_t ret = center_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 63 int32_t engineId = BASE_ENGINE_ID; in HWTEST_F() local 65 int32_t ret = center_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 68 ret = center_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 82 int32_t engineId = BASE_ENGINE_ID; in HWTEST_F() local 84 int32_t ret = center_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 97 int32_t engineId = INVALID_ENGINE_ID; in HWTEST_F() local 98 int32_t ret = center_->ReleaseAVCenter(engineId); in HWTEST_F() 111 int32_t engineId in HWTEST_F() local 132 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 147 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 163 int32_t engineId = INVALID_ENGINE_ID; HWTEST_F() local 178 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 194 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 211 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 227 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 244 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 261 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 278 int32_t engineId = INVALID_ENGINE_ID; HWTEST_F() local 293 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 308 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 326 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 344 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 363 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 386 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 431 int32_t engineId = BASE_ENGINE_ID; HWTEST_F() local 491 int32_t engineId = BASE_ENGINE_ID - 1; HWTEST_F() local 505 int32_t engineId = BASE_ENGINE_ID + 1; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_control_center/services/src/ |
H A D | av_trans_control_center.cpp | 49 int32_t AVTransControlCenter::InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 51 engineId = INVALID_ENGINE_ID; in InitializeAVCenter() 59 engineId = rootEngineId_.load(); in InitializeAVCenter() 76 engineId = rootEngineId_.load(); in InitializeAVCenter() 82 int32_t AVTransControlCenter::ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 84 AVTRANS_LOGI("Release av control center channel for engineId=%{public}d.", engineId); in ReleaseAVCenter() 85 TRUE_RETURN_V_MSG_E(IsInvalidEngineId(engineId), ERR_DH_AVT_INVALID_PARAM_VALUE, in ReleaseAVCenter() 86 "Invalid input engine id = %{public}d", engineId); in ReleaseAVCenter() local 90 callbackMap_.erase(engineId); in ReleaseAVCenter() 139 CreateControlChannel(int32_t engineId, const std::string &peerDevId) CreateControlChannel() argument 145 "Invalid input engine id = %{public}d", engineId); CreateControlChannel() local 180 NotifyAVCenter(int32_t engineId, const AVTransEvent& event) NotifyAVCenter() argument 183 "Invalid input engine id = %{public}d", engineId); NotifyAVCenter() local 204 RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> &callback) RegisterCtlCenterCallback() argument 208 "Invalid input engine id = %{public}d", engineId); RegisterCtlCenterCallback() local 319 IsInvalidEngineId(int32_t engineId) IsInvalidEngineId() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/dhfwk_sa_manager/include/ |
H A D | dhfwk_sa_manager_test.h | 73 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 76 (void)engineId; in InitializeAVCenter() 80 int32_t ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 82 (void)engineId; in ReleaseAVCenter() 86 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 88 (void)engineId; in CreateControlChannel() 93 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) in NotifyAVCenter() argument 95 (void)engineId; in NotifyAVCenter() 100 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) in RegisterCtlCenterCallback() argument 102 (void)engineId; in RegisterCtlCenterCallback() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwarestub/include/ |
H A D | distributed_hardware_stub_test.h | 65 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 68 (void)engineId; in InitializeAVCenter() 72 int32_t ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 74 (void)engineId; in ReleaseAVCenter() 78 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 80 (void)engineId; in CreateControlChannel() 85 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) in NotifyAVCenter() argument 87 (void)engineId; in NotifyAVCenter() 92 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) in RegisterCtlCenterCallback() argument 94 (void)engineId; in RegisterCtlCenterCallback() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/src/ |
H A D | distributed_hardware_fwk_kit.cpp | 140 int32_t DistributedHardwareFwkKit::InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 149 return DHFWKSAManager::GetInstance().GetDHFWKProxy()->InitializeAVCenter(transRole, engineId); in InitializeAVCenter() 152 int32_t DistributedHardwareFwkKit::ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 154 DHLOGI("Release av control center, engineId: %{public}" PRId32, engineId); in ReleaseAVCenter() 161 DHFWKSAManager::GetInstance().RemoveAVTransControlCenterCbFromCache(engineId); in ReleaseAVCenter() 162 return DHFWKSAManager::GetInstance().GetDHFWKProxy()->ReleaseAVCenter(engineId); in ReleaseAVCenter() 165 int32_t DistributedHardwareFwkKit::CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 167 DHLOGI("Create av control center channel, engineId: %{public}" PRId32 ", peerDevId=%{public}s.", engineId, in CreateControlChannel() 178 NotifyAVCenter(int32_t engineId, const AVTransEvent &event) NotifyAVCenter() argument 191 RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) RegisterCtlCenterCallback() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/include/ |
H A D | distributed_hardware_proxy_test.h | 74 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 77 (void)engineId; in InitializeAVCenter() 81 int32_t ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 83 (void)engineId; in ReleaseAVCenter() 87 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 89 (void)engineId; in CreateControlChannel() 94 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) in NotifyAVCenter() argument 96 (void)engineId; in NotifyAVCenter() 101 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) in RegisterCtlCenterCallback() argument 103 (void)engineId; in RegisterCtlCenterCallback() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_control_center/services/include/ |
H A D | av_trans_control_center.h | 34 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId); 35 int32_t ReleaseAVCenter(int32_t engineId); 36 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId); 37 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event); 38 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> &callback); 52 bool IsInvalidEngineId(int32_t engineId);
|
/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include/ |
H A D | idistributed_hardware.h | 42 virtual int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) = 0; 43 virtual int32_t ReleaseAVCenter(int32_t engineId) = 0; 44 virtual int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) = 0; 45 virtual int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) = 0; 46 virtual int32_t RegisterCtlCenterCallback(int32_t engineId,
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/ |
H A D | distributed_hardware_service.h | 46 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) override; 47 int32_t ReleaseAVCenter(int32_t engineId) override; 48 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) override; 49 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) override; 50 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) override;
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include/ |
H A D | distributed_hardware_fwk_kit.h | 93 * @param engineId transport engine id 96 API_EXPORT int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId); 101 * @param engineId transport engine id 104 API_EXPORT int32_t ReleaseAVCenter(int32_t engineId); 109 * @param engineId transport engine id 113 API_EXPORT int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId); 118 * @param engineId transport engine id 122 API_EXPORT int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event); 127 * @param engineId transport engine id 131 API_EXPORT int32_t RegisterCtlCenterCallback(int32_t engineId, cons [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include/ipc/ |
H A D | distributed_hardware_proxy.h | 41 int32_t InitializeAVCenter(const TransRole &transRole, int32_t &engineId) override; 42 int32_t ReleaseAVCenter(int32_t engineId) override; 43 int32_t CreateControlChannel(int32_t engineId, const std::string &peerDevId) override; 44 int32_t NotifyAVCenter(int32_t engineId, const AVTransEvent &event) override; 45 int32_t RegisterCtlCenterCallback(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback) override;
|
H A D | dhfwk_sa_manager.h | 45 void AddAVTransControlCenterCbToCache(int32_t engineId, const sptr<IAVTransControlCenterCallback> callback); 46 void RemoveAVTransControlCenterCbFromCache(int32_t engineId);
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/src/ |
H A D | distributed_hardware_proxy_test.cpp | 225 int32_t engineId = 0; in HWTEST_F() local 226 int32_t ret = hardwareProxy_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 241 int32_t engineId = 0; in HWTEST_F() local 242 int32_t ret = hardwareProxy_->ReleaseAVCenter(engineId); in HWTEST_F() 257 int32_t engineId = 0; in HWTEST_F() local 259 int32_t ret = hardwareProxy_->CreateControlChannel(engineId, peerDevId); in HWTEST_F() 274 int32_t engineId = 0; in HWTEST_F() local 276 int32_t ret = hardwareProxy_->NotifyAVCenter(engineId, event); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/fuzztest/distributedhardwarefwkkit_fuzzer/ |
H A D | distributedhardwarefwkkit_fuzzer.cpp | 92 int32_t engineId = *(reinterpret_cast<const int32_t*>(data)); in InitializeAVCenterFuzzTest() local 93 dhfwkKit.InitializeAVCenter(transRole, engineId); in InitializeAVCenterFuzzTest() 104 int32_t engineId = *(reinterpret_cast<const int32_t*>(data)); in ReleaseAVCenterFuzzTest() local 105 dhfwkKit.ReleaseAVCenter(engineId); in ReleaseAVCenterFuzzTest() 116 int32_t engineId = *(reinterpret_cast<const int32_t*>(data)); in CreateControlChannelFuzzTest() local 118 dhfwkKit.CreateControlChannel(engineId, peerDevId); in CreateControlChannelFuzzTest() 129 int32_t engineId = *(reinterpret_cast<const int32_t*>(data)); in NotifyAVCenterFuzzTest() local 131 dhfwkKit.NotifyAVCenter(engineId, event); in NotifyAVCenterFuzzTest()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_service.cpp | 250 int32_t DistributedHardwareService::InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 252 return AVTransControlCenter::GetInstance().InitializeAVCenter(transRole, engineId); in InitializeAVCenter() 255 int32_t DistributedHardwareService::ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 257 return AVTransControlCenter::GetInstance().ReleaseAVCenter(engineId); in ReleaseAVCenter() 260 int32_t DistributedHardwareService::CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 262 return AVTransControlCenter::GetInstance().CreateControlChannel(engineId, peerDevId); in CreateControlChannel() 265 int32_t DistributedHardwareService::NotifyAVCenter(int32_t engineId, const AVTransEvent &event) in NotifyAVCenter() argument 267 return AVTransControlCenter::GetInstance().NotifyAVCenter(engineId, event); in NotifyAVCenter() 270 int32_t DistributedHardwareService::RegisterCtlCenterCallback(int32_t engineId, in RegisterCtlCenterCallback() argument 273 return AVTransControlCenter::GetInstance().RegisterCtlCenterCallback(engineId, callbac in RegisterCtlCenterCallback() [all...] |
H A D | distributed_hardware_stub.cpp | 196 int32_t engineId = 0; in InitializeAVCenterInner() local 197 int32_t ret = InitializeAVCenter(transRole, engineId); in InitializeAVCenterInner() 198 if (!reply.WriteInt32(engineId)) { in InitializeAVCenterInner() 216 int32_t engineId = data.ReadInt32(); in ReleaseAVCenterInner() local 217 int32_t ret = ReleaseAVCenter(engineId); in ReleaseAVCenterInner() 232 int32_t engineId = data.ReadInt32(); in CreateControlChannelInner() local 234 int32_t ret = CreateControlChannel(engineId, peerDevId); in CreateControlChannelInner() 249 int32_t engineId = data.ReadInt32(); in NotifyAVCenterInner() local 253 int32_t ret = NotifyAVCenter(engineId, AVTransEvent{ (EventType)type, content, peerDevId }); in NotifyAVCenterInner() 268 int32_t engineId in RegisterControlCenterCallbackInner() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/src/ |
H A D | distributed_hardware_fwk_kit_test.cpp | 311 int32_t engineId = 0; in HWTEST_F() local 312 int32_t ret = dhfwkPtr_->InitializeAVCenter(transRole, engineId); in HWTEST_F() 327 int32_t engineId = 0; in HWTEST_F() local 328 int32_t ret = dhfwkPtr_->ReleaseAVCenter(engineId); in HWTEST_F() 343 int32_t engineId = 0; in HWTEST_F() local 345 int32_t ret = dhfwkPtr_->CreateControlChannel(engineId, peerDevId); in HWTEST_F() 360 int32_t engineId = 0; in HWTEST_F() local 362 int32_t ret = dhfwkPtr_->NotifyAVCenter(engineId, event); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/src/ipc/ |
H A D | distributed_hardware_proxy.cpp | 220 int32_t DistributedHardwareProxy::InitializeAVCenter(const TransRole &transRole, int32_t &engineId) in InitializeAVCenter() argument 245 engineId = reply.ReadInt32(); in InitializeAVCenter() 250 int32_t DistributedHardwareProxy::ReleaseAVCenter(int32_t engineId) in ReleaseAVCenter() argument 266 if (!data.WriteInt32(engineId)) { in ReleaseAVCenter() 279 int32_t DistributedHardwareProxy::CreateControlChannel(int32_t engineId, const std::string &peerDevId) in CreateControlChannel() argument 295 if (!data.WriteInt32(engineId)) { in CreateControlChannel() 313 int32_t DistributedHardwareProxy::NotifyAVCenter(int32_t engineId, const AVTransEvent &event) in NotifyAVCenter() argument 329 if (!data.WriteInt32(engineId)) { in NotifyAVCenter() 354 int32_t DistributedHardwareProxy::RegisterCtlCenterCallback(int32_t engineId, in RegisterCtlCenterCallback() argument 373 if (!data.WriteInt32(engineId)) { in RegisterCtlCenterCallback() [all...] |
H A D | dhfwk_sa_manager.cpp | 173 DHLOGE("Restore register av control center callback failed, engineId: %{public}" PRId32, entry.first); in RestoreListener() 198 void DHFWKSAManager::AddAVTransControlCenterCbToCache(int32_t engineId, in AddAVTransControlCenterCbToCache() argument 202 avTransControlCenterCbCache_[engineId] = callback; in AddAVTransControlCenterCbToCache() 205 void DHFWKSAManager::RemoveAVTransControlCenterCbFromCache(int32_t engineId) in RemoveAVTransControlCenterCbFromCache() argument 208 avTransControlCenterCbCache_.erase(engineId); in RemoveAVTransControlCenterCbFromCache()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwarestub/src/ |
H A D | distributed_hardware_stub_test.cpp | 134 int32_t engineId = 1; in HWTEST_F() local 135 data.WriteInt32(engineId); in HWTEST_F() 150 int32_t engineId = 1; in HWTEST_F() local 152 data.WriteInt32(engineId); in HWTEST_F() 168 int32_t engineId = 1; in HWTEST_F() local 172 data.WriteInt32(engineId); in HWTEST_F()
|