Home
last modified time | relevance | path

Searched refs:stateVersion (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_data_cloud_sync.c54 int32_t stateVersion; member
158 cacheInfo->stateVersion = atoi(value); in DBNumInfoSyncToCache()
412 parseValue->stateVersion = atoi(splitValue[1]); in SplitString()
456 cacheInfo->localStateVersion = localCaheInfo.stateVersion; in HandleDBAddChangeInternal()
570 if (IsIgnoreUpdate(cacheInfo.stateVersion, cacheInfo.updateTimestamp, parseValue->stateVersion, in HandleDBUpdateInternal()
576 … cacheInfo.stateVersion, parseValue->stateVersion, cacheInfo.localStateVersion, localStateVersion); in HandleDBUpdateInternal()
577 cacheInfo.stateVersion = parseValue->stateVersion; in HandleDBUpdateInternal()
720 … IsIgnoreUpdate(oldCacheInfo.stateVersion, oldCacheInfo.updateTimestamp, cacheInfo.stateVersion, in LnnDBDataAddChangeSyncToCache()
828 oldInfo->stateVersion = newInfo->stateVersion; in UpdateDevBasicInfoToCache()
949 … IsIgnoreUpdate(oldCacheInfo.stateVersion, oldCacheInfo.updateTimestamp, cacheInfo.stateVersion, in LnnDBDataChangeSyncToCacheInner()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_medium_mgr.c162 if (hbResp == NULL || hbResp->stateVersion == STATE_VERSION_INVALID) { in UpdateOnlineInfoNoConnection()
448 …const HbRespData *hbResp, const NodeInfo *deviceInfo, int32_t *stateVersion, ConnectOnlineReason *… in IsStateVersionChanged() argument
450 if (LnnGetLocalNumInfo(NUM_KEY_STATE_VERSION, stateVersion) == SOFTBUS_OK && in IsStateVersionChanged()
451 *stateVersion != deviceInfo->localStateVersion) { in IsStateVersionChanged()
454 deviceInfo->localStateVersion, *stateVersion); in IsStateVersionChanged()
457 if ((int32_t)hbResp->stateVersion != deviceInfo->stateVersion) { in IsStateVersionChanged()
460 deviceInfo->stateVersion, (int32_t)hbResp->stateVersion); in IsStateVersionChanged()
508 if (hbResp == NULL || hbResp->stateVersion == STATE_VERSION_INVALID) { in IsNeedConnectOnLine()
512 int32_t ret, stateVersion; in IsNeedConnectOnLine() local
523 … "stateVersion=%{public}d->%{public}d", deviceInfo.stateVersion, (int32_t)hbResp->stateVersion); in IsNeedConnectOnLine()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/
H A Dhb_medium_mgr_test.cpp96 hbResp.stateVersion = ENABLE_COC_CAP;
215 .stateVersion = TEST_STATEVERSION,
298 HbRespData hbResp = { .capabiltiy = TEST_CAPABILTIY, .stateVersion = TEST_STATEVERSION };
351 .stateVersion = TEST_STATEVERSION,
710 hbResp.stateVersion = ENABLE_COC_CAP;
720 hbResp.stateVersion = STATE_VERSION_INVALID;
760 .stateVersion = STATE_VERSION_INVALID,
783 .stateVersion = STATE_VERSION_INVALID,
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_data_cloud_sync.h54 int32_t stateVersion; member
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c67 g_localNetLedger.localInfo.stateVersion++; in UpdateStateVersionAndStore()
68 if (g_localNetLedger.localInfo.stateVersion > MAX_STATE_VERSION) { in UpdateStateVersionAndStore()
69 g_localNetLedger.localInfo.stateVersion = 1; in UpdateStateVersionAndStore()
74 g_localNetLedger.localInfo.stateVersion, g_localNetLedger.localInfo.stateVersionReason); in UpdateStateVersionAndStore()
636 if (info->stateVersion == *(int32_t *)buf) { in UpdateStateVersion()
637 … LNN_LOGI(LNN_LEDGER, "unchanged. no need update, stateVersion=%{public}d", info->stateVersion); in UpdateStateVersion()
640 info->stateVersion = *(int32_t *)buf; in UpdateStateVersion()
644 LNN_LOGI(LNN_LEDGER, "stateVersion is changed, stateVersion=%{public}d", info->stateVersion); in UpdateStateVersion()
822 *((int32_t *)buf) = g_localNetLedger.localInfo.stateVersion; in LlGetStateVersion()
2238 g_localNetLedger.localInfo.stateVersion = randNum; in GenerateStateVersion()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/
H A Dlnn_heartbeat_utils.h121 int16_t stateVersion; member
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c142 info.stateVersion++; in ProcessLocalDeviceInfo()
145 LNN_LOGI(LNN_LEDGER, "load local deviceInfo stateVersion=%{public}d", info.stateVersion); in ProcessLocalDeviceInfo()
146 if (LnnSetLocalNumInfo(NUM_KEY_STATE_VERSION, info.stateVersion) != SOFTBUS_OK) { in ProcessLocalDeviceInfo()
H A Dlnn_node_info.c621 …=%{public}s, btMac=%{public}s, networkIdTimestamp=%{public}" PRId64, log, deviceInfo->stateVersion, in LnnDumpNodeInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/include/
H A Dlnn_distributed_net_ledger.h102 int32_t LnnSetDLDeviceStateVersion(const char *udid, int32_t stateVersion);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c603 *((int32_t *)buf) = info->stateVersion; in DlGetStateVersion()
965 int32_t LnnSetDLDeviceStateVersion(const char *udid, int32_t stateVersion) in LnnSetDLDeviceStateVersion() argument
982 if (info->stateVersion == stateVersion) { in LnnSetDLDeviceStateVersion()
987 info->stateVersion = stateVersion; in LnnSetDLDeviceStateVersion()
H A Dlnn_distributed_net_ledger.c199 newInfo->stateVersion = oldInfo->stateVersion; in NewWifiDiscovered()
1490 oldInfo->stateVersion = newInfo->stateVersion; in UpdateDevBasicInfoToDLedger()
1571 … if (IsIgnoreUpdateToLedger(oldInfo->stateVersion, oldInfo->updateTimestamp, newInfo->stateVersion, in LnnUpdateDistributedNodeInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_ledger_mock.cpp557 int32_t LnnSetDLDeviceStateVersion(const char *udid, int32_t stateVersion) in LnnSetDLDeviceStateVersion() argument
559 return GetNetLedgerInterface()->LnnSetDLDeviceStateVersion(udid, stateVersion); in LnnSetDLDeviceStateVersion()
H A Dlnn_data_cloud_sync_mock_test.cpp362 NodeInfo localCaheInfo = { .stateVersion = 12, };
571 NodeInfo localCaheInfo = { .accountId = 0, .stateVersion = 12, };
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h174 int32_t stateVersion; member
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_disctributed_net_ledger_test.cpp1009 int32_t stateVersion = 0; variable
1010 int32_t ret = LnnSetDLDeviceStateVersion(udid, stateVersion);
1013 ret = LnnSetDLDeviceStateVersion(devUdid, stateVersion);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1145 (void)JSON_AddInt32ToObject(json, STATE_VERSION, info->stateVersion); in PackCommonFastAuth()
1696 OptInt(json, STATE_VERSION, &info->stateVersion, 0); in UnpackBt()
2082 int32_t stateVersion; in UnpackDeviceInfoMessage() local
2083 if (LnnGetLocalNumInfo(NUM_KEY_STATE_VERSION, &stateVersion) == SOFTBUS_OK) { in UnpackDeviceInfoMessage()
2084 nodeInfo->localStateVersion = stateVersion; in UnpackDeviceInfoMessage()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_ledger_mock.h105 virtual int32_t LnnSetDLDeviceStateVersion(const char *udid, int32_t stateVersion) = 0;