/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/ |
H A D | stat.test.js | 4 * you may not use this file except in compliance with the License. 33 * Enter the path or fd parameter to get the file stat. 47 let file = fileIO.openSync(fpath); 48 let stat2 = fileIO.statSync(file.fd); 50 fileIO.closeSync(file); 62 * The path point to nothing, no such file. 76 expect(e.code == 13900002 && e.message == 'No such file or directory').assertTrue(); 104 * Enter the path or fd parameter to get stat.ino of the file. 118 let file = fileIO.openSync(fpath); 119 let stat2 = fileIO.statSync(file [all...] |
H A D | watcher.test.js | 4 * you may not use this file except in compliance with the License. 118 * read a file, verifying the event is 'IN_ACCESS'. 132 let file = fileIO.openSync(fpath, fileIO.OpenMode.READ_WRITE); 134 fileIO.readSync(file.fd, new ArrayBuffer(4096)); 138 fileIO.closeSync(file); 151 * write a file, verifying the event is 'IN_MODIFY'. 165 let file = fileIO.openSync(fpath, fileIO.OpenMode.READ_WRITE); 167 fileIO.writeSync(file.fd, FILE_CONTENT); 171 fileIO.closeSync(file); 184 * Modify time of the file, verifyin [all...] |
/test/xts/acts/multimedia/av_codec/demuxer/src/ |
H A D | func_test.cpp | 4 * you may not use this file except in compliance with the License. 191 const char *file = "/data/media/noPermission.mp4"; in HWTEST_F() local 192 int fd = open(file, O_RDONLY); in HWTEST_F() 193 int64_t size = GetFileSize(file); in HWTEST_F() 194 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F() 195 cout << file << "------" << size << endl; in HWTEST_F() 210 const char *file = "/data/test/media/invalid.mp4"; in HWTEST_F() local 211 int fd = open(file, O_RDONLY); in HWTEST_F() 212 int64_t size = GetFileSize(file); in HWTEST_F() 213 cout << file << " in HWTEST_F() 230 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 278 const char *file = "/data/test/media/avcc_10sec.mp4"; HWTEST_F() local 336 const char *file = "/data/test/media/hvcc.mp4"; HWTEST_F() local 393 const char *file = "/data/test/media/mpeg2.mp4"; HWTEST_F() local 450 const char *file = "/data/test/media/audio/M4A_48000_1.m4a"; HWTEST_F() local 501 const char *file = "/data/test/media/audio/AAC_48000_1.aac"; HWTEST_F() local 550 const char *file = "/data/test/media/audio/MP3_48000_1.mp3"; HWTEST_F() local 599 const char *file = "/data/test/media/audio/OGG_48000_1.ogg"; HWTEST_F() local 648 const char *file = "/data/test/media/audio/FLAC_48000_1.flac"; HWTEST_F() local 698 const char *file = "/data/test/media/audio/wav_48000_1.wav"; HWTEST_F() local 750 const char *file = "/data/test/media/ts_video.ts"; HWTEST_F() local 803 const char *file = "/data/test/media/mkv.mkv"; HWTEST_F() local 819 const char *file = "/data/test/media/zero_track.mp4"; HWTEST_F() local 850 const char *file = "/data/test/media/MP3_avcc_10sec.bin"; HWTEST_F() local 907 const char *file = "/data/test/media/MP3_avcc_10sec.bin"; HWTEST_F() local 966 const char *file = "/data/test/media/MP3_OGG_48000_1.bin"; HWTEST_F() local 1022 const char *file = "/data/test/media/MP3_OGG_48000_1.bin"; HWTEST_F() local 1076 const char *file = "/data/test/media/test_video_avcc_10sec.bin"; HWTEST_F() local 1130 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1192 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1253 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1313 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1368 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1424 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1485 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local [all...] |
H A D | proc_test.cpp | 4 * you may not use this file except in compliance with the License. 146 * @tc.name : demuxer video and 2 audio file 156 const char *file = "/data/test/media/video_2audio.mp4"; in HWTEST_F() local 157 int fd = open(file, O_RDONLY); in HWTEST_F() 158 int64_t size = GetFileSize(file); in HWTEST_F() 159 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F() 201 * @tc.name : demuxer video and 9 audio file 211 const char *file = "/data/test/media/video_9audio.mp4"; in HWTEST_F() local 212 int fd = open(file, O_RDONLY); in HWTEST_F() 213 int64_t size = GetFileSize(file); in HWTEST_F() 265 const char *file = "/data/test/media/avc_mp3.flv"; HWTEST_F() local 317 const char *file = "/data/test/media/hevc_pcm_a.flv"; HWTEST_F() local 369 const char *file = "/data/test/media/avc_mp3_error.flv"; HWTEST_F() local 416 const char *file = "/data/test/media/audio/ape.ape"; HWTEST_F() local 449 const char *file = "/data/test/media/h264_mp3_3mevx_fmp4.mp4"; HWTEST_F() local 501 const char *file = "/data/test/media/h265_aac_1mvex_fmp4.mp4"; HWTEST_F() local 553 const char *file = "/data/test/media/audiovivid_hdrvivid_1s_fmp4.mp4"; HWTEST_F() local 602 const char *file = "/data/test/media/m4a_fmp4.mp4"; HWTEST_F() local 635 const char *file = "/data/test/media/m4v_fmp4.mp4"; HWTEST_F() local 698 const char *file = "/data/test/media/srt_test.srt"; HWTEST_F() local 736 const char *file = "/data/test/media/srt_test.srt"; HWTEST_F() local 789 const char *file = "/data/test/media/srt_2800.srt"; HWTEST_F() local 822 const char *file = "/data/test/media/srt_2900.srt"; HWTEST_F() local 855 const char *file = "/data/test/media/srt_3000.srt"; HWTEST_F() local 879 const char *file = "/data/test/media/srt_3100.srt"; HWTEST_F() local 913 const char *file = "/data/test/media/srt_3200.srt"; HWTEST_F() local 937 const char *file = "/data/test/media/srt_3300.srt"; HWTEST_F() local 982 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local 1020 const char *file = "/data/test/media/test_265_B_Gop25_4sec.mp4"; HWTEST_F() local [all...] |
/test/xts/acts/bundlemanager/zlib/actszlibtest/ |
H A D | ActsZlibTest.cpp | 4 * you may not use this file except in compliance with the License.
67 static int TestGzPrintf(gzFile file, const char *format, ...)
in TestGzPrintf() argument 74 ret = gzvprintf(file, format, va);
in TestGzPrintf() 162 gzFile file;
in HWTEST_F() 164 file = gzopen(TESTFILE, "wb");
in HWTEST_F() 165 ASSERT_TRUE(file != NULL);
in HWTEST_F() 167 gzputc(file, 'h');
in HWTEST_F() 168 ASSERT_TRUE(gzputs(file, "ello") == FOUR);
in HWTEST_F() 169 if (gzprintf(file, ", %s!", "hello") != EIGHT) {
in HWTEST_F() 170 fprintf(stderr, "gzprintf err: %s\n", gzerror(file, in HWTEST_F() 1042 gzFile file; HWTEST_F() local 1059 gzFile file; HWTEST_F() local 1075 gzFile file; HWTEST_F() local 1211 gzFile file; HWTEST_F() local 1256 gzFile file; HWTEST_F() local 1268 gzFile file; HWTEST_F() local [all...] |
/test/xts/acts/hiviewdfx/hiappeventtest/hiappeventcpptest/ |
H A D | HiAppEventCPPTest.cpp | 4 * you may not use this file except in compliance with the License. 77 std::vector<std::string> file; in HWTEST_F() local 78 file = getfileinpath(logPath); in HWTEST_F() 79 getlogFile = accumulate(file.begin(), file.end(), getlogFile); in HWTEST_F() 87 std::cout << "DFX_DFT_HiviewKit_HiAppEvent_Native_0100 file error" << std::endl; in HWTEST_F() 113 std::vector<std::string> file; in HWTEST_F() local 114 file = getfileinpath(logPath); in HWTEST_F() 115 getlogFile = accumulate(file.begin(), file in HWTEST_F() 148 std::vector<std::string> file; HWTEST_F() local 183 std::vector<std::string> file; HWTEST_F() local 220 std::vector<std::string> file; HWTEST_F() local 255 std::vector<std::string> file; HWTEST_F() local 290 std::vector<std::string> file; HWTEST_F() local 325 std::vector<std::string> file; HWTEST_F() local 360 std::vector<std::string> file; HWTEST_F() local 395 std::vector<std::string> file; HWTEST_F() local 430 std::vector<std::string> file; HWTEST_F() local 465 std::vector<std::string> file; HWTEST_F() local 500 std::vector<std::string> file; HWTEST_F() local 535 std::vector<std::string> file; HWTEST_F() local 570 std::vector<std::string> file; HWTEST_F() local 605 std::vector<std::string> file; HWTEST_F() local 640 std::vector<std::string> file; HWTEST_F() local 682 std::vector<std::string> file; HWTEST_F() local 720 std::vector<std::string> file; HWTEST_F() local 821 std::vector<std::string> file; HWTEST_F() local 856 std::vector<std::string> file; HWTEST_F() local 891 std::vector<std::string> file; HWTEST_F() local 926 std::vector<std::string> file; HWTEST_F() local 966 std::vector<std::string> file; HWTEST_F() local 1001 std::vector<std::string> file; HWTEST_F() local 1044 std::vector<std::string> file; HWTEST_F() local 1086 std::vector<std::string> file; HWTEST_F() local 1139 std::vector<std::string> file; HWTEST_F() local 1188 std::vector<std::string> file; HWTEST_F() local 1221 std::vector<std::string> file; HWTEST_F() local [all...] |
/test/xts/acts/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/entry/src/ohosTest/js/test/ |
H A D | KvStoreBackupCallbackJsTest.js | 4 * you may not use this file except in compliance with the License.
105 function publicBackup(kvStore,file){
106 console.log(`Test backup ${JSON.stringify(file)}`)
108 kvStore.backup(file, function(err, data){
144 function publicRestoreSp(kvStore,file){
145 console.log(`Test restoresp ${JSON.stringify(file)}`)
147 kvStore.restore(file, function(err, data){
184 let file = '';
185 let files =new Array(file);
255 file [all...] |
H A D | KvStoreBackupPromiseJsTest.js | 4 * you may not use this file except in compliance with the License.
102 function publicBackup(kvStore,file){
103 console.log(`Test backup ${JSON.stringify(file)}`)
105 kvStore.backup(file).then((data) => {
137 function publicRestoreSp(kvStore,file){
138 console.log(`Test restoresp ${JSON.stringify(file)}`)
140 kvStore.restore(file).then((data) => {
176 let file = '';
177 let files =new Array(file);
244 file [all...] |
/test/xts/acts/bundlemanager/zlib/actszlibndktest/entry/src/main/cpp/ |
H A D | zlibndk.cpp | 4 * you may not use this file except in compliance with the License.
1077 gzFile file;
in GzWrite() local 1078 file = gzopen(TESTFILE, "wb");
in GzWrite() 1079 NAPI_ASSERT(env, file != nullptr, "gzopen error");
in GzWrite() 1080 int err = gzwrite(file, HELLO, len);
in GzWrite() 1082 gzclose(file);
in GzWrite() 1086 static int TestGzPrintf(gzFile file, const char *format, ...)
in TestGzPrintf() argument 1092 ret = gzvprintf(file, format, va);
in TestGzPrintf() 1100 gzFile file;
in GzvPrintf() local 1101 file in GzvPrintf() 1113 gzFile file; GzUnGetC() local 1125 gzFile file; GzTell64() local 1147 gzFile file; GzTell() local 1161 gzFile file; GzSetParams() local 1175 gzFile file; GzSeek64() local 1192 gzFile file; GzSeek() local 1206 gzFile file; GzRewind() local 1220 gzFile file; GzRead() local 1236 gzFile file; GzPuts() local 1249 gzFile file; GzPutc() local 1262 gzFile file; GzPrintf() local 1274 gzFile file = nullptr; GzOpenW() local 1286 gzFile file; GzOpen() local 1298 gzFile file = nullptr; GzOpen64() local 1311 gzFile file; GzOffset64() local 1326 gzFile file; GzGets() local 1345 gzFile file; GzGetC_() local 1359 gzFile file; GzGetC() local 1374 gzFile file; GzFWrite() local 1389 gzFile file; GzFRead() local 1402 gzFile file; GzFlush() local 1422 gzFile file; GzError() local 1436 gzFile file; GzEof() local 1452 gzFile file = gzdopen(fd, "r"); GzDOpen() local 1463 gzFile file; GzDirect() local 1476 gzFile file; GzCloseW() local 1491 gzFile file; GzCloseR() local 1504 gzFile file; GzClearErr() local 1521 gzFile file; GzClose() local 1534 gzFile file; GzBuffer() local [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | stdioextndk.cpp | 4 * you may not use this file except in compliance with the License.
54 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+");
in Flbf() local 55 NAPI_ASSERT(env, file != nullptr, "Flbf fopen Error");
in Flbf() 56 __flbf(file);
in Flbf() 62 fclose(file);
in Flbf() 71 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+");
in Fwriting() local 72 NAPI_ASSERT(env, file != nullptr, "Fwriting fopen Error");
in Fwriting() 73 int returnValue = __fwriting(file);
in Fwriting() 79 fclose(file);
in Fwriting() 88 FILE *file in Fpending() local 105 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); FBufSize() local 122 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Fpurge() local 139 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Freadable() local 156 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Freading() local 187 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "a+"); Fwritable() local 205 FILE *file = fopen(path, mode); DPrintf() local [all...] |
H A D | stdiondk.cpp | 4 * you may not use this file except in compliance with the License.
350 FILE *file;
in Fread_chk() local 352 file = fopen(PATH, "r");
in Fread_chk() 353 int ret = __fread_chk(buffer, bos, bos, file, bos);
in Fread_chk() 354 fclose(file);
in Fread_chk() 421 char file[LENGTH] = "/data/storage/el2/base/files/testPutw.txt";
in Putw() local 422 fp = fopen(file, "w+");
in Putw() 444 int vfsf(FILE *file, char *fmt, ...)
in vfsf() argument 449 value = vfscanf(file, fmt, argp);
in vfsf() 458 FILE *file;
in Vfscanf() local 487 FILE *file = fopen(file_name, "w"); vfprintftest() local 636 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "w"); PutCUnlocked() local 652 FILE *file = fopen("/data/storage/el2/base/files/fzl.txt", "w"); Putc() local [all...] |
/test/xts/acts/kernel_lite/mem_posix/src/ |
H A D | MmapApiTest.cpp | 4 * you may not use this file except in compliance with the License. 21 #include <sys/file.h> 312 * @tc.name mmap function file private map and read and write permission test 322 char file[] = MMAP_TESTFILE; in HWTEST_F() local 324 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F() 352 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno; in HWTEST_F() 358 * @tc.name mmap function file share map and read and write permission test 368 char file[] = MMAP_TESTFILE; in HWTEST_F() local 370 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F() 398 EXPECT_TRUE(remove(file) in HWTEST_F() 414 char file[] = MMAP_TESTFILE; HWTEST_F() local 454 char file[] = MMAP_TESTFILE; HWTEST_F() local 500 char file[] = MMAP_TESTFILE; HWTEST_F() local 547 char file[] = MMAP_TESTFILE; HWTEST_F() local 594 char file[] = MMAP_TESTFILE; HWTEST_F() local 708 char file[] = MMAP_TESTFILE; HWTEST_F() local 767 char file[] = MMAP_TESTFILE; HWTEST_F() local 807 char file[] = MMAP_TESTFILE; HWTEST_F() local 836 char file[] = MMAP_TESTFILE; HWTEST_F() local [all...] |
H A D | MprotectApiTest.cpp | 4 * you may not use this file except in compliance with the License. 21 #include <sys/file.h> 212 * @tc.name mprotect function add read permission to the file map area test 225 char file[] = MPROTECT_TESTFILE; in HWTEST_F() local 227 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO); in HWTEST_F() 256 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno; in HWTEST_F() 262 * @tc.name mprotect function add write permission to the file map area test 275 char file[] = MPROTECT_TESTFILE; in HWTEST_F() local 277 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO); in HWTEST_F() 301 fd = open(file, O_CREA in HWTEST_F() 328 char file[] = MPROTECT_TESTFILE; HWTEST_F() local 374 char file[] = MPROTECT_TESTFILE; HWTEST_F() local 416 char file[] = MPROTECT_TESTFILE; HWTEST_F() local 458 char file[] = MPROTECT_TESTFILE; HWTEST_F() local [all...] |
H A D | MremapApiTest.cpp | 4 * you may not use this file except in compliance with the License. 21 #include <sys/file.h> 228 * @tc.name mremap function file remap expand area test 239 char file[] = MREMAP_TESTFILE; in HWTEST_F() local 241 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO); in HWTEST_F() 274 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno; in HWTEST_F() 280 * @tc.name mremap function file remap shrink area test 291 char file[] = MREMAP_TESTFILE; in HWTEST_F() local 293 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO); in HWTEST_F() 324 EXPECT_TRUE(remove(file) in HWTEST_F() 343 char file[] = MREMAP_TESTFILE; HWTEST_F() local 399 char file[] = MREMAP_TESTFILE; HWTEST_F() local [all...] |
/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/ |
H A D | Common.js | 4 * you may not use this file except in compliance with the License. 16 import fileIO from '@ohos.file.fs'; 30 let file = fileIO.openSync(fpath, fileIO.OpenMode.CREATE | fileIO.OpenMode.READ_WRITE) 31 fileIO.truncateSync(file.fd) 32 fileIO.writeSync(file.fd, content) 33 fileIO.fsyncSync(file.fd) 34 fileIO.closeSync(file) 45 let file = fileIO.openSync(fpath, fileIO.OpenMode.CREATE | fileIO.OpenMode.READ_WRITE) 46 fileIO.truncateSync(file.fd) 50 let writeLen = fileIO.writeSync(file [all...] |
/test/xts/acts/ |
H A D | get_dependency.py | 6 # you may not use this file except in compliance with the License. 43 for file in files: 44 if file == 'bundle.json': 47 file_path = os.path.join(root, file) 80 with open(os.path.join(home, path, "bundle.json"), 'r') as file: 81 data = json.load(file) 113 with os.fdopen(file_descriptor, 'w') as file: 114 file.write("precise_run=") 115 file.write(array_str)
|
/test/xts/acts/ai/mindspore/mindsporectest/src/ |
H A D | ohos_common.cpp | 4 * you may not use this file except in compliance with the License. 40 * getDimInfo: get dim info from data file(int64_t) 47 * the size of the testing data including the data file 85 printf("ERROR: cant't open file %s\n", infile.c_str()); in readTestDataFile() 96 printf("ERROR: cant't open file %s\n", infile.c_str()); in readTestDataFile() 121 printf("\n [common.cpp] Read test data file Over, get dimInfo as: ("); in readTestDataFile() 134 * a:compared file a 135 * b:compared file b 199 fstream file; in allclose() local 200 file in allclose() 291 fstream file; allclose_int8() local 402 ReadFile(const char *file, size_t* size) ReadFile() argument [all...] |
/test/xts/hats/hdf/hdf_lite/display/ |
H A D | loadbmp_test.c | 4 * you may not use this file except in compliance with the License. 65 FILE *file = NULL; in GetBmpInfo() local 70 printf("%s: file %s does not exist\n", __func__, fileName); in GetBmpInfo() 73 if ((file = fopen((const char*)realPath, "rb")) == NULL) { in GetBmpInfo() 74 HDF_LOGE("%s: Open file failure: %s", __func__, fileName); in GetBmpInfo() 78 (void)fread(&bfType, 1, sizeof(bfType), file); in GetBmpInfo() 80 HDF_LOGE("%s: not bitmap file", __func__); in GetBmpInfo() 81 fclose(file); in GetBmpInfo() 85 (void)fread(bmpFileHeader, 1, sizeof(OsdBitMapFileHeader), file); in GetBmpInfo() 86 (void)fread(bmpInfo, 1, sizeof(OsdBitMapInfo), file); in GetBmpInfo() 117 FILE *file = NULL; LoadPicToBuffer() local [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_memleak.c | 4 * you may not use this file except in compliance with the License. 66 if (memNode->file != NULL) { in FreeMemNode() 67 free(memNode->file); in FreeMemNode() 68 memNode->file = NULL; in FreeMemNode() 154 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func) in AddMemInfo() argument 156 if (addr == NULL || file == NULL || func == NULL) { in AddMemInfo() 164 char *memfile = StrdupMemInfo(file); in AddMemInfo() 167 memNode->file = memfile; in AddMemInfo() 229 data->addr, data->func, data->file, data->line); in PrintMemNode()
|
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils_memleak.c | 4 * you may not use this file except in compliance with the License. 66 if (memNode->file != NULL) { in FreeMemNode() 67 free(memNode->file); in FreeMemNode() 68 memNode->file = NULL; in FreeMemNode() 154 int32_t AddMemInfo(void* addr, const char* file, uint32_t line, const char* func) in AddMemInfo() argument 156 if (addr == NULL || file == NULL || func == NULL) { in AddMemInfo() 164 char *memfile = StrdupMemInfo(file); in AddMemInfo() 167 memNode->file = memfile; in AddMemInfo() 229 data->addr, data->func, data->file, data->line); in PrintMemNode()
|
/test/testfwk/developer_test/local_coverage/keyword_registration/ |
H A D | keyword_filter.py | 7 # you may not use this file except in compliance with the License. 47 for file in files: 48 if not file.endswith(".gcov.html"): 50 file_path = os.path.join(root_path, file) 59 for file in files: 60 if file == "gcov.css": 61 css_file_path = os.path.join(root_path, file) 71 with os.fdopen(os.open(css_file_path, FLAGS_ADD, MODES), 'a+') as file: 72 file.write(text) 106 with open(file_path, "r", encoding="utf-8") as file [all...] |
/test/xts/hats/hdf/audio/idl/common/capture_additional/src/ |
H A D | AudioCaptureCommonTestAdditional.cpp | 4 * you may not use this file except in compliance with the License. 2213 * @tc.desc : Dump to binary file 2220 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); in HWTEST_F() local 2221 ASSERT_NE(nullptr, file); in HWTEST_F() 2222 int32_t fd = fileno(file); in HWTEST_F() 2224 fclose(file); in HWTEST_F() 2234 fclose(file); in HWTEST_F() 2240 * @tc.desc : Dump to a text file 2247 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "w+"); in HWTEST_F() local 2248 ASSERT_NE(nullptr, file); in HWTEST_F() 2274 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "w"); HWTEST_F() local 2305 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); HWTEST_F() local 2326 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); HWTEST_F() local 2351 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); HWTEST_F() local 2376 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); HWTEST_F() local 2626 FILE *file = fopen("/data/local/tmp/CaptureDump.log", "wb+"); HWTEST_F() local [all...] |
/test/testfwk/arkxtest/jsunit/src/module/coverage/ |
H A D | coverageCollect.js | 4 * you may not use this file except in compliance with the License. 17 import fs from '@ohos.file.fs'; 48 console.info(`${TAG} run coverage data in save file mode`); 59 let file = fs.openSync(savePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 60 let writeLen = fs.writeSync(file.fd, strJson, {encoding:'utf-8'}); 62 fs.closeSync(file);
|
/test/xts/acts/pcs/pcs_js/entry/src/ohosTest/js/TestAbility/pages/index/ |
H A D | index.js | 4 * you may not use this file except in compliance with the License. 16 import file from '@system.file'; 46 file.writeText({ 50 console.info('write file success'); 53 console.error('write file fail, code: ' + code + ', data: ' + data) 59 file.readText({ 63 console.info('read file success.'); 66 console.error('read file fail , code: ' + code + ', data: ' + data);
|
/test/testfwk/developer_test/src/core/build/ |
H A D | pretreat_targets.py | 7 # you may not use this file except in compliance with the License. 81 LOG.error("js test needs config.json file") 84 LOG.error("js test needs BUILD.gn file") 88 #modify BUILD.gn file to compile hap 104 for file in file_name: 105 if file.endswith(".js"): 106 LOG.info("file: %s" % file) 107 shutil.copy(os.path.join(target_path, file), test_path) 110 list_data.write("require('./%s')\n" % file) [all...] |