Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 251 - 275 of 327) sorted by relevance

1...<<11121314

/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()
/base/security/device_auth/services/data_manager/src/
H A Ddata_manager.c191 if (sprintf_s(infoPath, pathBufferLen, "%s/%d/deviceauth/hcgroup.dat", beginPath, osAccountId) <= 0) { in GetOsAccountInfoPathCe()
207 writeByteNum = sprintf_s(infoPath, pathBufferLen, "%s/hcgroup.dat", beginPath); in GetOsAccountInfoPathDe()
209 writeByteNum = sprintf_s(infoPath, pathBufferLen, "%s/hcgroup%d.dat", beginPath, osAccountId); in GetOsAccountInfoPathDe()
212 LOGE("[DB]: sprintf_s fail!"); in GetOsAccountInfoPathDe()
/base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/
H A Dasy_token_manager.c101 if (sprintf_s(tokenPath, pathBufferLen, "%s/%d/deviceauth/account/account_data_asy.dat", in GetTokenPathCe()
118 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_asy.dat", beginPath); in GetTokenPathDe()
120 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_asy%d.dat", beginPath, osAccountId); in GetTokenPathDe()
123 LOGE("sprintf_s fail!"); in GetTokenPathDe()
/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()
/base/startup/init/services/param/linux/
H A Dparam_service.c268 int ret = sprintf_s(condition, buffSize - 1, "%s=%s", msg->key, valueContent->content); in HandleParamWaitAdd()
/base/security/permission_lite/services/pms/src/
H A Dpms_impl.c265 if (sprintf_s(buf, BUFF_PARAM_SIZE, "%d", permissions[i].flags) < 0) { in SavePermissions()
/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/dsoftbus/components/nstackx/nstackx_ctrl/core/
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()
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_utils.cpp655 (void)sprintf_s(options, sizeof(options), "fd=%d," in DoDlpAppMountStrategy()
1824 int len = sprintf_s(path, allPathSize, "%s%u%s%s", rootPath, uid, basePath, bundleName);
1851 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath);
/base/hiviewdfx/hidumper/frameworks/native/src/manager/
H A Ddump_implement.cpp344 if (sprintf_s(currentTime, sizeof(currentTime), "%s-%03d", buffer, milli) < 0) { in GetTime()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
H A Dnativetoken_kit_test.cpp608 int32_t ret = sprintf_s(processName[i], MAX_PROCESS_NAME_LEN, "processName_%d", i); in HWTEST_F()
/base/security/device_auth/services/key_agree_sdk/src/
H A Dkey_agree_session.c167 if (sprintf_s(tmpStr, TMP_VERSION_STR_LEN, "%lld.%lld.%lld", in VersionToString()
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c418 if (sprintf_s(keyStr, keyLen + PLACE_HOLDER_LENGTH, JSON_KEY_FORMAT, key) <= 0) { in GetValueFromJsonStr()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
H A Dsave_trusted_info_test.cpp78 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
/base/startup/init/services/begetctl/shell/
H A Dshell_bas.c41 int len = sprintf_s(shell->data, sizeof(shell->data) - 1, "System unknown err 0x%08x", err); in BShellEnvErrString()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_service_test.cpp574 EXPECT_GT(sprintf_s(pid, 16, "%d", app->pid), 0); in HWTEST_F()
/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__); \

Completed in 42 milliseconds

1...<<11121314