Home
last modified time | relevance | path

Searched refs:open (Results 101 - 125 of 8510) sorted by relevance

12345678910>>...341

/third_party/pcre2/pcre2/maint/
H A DGenerateCommon.py127 file = open('Unicode.tables/' + filename, 'r')
129 print(f"** Couldn't open {'Unicode.tables/' + filename}\n")
169 with open("Unicode.tables/Scripts.txt") as f:
183 with open("Unicode.tables/PropertyValueAliases.txt") as f:
201 with open("Unicode.tables/PropertyAliases.txt") as f:
233 with open("Unicode.tables/ScriptExtensions.txt") as f:
295 file = open(output_name, "w")
297 print ("** Couldn't open %s" % output_name)
/third_party/skia/third_party/externals/dawn/scripts/
H A Dextract.py61 yield FileEntry(info.filename, None, zip_file.open(info))
69 with tarfile.open(path, 'r:' + compression) as tar_file:
100 with open(archive) as f:
111 with open(stamp_path) as f:
154 with open(fixed_path, 'wb') as out:
174 with open(stamp_path, 'w') as f:
/third_party/python/Lib/
H A Duu.py48 # If in_file is a pathname open it and change defaults
62 in_file = open(in_file, 'rb')
70 out_file = open(out_file, 'wb')
112 in_file = open(in_file, 'rb')
152 fp = open(out_file, 'wb')
201 output = open(output, 'wb')
209 input = open(input, 'rb')
/third_party/rust/crates/nix/test/test_kmod/
H A Dmod.rs50 let f = File::open(kmod_path).expect("unable to open kernel module"); in test_finit_and_delete_module()
72 let f = File::open(kmod_path).expect("unable to open kernel module"); in test_finit_and_delete_module_with_params()
95 let mut f = File::open(kmod_path).expect("unable to open kernel module"); in test_init_and_delete_module()
120 let mut f = File::open(kmod_path).expect("unable to open kernel module"); in test_init_and_delete_module_with_params()
142 let f = File::open(kmod_path).expect("unable to open kerne in test_finit_module_invalid()
[all...]
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_file_loader.py126 with open(mapping['_temp'], 'w', encoding='utf-8') as file:
147 with open(mapping[name], 'w', encoding='utf-8') as file:
164 with open(mapping['_temp'], 'w', encoding='utf-8') as file:
177 with open(file_path, 'w', encoding='utf-8') as file:
201 with open(source, 'w', encoding='utf-8') as f:
245 with open(source, 'wb') as fp:
258 with open(source, 'wb') as fp:
263 with open(pyc, 'rb') as fp:
277 with open(source, 'wb') as fp:
290 with open(sourc
[all...]
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/
H A Davcodec_audio_avbuffer_decoder_demo.cpp103 inputFile_.open(INPUT_AAC_FILE_PATH, std::ios::binary); in InitFile()
104 pcmOutputFile_.open(OUTPUT_AAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile()
106 inputFile_.open(INPUT_FLAC_FILE_PATH, std::ios::binary); in InitFile()
107 pcmOutputFile_.open(OUTPUT_FLAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile()
109 inputFile_.open(INPUT_MP3_FILE_PATH, std::ios::binary); in InitFile()
110 pcmOutputFile_.open(OUTPUT_MP3_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile()
112 inputFile_.open(INPUT_VORBIS_FILE_PATH, std::ios::binary); in InitFile()
113 pcmOutputFile_.open(OUTPUT_VORBIS_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile()
115 inputFile_.open(INPUT_AMRNB_FILE_PATH, std::ios::binary); in InitFile()
116 pcmOutputFile_.open(OUTPUT_AMRNB_PCM_FILE_PAT in InitFile()
[all...]
/third_party/ltp/testcases/kernel/power_management/lib/
H A Dpm_sched_mc.py41 cpuinfo = open('/proc/cpuinfo', 'r')
60 socket_id = open(phy_pkg_file).read().rstrip()
84 file_cpuinfo = open("/proc/cpuinfo", 'r')
105 file_cpuinfo = open("/proc/cpuinfo", 'r')
136 file_cpuinfo = open("/proc/cpuinfo", 'r')
159 core_id = open(core_file).read().rstrip()
160 cpu_phy_id = open(phy_pkg_file).read().rstrip()
178 cpu_phy_id = open(phy_pkg_file).read().rstrip()
195 threads_sibs = open(siblings_file).read().rstrip()
226 file_procstat = open("/pro
[all...]
/third_party/python/Lib/test/
H A Dtest_bz2.py76 with open(fname, 'rb') as fh:
94 with open(self.filename, "wb") as f:
251 with open(self.filename, 'rb') as f:
263 with open(self.filename, 'rb') as f:
270 with open(self.filename, "rb") as f:
280 with open(self.filename, 'rb') as f:
298 with open(self.filename, 'rb') as f:
389 with open(self.filename, 'rb') as rawf:
469 with open(self.filename, "wb") as f:
889 "Test the open functio
891 def open(self, *args, **kwargs): global() member in OpenTest
[all...]
H A Dtest_fcntl.py57 f = open(fname, 'wb+')
66 f = open(fname, 'wb+')
83 self.f = open(TESTFN, 'wb')
94 self.f = open(TESTFN, 'wb')
138 fd = os.open(os.path.dirname(os.path.abspath(TESTFN)), os.O_RDONLY)
146 self.f = open(TESTFN, 'wb+')
160 self.f = open(TESTFN, 'wb+')
171 self.f = open(TESTFN, 'wb+')
188 self.f = open(TESTFN, 'wb')
H A Dtest_ossaudiodev.py31 with open(path, 'rb') as fp:
32 au = sunau.open(fp)
50 dsp = ossaudiodev.open('w')
155 dsp = ossaudiodev.open("w")
173 with ossaudiodev.open('w') as dsp:
178 dsp = ossaudiodev.open('w')
196 dsp = ossaudiodev.open('w')
/third_party/ltp/testcases/kernel/pty/
H A Dptem01.c74 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1()
75 tst_brkm(TFAIL, NULL, "Could not open %s", slavename); in test1()
153 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test2()
154 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test2()
231 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test3()
232 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test3()
279 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test4()
280 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test4()
283 if ((slavefd2 = open(slavename, O_RDWR)) < 0) { in test4()
284 tst_brkm(TFAIL, NULL, "Could not open in test4()
[all...]
/third_party/python/Lib/dbm/
H A Ddumb.py29 __all__ = ["error", "open"]
83 f = _io.open(self._datfile, 'r', encoding="Latin-1")
87 with _io.open(self._datfile, 'w', encoding="Latin-1") as f:
97 f = _io.open(self._dirfile, 'r', encoding="Latin-1")
130 with self._io.open(self._dirfile, 'w', encoding="Latin-1") as f:
149 with _io.open(self._datfile, 'rb') as f:
159 with _io.open(self._datfile, 'rb+') as f:
173 with _io.open(self._datfile, 'rb+') as f:
183 with _io.open(self._dirfile, 'a', encoding="Latin-1") as f:
291 def open(fil function
[all...]
/kernel/linux/linux-5.10/tools/cgroup/
H A Diocost_coef_gen.py102 with open(outfile.name, 'r') as f:
110 with open(elevator_path, 'w') as f:
112 with open(nomerges_path, 'w') as f:
142 with open(elevator_path, 'r') as f:
144 with open(nomerges_path, 'r') as f:
149 with open(elevator_path, 'w') as f:
151 with open(nomerges_path, 'w') as f:
/kernel/linux/linux-6.6/tools/cgroup/
H A Diocost_coef_gen.py102 with open(outfile.name, 'r') as f:
110 with open(elevator_path, 'w') as f:
112 with open(nomerges_path, 'w') as f:
142 with open(elevator_path, 'r') as f:
144 with open(nomerges_path, 'r') as f:
149 with open(elevator_path, 'w') as f:
151 with open(nomerges_path, 'w') as f:
/third_party/protobuf/benchmarks/util/
H A Dresult_parser.py21 open(filename, "rb").read())
63 with open(filename, "rb") as f:
98 with open(filename, "rb") as f:
128 with open(filename, "rb") as f:
178 with open(filename, "rb") as f:
214 with open(filename, "rb") as f:
254 with open(filename, "rb") as f:
/third_party/python/Lib/distutils/tests/
H A Dtest_file_util.py38 f = open(self.source, 'w')
69 with open(self.source, 'w') as fobj:
78 with open(self.source, 'w') as fobj:
84 with open(self.source, 'w') as f:
100 with open(self.source, 'r') as f:
108 with open(self.source, 'w') as f:
118 with open(fn, 'r') as f:
/third_party/libfuse/test/
H A Dtest_examples.py33 with open(TEST_FILE, 'rb') as fh:
99 with open(filename, 'r') as fh:
102 open(filename, 'r+')
105 open(filename + 'does-not-exist', 'r+')
182 # When writeback caching is enabled, kernel has to open files for
281 with open(testfile, 'wb') as fh:
285 with open(testfile, 'rb') as fh:
316 with open(mnt_file, 'w') as fh:
325 with open(mnt_file, 'rb') as fh:
327 with open(mnt_fil
[all...]
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs7 use nix::fcntl::{self, open};
160 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
198 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
406 execve_test_factory!(test_fexecve, fexecve, File::open("/system/bin/sh").unwrap().into_raw_fd());
413 execve_test_factory!(test_fexecve, fexecve, File::open("/bin/sh").unwrap().into_raw_fd());
432 File::open("/system/bin/sh").unwrap().into_raw_fd(),
435 File::open("/system/bin/").unwrap().into_raw_fd(),
438 File::open("/").unwrap().into_raw_fd(),
442 execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(),
444 execve_test_factory!(test_execveat_relative, execveat, File::open("/bi
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_property_trace_test.cpp58 outFile.open("/etc/rosen/property.config"); in HWTEST_F()
81 outFile.open("/etc/rosen/property.config"); in HWTEST_F()
104 outFile.open("/etc/rosen/property.config"); in HWTEST_F()
122 outFile.open("/etc/rosen/property.config"); in HWTEST_F()
140 outFile.open("/etc/rosen/property.config"); in HWTEST_F()
/third_party/ltp/testcases/misc/math/float/exp_log/
H A Dgenldexp.c63 fpi = open(F_namini, O_RDONLY, 0777); in create_Result_file()
64 fpd = open(F_namind, O_RDONLY, 0777); in create_Result_file()
80 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
121 fp = open(F_named, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
122 fpi = open(F_namei, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/third_party/ltp/testcases/misc/math/float/power/
H A Dgenfmod.c58 fpi = open(F_namei, O_RDONLY, 0777); in create_Result_file()
59 fpi1 = open(F_namei1, O_RDONLY, 0777); in create_Result_file()
75 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
109 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
110 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
H A Dgenpow.c50 fpi = open(F_namei, O_RDONLY, 0777); in create_Result_file()
51 fpi1 = open(F_namei1, O_RDONLY, 0777); in create_Result_file()
66 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
101 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
102 fp2 = open(F_name_pow, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dfdsan.cpp46 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_get_tag_value()
57 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_overflow()
70 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_vfork()
103 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_fatal_level()
128 int fd = open(file_path, O_CREAT | O_EXCL | O_WRONLY, S_IRUSR | S_IWUSR); in CreateFile()
162 EXPECT_NE("fdsan_test_internal_fopen_succeed open file failed", ptr, NULL); in fdsan_test_internal_fopen_succeed()
/third_party/skia/bin/
H A Dfetch-sk27 with open(sk_path, 'rb') as f:
43 with open('DEPS', 'rb') as f:
64 with open(sk_version_path, 'r', encoding='utf8') as f:
83 with open(skzip, 'wb') as f:
102 with open(sk_version_path, 'w', encoding='utf8') as f:
/third_party/vk-gl-cts/scripts/build/
H A Dcommon.py91 f = open(filename, 'rb')
97 f = open(filename, 'rt')
103 f = open(filename, 'wb')
109 f = open(filename, 'wt')
111 f = open(filename, 'wt', newline='\n')

Completed in 13 milliseconds

12345678910>>...341