Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 51 - 75 of 366) sorted by relevance

12345678910>>...15

/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage.c580 int32_t offset = sprintf_s(dePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s", in DeleteUserIdMainPathAndBakPath()
590 offset = sprintf_s(cePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUserIdMainPathAndBakPath()
600 offset = sprintf_s(ecePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUserIdMainPathAndBakPath()
634 int32_t offset = sprintf_s(dePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUidMainPathAndBakPath()
644 offset = sprintf_s(cePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in DeleteUidMainPathAndBakPath()
654 offset = sprintf_s(ecePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in DeleteUidMainPathAndBakPath()
706 int32_t offset = sprintf_s(userProcess, HKS_MAX_DIRENT_FILE_LEN, "%s/%s", HKS_KEY_STORE_PATH, userData); in HksServiceDeleteUserIDKeyAliasFile()
750 int32_t offset = sprintf_s(userProcess, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in HksServiceDeleteUIDKeyAliasFile()
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dtar_file.cpp548 if (sprintf_s(tmp, sizeof(tmp), "%0*llo", len - 1, val) < 0) { in I2Ocs()
559 int ret = sprintf_s(tmp.mode, sizeof(tmp.mode), FORMAT.c_str(), (int)sizeof(tmp.mode) - 1, 0); in WriteNormalData()
563 ret = sprintf_s(tmp.uid, sizeof(tmp.uid), FORMAT.c_str(), (int)sizeof(tmp.uid) - 1, 0); in WriteNormalData()
567 ret = sprintf_s(tmp.gid, sizeof(tmp.gid), FORMAT.c_str(), (int)sizeof(tmp.gid) - 1, 0); in WriteNormalData()
571 ret = sprintf_s(tmp.size, sizeof(tmp.size), FORMAT.c_str(), (int)sizeof(tmp.size) - 1, 0); in WriteNormalData()
575 ret = sprintf_s(tmp.mtime, sizeof(tmp.mtime), FORMAT.c_str(), (int)sizeof(tmp.mtime) - 1, 0); in WriteNormalData()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_utils.cpp206 ret = sprintf_s(strMacTmp, RANDOM_ADDR_ARRAY_SIZE, "%x", distribution(gen)); in GenerateRandomMacAddress()
209 ret = sprintf_s(strMacTmp, RANDOM_ADDR_ARRAY_SIZE, "%x", RANDOM_ADDR_SPLIT_SIZE * distribution(gen)); in GenerateRandomMacAddress()
212 HILOGE("GenerateRandomMacAddress failed, sprintf_s return -1!"); in GenerateRandomMacAddress()
/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/
H A Dsoftbus_hidumper_trans.c70 if (sprintf_s(uidArr, MAX_ID_LEN, "%d", uid) < 0 || sprintf_s(pidArr, MAX_ID_LEN, "%d", pid) < 0) { in SoftBusTransDumpRegisterSession()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_time_picker.cpp178 if (sprintf_s(selectedValue_, SELECTED_VALUE_SIZE, "%s:%s:%s", in TimeSelectedCallback()
183 if (sprintf_s(selectedValue_, SELECTED_VALUE_SIZE, "%s:%s", selectedHour_, selectedMinute_) < 0) { in TimeSelectedCallback()
196 if (sprintf_s(value, len, "%02u", index) < 0) { in GetValueByIndex()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dimage_codec_dfx.cpp201 int ret = sprintf_s(name, sizeof(name), "%s/%s_%dx%d(%d)_fmt%s_pts%" PRId64 ".yuv", in DumpSurfaceBuffer()
233 ret = sprintf_s(name, sizeof(name), "%s/%s.bin", DUMP_PATH, prefix.c_str()); in DumpLinearBuffer()
235 ret = sprintf_s(name, sizeof(name), "%s/%s_(%d)_pts%" PRId64 ".yuv", in DumpLinearBuffer()
239 LOGW("sprintf_s failed"); in DumpLinearBuffer()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_common.c199 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnCreateData()
214 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnReadData()
225 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnDeleteData()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_randommac_helper.cpp105 ret = sprintf_s(strMacTmp, arraySize, "%x", distribution(gen)); in GenerateRandomMacAddressByBssid()
108 ret = sprintf_s(strMacTmp, arraySize, "%x", two * distribution(gen)); in GenerateRandomMacAddressByBssid()
111 WIFI_LOGE("%{public}s failed, sprintf_s return -1!", __func__); in GenerateRandomMacAddressByBssid()
213 int ret = sprintf_s(strMac, MAX_MAC_SIZE, "%02llx:%02llx:%02llx:%02llx:%02llx:%02llx", in StringAddrFromLongAddr()
221 WIFI_LOGI("%{public}s: failed to sprintf_s", __func__); in StringAddrFromLongAddr()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_utils.cpp227 (void)sprintf_s(secBuf, sizeof(secBuf), "%ld", tp.tv_sec); in MakeNonce()
231 (void)sprintf_s(nsecBuf, sizeof(nsecBuf), "%ld", tp.tv_nsec); in MakeNonce()
237 (void)sprintf_s(key, sizeof(key), "%{public}d", int(privateKey)); in MakeNonce()
/base/startup/init/test/moduletest/
H A Dparam_test_module.c46 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count); in PluginParamCmdWriteParam()
/foundation/multimedia/image_framework/mock/native/include/secure/
H A Dsecurec.h74 SECUREC_API int sprintf_s(char *strDest, size_t destMax, const char *format, ...) SECUREC_ATTRIBUTE(3, 4);
/foundation/multimedia/player_framework/test/unittest/common/include/
H A Dunittest_log.h56 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Ddocument_key.cpp41 if (sprintf_s(idTemp, GRD_DOC_OID_HEX_SIZE + 1, "%08x%04x", now, iv) < 0) { in InitDocIdFromOid()
/foundation/communication/bluetooth_service/test/fuzztest/host/pairdevice_fuzzer/
H A Dpairdevice_fuzzer.cpp35 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in DoSomethingInterestingWithMyAPI()
/foundation/communication/bluetooth_service/test/fuzztest/host/cancelpaireddevice_fuzzer/
H A Dcancelpaireddevice_fuzzer.cpp36 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in DoSomethingInterestingWithMyAPI()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_dfinder_hidump.h27 ret = sprintf_s(data + index, size - index, fmt, ##__VA_ARGS__); \
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_expand.c60 int len = sprintf_s(context->buffer[0].buffer, context->buffer[0].bufferLen, "%s%s/%s/%s", in MountAllHsp()
64 len = sprintf_s(context->buffer[1].buffer, context->buffer[1].bufferLen, "%s%s%s/%s", in MountAllHsp()
113 int len = sprintf_s(context->buffer[0].buffer, context->buffer[0].bufferLen, "%s%s%s", in MountAllGroup()
161 int len = sprintf_s(sandboxContext->buffer[1].buffer, sandboxContext->buffer[1].bufferLen, "%s%s", in SetOverlayAppPath()
H A Dappspawn_mount_template.c147 len = sprintf_s(buffer + currLen, bufferSize - currLen - 1, " %s ", "|"); in DumpSandboxFlags()
152 len = sprintf_s(buffer + currLen, bufferSize - currLen, "%s", flagsInfos[i].name); in DumpSandboxFlags()
/base/startup/appspawn/service/hnp/base/
H A Dhnp_zip.c188 if (sprintf_s(fullPath, MAX_FILE_PATH_LEN, "%s%s", sourcePath, entry->d_name) < 0) { in ZipAddDir()
259 ret = sprintf_s(sourcePath, MAX_FILE_PATH_LEN, "%s%c", inputDir, DIR_SPLIT_SYMBOL); in HnpZip()
374 ret = sprintf_s(hnpSignMapInfos[sum].key, MAX_FILE_PATH_LEN, "%s!/%s", hnpSignKeyPrefix, key); in HnpInstallAddSignMap()
453 if (sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", outputDir, slash) < 0) { in HnpUnZip()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/
H A Drs_modifier_extractor.cpp482 if (sprintf_s(buffer, UINT8_MAX, "Bounds[%.1f %.1f %.1f %.1f] Frame[%.1f %.1f %.1f %.1f]", in Dump()
492 sprintf_s(buffer, UINT8_MAX, ", BackgroundColor[#%08X]", GetBackgroundColor().AsArgbInt()) != -1) { in Dump()
501 sprintf_s(buffer, UINT8_MAX, ", Alpha[%.1f]", GetAlpha()) != -1) { in Dump()
516 if (sprintf_s(buffer, UINT8_MAX, ", BackgroundFilter[radius: %.2f, saturation: %.2f, brightness: %.2f, " in Dump()
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/
H A Dreli_test.cpp208 sprintf_s(file, len, "/data/test/media/VIDEO_HWENC_RELI_WHILE_0010_%d.h265", i); in HWTEST_F()
254 sprintf_s(file, len, "/data/test/media/VIDEO_HWENC_RELI_WHILE_0020_%d.h265", i); in HWTEST_F()
300 sprintf_s(file, len, "/data/test/media/VIDEO_HWENC_RELI_WHILE_0030_%d.h265", i); in HWTEST_F()
338 sprintf_s(file, len, "/data/test/media/VIDEO_HWENC_RELI_WHILE_0040_%d.h265", i); in HWTEST_F()
/base/startup/init/services/begetctl/
H A Dmodulectl.c34 int ret = sprintf_s(combinedArgs, sizeof(combinedArgs), "ohos.servicectrl.%s", argv[0]); in ModuleInstallCmd()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils_c.h39 int AUTO_NAME(ret) = sprintf_s(AUTO_NAME(str), SPRINTF_STRING_LEN, fmt, ##args); \
/test/xts/device_attest/services/core/utils/
H A Dattest_utils_log.c63 ret = sprintf_s(outStr, sizeof(outStr), fmt, strDup); in AttestLogAnonyStr()
/base/hiviewdfx/hiview/plugins/usage_event_report/
H A Dusage_event_report.cpp296 if (sprintf_s(lastRTBuf, len, "%" PRIu64, lastReportTime_) < 0) { in StartServiceByOption()
301 if (sprintf_s(lastSRTBuf, len, "%" PRIu64, lastSysReportTime_) < 0) { in StartServiceByOption()

Completed in 14 milliseconds

12345678910>>...15