Home
last modified time | relevance | path

Searched refs:SoftBusHandler (Results 1 - 25 of 31) sorted by relevance

12

/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_handler_test.cpp119 SoftBusHandler handler; in HWTEST_F()
158 SoftBusHandler handler; in HWTEST_F()
184 SoftBusHandler handler; in HWTEST_F()
223 SoftBusHandler handler; in HWTEST_F()
251 SoftBusHandler handler; in HWTEST_F()
282 SoftBusHandler::clientSessNameMap_.insert(std::make_pair(sessionId, testSessionName)); in HWTEST_F()
283 SoftBusHandler handler; in HWTEST_F()
286 SoftBusHandler::clientSessNameMap_.erase(sessionId); in HWTEST_F()
302 SoftBusHandler handler; in HWTEST_F()
348 SoftBusHandler handle in HWTEST_F()
[all...]
H A Dsoftbus_file_send_listener_test.cpp60 SoftBusHandler::clientSessNameMap_.insert(std::make_pair(SOCKET_ID, SESSION_NAME)); in SetUp()
66 SoftBusHandler::clientSessNameMap_.erase(SOCKET_ID); in TearDown()
117 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); in HWTEST_F()
121 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); in HWTEST_F()
122 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) { in HWTEST_F()
144 SoftBusHandler::GetInstance().serverIdMap_.insert(std::make_pair(SESSION_NAME, SOCKET_ID)); in HWTEST_F()
147 auto it = SoftBusHandler::GetInstance().serverIdMap_.find(SESSION_NAME); in HWTEST_F()
148 if (it == SoftBusHandler::GetInstance().serverIdMap_.end()) { in HWTEST_F()
H A Dsoftbus_file_receive_listener_test.cpp95 SoftBusHandler::clientSessNameMap_.insert(std::make_pair(sessionId, testSessionName)); in HWTEST_F()
98 SoftBusHandler::clientSessNameMap_.erase(sessionId); in HWTEST_F()
122 SoftBusHandler::clientSessNameMap_.insert(std::make_pair(socket, "mySessionName")); in HWTEST_F()
144 SoftBusHandler::clientSessNameMap_.erase(socket); in HWTEST_F()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_handler.cpp42 std::mutex SoftBusHandler::clientSessNameMapMutex_;
43 std::map<int32_t, std::string> SoftBusHandler::clientSessNameMap_;
44 std::mutex SoftBusHandler::serverIdMapMutex_;
45 std::map<std::string, int32_t> SoftBusHandler::serverIdMap_;
46 std::mutex SoftBusHandler::networkIdMapMutex_;
47 std::map<int32_t, std::string> SoftBusHandler::networkIdMap_;
48 void SoftBusHandler::OnSinkSessionOpened(int32_t sessionId, PeerSocketInfo info) in OnSinkSessionOpened()
56 std::lock_guard<std::mutex> lock(SoftBusHandler::clientSessNameMapMutex_); in OnSinkSessionOpened()
57 SoftBusHandler::clientSessNameMap_.insert(std::make_pair(sessionId, info.name)); in OnSinkSessionOpened()
60 bool SoftBusHandler
89 SoftBusHandler::SoftBusHandler() SoftBusHandler() function in OHOS::Storage::DistributedFile::SoftBusHandler
[all...]
H A Dsoftbus_file_send_listener.cpp57 sessionName = SoftBusHandler::GetSessionName(sessionId); in GetLocalSessionName()
75 SoftBusHandler::GetInstance().CloseSession(sessionId, sessionName); in OnSendFileFinished()
86 SoftBusHandler::GetInstance().CloseSession(sessionId, sessionName); in OnFileTransError()
102 SoftBusHandler::GetInstance().CloseSession(sessionId, sessionName); in OnSendFileShutdown()
H A Dsoftbus_file_receive_listener.cpp92 SoftBusHandler::OnSinkSessionOpened(socketId, info); in OnCopyReceiveBind()
98 sessionName = SoftBusHandler::GetSessionName(sessionId); in GetLocalSessionName()
129 SoftBusHandler::GetInstance().ChangeOwnerIfNeeded(sessionId, sessionName); in OnReceiveFileFinished()
146 SoftBusHandler::GetInstance().CloseSession(sessionId, sessionName); in OnFileTransError()
170 SoftBusHandler::GetInstance().CloseSession(sessionId, sessionName); in OnReceiveFileShutdown()
H A Dsoftbus_session_listener.cpp124 sessionName = SoftBusHandler::GetSessionName(sessionId); in OnSessionClosed()
126 SoftBusHandler::GetInstance().CloseSessionWithSessionName(sessionName); in OnSessionClosed()
/foundation/communication/dsoftbus/core/common/include/
H A Dmessage_handler.h27 typedef struct SoftBusHandler SoftBusHandler; typedef
36 void (*RemoveMessage)(const SoftBusLooper *looper, const SoftBusHandler *handler, int32_t what);
38 void (*RemoveMessageCustom)(const SoftBusLooper *looper, const SoftBusHandler *handler,
42 struct SoftBusHandler { struct
54 SoftBusHandler *handler;
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_handler.h35 class SoftBusHandler { class
37 SoftBusHandler();
38 ~SoftBusHandler();
39 static SoftBusHandler &GetInstance();
/foundation/communication/dsoftbus/core/common/dfx/hisysevent_adapter/
H A Dsoftbus_hisysevt_common.c90 static inline SoftBusHandler* CreateHandler(SoftBusLooper *looper, HandleMessageFunc callback) in CreateHandler()
92 SoftBusHandler *handler = SoftBusMalloc(sizeof(SoftBusHandler)); in CreateHandler()
111 SoftBusHandler *handler = CreateHandler(looper, callback); in CreateMessage()
/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_async_callback_utils.c30 SoftBusHandler handler;
69 static void InitAsyncCallbackMessage(SoftBusMessage *msg, int32_t what, void *obj, SoftBusHandler *handler) in InitAsyncCallbackMessage()
77 static void InitAsyncCallbackHandler(SoftBusHandler *handler, SoftBusLooper *looper) in InitAsyncCallbackHandler()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Ddaemon_execute.cpp165 ret = SoftBusHandler::GetInstance().OpenSession(sessionName, sessionName, dstDeviceId, socketId); in RequestSendFileInner()
174 ret = SoftBusHandler::GetInstance().CopySendFile(socketId, sessionName, srcUri, dstPath); in RequestSendFileInner()
177 SoftBusHandler::GetInstance().CloseSession(socketId, sessionName); in RequestSendFileInner()
H A Ddaemon.cpp423 auto socketId = SoftBusHandler::GetInstance().CreateSessionServer(IDaemon::SERVICE_NAME, sessionName, in PrepareSession()
641 SoftBusHandler::GetInstance().CloseSessionWithSessionName(sessionName); in CancelCopyTask()
649 SoftBusHandler::GetInstance().CloseSession(socketId, sessionName); in DeleteSessionAndListener()
/foundation/communication/dsoftbus/core/bus_center/utils/include/
H A Dlnn_state_machine.h56 SoftBusHandler handler;
/foundation/communication/dsoftbus/core/connection/common/include/
H A Dsoftbus_conn_common.h42 SoftBusHandler handler;
/foundation/communication/dsoftbus/tests/core/common/message_handler/unittest/
H A Dmessage_handler_test.c36 static SoftBusHandler g_networkingHandler = {
/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/
H A Dsoftbus_hidumper_broadcast.c32 static SoftBusHandler g_bcDumphandler = {0};
/foundation/communication/dsoftbus/core/common/message_handler/
H A Dmessage_handler.c224 static void DumpLooperLocked(const SoftBusLooperContext *context, const SoftBusHandler *handler) in DumpLooperLocked()
379 static void LoopRemoveMessageCustom(const SoftBusLooper *looper, const SoftBusHandler *handler, in LoopRemoveMessageCustom()
409 static void LooperRemoveMessage(const SoftBusLooper *looper, const SoftBusHandler *handler, int32_t what) in LooperRemoveMessage()
/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/
H A Dinstant_statistics.cpp937 static inline SoftBusHandler *CreateHandler(SoftBusLooper *looper, InstAsyncCallbackFunc callback)
940 SoftBusHandler *handler = static_cast<SoftBusHandler *>(SoftBusMalloc(sizeof(SoftBusHandler)));
969 SoftBusHandler *handler = CreateHandler(looper, callback);
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_builder.h96 SoftBusHandler handler;
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/all_connect/
H A Dall_connect_manager.cpp246 SoftBusHandler::GetInstance().CopyOnStop(pNetworkId); in OnStop()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_link_conflict.c41 static SoftBusHandler g_linkConflictLoopHandler;
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_common.c50 static SoftBusHandler g_authHandler = { NULL, NULL, NULL };
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/time_sync/src/
H A Dlnn_time_sync_manager.c61 SoftBusHandler handler;
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_pipeline.c71 SoftBusHandler handler;

Completed in 15 milliseconds

12