Home
last modified time | relevance | path

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

1234

/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/acts/request/RequestTest_ets/entry/src/main/ets/test/
DrequestDownload.test.ets66 filePath: `${downloadFilePath}/`,
82 downloadConfig.filePath += 'SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0001.txt';
84 let filePath = downloadConfig.filePath;
100 fileio.unlinkSync(filePath);
106 fileio.unlinkSync(filePath);
114 fileio.unlinkSync(filePath);
130 downloadConfig.filePath += 'SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0002.txt';
132 let filePath = downloadConfig.filePath;
149 fileio.unlinkSync(filePath);
157 fileio.unlinkSync(filePath);
[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/device_attest/services/oem_adapter/src/
Ddevice_attest_oem_file.c37 char* filePath = (char *)malloc(filePathLen); in OEMGenFilePath() local
38 if (filePath == NULL) { in OEMGenFilePath()
41 (void)memset_s(filePath, filePathLen, 0, filePathLen); in OEMGenFilePath()
42 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in OEMGenFilePath()
43 free(filePath); in OEMGenFilePath()
46 return filePath; in OEMGenFilePath()
55 char* filePath = OEMGenFilePath(path, fileName); in OEMGetFileSize() local
56 if (filePath == NULL) { in OEMGetFileSize()
60 char* formatPath = realpath(filePath, NULL); in OEMGetFileSize()
87 char* filePath = OEMGenFilePath(path, fileName); in OEMWriteFile() local
[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/arkui/ace_ets_web_napis/entry/src/ohosTest/ets/test/
DUtils.ets67 static createFileToSandboxSync(filePath: string, fileName: string, mode?: number) {
69 if (!Utils.isFileExist(filePath)) {
70 fs.mkdirSync(filePath);
72 fs.openSync(filePath + fileName, mode);
73 console.log("[createFileToSandboxSync] success, sandbox path:" + filePath + fileName);
76 console.info("[createFileToSandboxSync] api run failed path:" + filePath + fileName);
80 static deleteFile(filePath: string) {
81 console.info("[deleteFile] filePath:" + filePath);
83 fs.unlinkSync(filePath)
112 static isFileExist(filePath: string): boolean {
[all …]
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_one/entry/src/main/ets/test/
DUtils.ets68 static createFileToSandboxSync(filePath: string, fileName: string, mode?: number) {
70 if (!Utils.isFileExist(filePath)) {
71 fs.mkdirSync(filePath);
73 fs.openSync(filePath + fileName, mode);
74 console.log("[createFileToSandboxSync] success, sandbox path:" + filePath + fileName);
77 console.info("[createFileToSandboxSync] api run failed path:" + filePath + fileName);
81 static deleteFile(filePath: string) {
82 console.info("[deleteFile] filePath:" + filePath);
84 fs.unlinkSync(filePath)
113 static isFileExist(filePath: string): boolean {
[all …]
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_three/entry/src/main/ets/test/
DUtils.ets68 static createFileToSandboxSync(filePath: string, fileName: string, mode?: number) {
70 if (!Utils.isFileExist(filePath)) {
71 fs.mkdirSync(filePath);
73 fs.openSync(filePath + fileName, mode);
74 console.log("[createFileToSandboxSync] success, sandbox path:" + filePath + fileName);
77 console.info("[createFileToSandboxSync] api run failed path:" + filePath + fileName);
81 static deleteFile(filePath: string) {
82 console.info("[deleteFile] filePath:" + filePath);
84 fs.unlinkSync(filePath)
113 static isFileExist(filePath: string): boolean {
[all …]
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_two/entry/src/main/ets/test/
DUtils.ets68 static createFileToSandboxSync(filePath: string, fileName: string, mode?: number) {
70 if (!Utils.isFileExist(filePath)) {
71 fs.mkdirSync(filePath);
73 fs.openSync(filePath + fileName, mode);
74 console.log("[createFileToSandboxSync] success, sandbox path:" + filePath + fileName);
77 console.info("[createFileToSandboxSync] api run failed path:" + filePath + fileName);
81 static deleteFile(filePath: string) {
82 console.info("[deleteFile] filePath:" + filePath);
84 fs.unlinkSync(filePath)
113 static isFileExist(filePath: string): boolean {
[all …]
/test/xts/device_attest/services/devattest_ability/test/unittest/src/
Ddevattest_service_test.cpp51 const char* filePath = "/data/service/el1/public/device_attest/ticket"; in IsTicketFileExist() local
52 FILE* fp = fopen(filePath, "r"); in IsTicketFileExist()
/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;
/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/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/request/RequestTest_Stage/entry/src/main/ets/test/
DrequestDownload.test.ets82 filePath: downloadFilePath,
120 filePath: downloadFilePath,
164 filePath: downloadFilePath,
218 filePath: downloadFilePath,
269 filePath: downloadFilePath,
321 filePath: downloadFilePath,
368 filePath: downloadFilePath,
420 filePath: downloadFilePath,
470 filePath: downloadFilePath,
523 filePath: downloadFilePath,
[all …]
/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 …]

1234