/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_device_local.h | 40 void SetLocalDeviceHash(uint64_t deviceHash);
|
H A D | nstackx_device.h | 132 char deviceHash[DEVICE_HASH_LEN]; member
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device_local.c | 443 SetLocalDeviceHash(devInfo->deviceHash); in CopyDeviceInfoV2() 488 void SetLocalDeviceHash(uint64_t deviceHash) in SetLocalDeviceHash() argument 490 (void)memset_s(g_localDevice.deviceInfo.deviceHash, sizeof(g_localDevice.deviceInfo.deviceHash), in SetLocalDeviceHash() 491 0, sizeof(g_localDevice.deviceInfo.deviceHash)); in SetLocalDeviceHash() 492 if (sprintf_s(g_localDevice.deviceInfo.deviceHash, DEVICE_HASH_LEN, in SetLocalDeviceHash() 493 "%ju", deviceHash) == -1) { in SetLocalDeviceHash()
|
H A D | nstackx_device_remote.c | 368 if (strcmp(curInfo->deviceHash, newInfo->deviceHash) != 0) { in UpdateDeviceInfo() 369 if (strcpy_s(curInfo->deviceHash, sizeof(curInfo->deviceHash), newInfo->deviceHash) != EOK) { in UpdateDeviceInfo() 370 DFINDER_LOGE(TAG, "deviceHash copy error"); in UpdateDeviceInfo()
|
H A D | json_payload.c | 85 item = cJSON_CreateString(deviceInfo->deviceHash); in AddDeviceJsonData() 266 if (strcpy_s(dev->deviceHash, sizeof(dev->deviceHash), item->valuestring) != EOK) { in ParseDeviceHashData()
|
H A D | nstackx_common.c | 908 const NSTACKX_LocalDeviceInfo *localDeviceInfo, bool hasDeviceHash, uint64_t deviceHash) in DeviceInfoV2Init() 915 v2->deviceHash = deviceHash; in DeviceInfoV2Init() 919 bool hasDeviceHash, uint64_t deviceHash) in RegisterDeviceWithDeviceHash() 927 DeviceInfoV2Init(&v2, localDeviceInfo, hasDeviceHash, deviceHash); in RegisterDeviceWithDeviceHash() 986 int32_t NSTACKX_RegisterDeviceAn(const NSTACKX_LocalDeviceInfo *localDeviceInfo, uint64_t deviceHash) in NSTACKX_RegisterDeviceAn() argument 989 Coverity_Tainted_Set((void *)&deviceHash); in NSTACKX_RegisterDeviceAn() 992 return RegisterDeviceWithDeviceHash(localDeviceInfo, NSTACKX_TRUE, deviceHash); in NSTACKX_RegisterDeviceAn() 907 DeviceInfoV2Init(NSTACKX_LocalDeviceInfoV2 *v2, const NSTACKX_LocalDeviceInfo *localDeviceInfo, bool hasDeviceHash, uint64_t deviceHash) DeviceInfoV2Init() argument 918 RegisterDeviceWithDeviceHash(const NSTACKX_LocalDeviceInfo *localDeviceInfo, bool hasDeviceHash, uint64_t deviceHash) RegisterDeviceWithDeviceHash() argument
|
H A D | nstackx_device.c | 241 if (!cJSON_AddStringToObject(item, "hwAccountHashVal", deviceInfo->deviceHash)) { in SetReservedInfoFromDeviceInfo()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/ |
H A D | nstackx.h | 172 uint64_t deviceHash; member 183 /* Register local device information with deviceHash */ 184 DFINDER_EXPORT int32_t NSTACKX_RegisterDeviceAn(const NSTACKX_LocalDeviceInfo *localDeviceInfo, uint64_t deviceHash);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | db_common.h | 87 static void GetDeviceFromName(const std::string &deviceTableName, std::string &deviceHash, std::string &tableName);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | db_common.cpp | 389 void DBCommon::GetDeviceFromName(const std::string &deviceTableName, std::string &deviceHash, std::string &tableName) in GetDeviceFromName() argument 394 deviceHash = deviceTableName.substr(found + 1); in GetDeviceFromName()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_relational_store.cpp | 250 std::string deviceHash; in CleanDistributedDeviceTable() local 252 DBCommon::GetDeviceFromName(deviceTableName, deviceHash, tableName); in CleanDistributedDeviceTable() 253 syncAbleEngine_->EraseDeviceWaterMark(deviceHash, false, tableName); in CleanDistributedDeviceTable()
|