| /test/xts/device_attest_lite/services/core/small/utils/ |
| H A D | attest_utils_file_detail.c | 184 if (sprintf_s(realPath, realPathLen, "%s%s%s", formatPath, "/", fileName) < 0) { in CreateFile()
|
| /third_party/lz4/examples/ |
| H A D | dictionaryRandomAccess.c | 5 # define snprintf sprintf_s
|
| /third_party/node/deps/v8/src/utils/ |
| H A D | ostreams.cc | 16 #define snprintf sprintf_s
|
| /third_party/musl/libc-test/src/functionalext/unittest/ |
| H A D | unit_test_hilog_adapter.c | 63 (void)sprintf_s(randomString, STR_LENGTH, "%02d", index);
in GenerateRandomString()
|
| /foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
| H A D | reli_test.cpp | 190 sprintf_s(file, len, "/data/test/media/16/%d_video_audio.mp4", i); in HWTEST_F() 222 sprintf_s(file, len, "/data/test/media/16/%d_video_audio.mp4", i); in HWTEST_F() 274 sprintf_s(file, len, "/data/test/media/16/%d_video_audio.mp4", i); in HWTEST_F() 1392 sprintf_s(file, len, "/data/test/media/16/%d_hevc_v_a.ts", i); in HWTEST_F() 1692 sprintf_s(file, len, "/data/test/media/16/%d_avc_mp3.flv", i); in HWTEST_F() 1862 sprintf_s(file, len, "/data/test/media/16/%d_h265_aac_1mvex_fmp4.mp4", i); in HWTEST_F() 2183 sprintf_s(file, len, "/data/test/media/16/%d_h264_aac.m3u8", i); in HWTEST_F() 2374 sprintf_s(file, len, "/data/test/media/16/%d_srt_test.srt", i); in HWTEST_F()
|
| /foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
| H A D | coap_discover.c | 611 if (sprintf_s(discoverUri, sizeof(discoverUri), "coap://%s/%s", broadcastIp, COAP_DEVICE_DISCOVER_URI) < 0) { 956 if (sprintf_s(uriBuffer, sizeof(uriBuffer), "coap://%s/" COAP_SERVICE_MSG_URI, remoteIpStr) < 0) { 957 DFINDER_LOGE(TAG, "sprintf_s for coap service msg uri failed"); 992 if (sprintf_s(notificationUri, sizeof(notificationUri), 1311 if (sprintf_s(remoteUrl, sizeof(remoteUrl), "coap://%s/" COAP_DEVICE_DISCOVER_URI, host) < 0) {
|
| /base/startup/appspawn/standard/ |
| H A D | appspawn_service.c | 489 int len = sprintf_s(path, sizeof(path), APPSPAWN_MSG_DIR "%s/%s_%u", in GetMapMem() 1127 int len = sprintf_s(buffer[0], sizeof(buffer[0]), " %d ", property->forkCtx.fd[1]); in AppSpawnColdStartApp() 1129 len = sprintf_s(buffer[1], sizeof(buffer[1]), " %u ", property->client.flags); in AppSpawnColdStartApp() 1131 len = sprintf_s(buffer[2], sizeof(buffer[2]), " %u ", property->forkCtx.msgSize); // 2 2 index for dest path in AppSpawnColdStartApp() 1133 len = sprintf_s(buffer[3], sizeof(buffer[3]), " %u ", property->client.id); // 3 3 index for client id in AppSpawnColdStartApp() 1181 int len = sprintf_s(path, sizeof(path), APPSPAWN_MSG_DIR "%s/%s_%u", in GetAppSpawningCtxFromArg()
|
| /foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
| H A D | exif_maker_note.cpp | 673 if (sprintf_s(buffer, sizeof(buffer), "%02X", data[cur]) == -1) {
in Dump() 678 if (sprintf_s(buffer, sizeof(buffer), " %02X", data[cur]) == -1) {
in Dump()
|
| /foundation/multimodalinput/input/util/common/src/ |
| H A D | util.cpp | 90 const int32_t ret = sprintf_s(buf, BUF_TID_SIZE, "%06d", tid); in GetThisThreadIdOfString() 92 printf("ERR: in %s, #%d, call sprintf_s failed, ret = %d", __func__, __LINE__, ret); in GetThisThreadIdOfString() 187 if (sprintf_s(buf, BUF_CMD_SIZE, "/proc/%d/cmdline", static_cast<int32_t>(getpid())) == -1) { in GetProgramName() 188 KMSG_LOGE("GetProcessInfo sprintf_s /proc/.../cmdline error"); in GetProgramName()
|
| /foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
| H A D | wifi_direct_utils.cpp | 88 sprintf_s(buf, sizeof(buf), "%02x", byte); in ToString() 245 if (sprintf_s(buf, MAC_BYTE_HEX_SIZE, "%02x:", byte) < 0) { in MacArrayToString()
|
| /foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
| H A D | network_security_config.cpp | 176 if (sprintf_s(&hashedStr[BASE16_ELE_SIZE * i], sizeof(hashedStr) - BASE16_ELE_SIZE * i, "%02x", hashedHex[i]) < in GetRehashedCADirName() 255 if (sprintf_s(buf, sizeof(buf), "%08lx", X509_subject_name_hash(x509)) < 0) { in ReHashCAPathForX509()
|
| /foundation/communication/wifi/wifi/frameworks/native/src/ |
| H A D | wifi_p2p_msg.cpp | 888 if (sprintf_s(buf, sizeof(buf), "%x", bufData & 0xff) < 0) { in Bin2HexStr() 905 if (sprintf_s(buf, sizeof(buf), "%x", bufData & 0xff) < 0) { in Bin2HexStr()
|
| /test/xts/hats/hdf/camera/cameraMg/v1_1/src/ |
| H A D | hdi_common_v1_1.cpp | 42 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]),
in DumpImageFile() 48 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/stream-%d/%lld.%s",
in DumpImageFile()
|
| /test/xts/hats/hdf/camera/cameraMg_additional/v1_1/src/ |
| H A D | hdi_common_v1_1.cpp | 42 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]), in DumpImageFile() 48 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/stream-%d/%lld.%s", in DumpImageFile()
|
| /test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/ |
| H A D | benchmark_common.cpp | 42 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]), in DumpImageFile() 48 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "data/stream-%d/%lld.%s", in DumpImageFile()
|
| /test/xts/hats/hdf/camera/cameraMg/v1_0/src/ |
| H A D | common.cpp | 42 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]),
in DumpImageFile() 48 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "data/stream-%d/%lld.%s",
in DumpImageFile()
|
| /third_party/jerryscript/jerry-core/api/ |
| H A D | generate-bytecode.c | 27 extern int sprintf_s(char *strDest, size_t destMax, const char *format, ...); 39 if (sprintf_s(version_str, sizeof(version_str), in get_jerry_version_no()
|
| /foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
| H A D | lnn_data_cloud_sync.c | 1014 if (sprintf_s(putKey, KEY_MAX_LEN, "%ld#%s#%s", localCaheInfo.accountId, localCaheInfo.deviceInfo.deviceUdid, key) < in LnnLedgerDataChangeSyncToDB() 1016 LNN_LOGE(LNN_BUILDER, "sprintf_s key fail"); in LnnLedgerDataChangeSyncToDB() 1020 if (sprintf_s(putValue, PUT_VALUE_MAX_LEN, "%s#%d#%llu", value, localCaheInfo.stateVersion, nowTime) < 0) { in LnnLedgerDataChangeSyncToDB() 1021 LNN_LOGE(LNN_BUILDER, "sprintf_s value fail"); in LnnLedgerDataChangeSyncToDB() 1075 if (sprintf_s(putKey, KEY_MAX_LEN, "%ld#%s", info->accountId, info->deviceInfo.deviceUdid) < 0) { in ProcessSyncToDB() 1136 if (sprintf_s(key, KEY_MAX_LEN, "%ld#%s", localCaheInfo.accountId, localCaheInfo.deviceInfo.deviceUdid) < 0) { in LnnDeleteSyncToDB() 1137 LNN_LOGE(LNN_BUILDER, "sprintf_s key fail"); in LnnDeleteSyncToDB() 1163 if (sprintf_s(key, KEY_MAX_LEN, "%ld#%s", accountId, udid) < 0) { in LnnDeleteDevInfoSyncToDB() 1164 LNN_LOGE(LNN_BUILDER, "sprintf_s key fail"); in LnnDeleteDevInfoSyncToDB()
|
| /base/location/services/location_locator/locator/source/ |
| H A D | location_config_manager.cpp | 279 (void)sprintf_s(valueArray, sizeof(valueArray), "%d", value); in SetCachePrivacyType()
|
| /base/location/frameworks/location_common/common/source/ |
| H A D | location_data_rdb_manager.cpp | 220 auto ret = sprintf_s(valueArray, sizeof(valueArray), "%s", newSwitchStr.c_str()); in SetSwitchStateToSysparaForUser() 222 LBSLOGE(COMMON_UTILS, "sprintf_s failed, ret: %{public}d", ret); in SetSwitchStateToSysparaForUser()
|
| /base/hiviewdfx/hitrace/frameworks/native/ |
| H A D | common_utils.cpp | 51 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) {
in CanonicalizeSpecPath() 52 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: sprintf_s %{pubilc}s failed.", src);
in CanonicalizeSpecPath()
|
| /base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/ |
| H A D | sym_key_openssl.c | 208 if (sprintf_s(keySizeChar, MAX_KEY_STR_SIZE, "%d", keySize) < 0) { in GetAlgoName()
|
| /base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/ |
| H A D | das_version_util.c | 108 if (sprintf_s(tmpStr, TMP_VERSION_STR_LEN, "%u.%u.%u", version->first, version->second, version->third) <= 0) { in VersionToString()
|
| /base/security/device_auth/test/unittest/deviceauth/source/ |
| H A D | mk_agree_test.cpp | 59 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
| H A D | privacy_enhancement_test.cpp | 56 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|