Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 1 - 25 of 117) sorted by relevance

12345

/test/xts/hats/kernel/syscalls/fileio/lsetxattr/
H A DLsetxattrApiTest.cpp96 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
130 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
175 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
209 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
241 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
281 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
285 num = sprintf_s(linkFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, linkPath); in HWTEST_F()
322 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F()
326 num = sprintf_s(linkFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, linkPath); in HWTEST_F()
368 int num = sprintf_s(targetFilePat in HWTEST_F()
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/pressure/
H A Dposix_fs_pressure_test.c162 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, j);
164 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
180 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i);
182 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
190 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, k);
192 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
202 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, i);
204 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
212 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i);
214 printf("[%s:%d] sprintf_s faile
[all...]
/test/xts/hats/kernel/syscalls/ns/setns/
H A DSetnsApiTest.cpp70 int ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/ipc", pid); in HWTEST_F()
81 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/net", pid); in HWTEST_F()
92 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/pid", pid); in HWTEST_F()
103 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/uts", pid); in HWTEST_F()
/test/xts/acts/commonlibrary_lite/file_hal/src/
H A Dutils_file_reli_test.c70 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
93 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
114 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
133 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
153 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
180 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
201 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
228 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
/kernel/liteos_a/testsuites/unittest/process/plimits/
H A Dprocess_plimits_test.cpp754 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroup()
757 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroup()
760 if (sprintf_s(periodpath, TEST_BUFFER_SIZE, "%s/sched.period", dirpath) < 0) { in CreatePlimitGroup()
763 if (sprintf_s(quotapath, TEST_BUFFER_SIZE, "%s/sched.quota", dirpath) < 0) { in CreatePlimitGroup()
773 if (sprintf_s(periodValue, TEST_BUFFER_SIZE, "%llu", periodUs) < 0) { in CreatePlimitGroup()
776 if (sprintf_s(quotaValue, TEST_BUFFER_SIZE, "%llu", quotaUs) < 0) { in CreatePlimitGroup()
789 if (sprintf_s(childPidFiles, TEST_BUFFER_SIZE, "%s", procspath) < 0) { in CreatePlimitGroup()
802 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroupWithoutLimit()
805 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroupWithoutLimit()
813 if (sprintf_s(childPidFile in CreatePlimitGroupWithoutLimit()
[all...]
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_time_container_002.cpp43 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in childFunc()
47 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", getpid()); in childFunc()
77 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime()
81 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
H A DIt_mnt_container_008.cpp66 ret = sprintf_s(old_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008()
68 ret = sprintf_s(targetpath, PATH_LENGTH, "/proc/%d/container/mnt", childPid); in ItMntContainer008()
81 ret = sprintf_s(new_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008()
H A DIt_time_container_007.cpp42 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 DIt_time_container_008.cpp42 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()
H A DIt_ipc_container_008.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer008()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer008()
/test/ostest/wukong/common/include/
H A Dspecial_test_object.h58 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", endX_, endY_, startX_, startY_); in toString()
60 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", startX_, startY_, endX_, endY_); in toString()
85 int result = sprintf_s(buffer, sizeof(buffer), "Point: (%d, %d)", x_, y_); in toString()
105 int result = sprintf_s(buffer, sizeof(buffer), "Bundlename: (%s)", bundlename_.c_str()); in toString()
/test/xts/hats/kernel/syscalls/fileio/lremovexattr/
H A DLremovexattrApiTest.cpp104 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_dir", OPEN_API_TEST_FILE); in HWTEST_F()
124 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
156 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
182 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/
H A Dmqueue_func_test.c148 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEEXIST_%d", GetRandom(10000));
178 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEINVAL_%d", GetRandom(10000));
273 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOENT_%d", GetRandom(10000));
298 sprintf_s(qName[i], MQ_NAME_LEN, "testMqOpenENFILE_%d", i);
337 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOSPC_%d", GetRandom(10000));
375 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000));
408 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000));
465 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEINVAL_%d", GetRandom(10000));
497 sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000));
/kernel/liteos_a/kernel/extended/container/
H A Dlos_uts_container.c40 INT32 ret = sprintf_s(name->sysname, sizeof(name->sysname), "%s", KERNEL_NAME); in InitUtsContainer()
44 ret = sprintf_s(name->nodename, sizeof(name->nodename), "%s", KERNEL_NODE_NAME); in InitUtsContainer()
48 ret = sprintf_s(name->version, sizeof(name->version), "%s %u.%u.%u.%u %s %s", in InitUtsContainer()
54 ret = sprintf_s(name->machine, sizeof(name->machine), "%s", cpuInfo); in InitUtsContainer()
58 ret = sprintf_s(name->release, sizeof(name->release), "%u.%u.%u.%u", in InitUtsContainer()
/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c155 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()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_066.cpp159 (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 Dprocess_test_067.cpp157 (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()
/applications/sample/camera/cameraApp/cameraApp/src/main/cpp/
H A Dcamera_manager.cpp150 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()
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/
H A Dmq_exp_test.c59 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...]
H A Dmq_test.c60 ret = sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
104 ret = sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
150 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
200 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
269 ret = sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
346 ret = sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
425 ret = sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
469 ret = sprintf_s(qName, sizeof(qName), "testMqFunction_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
/test/xts/acts/kernel_lite/ipc_posix/message_queue/
H A DIpcMqTest.cpp42 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...]
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/
H A Dnet_resolv_test_007.cpp49 (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 Dnet_resolv_test_006.cpp49 (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()
/applications/sample/camera/gallery/src/
H A Dplayer_ability_slice.cpp146 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 Dposix_fs_full_test.c145 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...]

Completed in 15 milliseconds

12345