Home
last modified time | relevance | path

Searched refs:DEVICE_NAME_BUF_LEN (Results 1 - 24 of 24) sorted by relevance

/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_devicename_info.c117 char deviceName[DEVICE_NAME_BUF_LEN + 1] = {0}; in OnReceiveDeviceName()
118 if (strcpy_s(deviceName, DEVICE_NAME_BUF_LEN + 1, (char *)msg) != EOK) { in OnReceiveDeviceName()
176 ret = strcpy_s(displayName, DEVICE_NAME_BUF_LEN, peerNodeInfo->deviceInfo.unifiedName); in SetDisplayName()
178 ret = strcpy_s(displayName, DEVICE_NAME_BUF_LEN, peerNodeInfo->deviceInfo.unifiedDefaultName); in SetDisplayName()
181 displayName, DEVICE_NAME_BUF_LEN); in SetDisplayName()
200 char displayName[DEVICE_NAME_BUF_LEN] = {0}; in NickNameMsgProc()
256 char nickName[DEVICE_NAME_BUF_LEN] = {0}; in OnReceiveDeviceNickName()
258 !JSON_GetStringFromOject(json, KEY_NICK_NAME, nickName, DEVICE_NAME_BUF_LEN)) { in OnReceiveDeviceNickName()
271 char name[DEVICE_NAME_BUF_LEN] = {0}; in HandlerGetDeviceName()
272 if (LnnGetSettingDeviceName(name, DEVICE_NAME_BUF_LEN) ! in HandlerGetDeviceName()
[all...]
H A Dlnn_data_cloud_sync.c87 if (strcmp(fieldName, DEVICE_INFO_DEVICE_NAME) == 0 && valueLength < DEVICE_NAME_BUF_LEN) { in DBDeviceNameInfoSyncToCache()
88 if (strcpy_s(cacheInfo->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN, value) != EOK) { in DBDeviceNameInfoSyncToCache()
96 } else if (strcmp(fieldName, DEVICE_INFO_UNIFIED_DEVICE_NAME) == 0 && valueLength < DEVICE_NAME_BUF_LEN) { in DBDeviceNameInfoSyncToCache()
97 if (strcpy_s(cacheInfo->deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, value) != EOK) { in DBDeviceNameInfoSyncToCache()
101 } else if (strcmp(fieldName, DEVICE_INFO_UNIFIED_DEFAULT_DEVICE_NAME) == 0 && valueLength < DEVICE_NAME_BUF_LEN) { in DBDeviceNameInfoSyncToCache()
102 if (strcpy_s(cacheInfo->deviceInfo.unifiedDefaultName, DEVICE_NAME_BUF_LEN, value) != EOK) { in DBDeviceNameInfoSyncToCache()
106 } else if (strcmp(fieldName, DEVICE_INFO_SETTINGS_NICK_NAME) == 0 && valueLength < DEVICE_NAME_BUF_LEN) { in DBDeviceNameInfoSyncToCache()
107 if (strcpy_s(cacheInfo->deviceInfo.nickName, DEVICE_NAME_BUF_LEN, value) != EOK) { in DBDeviceNameInfoSyncToCache()
795 if (strcpy_s(oldInfo->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.deviceName) != EOK) { in UpdateDevBasicInfoToCache()
798 if (strcpy_s(oldInfo->deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, newInf in UpdateDevBasicInfoToCache()
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_device_info.h42 char deviceName[DEVICE_NAME_BUF_LEN];
43 char unifiedName[DEVICE_NAME_BUF_LEN];
44 char nickName[DEVICE_NAME_BUF_LEN];
45 char unifiedDefaultName[DEVICE_NAME_BUF_LEN];
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_data_cloud_sync.h33 char deviceName[DEVICE_NAME_BUF_LEN];
34 char unifiedName[DEVICE_NAME_BUF_LEN];
35 char unifiedDefaultName[DEVICE_NAME_BUF_LEN];
36 char nickName[DEVICE_NAME_BUF_LEN];
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Dlnn_settingdata_event_monitor_test.cpp75 int32_t ret = LnnGetSettingDeviceName(DEVICE_NAME1, DEVICE_NAME_BUF_LEN); in HWTEST_F()
100 char deviceName[DEVICE_NAME_BUF_LEN] = {0}; in HWTEST_F()
102 int32_t ret = LnnGetDeviceDisplayName(NICK_NAME, DEFAULT_NAME, deviceName, DEVICE_NAME_BUF_LEN); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_meta_node_ledger_test.cpp84 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F()
143 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F()
169 (void)strncpy_s(info.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F()
H A Dlnn_ledger_common_test.cpp697 DEVICE_NAME_BUF_LEN, in HWTEST_F()
728 (void)strncpy_s(nodeInfo.deviceName, DEVICE_NAME_BUF_LEN, NODE_DEVICE_NAME, strlen(NODE_DEVICE_NAME)); in HWTEST_F()
/foundation/communication/dsoftbus/core/common/dfx/interface/include/form/
H A Dlnn_event_form.h211 const char localDevName[DEVICE_NAME_BUF_LEN]; // LOCAL_DEV_NAME
217 const char peerDevName[DEVICE_NAME_BUF_LEN]; // PEER_DEV_NAME
/foundation/communication/dsoftbus/tools/device_info/
H A Dget_device_info.c62 unsigned char deviceName[DEVICE_NAME_BUF_LEN] = {0}; in PrintNodeProperty()
64 deviceName, DEVICE_NAME_BUF_LEN) != 0) { in PrintNodeProperty()
/foundation/communication/dsoftbus/interfaces/kits/bus_center/
H A Dsoftbus_bus_center.h63 #define DEVICE_NAME_BUF_LEN 128 macro
269 char deviceName[DEVICE_NAME_BUF_LEN]; /**< Device name */
549 char deviceName[DEVICE_NAME_BUF_LEN]; /**< The name of meta node */
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/activemetanode_fuzzer/
H A Dactivemetanode_fuzzer.cpp30 memcpy_s(meta.deviceName, DEVICE_NAME_BUF_LEN, data, size); in GenMetaNodeConfig()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_device_info.c64 if (info == NULL || name == NULL || strlen(name) > DEVICE_NAME_BUF_LEN - 1) { in LnnSetDeviceName()
68 if (strncpy_s(info->deviceName, DEVICE_NAME_BUF_LEN, name, strlen(name)) != EOK) { in LnnSetDeviceName()
H A Dlnn_net_ledger.c480 return DEVICE_NAME_BUF_LEN; in LnnGetNodeKeyInfoLen()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/
H A Dledger_lane_hub_test.cpp389 char deviceName[DEVICE_NAME_BUF_LEN] = {0}; in HWTEST_F()
397 ret = LnnGetRemoteStrInfo(NODE1_NETWORK_ID, STRING_KEY_DEV_NAME, deviceName, DEVICE_NAME_BUF_LEN); in HWTEST_F()
422 char deviceName[DEVICE_NAME_BUF_LEN] = {0}; in HWTEST_F()
430 int32_t ret = LnnGetRemoteStrInfo(NODE2_NETWORK_ID, STRING_KEY_DEV_NAME, deviceName, DEVICE_NAME_BUF_LEN); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_session_message_test.cpp40 constexpr char UNIFIED_NAME[DEVICE_NAME_BUF_LEN] = "unifiedName";
41 constexpr char INVALID_UNIFIED_NAME[DEVICE_NAME_BUF_LEN] = "\0";
42 constexpr char DEVICE_NAME_TEST[DEVICE_NAME_BUF_LEN] = "deviceName";
379 ASSERT_TRUE(memcpy_s(info.deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, in HWTEST_F()
384 ASSERT_TRUE(memcpy_s(info.deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, in HWTEST_F()
388 ASSERT_TRUE(memcpy_s(info.deviceInfo.deviceName, DEVICE_NAME_BUF_LEN, in HWTEST_F()
537 DEVICE_NAME_BUF_LEN, UNIFIED_NAME, strlen(UNIFIED_NAME)) == EOK); in HWTEST_F()
539 DEVICE_NAME_BUF_LEN, DEVICE_NAME_TEST, strlen(DEVICE_NAME_TEST)) == EOK); in HWTEST_F()
542 DEVICE_NAME_BUF_LEN, UNIFIED_NAME, strlen(UNIFIED_NAME)) == EOK); in HWTEST_F()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1099 char unified[DEVICE_NAME_BUF_LEN] = {0}; in GetAndSetLocalUnifiedName()
1100 if (LnnGetUnifiedDeviceName(unified, DEVICE_NAME_BUF_LEN) != SOFTBUS_OK) { in GetAndSetLocalUnifiedName()
1117 char localDevName[DEVICE_NAME_BUF_LEN] = {0}; in PackCommonDevInfo()
1534 OptString(json, UNIFIED_DEVICE_NAME, info->deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, ""); in ParseCommonJsonInfo()
1535 OptString(json, UNIFIED_DEFAULT_DEVICE_NAME, info->deviceInfo.unifiedDefaultName, DEVICE_NAME_BUF_LEN, ""); in ParseCommonJsonInfo()
1536 OptString(json, SETTINGS_NICK_NAME, info->deviceInfo.nickName, DEVICE_NAME_BUF_LEN, ""); in ParseCommonJsonInfo()
1542 (void)JSON_GetStringFromOject(json, DEVICE_NAME, info->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN); in ParseCommonJsonInfo()
1814 char localDevName[DEVICE_NAME_BUF_LEN] = {0}; in PackDeviceInfoBtV1()
1846 if (!JSON_GetStringFromOject(json, DEVICE_NAME, info->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN) || in UnpackDeviceInfoBtV1()
2037 char deviceName[DEVICE_NAME_BUF_LEN] in UpdatePeerDeviceName()
[all...]
H A Dauth_session_fsm.c98 char localDevName[DEVICE_NAME_BUF_LEN];
830 (void)LnnGetLocalStrInfo(STRING_KEY_DEV_NAME, reportInfo->localDevName, DEVICE_NAME_BUF_LEN); in GetLocalDevReportInfo()
833 if (strcpy_s((char *)lnnAuditExtra->localDevName, DEVICE_NAME_BUF_LEN, in GetLocalDevReportInfo()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c961 if (GetCommonDevInfo(COMM_DEVICE_KEY_DEVNAME, info->deviceName, DEVICE_NAME_BUF_LEN) != SOFTBUS_OK) { in InitLocalDeviceInfo()
974 if (LnnGetUnifiedDeviceName(info->unifiedName, DEVICE_NAME_BUF_LEN) != SOFTBUS_OK) { in InitLocalDeviceInfo()
977 if (LnnGetUnifiedDefaultDeviceName(info->unifiedDefaultName, DEVICE_NAME_BUF_LEN) != SOFTBUS_OK) { in InitLocalDeviceInfo()
981 info->nickName, DEVICE_NAME_BUF_LEN) != SOFTBUS_OK) { in InitLocalDeviceInfo()
1130 DEVICE_NAME_BUF_LEN, (char *)name) != EOK) { in UpdateUnifiedName()
1163 if (strcpy_s(g_localNetLedger.localInfo.deviceInfo.unifiedDefaultName, DEVICE_NAME_BUF_LEN, (char *)name) != in UpdateUnifiedDefaultName()
1197 if (strcpy_s(g_localNetLedger.localInfo.deviceInfo.nickName, DEVICE_NAME_BUF_LEN, (char *)name) != EOK) { in UpdateNickName()
1798 {STRING_KEY_DEV_NAME, DEVICE_NAME_BUF_LEN, LlGetDeviceName, UpdateLocalDeviceName},
1799 {STRING_KEY_DEV_UNIFIED_NAME, DEVICE_NAME_BUF_LEN, LlGetUnifiedName, UpdateUnifiedName},
1800 {STRING_KEY_DEV_UNIFIED_DEFAULT_NAME, DEVICE_NAME_BUF_LEN, LlGetUnifiedDefaultNam
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c251 if (strcpy_s(basic->deviceName, DEVICE_NAME_BUF_LEN, info->deviceInfo.deviceName) != EOK) { in ConvertNodeInfoToBasicInfo()
702 char deviceName[DEVICE_NAME_BUF_LEN] = { 0 }; in LnnUpdateNodeInfo()
724 if (strcpy_s(deviceName, DEVICE_NAME_BUF_LEN, oldInfo->deviceInfo.deviceName) != EOK || in LnnUpdateNodeInfo()
725 strcpy_s(oldInfo->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.deviceName) != EOK) { in LnnUpdateNodeInfo()
743 if (memcmp(deviceName, newInfo->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN) != 0) { in LnnUpdateNodeInfo()
1459 if (strcpy_s(oldInfo->deviceInfo.deviceName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.deviceName) != EOK) { in UpdateDevBasicInfoToDLedger()
1462 if (strcpy_s(oldInfo->deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.unifiedName) != EOK) { in UpdateDevBasicInfoToDLedger()
1465 if (strcpy_s(oldInfo->deviceInfo.unifiedDefaultName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.unifiedDefaultName) != in UpdateDevBasicInfoToDLedger()
1469 if (strcpy_s(oldInfo->deviceInfo.nickName, DEVICE_NAME_BUF_LEN, newInfo->deviceInfo.nickName) != EOK) { in UpdateDevBasicInfoToDLedger()
H A Dlnn_distributed_net_ledger_manager.c874 if (strcpy_s(node->deviceInfo.nickName, DEVICE_NAME_BUF_LEN, name) != EOK) { in LnnSetDLDeviceNickName()
906 if (strncpy_s(info->deviceInfo.unifiedName, DEVICE_NAME_BUF_LEN, name, strlen(name)) != EOK) { in LnnSetDLUnifiedDeviceName()
940 if (strncpy_s(info->deviceInfo.unifiedDefaultName, DEVICE_NAME_BUF_LEN, name, strlen(name)) != EOK) { in LnnSetDLUnifiedDefaultDeviceName()
974 if (strncpy_s(info->deviceInfo.nickName, DEVICE_NAME_BUF_LEN, name, strlen(name)) != EOK) { in LnnSetDLDeviceNickNameByUdid()
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
H A Dbus_center_sdk_test.cpp300 char deviceName[DEVICE_NAME_BUF_LEN] = {0}; in HWTEST_F()
317 (uint8_t *)deviceName, DEVICE_NAME_BUF_LEN) == SOFTBUS_OK); in HWTEST_F()
330 (uint8_t *)deviceName, DEVICE_NAME_BUF_LEN) == SOFTBUS_OK); in HWTEST_F()
/foundation/communication/ipc/dl_deps/
H A Ddsoftbus_interface.h36 #define DEVICE_NAME_BUF_LEN 128 macro
41 char deviceName[DEVICE_NAME_BUF_LEN]; /**< Device name */
/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/
H A Ddisc_ble_utils.c101 char localDevName[DEVICE_NAME_BUF_LEN] = {0}; in DiscBleGetDeviceName()
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/
H A Ddisc_nstackx_adapter.c538 char localDevName[DEVICE_NAME_BUF_LEN] = {0}; in DiscCoapUpdateDevName()

Completed in 46 milliseconds