/base/security/device_auth/services/legacy/group_manager/src/channel_manager/ |
H A D | channel_manager.c | 60 int32_t OpenChannel(ChannelType channelType, const CJson *jsonParams, int64_t requestId, int64_t *returnChannelId) in OpenChannel() argument 66 if (channelType == SERVICE_CHANNEL) { in OpenChannel() 69 } else if (channelType == SOFT_BUS) { in OpenChannel() 87 void CloseChannel(ChannelType channelType, int64_t channelId) in CloseChannel() argument 89 if (channelType == SOFT_BUS) { in CloseChannel() 94 int32_t HcSendMsg(ChannelType channelType, int64_t requestId, int64_t channelId, in HcSendMsg() argument 97 if (channelType == SERVICE_CHANNEL) { in HcSendMsg() 102 } else if (channelType == SOFT_BUS) { in HcSendMsg() 109 void NotifyBindResult(ChannelType channelType, int64_t channelId) in NotifyBindResult() argument 111 if (channelType in NotifyBindResult() [all...] |
/base/security/device_auth/services/legacy/group_manager/inc/channel_manager/ |
H A D | channel_manager.h | 33 int32_t OpenChannel(ChannelType channelType, const CJson *jsonParams, int64_t requestId, int64_t *returnChannelId); 34 void CloseChannel(ChannelType channelType, int64_t channelId); 35 int32_t HcSendMsg(ChannelType channelType, int64_t requestId, int64_t channelId, 37 void NotifyBindResult(ChannelType channelType, int64_t channelId);
|
/base/security/device_auth/services/session_manager/inc/session/v1/compatible_bind_sub_session/ |
H A D | compatible_bind_sub_session_defines.h | 31 int32_t channelType; member
|
/base/security/device_auth/services/session_manager/src/session/ |
H A D | dev_session_fwk.c | 140 int32_t res = HcSendMsg(impl->channelType, impl->base.id, impl->channelId, &impl->base.callback, sendMsgStr); in SendJsonMsg() 231 CloseChannel(impl->channelType, impl->channelId); in OnDevSessionError() 326 int32_t channelType; in AddChannelInfoToParams() local 327 if (GetIntFromJson(impl->context, FIELD_CHANNEL_TYPE, &channelType) != HC_SUCCESS) { in AddChannelInfoToParams() 328 LOGE("get channelType from context fail."); in AddChannelInfoToParams() 336 if (AddIntToJson(receviedMsg, FIELD_CHANNEL_TYPE, channelType) != HC_SUCCESS) { in AddChannelInfoToParams() 337 LOGE("add channelType to params fail."); in AddChannelInfoToParams() 555 NotifyBindResult(impl->channelType, impl->channelId); in OnDevSessionFinish() 557 CloseChannel(impl->channelType, impl->channelId); in OnDevSessionFinish() 613 int32_t channelType; in BuildDevSessionByContext() local [all...] |
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
H A D | compatible_bind_sub_session_util.c | 192 int32_t res = HcSendMsg(session->channelType, session->reqId, session->channelId, in TransmitBindSessionData() 240 ChannelType channelType = SOFT_BUS; in InformPeerProcessError() local 242 channelType = SERVICE_CHANNEL; in InformPeerProcessError() 255 (void)HcSendMsg(channelType, requestId, channelId, callback, errorDataStr); in InformPeerProcessError()
|
H A D | compatible_bind_sub_session.c | 143 subSession->channelType = NO_CHANNEL; in CreateBaseBindSubSession() 539 NotifyBindResult((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 540 CloseChannel((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 818 if (GetIntFromJson(params, FIELD_CHANNEL_TYPE, &session->channelType) != HC_SUCCESS) { in InitChannel()
|
/base/security/device_auth/services/session_manager/inc/session/ |
H A D | dev_session_def.h | 38 int32_t channelType; member
|
/base/security/device_auth/services/ |
H A D | device_auth.c | 346 static int32_t AddChannelInfoToContext(int32_t channelType, int64_t channelId, CJson *context) in AddChannelInfoToContext() argument 348 if (AddIntToJson(context, FIELD_CHANNEL_TYPE, channelType) != HC_SUCCESS) { in AddChannelInfoToContext() 349 LOGE("add channelType to context fail."); in AddChannelInfoToContext() 366 ChannelType channelType = GetChannelType(callback, context); in BuildClientBindContext() local 368 res = OpenChannel(channelType, context, requestId, &channelId); in BuildClientBindContext() 373 return AddChannelInfoToContext(channelType, channelId, context); in BuildClientBindContext() 559 ChannelType channelType = GetChannelType(callback, context); in StartClientBindSession() local 567 if (channelType == SERVICE_CHANNEL) { in StartClientBindSession() 737 int32_t channelType; in BuildServerBindContext() local 740 channelType in BuildServerBindContext() [all...] |