/ohos5.0/foundation/communication/dsoftbus/core/adapter/bus_center/src/ |
H A D | bus_center_adapter.c | 237 char *deviceVersion = (char *)SoftBusCalloc(DEVICE_VERSION_SIZE_MAX); in GetCommonDeviceVersion() local 238 if (deviceVersion == NULL) { in GetCommonDeviceVersion() 242 GetParameter(DEVICE_VERSION, UNDEFINED_VALUE, deviceVersion, DEVICE_VERSION_SIZE_MAX); in GetCommonDeviceVersion() 243 if (strcmp(deviceVersion, UNDEFINED_VALUE) != 0) { in GetCommonDeviceVersion() 244 if (strcpy_s(value, len, deviceVersion) != EOK) { in GetCommonDeviceVersion() 246 SoftBusFree(deviceVersion); in GetCommonDeviceVersion() 251 SoftBusFree(deviceVersion); in GetCommonDeviceVersion() 254 SoftBusFree(deviceVersion); in GetCommonDeviceVersion()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/ |
H A D | trans_channel_callback.c | 74 char deviceVersion[DEVICE_VERSION_SIZE_MAX] = { 0 }; in TransServerOnChannelOpened() local 76 deviceVersion, sizeof(deviceVersion)); in TransServerOnChannelOpened() 89 .peerDevVer = deviceVersion, in TransServerOnChannelOpened()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/ |
H A D | trans_channel_common.c | 204 void TransGetRemoteDeviceVersion(const char *id, IdCategory type, char *deviceVersion, uint32_t len) in TransGetRemoteDeviceVersion() argument 206 if (id == NULL || deviceVersion == NULL) { in TransGetRemoteDeviceVersion() 216 if (strncpy_s(deviceVersion, len, nodeInfo.deviceInfo.deviceVersion, in TransGetRemoteDeviceVersion() 217 strlen(nodeInfo.deviceInfo.deviceVersion)) != EOK) { in TransGetRemoteDeviceVersion() 466 extra->peerDevVer = peerRet == SOFTBUS_OK ? nodeInfo->deviceInfo.deviceVersion : NULL, in TransBuildTransOpenChannelStartEvent()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/ |
H A D | lnn_device_info.h | 50 char deviceVersion[DEVICE_VERSION_SIZE_MAX]; member
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/include/ |
H A D | trans_channel_common.h | 76 void TransGetRemoteDeviceVersion(const char *id, IdCategory type, char *deviceVersion, uint32_t len…
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/ |
H A D | trans_lane_common_test.cpp | 325 char deviceVersion[DEVICE_VERSION_SIZE_MAX] = {0}; variable 327 TransGetRemoteDeviceVersion(nullptr, type, deviceVersion, len); 328 EXPECT_EQ(strlen(deviceVersion), 0); 334 TransGetRemoteDeviceVersion(TEST_ID, type, deviceVersion, len); 335 EXPECT_EQ(strlen(deviceVersion), 0);
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/include/device/ |
H A D | dev_profile.h | 35 void GetRemoteDeviceVersion(const std::string &networkId, uint32_t &deviceVersion);
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync.c | 760 Anonymize(cacheInfo->deviceInfo.deviceVersion, &anonyDeviceVersion); in PrintSyncNodeInfo() 808 …if (strcpy_s(oldInfo->deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, newInfo->deviceInfo.devic… in UpdateDevBasicInfoToCache()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_parser.cpp | 265 int32_t deviceVersion = apiVersion * API_VERSION_MASK + apiLevel; in CheckApi10Version() local 266 …CHECK_IS_TRUE((deviceVersion >= compatibleApiVersion), ERR_APPEXECFWK_INSTALL_FAILED_PARSE_API_VER… in CheckApi10Version()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger.c | 1476 …if (strcpy_s(oldInfo->deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, newInfo->deviceInfo.devic… in UpdateDevBasicInfoToDLedger()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync_mock_test.cpp | 541 …EXPECT_EQ(EOK, strcpy_s(cacheInfo.deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, SOFTBUSVERSIO…
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 1164 (void)JSON_AddStringToObject(json, DEVICE_VERSION, info->deviceInfo.deviceVersion); in PackDeviceVersion() 1554 OptString(json, DEVICE_VERSION, info->deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, ""); in ParseCommonJsonInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation.c | 645 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in ReportUdpRequestHandShakeStartEvent()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_message.c | 828 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in ReportTransEventExtra()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
H A D | trans_tcp_direct_message_append_test.cpp | 1691 …(void)memcpy_s(nodeInfo.deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, DEVICE_VERSION, DEVICE_…
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/ |
H A D | lnn_local_net_ledger.c | 964 if (GetCommonDeviceVersion(info->deviceVersion, DEVICE_VERSION_SIZE_MAX) != SOFTBUS_OK) { in InitLocalDeviceInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_manager.c | 1135 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in FillProxyHandshakeExtra()
|