Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 71) sorted by relevance

123

/base/security/access_token/services/tokensyncmanager/test/mock/include/
Dsession.h155 int (*OnSessionOpened)(int sessionId, int result);
167 void (*OnSessionClosed)(int sessionId);
180 void (*OnBytesReceived)(int sessionId, const void *data, unsigned int dataLen);
193 void (*OnMessageReceived)(int sessionId, const void *data, unsigned int dataLen);
195 …void (*OnStreamReceived)(int sessionId, const StreamData *data, const StreamData *ext, const Frame…
199 int (*OnReceiveFileStarted)(int sessionId, const char *files, int fileCnt);
200 …int (*OnReceiveFileProcess)(int sessionId, const char *firstFile, uint64_t bytesUpload, uint64_t b…
201 void (*OnReceiveFileFinished)(int sessionId, const char *files, int fileCnt);
202 void (*OnFileTransError)(int sessionId);
206 int (*OnSendFileProcess)(int sessionId, uint64_t bytesUpload, uint64_t bytesTotal);
[all …]
/base/security/device_auth/services/frameworks/src/session/
Dsession_manager.c32 int64_t sessionId; member
59 static int32_t GetSessionId(int64_t requestId, int64_t *sessionId) in GetSessionId() argument
65 *sessionId = requestInfo->sessionId; in GetSessionId()
72 static int32_t GetSessionIdByType(int64_t requestId, int32_t type, int64_t *sessionId) in GetSessionIdByType() argument
82 *sessionId = requestInfo->sessionId; in GetSessionIdByType()
124 int64_t sessionId = 0; in IsRequestExist() local
125 return (GetSessionId(requestId, &sessionId) == HC_SUCCESS) ? true : false; in IsRequestExist()
128 static void InformTimeOutAndDestroyRequest(const DeviceAuthCallback *callback, int64_t sessionId) in InformTimeOutAndDestroyRequest() argument
138 if ((requestInfo != NULL) && (requestInfo->sessionId == sessionId)) { in InformTimeOutAndDestroyRequest()
163 InformTimeOutAndDestroyRequest(ptr->callback, ptr->sessionId); in RemoveOverTimeSession()
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_authenticator_session_manager.cpp148 std::string sessionId = session->GetSessionId(); in OpenSession() local
164 sessionMap_.emplace(sessionId, session); in OpenSession()
170 it->second.emplace(sessionId); in OpenSession()
173 sessionSet.emplace(sessionId); in OpenSession()
182 const std::string &sessionId) in GetSession() argument
185 auto it = sessionMap_.find(sessionId); in GetSession()
197 auto it = sessionMap_.find(request.sessionId); in GetAuthenticatorCallback()
199 ACCOUNT_LOGE("failed to find a session by id=%{private}s.", request.sessionId.c_str()); in GetAuthenticatorCallback()
216 for (auto sessionId : it->second) { in OnAbilityStateChanged() local
217 auto sessionIt = sessionMap_.find(sessionId); in OnAbilityStateChanged()
[all …]
Dapp_account_authenticator_callback.cpp23 AppAccountAuthenticatorCallback::AppAccountAuthenticatorCallback(const std::string &sessionId) in AppAccountAuthenticatorCallback() argument
24 : sessionId_(sessionId) in AppAccountAuthenticatorCallback()
Dapp_account_check_labels_callback.cpp25 const AuthenticatorSessionRequest &request, const std::string &sessionId) in AppAccountCheckLabelsCallback() argument
26 : accounts_(accounts), request_(request), sessionId_(sessionId) in AppAccountCheckLabelsCallback()
Dapp_account_authenticator_session.cpp29 …ntDeathRecipient::SessionClientDeathRecipient(const std::string &sessionId) : sessionId_(sessionId) in SessionClientDeathRecipient() argument
41 …erDeathRecipient::SessionServerDeathRecipient(const std::string &sessionId) : sessionId_(sessionId) in SessionServerDeathRecipient() argument
53 SessionConnection::SessionConnection(const std::string &sessionId) : sessionId_(sessionId) in SessionConnection() argument
/base/security/access_token/services/tokensyncmanager/include/remote/
Dsoft_bus_session_listener.h43 static int32_t OnSessionOpened(int32_t sessionId, int32_t result);
55 static void OnSessionClosed(int32_t sessionId);
68 static void OnMessageReceived(int32_t sessionId, const void *data, uint32_t dataLen);
81 static void OnBytesReceived(int32_t sessionId, const void *data, uint32_t dataLen);
93 static int64_t GetSessionState(int32_t sessionId);
95 static void DeleteSessionIdFromMap(int32_t sessionId);
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_session_manager.c32 static int MessengerOnSessionOpened(int sessionId, int result);
33 static void MessengerOnSessionClosed(int sessionId);
34 static void MessengerOnBytesReceived(int sessionId, const void *data, unsigned int dataLen);
35 static void MessengerOnMessageReceived(int sessionId, const void *data, unsigned int dataLen);
66 int32_t sessionId; member
151 static bool GetDeviceIdentityFromSessionId(int sessionId, DeviceIdentify *identity, uint32_t *maskI… in GetDeviceIdentityFromSessionId() argument
157 int ret = GetPeerDeviceId(sessionId, networkId, DEVICE_ID_MAX_LEN + 1); in GetDeviceIdentityFromSessionId()
159 …_LOG_INFO("GetPeerDeviceId failed, sessionId is %{public}d, result is %{public}d", sessionId, ret); in GetDeviceIdentityFromSessionId()
173 static int MessengerOnSessionOpened(int sessionId, int result) in MessengerOnSessionOpened() argument
175 int side = GetSessionSide(sessionId); in MessengerOnSessionOpened()
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_authenticator_session_manager_module_test.cpp294 std::string sessionId = SESSION_ID; variable
295 auto sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
302 appAccountAuthenticatorSessionManagerPtr_->sessionMap_[sessionId] = session;
303 sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
319 request.sessionId = SESSION_ID;
340 std::string sessionId = SESSION_ID; variable
350 auto sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
353 appAccountAuthenticatorSessionManagerPtr_->OnSessionServerDied(sessionId);
355 appAccountAuthenticatorSessionManagerPtr_->sessionMap_[sessionId] = session;
356 sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
[all …]
Dapp_account_authenticator_callback_test.cpp108 const std::string sessionId = "testsessionid"; variable
109 … AppAccountAuthenticatorCallbackPtr = std::make_shared<AppAccountAuthenticatorCallback>(sessionId);
113 ASSERT_EQ(AppAccountAuthenticatorCallbackPtr->sessionId_, sessionId);
115 ASSERT_EQ(AppAccountAuthenticatorCallbackPtr->sessionId_, sessionId);
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_authenticator_session_manager.h61 void CloseSession(const std::string &sessionId);
63 std::shared_ptr<AppAccountAuthenticatorSession> GetSession(const std::string &sessionId);
64 void OnSessionServerDied(const std::string &sessionId);
65 …void OnSessionAbilityConnectDone(const std::string &sessionId, const AppExecFwk::ElementName &elem…
68 const std::string &sessionId, const AppExecFwk::ElementName &element, int resultCode);
69 … void OnSessionResult(const std::string &sessionId, int32_t resultCode, const AAFwk::Want &result);
70 void OnSessionRequestRedirected(const std::string &sessionId, AAFwk::Want &request);
71 void OnSessionRequestContinued(const std::string &sessionId);
Dapp_account_authenticator_session.h34 explicit SessionClientDeathRecipient(const std::string &sessionId);
45 explicit SessionServerDeathRecipient(const std::string &sessionId);
56 explicit SessionConnection(const std::string &sessionId);
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_session_mock.cpp91 void CloseSession(int sessionId) in CloseSession() argument
93 ACCESSTOKEN_LOG_DEBUG(LABEL, "sessionId: %{public}d", sessionId); in CloseSession()
101 int SendBytes(int sessionId, const void *data, unsigned int len) in SendBytes() argument
104 if (sessionId == Constant::INVALID_SESSION) { in SendBytes()
112 int GetPeerSessionName(int sessionId, char *sessionName, unsigned int len) in GetPeerSessionName() argument
114 if (sessionId == Constant::INVALID_SESSION) { in GetPeerSessionName()
118 if (sessionId < SERVER_COUNT_LIMIT) { in GetPeerSessionName()
121 x = "sessionid-" + std::to_string(sessionId); in GetPeerSessionName()
135 int GetPeerDeviceId(int sessionId, char *devId, unsigned int len) in GetPeerDeviceId() argument
137 if (sessionId == Constant::INVALID_SESSION) { in GetPeerDeviceId()
[all …]
/base/security/device_auth/services/key_agree_sdk/inc/
Dkey_agree_session_manager.h23 uint32_t (*addSession)(KeyAgreeSession *sessionId, SpekeSession *spekeSession);
24 uint32_t (*deleteSession)(KeyAgreeSession *sessionId);
25 SpekeSession *(*getSession)(KeyAgreeSession *sessionId);
/base/security/device_auth/services/group_manager/src/channel_manager/soft_bus_channel/
Dsoft_bus_channel.c150 static bool IsServer(int sessionId) in IsServer() argument
152 return GetSessionSide(sessionId) == 0; in IsServer()
155 static int OnChannelOpenedCb(int sessionId, int result) in OnChannelOpenedCb() argument
157 if (IsServer(sessionId)) { in OnChannelOpenedCb()
162 if (GetReqIdByChannelId(sessionId, &requestId) != HC_SUCCESS) { in OnChannelOpenedCb()
171 LOGD("[Start]: OnChannelOpened! [ReqId]: %" PRId64 ", [ChannelId]: %d", requestId, sessionId); in OnChannelOpenedCb()
178 InitSoftBusTask(task, requestId, sessionId); in OnChannelOpenedCb()
188 static void OnChannelClosedCb(int sessionId) in OnChannelClosedCb() argument
190 LOGI("[SoftBus][Out]: OnChannelClosed! sessionId: %d", sessionId); in OnChannelClosedCb()
191 if (IsServer(sessionId)) { in OnChannelClosedCb()
[all …]
/base/security/access_token/services/tokensyncmanager/src/remote/
Dsoft_bus_session_listener.cpp83 void SoftBusSessionListener::OnMessageReceived(int32_t sessionId, const void *data, uint32_t dataLe… in OnMessageReceived() argument
89 void SoftBusSessionListener::OnBytesReceived(int32_t sessionId, const void *data, uint32_t dataLen) in OnBytesReceived() argument
91 if ((sessionId == Constant::INVALID_SESSION) || (dataLen == 0) || in OnBytesReceived()
99 int32_t resultCode = ::GetPeerDeviceId(sessionId, contents, len); in OnBytesReceived()
111 …channel->HandleDataReceived(sessionId, static_cast<unsigned char *>(const_cast<void *>(data)), dat… in OnBytesReceived()
114 int64_t SoftBusSessionListener::GetSessionState(int32_t sessionId) in GetSessionState() argument
118 auto iter = g_SessionOpenedMap_.find(sessionId); in GetSessionState()
Dsoft_bus_manager.cpp230 int sessionId = ::OpenSession(SESSION_NAME.c_str(), SESSION_NAME.c_str(), networkId.c_str(), in OpenSession() local
240 if (SoftBusSessionListener::GetSessionState(sessionId) < 0) { in OpenSession()
253 int64_t state = SoftBusSessionListener::GetSessionState(sessionId); in OpenSession()
259 SoftBusSessionListener::DeleteSessionIdFromMap(sessionId); in OpenSession()
262 return sessionId; in OpenSession()
265 int SoftBusManager::CloseSession(int sessionId) in CloseSession() argument
267 if (sessionId < 0) { in CloseSession()
272 ::CloseSession(sessionId); in CloseSession()
/base/update/updater/services/flashd/daemon/
Ddaemon.cpp154 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, in HandDaemonAuth()
173 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, in HandDaemonAuth()
206 uint32_t unOld = hSession->sessionId; in DaemonSessionHandshake()
207 hSession->sessionId = handshake.sessionId; in DaemonSessionHandshake()
211 (reinterpret_cast<HdcDaemonUSB *>(clsUSBServ))->OnNewHandshakeOK(hSession->sessionId); in DaemonSessionHandshake()
214 handshake.sessionId = 0; in DaemonSessionHandshake()
227 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, in DaemonSessionHandshake()
252 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1); in FetchCommand()
293 bool HdcDaemon::ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t co… in ServerCommand() argument
296 return Send(sessionId, channelId, command, bufPtr, size) > 0; in ServerCommand()
/base/security/device_auth/test/unittest/deviceauth/source/
Dkey_agree_sdk_test.cpp72 g_session->sessionId = g_sessionIdClient;
79 g_session_s->sessionId = g_sessionIdServer;
86 g_session->sessionId = g_sessionIdClient;
93 g_session->sessionId = g_sessionIdClient;
100 g_session->sessionId = g_sessionIdClient;
107 g_session->sessionId = g_sessionIdClient;
114 g_session->sessionId = g_sessionIdClient;
162 g_session->sessionId = g_sessionIdClient;
172 g_session->sessionId = g_sessionIdClient;
182 g_session->sessionId = g_sessionIdClient;
[all …]
/base/update/updateservice/frameworks/js/napi/base/include/
Dsession_manager.h30 void RemoveSession(uint32_t sessionId);
46 bool GetFirstSessionId(uint32_t &sessionId);
47 bool GetNextSessionId(uint32_t &sessionId);
Diupdater.h37 void RemoveSession(uint32_t sessionId) in RemoveSession() argument
42 sessionsMgr_->RemoveSession(sessionId); in RemoveSession()
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_session_manager.c110 (sessionNode->session->sessionId == session->sessionId)) { in DeleteSessionInner()
134 (sessionNode->session->sessionId == session->sessionId)) { in GetSessionInner()
/base/account/os_account/services/accountmgr/test/unittest/ability_manager_adapter/
Dability_manager_adapter_test.cpp77 explicit AbilityConnectCallbackTest(const std::string &sessionId) {} in AbilityConnectCallbackTest() argument
97 std::string sessionId = "testsessionId"; variable
98 … sptr<AbilityConnectCallbackTest> conn_ = new (std::nothrow) AbilityConnectCallbackTest(sessionId);
/base/telephony/core_service/services/sim/src/
Dradio_protocol_controller.cpp50 protocol.sessionId = 0; in Init()
177 if (radioProtocol == nullptr || radioProtocol->sessionId != sessionId_) { in ProcessRadioProtocolNotify()
222 auto sessionId = event->GetParam(); in ProcessSetRadioProtocolTimeout() local
223 if (sessionId != sessionId_) { in ProcessSetRadioProtocolTimeout()
276 radioProtocol.sessionId = sessionId_; in BuildRadioProtocolForCommunication()
295 oldRadioProtocol_[i].sessionId = sessionId_; in BuildRadioProtocolForCommunication()
298 newRadioProtocol_[i].sessionId = sessionId_; in BuildRadioProtocolForCommunication()
336 radioProtocol_[slotId].sessionId = radioProtocol->sessionId; in UpdateRadioProtocol()
358 return radioProtocol != nullptr && radioProtocol->sessionId == sessionId_; in ProcessResponseInfoOfEvent()
/base/update/updateservice/frameworks/js/napi/base/src/
Dsession_manager.cpp56 void SessionManager::RemoveSession(uint32_t sessionId) in RemoveSession() argument
63 auto iter = sessions_.find(sessionId); in RemoveSession()
78 bool SessionManager::GetFirstSessionId(uint32_t &sessionId) in GetFirstSessionId() argument
87 sessionId = sessions_.begin()->second->GetSessionId(); in GetFirstSessionId()
92 bool SessionManager::GetNextSessionId(uint32_t &sessionId) in GetNextSessionId() argument
98 auto iter = sessions_.find(sessionId); in GetNextSessionId()
106 sessionId = iter->second->GetSessionId(); in GetNextSessionId()

123