Home
last modified time | relevance | path

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

1234

/base/security/device_auth/services/session_manager/src/
Ddev_session_mgr.c38 static int32_t GetSessionInfo(int64_t sessionId, SessionInfo **returnObj) in GetSessionInfo() argument
44 if (session->id == sessionId) { in GetSessionInfo()
71 static int32_t CheckEnvForOpenSession(int64_t sessionId) in CheckEnvForOpenSession() argument
74 int32_t res = GetSessionInfo(sessionId, &sessionInfo); in CheckEnvForOpenSession()
76 LOGE("session has existed. [Id]: %" PRId64, sessionId); in CheckEnvForOpenSession()
124 bool IsSessionExist(int64_t sessionId) in IsSessionExist() argument
128 int32_t res = GetSessionInfo(sessionId, &sessionInfo); in IsSessionExist()
133 int32_t OpenDevSession(int64_t sessionId, const char *appId, SessionInitParams *params) in OpenDevSession() argument
141 int32_t res = CheckEnvForOpenSession(sessionId); in OpenDevSession()
147 res = CreateDevSession(sessionId, appId, params, &session); in OpenDevSession()
[all …]
/base/security/device_auth/services/session_manager/inc/
Ddev_session_mgr.h30 int32_t OpenDevSession(int64_t sessionId, const char *appId, SessionInitParams *params);
31 int32_t StartDevSession(int64_t sessionId);
32 int32_t ProcessDevSession(int64_t sessionId, const CJson *receviedMsg, bool *isFinish);
33 void CloseDevSession(int64_t sessionId);
34 bool IsSessionExist(int64_t sessionId);
35 void CancelDevSession(int64_t sessionId, const char *appId);
/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()
/base/security/device_security_level/baselib/msglib/src/lite/
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);
60 int32_t sessionId; member
131 static bool GetDeviceIdentityFromSessionId(int sessionId, DeviceIdentify *identity, uint32_t *maskI… in GetDeviceIdentityFromSessionId() argument
137 int ret = GetPeerDeviceId(sessionId, networkId, DEVICE_ID_MAX_LEN + 1); in GetDeviceIdentityFromSessionId()
139 …_LOG_INFO("GetPeerDeviceId failed, sessionId is %{public}d, result is %{public}d", sessionId, ret); in GetDeviceIdentityFromSessionId()
154 static int MessengerOnSessionOpened(int sessionId, int result) in MessengerOnSessionOpened() argument
156 int side = GetSessionSide(sessionId); in MessengerOnSessionOpened()
[all …]
/base/security/device_auth/services/frameworks/src/plugin_adapter_mock/
Daccount_auth_plugin_proxy_mock.c36 int32_t CreateAuthSession(int32_t *sessionId, const CJson *in, CJson *out) in CreateAuthSession() argument
38 (void)sessionId; in CreateAuthSession()
44 int32_t ProcessAuthSession(int32_t *sessionId, const CJson *in, CJson *out, int32_t *status) in ProcessAuthSession() argument
46 (void)sessionId; in ProcessAuthSession()
53 int32_t DestroyAuthSession(int32_t sessionId) in DestroyAuthSession() argument
55 (void)sessionId; in DestroyAuthSession()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_authenticator_session_manager_module_test.cpp303 std::string sessionId = SESSION_ID; variable
304 auto sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
311 appAccountAuthenticatorSessionManagerPtr_->sessionMap_[sessionId] = session;
312 sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
328 request.sessionId = SESSION_ID;
349 std::string sessionId = SESSION_ID; variable
359 auto sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
362 appAccountAuthenticatorSessionManagerPtr_->OnSessionServerDied(sessionId);
364 appAccountAuthenticatorSessionManagerPtr_->sessionMap_[sessionId] = session;
365 sessionPtr = appAccountAuthenticatorSessionManagerPtr_->GetSession(sessionId);
[all …]
Dapp_account_authenticator_callback_test.cpp115 const std::string sessionId = "testsessionid"; variable
116 … AppAccountAuthenticatorCallbackPtr = std::make_shared<AppAccountAuthenticatorCallback>(sessionId);
120 ASSERT_EQ(AppAccountAuthenticatorCallbackPtr->sessionId_, sessionId);
122 ASSERT_EQ(AppAccountAuthenticatorCallbackPtr->sessionId_, sessionId);
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_authenticator_session_manager.h59 void CloseSession(const std::string &sessionId);
61 std::shared_ptr<AppAccountAuthenticatorSession> GetSession(const std::string &sessionId);
62 void OnSessionServerDied(const std::string &sessionId);
63 …void OnSessionAbilityConnectDone(const std::string &sessionId, const AppExecFwk::ElementName &elem…
66 const std::string &sessionId, const AppExecFwk::ElementName &element, int resultCode);
67 … void OnSessionResult(const std::string &sessionId, int32_t resultCode, const AAFwk::Want &result);
68 void OnSessionRequestRedirected(const std::string &sessionId, AAFwk::Want &request);
69 void OnSessionRequestContinued(const std::string &sessionId);
/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/legacy/group_manager/src/channel_manager/soft_bus_channel/
Dsoft_bus_channel.c153 static bool IsServer(int sessionId) in IsServer() argument
155 return GetSessionSide(sessionId) == 0; in IsServer()
158 static int OnChannelOpenedCb(int sessionId, int result) in OnChannelOpenedCb() argument
160 if (IsServer(sessionId)) { in OnChannelOpenedCb()
165 if (GetReqIdByChannelId(sessionId, &requestId) != HC_SUCCESS) { in OnChannelOpenedCb()
174 LOGI("[Start]: OnChannelOpened! [ChannelId]: %d, [ReqId]: %" PRId64, sessionId, requestId); in OnChannelOpenedCb()
191 static void OnChannelClosedCb(int sessionId) in OnChannelClosedCb() argument
193 LOGI("[SoftBus][Out]: OnChannelClosed! sessionId: %d", sessionId); in OnChannelClosedCb()
194 if (IsServer(sessionId)) { in OnChannelClosedCb()
197 RemoveChannelEntry(sessionId); in OnChannelClosedCb()
[all …]
/base/msdp/device_status/services/interaction/coordination/src/
Dcoordination_softbus_adapter.cpp50 void ResponseStartRemoteCoordination(int32_t sessionId, const JsonParser &parser) in ResponseStartRemoteCoordination() argument
64 void ResponseStartRemoteCoordinationResult(int32_t sessionId, const JsonParser &parser) in ResponseStartRemoteCoordinationResult() argument
80 void ResponseStopRemoteCoordination(int32_t sessionId, const JsonParser &parser) in ResponseStopRemoteCoordination() argument
92 void ResponseStopRemoteCoordinationResult(int32_t sessionId, const JsonParser &parser) in ResponseStopRemoteCoordinationResult() argument
104 void ResponseNotifyUnchainedResult(int32_t sessionId, const JsonParser &parser) in ResponseNotifyUnchainedResult() argument
116 void ResponseStartCoordinationOtherResult(int32_t sessionId, const JsonParser &parser) in ResponseStartCoordinationOtherResult() argument
290 …CoordinationSoftbusAdapter::WaitSessionOpend(const std::string &remoteNetworkId, int32_t sessionId) in WaitSessionOpend() argument
294 sessionDevs_[remoteNetworkId] = sessionId; in WaitSessionOpend()
313 int32_t sessionId = sessionDevs_[remoteNetworkId]; in CloseInputSoftbus() local
315 Shutdown(sessionId); in CloseInputSoftbus()
[all …]
/base/security/device_auth/services/frameworks/src/plugin_adapter/
Daccount_auth_plugin_proxy.c63 int32_t CreateAuthSession(int32_t *sessionId, const CJson *in, CJson *out) in CreateAuthSession() argument
69 return g_accountAuthPlugin->createSession(sessionId, in, out); in CreateAuthSession()
72 int32_t ProcessAuthSession(int32_t *sessionId, const CJson *in, CJson *out, int32_t *status) in ProcessAuthSession() argument
78 return g_accountAuthPlugin->processSession(sessionId, in, out, status); in ProcessAuthSession()
81 int32_t DestroyAuthSession(int32_t sessionId) in DestroyAuthSession() argument
87 return g_accountAuthPlugin->destroySession(sessionId); in DestroyAuthSession()
/base/security/device_auth/services/frameworks/inc/plugin_adapter/
Daccount_auth_plugin_proxy.h29 int32_t CreateAuthSession(int32_t *sessionId, const CJson *in, CJson *out);
30 int32_t ProcessAuthSession(int32_t *sessionId, const CJson *in, CJson *out, int32_t *status);
31 int32_t DestroyAuthSession(int32_t sessionId);
/base/update/updater/services/flashd/daemon/
Ddaemon.cpp160 …Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), bufString… in HandDaemonAuth()
178 … Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), in HandDaemonAuth()
211 uint32_t unOld = hSession->sessionId; in DaemonSessionHandshake()
212 hSession->sessionId = handshake.sessionId; in DaemonSessionHandshake()
216 (reinterpret_cast<HdcDaemonUSB *>(clsUSBServ))->OnNewHandshakeOK(hSession->sessionId); in DaemonSessionHandshake()
219 handshake.sessionId = 0; in DaemonSessionHandshake()
232 …Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), bufString… in DaemonSessionHandshake()
256 Send(hSession->sessionId, channelId, CMD_KERNEL_CHANNEL_CLOSE, payload, 1); in FetchCommand()
297 bool HdcDaemon::ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t co… in ServerCommand() argument
300 return Send(sessionId, channelId, command, (uint8_t *)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/update/include/
Dsession_manager.h38 void RemoveSession(uint32_t sessionId);
50 bool GetFirstSessionId(uint32_t &sessionId);
51 bool GetNextSessionId(uint32_t &sessionId);
/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/update/updateservice/frameworks/js/napi/update/src/
Dsession_manager.cpp51 void SessionManager::RemoveSession(uint32_t sessionId) in RemoveSession() argument
55 sessions_.erase(sessionId); in RemoveSession()
58 bool SessionManager::GetFirstSessionId(uint32_t &sessionId) in GetFirstSessionId() argument
65 sessionId = sessions_.begin()->second->GetSessionId(); in GetFirstSessionId()
70 bool SessionManager::GetNextSessionId(uint32_t &sessionId) in GetNextSessionId() argument
74 auto iter = sessions_.find(sessionId); in GetNextSessionId()
82 sessionId = iter->second->GetSessionId(); in GetNextSessionId()
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth_ext.h85 int32_t (*createSession)(int32_t *sessionId, const cJSON *in, cJSON *out);
87 int32_t (*processSession)(int32_t *sessionId, const cJSON *in, cJSON *out, int32_t *status);
89 int32_t (*destroySession)(int32_t sessionId);
/base/account/os_account/test/fuzztest/appaccount_stub/getauthenticatorcallbackstub_fuzzer/
Dgetauthenticatorcallbackstub_fuzzer.cpp36 std::string sessionId(reinterpret_cast<const char*>(data), size); in GetAuthenticatorCallbackStubFuzzTest()
37 if (!dataTemp.WriteString(sessionId)) { in GetAuthenticatorCallbackStubFuzzTest()
/base/telephony/core_service/services/sim/src/
Dradio_protocol_controller.cpp46 protocol.sessionId = 0; in Init()
174 if (radioProtocol == nullptr || radioProtocol->sessionId != sessionId_) { in ProcessRadioProtocolNotify()
219 auto sessionId = event->GetParam(); in ProcessSetRadioProtocolTimeout() local
220 if (sessionId != sessionId_) { in ProcessSetRadioProtocolTimeout()
274 radioProtocol.sessionId = sessionId_; in BuildRadioProtocolForCommunication()
299 oldRadioProtocol_[i].sessionId = sessionId_; in BuildRadioProtocolForCommunication()
302 newRadioProtocol_[i].sessionId = sessionId_; in BuildRadioProtocolForCommunication()
341 radioProtocol_[slotId].sessionId = radioProtocol->sessionId; in UpdateRadioProtocol()
363 return radioProtocol != nullptr && radioProtocol->sessionId == sessionId_; in ProcessResponseInfoOfEvent()
/base/account/os_account/services/accountmgr/test/unittest/common/ability_manager_adapter/
Dability_manager_adapter_test.cpp86 explicit AbilityConnectCallbackTest(const std::string &sessionId) {} in AbilityConnectCallbackTest() argument
106 std::string sessionId = "testsessionId"; variable
107 … sptr<AbilityConnectCallbackTest> conn_ = new (std::nothrow) AbilityConnectCallbackTest(sessionId);
/base/update/updateservice/frameworks/js/napi/update/common/include/
Diupdater.h40 void RemoveSession(uint32_t sessionId) override in RemoveSession() argument
45 sessionsMgr_->RemoveSession(sessionId); in RemoveSession()
/base/security/access_token/frameworks/privacy/src/
Dsec_comp_enhance_data_parcel.cpp27 RETURN_IF_FALSE(out.WriteInt32(this->enhanceData.sessionId)); in Marshalling()
43 RELEASE_IF_FALSE(in.ReadInt32(enhanceDataParcel->enhanceData.sessionId), enhanceDataParcel); in Unmarshalling()

1234