/base/security/device_auth/services/legacy/group_manager/src/channel_manager/soft_bus_channel/ |
H A D | soft_bus_channel.c | 30 int64_t channelId; member 39 static int32_t GetReqIdByChannelId(int64_t channelId, int64_t *returnReqId) in GetReqIdByChannelId() argument 45 if (channelId == entry->channelId) { in GetReqIdByChannelId() 55 static int32_t AddChannelEntry(int64_t requestId, int64_t channelId) in AddChannelEntry() argument 58 if (GetReqIdByChannelId(channelId, &tmpReqId) == HC_SUCCESS) { in AddChannelEntry() 63 .channelId = channelId, in AddChannelEntry() 72 static void RemoveChannelEntry(int64_t channelId) in RemoveChannelEntry() argument 78 if (channelId in RemoveChannelEntry() 88 GenRecvData(int64_t channelId, const void *data, uint32_t dataLen, int64_t *requestId) GenRecvData() argument 181 int64_t channelId = (int64_t)OpenAuthSession(GROUP_MANAGER_PACKAGE_NAME, NULL, 0, connectParams); OpenSoftBusChannel() local 196 CloseSoftBusChannel(int64_t channelId) CloseSoftBusChannel() argument 207 SendSoftBusMsg(int64_t channelId, const uint8_t *data, uint32_t dataLen) SendSoftBusMsg() argument 219 NotifySoftBusBindResult(int64_t channelId) NotifySoftBusBindResult() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/src/channel_manager/ |
H A D | channel_manager.c | 75 int64_t channelId = DEFAULT_CHANNEL_ID; in OpenChannel() local 76 int32_t result = GetSoftBusInstance()->openChannel(connectParams, requestId, &channelId); in OpenChannel() 80 *returnChannelId = channelId; in OpenChannel() 87 void CloseChannel(ChannelType channelType, int64_t channelId) in CloseChannel() argument 90 GetSoftBusInstance()->closeChannel(channelId); in CloseChannel() 94 int32_t HcSendMsg(ChannelType channelType, int64_t requestId, int64_t channelId, in HcSendMsg() argument 103 return GetSoftBusInstance()->sendMsg(channelId, (uint8_t *)data, HcStrlen(data) + 1); in HcSendMsg() 109 void NotifyBindResult(ChannelType channelType, int64_t channelId) in NotifyBindResult() argument 112 GetSoftBusInstance()->notifyResult(channelId); in NotifyBindResult()
|
/base/update/updater/services/flashd/daemon/ |
H A D | daemon.cpp | 97 bool HdcDaemon::RedirectToTask(HTaskInfo hTaskInfo, HSession hSession, const uint32_t channelId, in RedirectToTask() argument 150 bool HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &handshake) in HandDaemonAuth() argument 159 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), bufString.size()); in HandDaemonAuth() 177 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), in HandDaemonAuth() 195 bool HdcDaemon::DaemonSessionHandshake(HSession hSession, const uint32_t channelId, uint8_t *payload, int payloadSize) in DaemonSessionHandshake() argument 221 if (enableSecure && !HandDaemonAuth(hSession, channelId, handshake)) { in DaemonSessionHandshake() 231 Send(hSession->sessionId, channelId, CMD_KERNEL_HANDSHAKE, (uint8_t *)bufString.c_str(), bufString.size()); in DaemonSessionHandshake() 236 bool HdcDaemon::FetchCommand(HSession hSession, const uint32_t channelId, const uint16_t command, uint8_t *payload, in FetchCommand() argument 248 ret = DaemonSessionHandshake(hSession, channelId, payload, payloadSize); in FetchCommand() 252 ClearOwnTasks(hSession, channelId); in FetchCommand() 296 ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, uint8_t *bufPtr, const int size) ServerCommand() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/inc/channel_manager/soft_bus_channel/ |
H A D | soft_bus_channel.h | 28 void (*closeChannel)(int64_t channelId); 29 int32_t (*sendMsg)(int64_t channelId, const uint8_t *data, uint32_t dataLen); 30 void (*notifyResult)(int64_t channelId);
|
/base/security/device_auth/services/legacy/group_manager/inc/channel_manager/ |
H A D | channel_manager.h | 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/telephony/core_service/utils/codec/include/ |
H A D | apdu_command.h | 51 ApduCommand(int32_t channelId, const ApduData &apduData) : channel(channelId), data(apduData) {} in ApduCommand()
|
H A D | request_apdu_build.h | 27 explicit RequestApduBuild(int32_t channelId): channelId_(channelId) {} in RequestApduBuild() argument
|
/base/customization/config_policy/interfaces/kits/js/src/ |
H A D | custom_config_napi.cpp | 87 char *channelId = CustGetSystemParam(channelKey.c_str()); in NativeGetChannelId() local 90 if (channelId == nullptr) { in NativeGetChannelId() 91 HILOG_WARN(LOG_CORE, "get channelId failed."); in NativeGetChannelId() 94 result = CreateNapiStringValue(env, channelId); in NativeGetChannelId() 95 free(channelId); in NativeGetChannelId()
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
H A D | hril_vendor_sim_defs.h | 131 int32_t channelId; member 293 int32_t channelId; member 383 void (*SimCloseLogicalChannel)(const ReqDataInfo *requestInfo, int32_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 | 32 int64_t channelId; 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() 331 int64_t channelId; in AddChannelInfoToParams() local 332 if (GetByteFromJson(impl->context, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) != HC_SUCCESS) { in AddChannelInfoToParams() 333 LOGE("get channelId from context fail."); in AddChannelInfoToParams() 340 if (AddByteToJson(receviedMsg, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) != HC_SUCCESS) { in AddChannelInfoToParams() 341 LOGE("add channelId to params fail."); in AddChannelInfoToParams() 555 NotifyBindResult(impl->channelType, impl->channelId); in OnDevSessionFinish() 557 CloseChannel(impl->channelType, impl->channelId); in OnDevSessionFinish() 618 int64_t channelId; in BuildDevSessionByContext() local [all...] |
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | tel_ril_sim_parcel.h | 289 int32_t channelId = 0; member 369 int32_t channelId = 0; member
|
/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() 239 int64_t channelId = DEFAULT_CHANNEL_ID; in InformPeerProcessError() local 241 if (GetByteFromJson(jsonParams, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) != HC_SUCCESS) { in InformPeerProcessError() 255 (void)HcSendMsg(channelType, requestId, channelId, callback, errorDataStr); in InformPeerProcessError()
|
H A D | compatible_bind_sub_session.c | 144 subSession->channelId = DEFAULT_CHANNEL_ID; in CreateBaseBindSubSession() 539 NotifyBindResult((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 540 CloseChannel((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 814 if (GetByteFromJson(params, FIELD_CHANNEL_ID, (uint8_t *)&session->channelId, sizeof(int64_t)) != HC_SUCCESS) { in InitChannel() 815 LOGE("Failed to get channelId!"); in InitChannel()
|
/base/security/device_auth/services/session_manager/inc/session/ |
H A D | dev_session_def.h | 39 int64_t channelId; member
|
/base/telephony/core_service/services/sim/src/ |
H A D | icc_operator_privilege_controller.cpp | 325 state_->currentChannelId = resultPtr->channelId; in ProcessOpenLogicalChannelDone() 332 reqInfo.channelId = state_->currentChannelId; in ProcessOpenLogicalChannelDone() 364 reqInfo.channelId = state_->currentChannelId; in ProcessTransmitLogicalChannelDone()
|
/base/telephony/core_service/services/tel_ril/src/ |
H A D | tel_ril_sim.cpp | 437 int32_t TelRilSim::SimCloseLogicalChannel(int32_t channelId, const AppExecFwk::InnerEvent::Pointer &response) in SimCloseLogicalChannel() argument 439 return Request(TELEPHONY_LOG_FUNC_NAME, response, &HDI::Ril::V1_1::IRil::SimCloseLogicalChannel, channelId); in SimCloseLogicalChannel() 564 openLogicalChannelResp->channelId = pOpenLogicalChannelResponse.channelId; in BuildOpenLogicalChannelResp() 571 ApduRequestInfo.channelId = reqInfo.channelId; in BuildApduRequestInfo()
|
/base/update/updater/test/unittest/flashd_test/ |
H A D | flash_host_unittest.cpp | 56 hTaskInfo->channelId = 1; in TestFlashHost() 78 hTaskInfo->channelId = 1; in TestFlashProgress()
|
/base/telephony/ril_adapter/services/vendor/include/ |
H A D | at_sim.h | 107 void ReqSimCloseLogicalChannel(const ReqDataInfo *requestInfo, int32_t channelId);
|
/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 352 if (AddByteToJson(context, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) != HC_SUCCESS) { in AddChannelInfoToContext() 353 LOGE("add channelId to context fail."); in AddChannelInfoToContext() 367 int64_t channelId; in BuildClientBindContext() local 368 res = OpenChannel(channelType, context, requestId, &channelId); in BuildClientBindContext() 373 return AddChannelInfoToContext(channelType, channelId, context); in BuildClientBindContext() 738 int64_t channelId = DEFAULT_CHANNEL_ID; in BuildServerBindContext() local 739 if (GetByteFromJson(receivedMsg, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) == HC_SUCCESS) { in BuildServerBindContext() 744 return AddChannelInfoToContext(channelType, channelId, context); in BuildServerBindContext()
|
/base/telephony/ril_adapter/services/hril/src/ |
H A D | hril_sim.cpp | 318 int32_t HRilSim::SimCloseLogicalChannel(int32_t serialId, int32_t channelId) in SimCloseLogicalChannel() argument 321 serialId, HREQ_SIM_CLOSE_LOGICAL_CHANNEL, simFuncs_, &HRilSimReq::SimCloseLogicalChannel, channelId); in SimCloseLogicalChannel() 569 pOpenLogicalChannelResponse.channelId = pRilResponse->channelId; in SimOpenLogicalChannelResponse() 762 rilApduSimIO->channelId = apduSimIO.channelId; in CopyToHRilApduSimIO()
|
/base/telephony/core_service/services/tel_ril/include/ |
H A D | tel_ril_sim.h | 60 int32_t SimCloseLogicalChannel(int32_t channelId, const AppExecFwk::InnerEvent::Pointer &response);
|
/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/ |
H A D | ril_sim_test.cpp | 390 reqInfo.channelId = RilTestUtil::GetCallback()->GetCurrentChannelId(); in HWTEST_F() 449 reqInfo.channelId = RilTestUtil::GetCallback()->GetCurrentChannelId(); in HWTEST_F()
|
/base/telephony/ril_adapter/test/unittest/ |
H A D | ril_interface_test.cpp | 1151 int32_t channelId;
in SimCloseLogicalChannelTest() local 1152 cout << "input channelId:";
in SimCloseLogicalChannelTest() 1153 cin >> channelId;
in SimCloseLogicalChannelTest() local 1154 int32_t ret = g_rilInterface->SimCloseLogicalChannel(slotId, GetSerialId(), channelId);
in SimCloseLogicalChannelTest() 1160 cout << "input channelId:";
in InputTransmitApduChannelParam() 1161 cin >> reqInfo.channelId;
in InputTransmitApduChannelParam()
|
/base/telephony/ril_adapter/services/hril/include/ |
H A D | hril_sim.h | 52 int32_t SimCloseLogicalChannel(int32_t serialId, int32_t channelId);
|