Home
last modified time | relevance | path

Searched refs:masterWeight (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/
H A Dhb_medium_mgr_test.cpp100 int32_t masterWeight = TEST_WEIGHT2; variable
102 int32_t ret = HbFirstSaveRecvTime(&storedInfo, &device, weight, masterWeight, recvTime);
132 int32_t masterWeight = TEST_WEIGHT2; variable
134 int32_t ret = HbFirstSaveRecvTime(&storedInfo1, &device1, weight, masterWeight, recvTime1);
140 ret = HbSaveRecvTimeToRemoveRepeat(&storedInfo1, &device11, weight, masterWeight, recvTime1);
150 ret = HbSaveRecvTimeToRemoveRepeat(&storedInfo2, &device2, weight, masterWeight, recvTime2);
153 ret = HbSaveRecvTimeToRemoveRepeat(&storedInfo2, &device2, weight, masterWeight, recvTime3);
174 int32_t masterWeight = TEST_WEIGHT2; variable
176 int32_t ret1 = HbFirstSaveRecvTime(&storedInfo, &device, weight, masterWeight, recvTime1);
418 int32_t masterWeight = TEST_WEIGHT2; variable
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/src/
H A Dhb_fsm_mock.cpp56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
58 … return HeartBeatFSMInterfaceInstance()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
H A Dhb_strategy_mock.cpp56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
58 return HeartBeatStrategyInterface()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_medium_mgr.c65 int32_t masterWeight; member
94 …LnnHeartbeatRecvInfo *storedInfo, DeviceInfo *device, int32_t weight, int32_t masterWeight, uint64… in HbFirstSaveRecvTime() argument
117 recvInfo->masterWeight = masterWeight; in HbFirstSaveRecvTime()
126 …LnnHeartbeatRecvInfo *storedInfo, DeviceInfo *device, int32_t weight, int32_t masterWeight, uint64… in HbSaveRecvTimeToRemoveRepeat() argument
131 storedInfo->masterWeight = masterWeight; in HbSaveRecvTimeToRemoveRepeat()
135 int32_t ret = HbFirstSaveRecvTime(storedInfo, device, weight, masterWeight, recvTime); in HbSaveRecvTimeToRemoveRepeat()
368 …const DeviceInfo *device, int32_t weight, int32_t masterWeight, LnnHeartbeatType hbType, uint64_t … in HbDumpRecvDeviceInfo() argument
378 masterWeight, device->devType, device->addr[0].type, nowTime); in HbDumpRecvDeviceInfo()
1127 item->masterWeight, item->lastRecvTime); in LnnDumpHbMgrRecvList()
1169 …deviceTypeStr != NULL ? deviceTypeStr : "", nodeInfo.masterWeight, nodeInfo.discoveryType, oldTime… in LnnDumpHbOnlineNodeList()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_builder.h119 int32_t masterWeight; member
159 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder.c168 int32_t masterWeight; in SyncElectMessage() local
181 LnnGetLocalNumInfo(NUM_KEY_MASTER_NODE_WEIGHT, &masterWeight) != SOFTBUS_OK) { in SyncElectMessage()
191 !AddNumberToJsonObject(json, JSON_KEY_MASTER_WEIGHT, masterWeight)) { in SyncElectMessage()
802 if (!JSON_GetInt32FromOject(json, JSON_KEY_MASTER_WEIGHT, &para->masterWeight) || in OnReceiveMasterElectMsg()
1158 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
1181 para->masterWeight = masterWeight; in LnnNotifyMasterElect()
H A Dlnn_net_builder_process.c603 msgPara->masterWeight, msgPara->masterUdid); in ProcessMasterElect()
607 UpdateLocalMasterNode(false, msgPara->masterUdid, msgPara->masterWeight); in ProcessMasterElect()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/
H A Dhb_fsm_mock.h39 …32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) = 0;
H A Dhb_strategy_mock.h39 …32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) = 0;
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1394 !JSON_AddInt32ToObject(json, NODE_WEIGHT, info->masterWeight) || in PackCommonEx()
1415 !JSON_AddInt32ToObject(json, MASTER_WEIGHT, info->masterWeight)) { in PackCommon()
1547 OptInt(json, NODE_WEIGHT, &info->masterWeight, DEFAULT_NODE_WEIGHT); in ParseCommonJsonInfo()
1571 !JSON_GetInt32FromOject(json, MASTER_WEIGHT, &info->masterWeight)) { in UnpackCommon()
1574 AUTH_LOGE(AUTH_FSM, "get master weight=%{public}d", info->masterWeight); in UnpackCommon()
1819 !JSON_AddInt32ToObject(json, NODE_WEIGHT, info->masterWeight) || in PackDeviceInfoBtV1()
1850 OptInt(json, NODE_WEIGHT, &info->masterWeight, DEFAULT_NODE_WEIGHT); in UnpackDeviceInfoBtV1()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h139 int32_t masterWeight; member
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c734 *((int32_t *)buf) = info->masterWeight; in L1GetMasterNodeWeight()
1322 g_localNetLedger.localInfo.masterWeight = *(int32_t *)weight; in UpdateMasgerNodeWeight()
1334 g_localNetLedger.localInfo.masterWeight = weight; in UpdateLocalWeight()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c438 *((int32_t *)buf) = info->masterWeight; in DlGetMasterWeight()