!102 fix:add privacy info input

Merge pull request !102 from chen0088/master
This commit is contained in:
openharmony_ci
2023-11-22 08:02:44 +00:00
committed by Gitee
2 changed files with 24 additions and 0 deletions
@@ -41,6 +41,10 @@ public:
int32_t UnsubscribeLocalHardware(const std::string &dhId) override;
void OnRemoteSinkSvrDied(const wptr<IRemoteObject> &remote);
void FinishStartSA(const std::string &params, const sptr<IRemoteObject> &remoteObject);
int32_t RegisterPrivacyResources(std::shared_ptr<PrivacyResourcesListener> listener) override;
int32_t PauseDistributedHardware(const std::string &networkId) override;
int32_t ResumeDistributedHardware(const std::string &networkId) override;
int32_t StopDistributedHardware(const std::string &networkId) override;
public:
class SALoadSinkCb : public OHOS::SystemAbilityLoadCallbackStub {
@@ -155,6 +155,26 @@ void DistributedInputSinkHandler::OnRemoteSinkSvrDied(const wptr<IRemoteObject>
dInputSinkProxy_ = nullptr;
}
int32_t DistributedInputSinkHandler::RegisterPrivacyResources(std::shared_ptr<PrivacyResourcesListener> listener)
{
return DH_SUCCESS;
}
int32_t DistributedInputSinkHandler::PauseDistributedHardware(const std::string &networkId)
{
return DH_SUCCESS;
}
int32_t DistributedInputSinkHandler::ResumeDistributedHardware(const std::string &networkId)
{
return DH_SUCCESS;
}
int32_t DistributedInputSinkHandler::StopDistributedHardware(const std::string &networkId)
{
return DH_SUCCESS;
}
IDistributedHardwareSink *GetSinkHardwareHandler()
{
return &DistributedInputSinkHandler::GetInstance();