Home
last modified time | relevance | path

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

/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()
159 LNN_LOGI(LNN_BUILDER, "success. stateVersion=%{public}d", cacheInfo->stateVersion); in DBNumInfoSyncToCache()
412 parseValue->stateVersion = atoi(splitValue[1]); in SplitString()
456 cacheInfo->localStateVersion = localCaheInfo.stateVersion; in HandleDBAddChangeInternal()
512 if (LnnSetDLDeviceStateVersion(deviceUdid, cacheInfo->stateVersion) != SOFTBUS_OK) { in SetDBDataToDistributedLedger()
546 "fail: sync info is older, oldCacheInfo.stateVersion=%{public}d, oldTimestamp=%{public}" PRIu64 in IsIgnoreUpdate()
547 ", newSyncInfo.stateVersion=%{public}d, newTimestamp=%{public}" PRIu64 "", in IsIgnoreUpdate()
570 if (IsIgnoreUpdate(cacheInfo.stateVersion, cacheInf in HandleDBUpdateInternal()
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_data_cloud_sync.h54 int32_t stateVersion; member
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_medium_mgr.c164 if (hbResp == NULL || hbResp->stateVersion == STATE_VERSION_INVALID) { in UpdateOnlineInfoNoConnection()
444 const HbRespData *hbResp, const NodeInfo *deviceInfo, int32_t *stateVersion, ConnectOnlineReason *connectReason) in IsStateVersionChanged()
446 if (LnnGetLocalNumInfo(NUM_KEY_STATE_VERSION, stateVersion) == SOFTBUS_OK && in IsStateVersionChanged()
447 *stateVersion != deviceInfo->localStateVersion) { in IsStateVersionChanged()
449 LNN_LOGI(LNN_HEART_BEAT, "don't support ble direct online because local stateVersion=%{public}d->%{public}d", in IsStateVersionChanged()
450 deviceInfo->localStateVersion, *stateVersion); in IsStateVersionChanged()
453 if ((int32_t)hbResp->stateVersion != deviceInfo->stateVersion) { in IsStateVersionChanged()
455 LNN_LOGI(LNN_HEART_BEAT, "don't support ble direct online because peer stateVersion=%{public}d->%{public}d", in IsStateVersionChanged()
456 deviceInfo->stateVersion, (int32_ in IsStateVersionChanged()
443 IsStateVersionChanged( const HbRespData *hbResp, const NodeInfo *deviceInfo, int32_t *stateVersion, ConnectOnlineReason *connectReason) IsStateVersionChanged() argument
508 int32_t ret, stateVersion; IsNeedConnectOnLine() local
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/
H A Dhb_medium_mgr_test.cpp96 hbResp.stateVersion = ENABLE_COC_CAP; in HWTEST_F()
215 .stateVersion = TEST_STATEVERSION, in HWTEST_F()
298 HbRespData hbResp = { .capabiltiy = TEST_CAPABILTIY, .stateVersion = TEST_STATEVERSION }; in HWTEST_F()
351 .stateVersion = TEST_STATEVERSION, in HWTEST_F()
710 hbResp.stateVersion = ENABLE_COC_CAP; in HWTEST_F()
720 hbResp.stateVersion = STATE_VERSION_INVALID; in HWTEST_F()
760 .stateVersion = STATE_VERSION_INVALID, in HWTEST_F()
783 .stateVersion = STATE_VERSION_INVALID, in HWTEST_F()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/
H A Dlnn_heartbeat_utils.h122 int16_t stateVersion; member
/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()
73 "reason=%{public}u changed, update local stateVersion=%{public}d, stateVersionReason=%{public}u", reason, in UpdateStateVersionAndStore()
74 g_localNetLedger.localInfo.stateVersion, g_localNetLedger.localInfo.stateVersionReason); in UpdateStateVersionAndStore()
607 LNN_LOGI(LNN_LEDGER, "no need upload to cloud. stateVersion=%{public}d, accountIdInited=%{public}d, " in IsLocalLedgerReady()
609 g_localNetLedger.localInfo.stateVersion, accountIdInited, deviceNameInited, networkIdInited, btMacInited); in IsLocalLedgerReady()
622 if (info->stateVersion == *(int32_t *)buf) { in UpdateStateVersion()
623 LNN_LOGI(LNN_LEDGER, "unchanged. no need update, stateVersion=%{public}d", info->stateVersion); in UpdateStateVersion()
[all...]
/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);
/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, }; in HWTEST_F()
571 NodeInfo localCaheInfo = { .accountId = 0, .stateVersion = 12, }; in HWTEST_F()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c156 info.stateVersion++; in ProcessLocalDeviceInfo()
159 LNN_LOGI(LNN_LEDGER, "load local deviceInfo stateVersion=%{public}d", info.stateVersion); in ProcessLocalDeviceInfo()
160 if (LnnSetLocalNumInfo(NUM_KEY_STATE_VERSION, info.stateVersion) != SOFTBUS_OK) { in ProcessLocalDeviceInfo()
H A Dlnn_node_info.c618 LNN_LOGI(LNN_LEDGER, "log=%{public}s, stateVersion=%{public}d, networkId=%{public}s, udid=%{public}s, " in LnnDumpNodeInfo()
619 "deviceName=%{public}s, btMac=%{public}s, networkIdTimestamp=%{public}" PRId64, log, deviceInfo->stateVersion, in LnnDumpNodeInfo()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c200 newInfo->stateVersion = oldInfo->stateVersion; in NewWifiDiscovered()
1489 oldInfo->stateVersion = newInfo->stateVersion; in UpdateDevBasicInfoToDLedger()
1539 "sync info is older, oldDLeger.stateVersion=%{public}d, oldDLegerTimestamp=%{public}" PRIu64 in IsIgnoreUpdateToLedger()
1540 ", newSyncInfo.stateVersion=%{public}d, newTimestamp=%{public}" PRIu64 "", in IsIgnoreUpdateToLedger()
1570 if (IsIgnoreUpdateToLedger(oldInfo->stateVersion, oldInfo->updateTimestamp, newInfo->stateVersion, in LnnUpdateDistributedNodeInfo()
H A Dlnn_distributed_net_ledger_manager.c623 *((int32_t *)buf) = info->stateVersion; in DlGetStateVersion()
986 int32_t LnnSetDLDeviceStateVersion(const char *udid, int32_t stateVersion) in LnnSetDLDeviceStateVersion() argument
1003 if (info->stateVersion == stateVersion) { in LnnSetDLDeviceStateVersion()
1008 info->stateVersion = stateVersion; in LnnSetDLDeviceStateVersion()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h174 int32_t stateVersion; member
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_disctributed_net_ledger_test.cpp1008 int32_t stateVersion = 0; in HWTEST_F() local
1009 int32_t ret = LnnSetDLDeviceStateVersion(udid, stateVersion); in HWTEST_F()
1012 ret = LnnSetDLDeviceStateVersion(devUdid, stateVersion); in HWTEST_F()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1147 (void)JSON_AddInt32ToObject(json, STATE_VERSION, info->stateVersion); in PackCommonFastAuth()
1712 OptInt(json, STATE_VERSION, &info->stateVersion, 0); in UnpackBt()
2101 int32_t stateVersion; in UnpackDeviceInfoMessage() local
2102 if (LnnGetLocalNumInfo(NUM_KEY_STATE_VERSION, &stateVersion) == SOFTBUS_OK) { in UnpackDeviceInfoMessage()
2103 nodeInfo->localStateVersion = stateVersion; in UnpackDeviceInfoMessage()
/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;

Completed in 23 milliseconds