| /applications/sample/camera/communication/wpa_cli/src/ |
| H A D | wpa_cli_sample.c | 155 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s ssid \"example\"", networkIdLen, networkId); in TestNetworkConfig() 161 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s psk \"012345678\"", networkIdLen, networkId); in TestNetworkConfig() 167 temp = sprintf_s(cmd, sizeof(cmd), "ENABLE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig() 179 temp = sprintf_s(cmd, sizeof(cmd), "REMOVE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig()
|
| /base/startup/init/services/modules/sysevent/ |
| H A D | startup_time_event.c | 61 len = sprintf_s(args->buffer + args->currLen, args->bufferLen - args->currLen, ",%u:%u,%u:%u;",
in TraversalEvent() 79 int len = sprintf_s(bootName, MAX_BUFFER_LEN, "ohos.boot.time.%s", name);
in InsertBootTimeParam() 85 len = sprintf_s(time, MAX_BUFFER_LEN, ";kernel,0,%s", buf);
in InsertBootTimeParam() 89 len = sprintf_s(time, MAX_BUFFER_LEN, ";init,%s,%s", bufKernel, buf);
in InsertBootTimeParam()
|
| /drivers/peripheral/sensor/hal/src/ |
| H A D | sensor_dump.c | 79 ret = sprintf_s(sensorInfoDate, STRING_LEN, in SensorShowList() 117 ret = sprintf_s(sensorInfoDate, STRING_LEN, in ShowData() 125 ret = sprintf_s(sensorInfoDate, STRING_LEN, in ShowData() 146 ret = sprintf_s(sensorInfoDate, STRING_LEN, "======The last 10 data records======\n\r"); in SensorShowData()
|
| /foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
| H A D | hcodec_list_unit_test.cpp | 50 (void)sprintf_s(info, sizeof(info), "[%d,%d]", obj.minVal, obj.maxVal); in GetPrintInfo() 57 (void)sprintf_s(info, sizeof(info), "[w:%d,h:%d]", obj.width, obj.height); in GetPrintInfo() 66 (void)sprintf_s(tmp, sizeof(tmp), "%d,", one); in GetPrintInfo() 77 (void)sprintf_s(tmp, sizeof(tmp), "%d", iter->first); in GetPrintInfo()
|
| /kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
| H A D | process_test_066.cpp | 159 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 165 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
| H A D | process_test_067.cpp | 157 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 159 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
| /foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
| H A D | kv_store.c | 46 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in GetResolvedPath() 127 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in DeleteValueFromFile() 145 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) {
in InitKv() 164 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) {
in GetCurrentItem() 176 if (sprintf_s(fullPath, MAX_KEY_PATH + 1, "%s/%s", kvPath, dir->d_name) < 0) {
in GetCurrentItem() 199 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in NewItem()
|
| /kernel/liteos_a/testsuites/unittest/container/smoke/ |
| H A D | It_time_container_007.cpp | 42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
| H A D | It_time_container_008.cpp | 42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %lld", SEC, NSEC); in WriteProcTime() 46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
| /applications/sample/camera/cameraApp/cameraApp/src/main/cpp/ |
| H A D | camera_manager.cpp | 150 if (sprintf_s(jpegSrcPath, sizeof(jpegSrcPath), "%s", srcJpgPath) < 0) { in SampleGetdcfinfo() 153 if (sprintf_s(jpegDesPath, sizeof(jpegDesPath), "%s", dstThmPath) < 0) { in SampleGetdcfinfo() 196 if (sprintf_s(tmpFile, sizeof(tmpFile), "%s/photo%s.jpg", PHOTO_PATH, timeStamp) < 0) { in SampleSaveCapture() 208 if (sprintf_s(acFile, sizeof(acFile), "%s/tmp.jpg", PHOTO_PATH) < 0) { in SampleSaveCapture() 223 if (sprintf_s(acFileDcf, sizeof(acFileDcf), "%s/photo%s.jpg", THUMB_PATH, timeStamp) < 0) { in SampleSaveCapture() 227 if (sprintf_s(acFileDcf, sizeof(acFileDcf), "%s/video%s.jpg", THUMB_PATH, timeStamp) < 0) { in SampleSaveCapture() 382 if (sprintf_s(timeStamp_, sizeof(timeStamp_), "%02d-%02d-%02d-%lld", in InitTimeStamp() 391 if (sprintf_s(videoName_, sizeof(videoName_), "%s/video%s.jpg", THUMB_PATH, timeStamp_) < 0) { in InitVideoName()
|
| /base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
| H A D | hks_storage_utils.c | 103 int32_t offset = sprintf_s(targetName, nameLen, "%d", *(int *)blob->data); in ConstructPlainName() 494 int32_t offset = sprintf_s(userPath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s", in CheckUserPathExist() 513 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in ConstructPath() 520 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s/%s", HKS_CE_ROOT_PATH, in ConstructPath() 526 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s/%s", HKS_ECE_ROOT_PATH, in ConstructPath() 531 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in ConstructPath() 538 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in ConstructPath() 545 offset = sprintf_s(fileInfoPath->path, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in ConstructPath()
|
| /base/startup/init/services/modules/trace/ |
| H A D | init_trace.c | 142 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer),
in IsTraceMountedInner() 163 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer),
in IsWritableFile() 174 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer),
in WriteStrToFile() 198 int len = sprintf_s((char *)buffer, sizeof(buffer), "%d", bufferSize);
in SetBufferSize() 223 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer), "%" PRIu64 "", tags);
in SetTraceTagsEnabled() 329 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer),
in ClearTrace() 380 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer), "%s%s", workspace->traceRootPath, path);
in DumpTrace() 408 int len = sprintf_s((char *)workspace->buffer, sizeof(workspace->buffer), "%s%s",
in MarkOthersClockSync()
|
| /foundation/arkui/napi/module_manager/ |
| H A D | native_module_manager.cpp | 429 if (sprintf_s(sharedLibsSonames_ + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in CreateSharedLibsSonames() 753 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s", prefix, dupModuleName) == -1) { in GetNativeModulePath() 763 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath() 767 if (sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s%s", in GetNativeModulePath() 772 if (sprintf_s(nativeModulePath[1], pathLength, "%s/lib%s_napi%s%s", in GetNativeModulePath() 777 if (sprintf_s(nativeModulePath[2], pathLength, "%s/%s%s", // 2 : Element index value in GetNativeModulePath() 784 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath() 793 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s", in GetNativeModulePath() 797 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix); in GetNativeModulePath() 804 if (sprintf_s(nativeModulePat in GetNativeModulePath() [all...] |
| /kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
| H A D | net_resolv_test_007.cpp | 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest() 51 (void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest()
|
| H A D | net_resolv_test_006.cpp | 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest() 51 (void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest()
|
| /foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/ |
| H A D | dbm_kv_store.c | 275 if (sprintf_s(sumFilePath, len, ItemPathFormat(db), db->dirPath, KV_SUM_FILE) < 0) { in GetSumFilePath() 348 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in DeleteValueFromFile() 362 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in IsNewItem() 390 if (sprintf_s(bakKey, MAX_KEY_LEN + 8, "%s_dbm_kv", item->key) < 0) { in DelItem() 411 if (sprintf_s(srcPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, src) < 0) { in CopyValueToFile() 416 if (sprintf_s(destPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, dest) < 0) { in CopyValueToFile() 436 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in RecoverItem() 464 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in CheckPointItem() 541 if (sprintf_s(value, KV_SUM_INDEX, "%d", sumIndex) < 0) { in SetSumIndexToFile() 758 if (sprintf_s(keyPat in GetValueByFile() [all...] |
| /kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
| H A D | mq_exp_test.c | 59 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 102 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 138 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 169 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 231 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 282 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEMSGSIZE_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 315 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendETIMEDOUT_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 355 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 416 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */ 471 ret = sprintf_s(qNam [all...] |
| /base/telephony/cellular_call/services/common/src/ |
| H A D | mmi_code_message.cpp | 69 if (sprintf_s(tempMessage, sizeof(tempMessage), CF_FORWARDED_TIME.c_str(), className.c_str(), in MakeCallTransferMessageEx() 74 if (sprintf_s(tempMessage, sizeof(tempMessage), CF_FORWARDED.c_str(), className.c_str(), in MakeCallTransferMessageEx() 80 if (sprintf_s(tempMessage, sizeof(tempMessage), CF_NOT_FORWARDED.c_str(), className.c_str()) != -1) { in MakeCallTransferMessageEx()
|
| /foundation/ability/ability_runtime/cj_environment/frameworks/cj_environment/src/ |
| H A D | dynamic_loader_ohos.cpp | 43 auto ends = sprintf_s(g_dlError, sizeof(g_dlError), "%s", errMsg); in ReadDlError() 111 if (sprintf_s(g_sharedLibsSonames + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in InitSharedLibsSonames() 149 if (sprintf_s(g_dlError, sizeof(g_dlError), errMsg.c_str()) == -1) { in DynamicInitNamespace()
|
| /foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
| H A D | spirv_cross_helpers_gles.cpp | 82 const int len = sprintf_s(buf, sizeof(buf), "%u %uu\n", c.id, value); in DefineForSpec() 89 const int len = sprintf_s(buf, sizeof(buf), "%u %d\n", c.id, value); in DefineForSpec() 97 const int len = sprintf_s(buf, sizeof(buf), "%u %f\n", c.id, value); in DefineForSpec()
|
| /test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
| H A D | IpcMqTest.cpp | 42 sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000));
in HWTEST_F() 77 sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000));
in HWTEST_F() 118 sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000));
in HWTEST_F() 189 sprintf_s(qName, sizeof(qName), "testMqMaxLenTwoLevelCom_%d", GetRandom(10000));
in HWTEST_F() 244 sprintf_s(qName, sizeof(qName), "testMqTimedTwoLevelCom_%d", GetRandom(10000));
in HWTEST_F() 310 sprintf_s(qName, sizeof(qName), "testMqAllTwoLevelCom_%d", GetRandom(10000));
in HWTEST_F() 388 sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000));
in HWTEST_F() 451 sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000));
in HWTEST_F() 517 sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000));
in HWTEST_F() 555 sprintf_s(qNam in HWTEST_F() [all...] |
| /base/startup/appspawn/service/hnp/pack/src/ |
| H A D | hnp_pack.c | 46 ret = sprintf_s(hnpCfgFile, MAX_FILE_PATH_LEN, "%s%c"HNP_CFG_FILE_NAME, hnpSrcPath + offset, DIR_SPLIT_SYMBOL);
in AddHnpCfgFileToZip() 78 ret = sprintf_s(hnp_file_path, MAX_FILE_PATH_LEN, "%s%c%s.hnp", hnpDstPath, DIR_SPLIT_SYMBOL, hnpCfg->name);
in PackHnp() 134 ret = sprintf_s(linksource, MAX_FILE_PATH_LEN, "%s/%s", sourcePath, linkArr->source);
in GetHnpCfgInfo() 172 int ret = sprintf_s(cfgPath, MAX_FILE_PATH_LEN, "%s%c"HNP_CFG_FILE_NAME, packInfo->source, DIR_SPLIT_SYMBOL);
in ParsePackArgs()
|
| /foundation/multimedia/media_library/frameworks/services/media_mtp/src/ |
| H A D | mtp_packet_tools.cpp | 787 if (sprintf_s(buffer, sizeof(buffer), "%04d%02d%02dT%02d%02d%02d", tm.tm_year + BEGIN_YEAR, tm.tm_mon + 1, in FormatDateTime() 845 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%d", value, value) == -1) { in Int8ToString() 855 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%u", value, value) == -1) { in UInt8ToString() 865 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%d", value, value) == -1) { in Int16ToString() 875 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%u", value, value) == -1) { in UInt16ToString() 885 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%d", value, value) == -1) { in Int32ToString() 895 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%u", value, value) == -1) { in UInt32ToString() 905 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIi64 "", value, value) == -1) { in Int64ToString() 915 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIu64 "", value, value) == -1) { in UInt64ToString() 925 if (sprintf_s(tmpbu in Int128ToString() [all...] |
| /applications/sample/camera/gallery/src/ |
| H A D | player_ability_slice.cpp | 146 if (sprintf_s(backIconAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, BACK_ICON_PATH) < 0) { in SetUpBackArea() 173 int8_t ret = sprintf_s(videoPlayer_->filePath, videoPathLen + 1, "%s/%s", VIDEO_SOURCE_DIRECTORY, in SetUpVideoPlayer() 179 ret = sprintf_s(&videoPlayer_->filePath[videoPathLen - strlen(AVAILABEL_SOURCE_TYPE)], in SetUpVideoPlayer() 281 if (sprintf_s(timer, sizeof(timer), "%02lld:%02lld", second / 60, second % 60) < 0) { // 60: 1minute = 60s in SetUpAnimatorGroup() 315 if (sprintf_s(videoPlayAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, VIDEO_PALY_PATH) < 0) { in SetUpToggleButton() 320 if (sprintf_s(videoPauseAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, VIDEO_PAUSE_PATH) < 0) { in SetUpToggleButton() 422 sprintf_s(time, sizeof(time), "%02lld:%02lld", currentSecond / 60, currentSecond % 60); // 60: 1minute = 60s in Callback()
|
| /kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
| H A D | posix_fs_full_test.c | 145 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, i); 147 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 158 res = sprintf_s(fileName, TEST_BUF_SIZE, "%s%02d", "eFile", index); 160 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 173 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, j); 175 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 213 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRF_DIR, i); 215 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 225 res = sprintf_s(dirName, TEST_BUF_SIZE, "%s%02d", "fDir", index); 227 printf("[%s:%d] sprintf_s faile [all...] |