Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 25 of 58) sorted by relevance

123

/test/xts/acts/multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/
DAVPlayerDataSrcNoSeekCompatibilityTest.test.js31 let filePath = pathDir + "/01.mp3";
69 fd = fileio.openSync(filePath, 0o0);
86 filePath = pathDir + "/01_15s.mp3";
87 console.info(`case filePath is ${filePath}`);
88 fd = fileio.openSync(filePath, 0o0);
102 filePath = pathDir + "/aac_48ksr_16kbr_1ch.aac";
103 console.info(`case filePath is ${filePath}`);
104 fd = fileio.openSync(filePath, 0o0);
118 filePath = pathDir + "/vorbis_48ksr_32kbr_1ch.ogg";
119 console.info(`case filePath is ${filePath}`);
[all …]
DAVPlayerDataSrcNoSeekReliabilityTest.test.js25 let filePath = pathDir + "/01_15s.mp3";
126 fd = fileio.openSync(filePath, 0o0);
149 filePath = pathDir + "/01_15s.mp3";
150 …SUB_MULTIMEDIA_MEDIA_AVPLAYER_DATASRC_NOSEEK_RELI_MP3_0100 filePath is '+JSON.stringify(filePath));
151 let size = fileio.statSync(filePath).size;
153 fd = fileio.openSync(filePath, 0o0);
178 filePath = pathDir + "/01_15s.mp3";
179 fd = fileio.openSync(filePath, 0o0);
205 filePath = pathDir + "/01_15s.mp3";
206 fd = fileio.openSync(filePath, 0o0);
[all …]
/test/xts/device_attest_lite/services/core/small/utils/
Dattest_utils_file_detail.c38 char* filePath = GenFilePath(path, fileName); in GetFileSize() local
39 if (filePath == NULL) { in GetFileSize()
44 char* formatPath = realpath(filePath, NULL); in GetFileSize()
45 ATTEST_MEM_FREE(filePath); in GetFileSize()
75 char* filePath = GenFilePath(path, fileName); in WriteFile() local
76 if (filePath == NULL) { in WriteFile()
81 char* formatPath = realpath(filePath, NULL); in WriteFile()
82 ATTEST_MEM_FREE(filePath); in WriteFile()
134 char* filePath = GenFilePath(path, fileName); in ReadFile() local
135 if (filePath == NULL) { in ReadFile()
[all …]
/test/xts/device_attest/services/oem_adapter/src/
Ddevice_attest_oem_file.c31 char* filePath = (char *)malloc(filePathLen); in OEMGenFilePath() local
32 if (filePath == NULL) { in OEMGenFilePath()
35 (void)memset_s(filePath, filePathLen, 0, filePathLen); in OEMGenFilePath()
36 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in OEMGenFilePath()
37 free(filePath); in OEMGenFilePath()
40 return filePath; in OEMGenFilePath()
49 char* filePath = OEMGenFilePath(path, fileName); in OEMGetFileSize() local
50 if (filePath == NULL) { in OEMGetFileSize()
54 char* formatPath = realpath(filePath, NULL); in OEMGetFileSize()
81 char* filePath = OEMGenFilePath(path, fileName); in OEMWriteFile() local
[all …]
/test/xts/device_attest/services/core/utils/
Dattest_utils_file.c37 char* filePath = (char *)ATTEST_MEM_MALLOC(filePathLen); in GenFilePath() local
38 if (filePath == NULL) { in GenFilePath()
41 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in GenFilePath()
42 ATTEST_MEM_FREE(filePath); in GenFilePath()
45 return filePath; in GenFilePath()
55 char* filePath = GenFilePath(path, fileName); in GetFileSize() local
56 if (filePath == NULL) { in GetFileSize()
61 char* formatPath = realpath(filePath, NULL); in GetFileSize()
62 ATTEST_MEM_FREE(filePath); in GetFileSize()
93 char* filePath = GenFilePath(path, fileName); in WriteFile() local
[all …]
/test/xts/acts/request/RequestTest_ets/entry/src/main/ets/test/
DrequestDownload.test.ets66 filePath: `${downloadFilePath}/`,
81 downloadConfig.filePath += 'SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0001.txt';
83 let filePath = downloadConfig.filePath;
99 fileio.unlinkSync(filePath);
105 fileio.unlinkSync(filePath);
113 fileio.unlinkSync(filePath);
128 downloadConfig.filePath += 'SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0002.txt';
130 let filePath = downloadConfig.filePath;
147 fileio.unlinkSync(filePath);
155 fileio.unlinkSync(filePath);
[all …]
/test/xts/tools/lite/checksum/src/
Dmain.c35 char *filePath = argv[1]; in main() local
42 int result = stat(filePath, &sBuf); // 获取文件信息,把信息放到sBuf中 in main()
44 printf("error: fail to get the stat of %s: %s.\n", filePath, strerror(errno)); in main()
49 CalcMultiFilesSha256(filePath); // 输入的文件路径为目录 in main()
51 CalcSingleFileSha256(filePath); // 输入的文件路径是普通文件 in main()
/test/xts/device_attest_lite/services/core/utils/
Dattest_utils_file.c36 char* filePath = (char *)ATTEST_MEM_MALLOC(filePathLen); in GenFilePath() local
37 if (filePath == NULL) { in GenFilePath()
40 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in GenFilePath()
41 ATTEST_MEM_FREE(filePath); in GenFilePath()
44 return filePath; in GenFilePath()
/test/xts/acts/security_lite/huks/common/
Dhks_test_file_operator.c106 char filePath[PATH_MAX + 1] = {0}; in FileRead() local
107 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileRead()
110 if (strstr(filePath, "../") != NULL) { in FileRead()
111 HKS_TEST_LOG_E("invalid filePath, path %s", filePath); in FileRead()
115 FILE *fp = fopen(filePath, "rb"); in FileRead()
149 char filePath[PATH_MAX + 1] = {0}; in FileWrite() local
150 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileWrite()
153 if (strstr(filePath, "../") != NULL) { in FileWrite()
154 HKS_TEST_LOG_E("invalid filePath, path %s", filePath); in FileWrite()
159 FILE *fp = fopen(filePath, "wb+"); in FileWrite()
[all …]
/test/xts/acts/multimedia_lite/utils_posix/common/src/
DActsTestMediaUtils.cpp26 string filePath = ""; in GetCurDir() local
32 filePath = buffer; in GetCurDir()
35 return filePath + "/"; in GetCurDir()
64 string filePath = ""; in SampleSaveCapture() local
71 filePath = testPath + ss.str(); in SampleSaveCapture()
77 const char *filename = filePath.data(); in SampleSaveCapture()
/test/ostest/wukong/report/src/
Dexception_manager.cpp54 bool InitCsvFile(std::ofstream &csvFile, std::string &filePath) in InitCsvFile() argument
61 filePath = DEFAULT_DIR + "/wukong_" + WuKongUtil::GetInstance()->GetStartRunTime() + ".csv"; in InitCsvFile()
62 csvFile.open(filePath, std::ios_base::out | std::ios_base::trunc); in InitCsvFile()
64 ERROR_LOG_STR("Failed to create csv file at: %s", filePath.c_str()); in InitCsvFile()
68 INFO_LOG_STR("CSV: (%s)", filePath.c_str()); in InitCsvFile()
/test/xts/acts/kernel_lite/fs_posix/src/
DFsStatTest.cpp64 const char *filePath = TOP_DIR "/" FILE0; variable
77 EXPECT_NE(stat(filePath, &buf), -1) << "> fstat errno = " << errno;
99 const char *filePath = TOP_DIR "/" FILE0; variable
110 fd = open(filePath, O_CREAT | O_RDWR, mode);
114 EXPECT_NE(lstat(filePath, &buf), -1) << "> fstat errno = " << errno;
DFsUnistdTest.cpp350 const char filePath[] = TOP_DIR "/" DIR0 "/" DIR0_FILE0; variable
380 if (pathconf(filePath, param[i]) == -1) {
395 const char filePath[] = TOP_DIR "/" DIR0 "/" DIR0_FILE0; variable
399 EXPECT_EQ(pathconf(filePath, -100), -1);
/test/xts/acts/multimedia/image/image_js_standard/imageColorspace/src/main/js/test/
DP3.test.js26 let filePath;
33 filePath = data + "/" + fileName;
34 console.info("image case filePath is " + filePath);
37 .open(filePath)
/test/xts/acts/multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/
Dmodify.test.js25 let filePath;
29 filePath = data + "/" + fileName;
30 console.info("image case filePath is " + filePath);
64 imageSourceApi = image.createImageSource(filePath);
103 imageSourceApi = image.createImageSource(filePath);
138 imageSourceApi = image.createImageSource(filePath);
174 imageSourceApi = image.createImageSource(filePath);
197 imageSourceApi = image.createImageSource(filePath);
222 imageSourceApi = image.createImageSource(filePath);
/test/xts/acts/multimedia/audio/audio_js_standard/audioInterrupt/src/main/js/test/
DAudioInterrupt.test.js29 let filePath;
46 filePath = data + '/' + pathName;
47 console.info('case4 filePath is ' + filePath);
51 await fileio.open(filePath).then((fdNumber) => {
/test/ostest/wukong/input_factory/src/
Drecord_input.cpp93 std::string filePath = g_defaultDir + "/" + recordName + ".csv"; in InitEventRecordFile() local
94 outFile.open(filePath, std::ios_base::out | std::ios_base::trunc); in InitEventRecordFile()
96 ERROR_LOG_STR("Failed to create csv file at: %s", filePath.c_str()); in InitEventRecordFile()
100 INFO_LOG_STR("The result will be written in csv file at location: %s", filePath.c_str()); in InitEventRecordFile()
/test/xts/acts/ability/ability_runtime/stage/actsuripermission/actsfasupporturi/entry/src/main/ets/MainAbility/
Dapp.ets29 let filePath : string = path + "/test_A.txt";
30 fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE, (err, file) => {
35 let uri : string = fileUri.getUriFromPath(filePath);
/test/xts/acts/ability/ability_runtime/stage/actsuripermission/actstempuripermissionhaptest/entry/src/main/ets/test/
DUriPermissionTest.ets62 let filePath : string = abilityContext.filesDir + "/test_1.txt";
63 fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE, (err, file) => {
71 let uri_1 : string = fileUri.getUriFromPath(filePath);
167 let filePath : string = abilityContext.filesDir + "/test_2.txt";
168 fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE, (err, file) => {
176 let uri_2 : string = fileUri.getUriFromPath(filePath);
285 let filePath : string = abilityContext.filesDir + "/test_3.txt";
286 fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE, (err, file) => {
294 let uri_3 : string = fileUri.getUriFromPath(filePath);
428 let filePath : string = abilityContext.filesDir + "/test_4.txt";
[all …]
/test/xts/acts/multimedia/audio/audio_js_standard/audioInterruptRender/entry/src/main/ets/MainAbility/
Dapp.ets21 let filePath;
37 filePath = data + '/' + pathName;
38 console.info(TAG + 'case4 filePath is ' + filePath);
42 await fileio.open(filePath).then((fdNumber) => {
/test/xts/acts/multimedia/image/image_js_standard/imageWebp/src/main/js/test/
Dwebp.test.js26 let filePath;
30 filePath = data + "/" + fileName;
31 console.info("image case filePath is " + filePath);
77 let imageSourceApi = image.createImageSource(filePath);
99 let imageSourceApi = image.createImageSource(filePath);
133 let imageSourceApi = image.createImageSource(filePath);
156 let imageSourceApi = image.createImageSource(filePath);
528 let imageSourceApi = image.createImageSource(filePath);
578 let imageSourceApi = image.createImageSource(filePath);
628 let imageSourceApi = image.createImageSource(filePath);
[all …]
/test/xts/acts/multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/
DAudioPlaybackCapturer.test.js29 let filePath;
93 filePath = data + '/' + pathName;
94 console.info(`case4 filePath is : ${filePath}`);
98 await fileio.open(filePath).then((fdNumber) => {
449 await recPromise(audioCapturerOptions,AudioRendererOptions,filePath,done);
510 await recPromise(audioCapturerOptions,AudioRendererOptions,filePath,done);
593 … await recPromise1(audioCapturerOptions,AudioRendererOptions1,AudioRendererOptions2,filePath,done);
676 … await recPromise1(audioCapturerOptions,AudioRendererOptions1,AudioRendererOptions2,filePath,done);
758 … await recPromise1(audioCapturerOptions,AudioRendererOptions1,AudioRendererOptions2,filePath,done);
841 … await recPromise1(audioCapturerOptions,AudioRendererOptions1,AudioRendererOptions2,filePath,done);
/test/xts/acts/request/crossplatform/RequestTest_ets/src/main/ets/test/
DrequestDownload.test.ets19 const removeFile = (filePath: string): void => {
20 if (fileIo.accessSync(filePath)) fileIo.unlinkSync(filePath);
76 filePath: downloadFilePath,
115 filePath: downloadFilePath,
154 filePath: downloadFilePath,
200 filePath: downloadFilePath,
255 filePath: downloadFilePath,
309 filePath: downloadFilePath,
363 filePath: downloadFilePath,
408 filePath: downloadFilePath,
[all …]
/test/xts/acts/multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/
DAudioVOIP.test.js29 let filePath;
106 filePath = data + '/' + pathName;
107 console.info(`case4 filePath is : ${filePath}`);
112 await fileio.open(filePath).then((fdNumber) => {
421 …let resultFlag = await playbackPromise(AudioRendererOptions, filePath, audio.AudioScene.AUDIO_SCEN…
425 await closeFileDescriptor(filePath);
/test/xts/acts/multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/
DgetPropertySecond.test.js48 let filePath;
53 filePath = data + "/" + fileName;
54 console.info("image case filePath is " + filePath);
57 .open(filePath)

123