diff --git a/services/distributedhardwarefwkservice/src/distributed_hardware_stub.cpp b/services/distributedhardwarefwkservice/src/distributed_hardware_stub.cpp index 1285e94ceb7ae4d3979fdf90d2729d4ac685cf94..19c8d50577e58eaf6bb66e7964c94362489ed403 100644 --- a/services/distributedhardwarefwkservice/src/distributed_hardware_stub.cpp +++ b/services/distributedhardwarefwkservice/src/distributed_hardware_stub.cpp @@ -79,15 +79,6 @@ int32_t DistributedHardwareStub::OnRemoteRequest(uint32_t code, MessageParcel &d case static_cast(DHMsgInterfaceCode::NOTIFY_SOURCE_DEVICE_REMOTE_DMSDP_STARTED): { return HandleNotifySourceRemoteSinkStarted(data, reply); } - case static_cast(DHMsgInterfaceCode::PAUSE_DISTRIBUTED_HARDWARE): { - return PauseDistributedHardwareInner(data, reply); - } - case static_cast(DHMsgInterfaceCode::RESUME_DISTRIBUTED_HARDWARE): { - return ResumeDistributedHardwareInner(data, reply); - } - case static_cast(DHMsgInterfaceCode::STOP_DISTRIBUTED_HARDWARE): { - return StopDistributedHardwareInner(data, reply); - } default: return OnRemoteRequestEx(code, data, reply, option); } @@ -608,6 +599,15 @@ int32_t DistributedHardwareStub::OnRemoteRequestEx(uint32_t code, MessageParcel MessageOption &option) { switch (code) { + case static_cast(DHMsgInterfaceCode::PAUSE_DISTRIBUTED_HARDWARE): { + return PauseDistributedHardwareInner(data, reply); + } + case static_cast(DHMsgInterfaceCode::RESUME_DISTRIBUTED_HARDWARE): { + return ResumeDistributedHardwareInner(data, reply); + } + case static_cast(DHMsgInterfaceCode::STOP_DISTRIBUTED_HARDWARE): { + return StopDistributedHardwareInner(data, reply); + } case static_cast(DHMsgInterfaceCode::GET_DISTRIBUTED_HARDWARE): { return GetDistributedHardwareInner(data, reply); }