Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 126 - 150 of 172) sorted by relevance

1234567

/foundation/communication/dsoftbus/core/connection/common/src/
H A Dsoftbus_socket.c425 rc = sprintf_s(addr, addrLen, "%s%s%s", ip, ADDR_SPLIT_IPV6, ifname); in Ipv6AddrInToAddr()
427 COMM_LOGE(CONN_COMMON, "sprintf_s addr fail"); in Ipv6AddrInToAddr()
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dinterface_manager.cpp262 sprintf_s(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[ARRAY_OFFSET_1_INDEX], in HwAddrToStr()
/foundation/communication/netstack/frameworks/js/napi/fetch/fetch_exec/src/
H A Dfetch_exec.cpp203 if (sprintf_s(encoded, sizeof(encoded), "%%%02X", c) < 0) { in EncodeUrlParam()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/dumper/src/
H A Ddump_helper.cpp312 auto flag = sprintf_s(date, sizeof(date), "%04d-%02d-%02d %02d:%02d:%02d %03d", in AddErrorInfo()
/foundation/distributedhardware/distributed_input/utils/src/
H A Ddinput_utils_tool.cpp231 int32_t secRet = sprintf_s(tempBuffer, INT32_STRING_LENGTH, "%d", value); in GetAnonyInt32()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_device.c227 if (sprintf_s(deviceList->reservedInfo, sizeof(deviceList->reservedInfo), in SetReservedInfoFromDeviceInfo()
229 DFINDER_LOGE(TAG, "sprintf_s reservedInfo with wifiIpAddr fails"); in SetReservedInfoFromDeviceInfo()
H A Djson_payload.c438 if (sprintf_s(coapUriBuffer, sizeof(coapUriBuffer), "coap://%s/" COAP_DEVICE_DISCOVER_URI, locaIpStr) < 0) { in PrepareServiceDiscoverEx()
H A Dnstackx_device_local.c492 if (sprintf_s(g_localDevice.deviceInfo.deviceHash, DEVICE_HASH_LEN, in SetLocalDeviceHash()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
H A Dcoap_discover.c567 if (sprintf_s(remoteUrl, sizeof(remoteUrl), "coap://%s/" COAP_DEVICE_DISCOVER_URI, host) < 0) { in SendDiscoveryRspEx()
/foundation/communication/dsoftbus/core/discovery/manager/src/
H A Ddisc_manager.c610 itemStrLen = sprintf_s(&dumpStr[dumpStrPos], DUMP_STR_LEN - dumpStrPos, "%d,", infoNode->id); in DumpDiscInfoList()
614 itemStrLen = sprintf_s(&dumpStr[dumpStrPos], DUMP_STR_LEN - dumpStrPos, "%d,", infoNode->id); in DumpDiscInfoList()
615 DISC_CHECK_AND_RETURN_LOGW(itemStrLen > 0, DISC_CONTROL, "sprintf_s failed"); in DumpDiscInfoList()
/foundation/distributedhardware/device_manager/services/service/src/softbus/
H A Dmine_softbus_listener.cpp403 retValue = sprintf_s(&output[*outLen], DM_DEVICE_NUMBER_LEN, "%010d", optionInfo[i].startNumber); in ParseScopeDeviceJsonArray()
409 retValue = sprintf_s(&output[*outLen], DM_DEVICE_NUMBER_LEN, "%010d", optionInfo[i].endNumber); in ParseScopeDeviceJsonArray()
/foundation/multimedia/av_codec/services/engine/codec/video/hevcdecoder/
H A Dhevc_decoder.cpp199 int ret = sprintf_s(fileName, sizeof(fileName), "%s/input_%p.h265", DUMP_PATH, this); in OpenDumpFile()
210 int ret = sprintf_s(fileName, sizeof(fileName), "%s/output_%p.yuv", DUMP_PATH, this); in OpenDumpFile()
219 ret = sprintf_s(fileName, sizeof(fileName), "%s/outConvert_%p.data", DUMP_PATH, this); in OpenDumpFile()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/
H A Dwifi_device_service_impl.cpp1911 if (sprintf_s(cmd, sizeof(cmd), "ENABLE=%d BSSID=%s", uiFlag, bssid.c_str()) < 0) { in EnableHiLinkHandshake()
1920 if (sprintf_s(cmd, sizeof(cmd), "ENABLE=%d BSSID=%s", uiFlag, bssid.c_str()) < 0) { in EnableHiLinkHandshake()
1937 if (sprintf_s(cmd, sizeof(cmd), "HILINK_MAC=%s", currentMac.c_str()) < 0) { in EnableHiLinkHandshake()
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_file_manager.c435 ret = sprintf_s(fullPath, fullPathLength, "%s%s", path, fileName); in GetFullFilePath()
437 ret = sprintf_s(fullPath, fullPathLength, "%s%c%s", path, PATH_SEPARATOR, fileName); in GetFullFilePath()
855 if (sprintf_s(name, sizeof(name), "%s%u", DFFILE_IO_THREAD_NAME_PREFIX, threadIdx) < 0) { in SetIOThreadName()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils.h225 int len = ::sprintf_s(buf, sizeof(buf), fmt, args...); in AppendFormat()
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/
H A Ddisc_nstackx_adapter.c249 if (sprintf_s(serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, "port:%d,", authPort) == -1) { in DiscCoapRegisterServiceData()
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_management.cpp238 sprintf_s(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[INDEX_ONE], in HwAddrToStr()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_socket.cpp704 (void)sprintf_s(token, sizeof(token), "%02X:%02X:%02X:%02X:%02X:%02X", in RecvSocketFd()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_bundle_installer.cpp603 if (sprintf_s(bundleJsonPath, PATH_LENGTH, "%s%s%s", JSON_PATH, bundleName, JSON_SUFFIX) < 0) { in Uninstall()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dfillp_dfx.c381 FILLP_INT ret = sprintf_s(data + len, FILLP_DFX_DUMP_BUF_LEN - len, fmt, ##__VA_ARGS__); \
/foundation/multimedia/av_codec/services/engine/codec/video/fcodec/
H A Dfcodec.cpp101 ret = sprintf_s(fileName, sizeof(fileName), "%s/input_%p.h264", DUMP_PATH, this); in OpenDumpFile()
112 ret = sprintf_s(fileName, sizeof(fileName), "%s/output_%p.yuv", DUMP_PATH, this); in OpenDumpFile()
/foundation/communication/ipc/ipc/native/src/mock/source/
H A Dbinder_invoker.cpp1616 int ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010" PRIu64, tempTokenId); in ResetCallingIdentity()
1622 ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010d", tempRealPid); in ResetCallingIdentity()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c556 if (sprintf_s(key, INT_TO_STR_SIZE + UUID_BUF_LEN, "%d%s", type, uuid) == -1) { in CreateCnnCodeKey()
684 if (sprintf_s(accountString, LONG_TO_STRING_MAX_LEN, "%" PRId64, info->accountId) == -1) { in UpdateNewNodeAccountHash()
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Djs_fwk_common.cpp635 if (sprintf_s(traceData, traceDataLen, "%s is bigger than %zu KB.\n", (ptr + 1), currentLimitation) < 0) { in OutputFileMaxLimitationTrace()
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt.cpp107 (void)sprintf_s(token, sizeof(token), "%02X", scanResult.advData[i]);

Completed in 38 milliseconds

1234567