| /base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
| H A D | hks_storage.c | 580 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 D | tar_file.cpp | 548 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 D | bluetooth_utils.cpp | 206 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 D | softbus_hidumper_trans.c | 70 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 D | ui_time_picker.cpp | 178 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 D | image_codec_dfx.cpp | 201 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 D | lnn_lane_common.c | 199 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 D | wifi_randommac_helper.cpp | 105 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 D | obex_utils.cpp | 227 (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 D | param_test_module.c | 46 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count);
in PluginParamCmdWriteParam()
|
| /foundation/multimedia/image_framework/mock/native/include/secure/ |
| H A D | securec.h | 74 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 D | unittest_log.h | 56 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
|
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/ |
| H A D | document_key.cpp | 41 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 D | pairdevice_fuzzer.cpp | 35 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 D | cancelpaireddevice_fuzzer.cpp | 36 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 D | nstackx_dfinder_hidump.h | 27 ret = sprintf_s(data + index, size - index, fmt, ##__VA_ARGS__); \
|
| /base/startup/appspawn/modules/sandbox/ |
| H A D | sandbox_expand.c | 60 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 D | appspawn_mount_template.c | 147 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 D | hnp_zip.c | 188 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 D | rs_modifier_extractor.cpp | 482 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 D | reli_test.cpp | 208 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 D | modulectl.c | 34 int ret = sprintf_s(combinedArgs, sizeof(combinedArgs), "ohos.servicectrl.%s", argv[0]); in ModuleInstallCmd()
|
| /foundation/multimedia/audio_framework/frameworks/native/audioutils/include/ |
| H A D | audio_utils_c.h | 39 int AUTO_NAME(ret) = sprintf_s(AUTO_NAME(str), SPRINTF_STRING_LEN, fmt, ##args); \
|
| /test/xts/device_attest/services/core/utils/ |
| H A D | attest_utils_log.c | 63 ret = sprintf_s(outStr, sizeof(outStr), fmt, strDup); in AttestLogAnonyStr()
|
| /base/hiviewdfx/hiview/plugins/usage_event_report/ |
| H A D | usage_event_report.cpp | 296 if (sprintf_s(lastRTBuf, len, "%" PRIu64, lastReportTime_) < 0) {
in StartServiceByOption() 301 if (sprintf_s(lastSRTBuf, len, "%" PRIu64, lastSysReportTime_) < 0) {
in StartServiceByOption()
|