diff --git a/common/include/constants/distributed_camera_constants.h b/common/include/constants/distributed_camera_constants.h index bc1225101793a9cd30bd6d61bd5d24ea4eb4bd50..d89ffa24b66d2ae237aa710fd5cb9733b524cb08 100644 --- a/common/include/constants/distributed_camera_constants.h +++ b/common/include/constants/distributed_camera_constants.h @@ -74,7 +74,7 @@ const uint32_t DCAMERA_PRODUCER_FPS_DEFAULT = 30; const uint32_t DCAMERA_MAX_RECV_DATA_LEN = 104857600; const uint32_t DISTRIBUTED_HARDWARE_CAMERA_SOURCE_SA_ID = 4803; const uint32_t DISTRIBUTED_HARDWARE_CAMERA_SINK_SA_ID = 4804; -const std::string DCAMERA_PKG_NAME = "DBinderBus_" + std::to_string(getpid()); +const std::string DCAMERA_PKG_NAME = "ohos.dhardware"; const std::string SNAP_SHOT_SESSION_FLAG = "dataSnapshot"; const std::string CONTINUE_SESSION_FLAG = "dataContinue"; diff --git a/services/channel/include/dcamera_channel_sink_impl.h b/services/channel/include/dcamera_channel_sink_impl.h index d276d119d3812e88e9d09aa7b412c8c6a4f74e52..7755a0e99ce1ba7e1bd1dfdad8a08e9c42502c21 100644 --- a/services/channel/include/dcamera_channel_sink_impl.h +++ b/services/channel/include/dcamera_channel_sink_impl.h @@ -39,7 +39,7 @@ private: std::shared_ptr softbusSession_; std::string mySessionName_; DCameraSessionMode mode_; - const std::string SESSION_HEAD = "DBinder.ohos.dhardware.dcamera_"; + const std::string SESSION_HEAD = "ohos.dhardware.dcamera_"; }; } } diff --git a/services/channel/include/dcamera_channel_source_impl.h b/services/channel/include/dcamera_channel_source_impl.h index f12b5309aec6432f3b62a96a09192e63ca61af9f..ee96ab204238f77a8a39ba876789258e6b3ce406 100644 --- a/services/channel/include/dcamera_channel_source_impl.h +++ b/services/channel/include/dcamera_channel_source_impl.h @@ -39,7 +39,7 @@ private: std::vector> softbusSessions_; std::string mySessionName_; DCameraSessionMode mode_; - const std::string SESSION_HEAD = "DBinder.ohos.dhardware.dcamera_"; + const std::string SESSION_HEAD = "ohos.dhardware.dcamera_"; }; } } diff --git a/services/channel/include/dcamera_softbus_adapter.h b/services/channel/include/dcamera_softbus_adapter.h index 79c396043452b028c5e6394a40d31044bea29267..123c8f5f29d47262302d2edbbc467d56a0606d60 100644 --- a/services/channel/include/dcamera_softbus_adapter.h +++ b/services/channel/include/dcamera_softbus_adapter.h @@ -72,7 +72,7 @@ private: private: std::mutex optLock_; - const string PKG_NAME = "DBinderBus_" + std::to_string(getpid()); + const string PKG_NAME = "ohos.dhardware"; static const uint32_t DCAMERA_SESSION_NAME_MAX_LEN = 128; map sessListeners_; std::map sessionTotal_;