Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/dsoftbus/core/adapter/bus_center/src/
H A Dbus_center_adapter.c237 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 Dtrans_channel_callback.c74 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 Dtrans_channel_common.c204 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 Dlnn_device_info.h50 char deviceVersion[DEVICE_VERSION_SIZE_MAX]; member
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/include/
H A Dtrans_channel_common.h76 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 Dtrans_lane_common_test.cpp325 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 Ddev_profile.h35 void GetRemoteDeviceVersion(const std::string &networkId, uint32_t &deviceVersion);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_data_cloud_sync.c760 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 Dgt_bundle_parser.cpp265 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 Dlnn_distributed_net_ledger.c1476 …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 Dlnn_data_cloud_sync_mock_test.cpp541 …EXPECT_EQ(EOK, strcpy_s(cacheInfo.deviceInfo.deviceVersion, DEVICE_VERSION_SIZE_MAX, SOFTBUSVERSIO…
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1164 (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 Dtrans_udp_negotiation.c645 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in ReportUdpRequestHandShakeStartEvent()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_message.c828 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in ReportTransEventExtra()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_message_append_test.cpp1691 …(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 Dlnn_local_net_ledger.c964 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 Dsoftbus_proxychannel_manager.c1135 extra->peerDevVer = nodeInfo->deviceInfo.deviceVersion; in FillProxyHandshakeExtra()