/foundation/multimedia/player_framework/frameworks/native/transcoder/test/unittest/src/ |
H A D | transcoder_unit_test.cpp | 64 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR);
in HWTEST_F() 69 int32_t dstFd = open((TRANSCODER_ROOT_DST + "AVC_Baseline@L1.2_81.0Kbps_320x240_dst.mp4").c_str(), O_RDWR);
in HWTEST_F() 97 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR);
in HWTEST_F() 102 int32_t dstFd = open((TRANSCODER_ROOT_DST + "AVC_Baseline@L1.2_81.0Kbps_320x240_dst.mp4").c_str(), O_RDWR);
in HWTEST_F() 131 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR);
in HWTEST_F() 136 int32_t dstFd = open((TRANSCODER_ROOT_DST + "AVC_Baseline@L1.2_81.0Kbps_320x240_dst.mp4").c_str(), O_RDWR);
in HWTEST_F() 166 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "AVC_Baseline@L1.2_81.0Kbps_320x240.mp4").c_str(), O_RDWR);
in HWTEST_F() 171 int32_t dstFd = open((TRANSCODER_ROOT_DST + "AVC_Baseline@L1.2_81.0Kbps_320x240_dst.mp4").c_str(), O_RDWR);
in HWTEST_F() 203 int32_t srcFd = open((TRANSCODER_ROOT_SRC + "01.mp3").c_str(), O_RDWR);
in HWTEST_F() 208 int32_t dstFd = open((TRANSCODER_ROOT_DS in HWTEST_F() [all...] |
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfs4proc.c | 105 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) in nfsd4_check_open_attributes() 109 if (open->op_create == NFS4_OPEN_CREATE) { in nfsd4_check_open_attributes() 110 if (open->op_createmode == NFS4_CREATE_UNCHECKED in nfsd4_check_open_attributes() 111 || open->op_createmode == NFS4_CREATE_GUARDED) in nfsd4_check_open_attributes() 113 open->op_bmval, nfsd_attrmask); in nfsd4_check_open_attributes() 114 else if (open->op_createmode == NFS4_CREATE_EXCLUSIVE4_1) in nfsd4_check_open_attributes() 116 open->op_bmval, nfsd41_ex_attrmask); in nfsd4_check_open_attributes() 123 is_create_with_attrs(struct nfsd4_open *open) in is_create_with_attrs() argument 125 return open->op_create == NFS4_OPEN_CREATE in is_create_with_attrs() 126 && (open in is_create_with_attrs() 104 nfsd4_check_open_attributes(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() argument 142 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) do_open_permission() argument 179 nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) nfsd4_set_open_owner_reply_cache() argument 194 nfsd4_vfs_create(struct svc_fh *fhp, struct dentry *child, struct nfsd4_open *open) nfsd4_vfs_create() argument 232 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct svc_fh *resfhp, struct nfsd4_open *open) nfsd4_create_file() argument 418 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) do_open_lookup() argument 485 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) do_open_fhandle() argument 529 struct nfsd4_open *open = &u->open; nfsd4_open() local 653 struct nfsd4_open *open = &op->u.open; nfsd4_open_omfg() local [all...] |
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 101 with open(log_path) as file: 112 with open(log_path) as file: 141 with open(all_passed_log) as file: 148 with open(all_passed_log) as file: 155 with open(kselftest_log) as file: 162 with open(failed_log) as file: 169 with open(empty_log) as file: 179 with open(missing_plan_log) as file: 189 with open(header_log) as file: 198 with open(no_plan_lo [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-write-stream-change-open.js | 36 const _fs_open = fs.open; 38 // Change the fs.open with an identical function after the WriteStream 41 fs.open = function() { 48 fs.open = _fs_open; 56 assert.strictEqual(fs.open, _fs_open);
|
H A D | test-fs-promises-file-handle-read.js | 9 const { open } = fs.promises; 27 const fileHandle = await open(filePath, 'w+'); 28 const streamFileHandle = await open(filePath, 'w+'); 56 const fileHandle = await open(filePath, 'r'); 66 const fileHandle = await open(filePath, 'r'); 77 const fileHandle = await open(filePath, 'r'); 94 const fileHandle = await open(filePath, 'r');
|
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/qemu/ |
H A D | init.c | 66 fd = open("/dev/random", O_WRONLY); in seed_rng() 68 panic("open(random)"); in seed_rng() 114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging() 120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging() 179 fd = open("/proc/cmdline", O_RDONLY); in launch_tests() 181 panic("open(/proc/cmdline)"); in launch_tests() 195 fd = open(success_dev, O_WRONLY); in launch_tests() 197 panic("open(success_dev)"); in launch_tests() 219 int fd = open("/dev/console", O_RDWR); in ensure_console() 231 panic("Unable to open consol in ensure_console() [all...] |
/third_party/PyYAML/tests/lib/ |
H A D | test_input_output.py | 6 with open(unicode_filename, 'rb') as file: 27 with open(unicode_filename, 'rb') as file: 52 with open(unicode_filename, 'rb') as file: 88 with open(unicode_filename, 'rb') as file: 99 with open(filename, 'w', encoding='utf-16-le') as stream: 101 with open(filename, 'r', encoding='utf-16-le') as file: 103 with open(filename, 'wb') as stream: 105 with open(filename, 'r', encoding='utf-8') as file: 117 with open(unicode_filename, 'rb') as file:
|
H A D | test_errors.py | 6 with open(error_filename, 'rb') as file: 18 with open(error_filename, 'rb') as file: 30 with open(error_filename, 'rb') as file: 41 with open(error_filename, 'rb') as file: 54 with open(error_filename, 'rb') as file:
|
H A D | test_reader.py | 16 with open(error_filename, 'rb') as file: 18 with open(error_filename, 'rb') as file: 22 with open(error_filename, 'rb') as file: 30 with open(error_filename, encoding=encoding) as file:
|
/foundation/multimedia/media_foundation/test/scenetest/ |
H A D | test_single_audio_recorder_fast_start_pause.h | 66 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 84 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 104 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 125 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 145 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 165 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 176 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 186 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 204 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 233 fd = open(filePat in FIXTURE() [all...] |
H A D | test_single_audio_recorder_fast_audio_function.h | 105 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 124 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 144 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 165 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 174 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 186 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 207 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 217 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 229 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 240 fd = open(filePat in FIXTURE() [all...] |
H A D | test_single_audio_recorder_fast_stop_reset.h | 113 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 131 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 150 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 170 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 191 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 211 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 220 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 237 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 259 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 289 fd = open(filePat in FIXTURE() [all...] |
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_decoder_demo.cpp | 104 inputFile_.open(INPUT_AAC_FILE_PATH, std::ios::binary); in InitFile() 105 pcmOutputFile_.open(OUTPUT_AAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 107 inputFile_.open(INPUT_FLAC_FILE_PATH, std::ios::binary); in InitFile() 108 pcmOutputFile_.open(OUTPUT_FLAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 110 inputFile_.open(INPUT_MP3_FILE_PATH, std::ios::binary); in InitFile() 111 pcmOutputFile_.open(OUTPUT_MP3_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 113 inputFile_.open(INPUT_VORBIS_FILE_PATH, std::ios::binary); in InitFile() 114 pcmOutputFile_.open(OUTPUT_VORBIS_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 116 inputFile_.open(INPUT_AMRNB_FILE_PATH, std::ios::binary); in InitFile() 117 pcmOutputFile_.open(OUTPUT_AMRNB_PCM_FILE_PAT in InitFile() [all...] |
/kernel/linux/build/test/unittest/accesstokenid/ |
H A D | accesstokenid_test.cpp | 74 fd = open("/dev/random", O_RDONLY); in GenRand64() 88 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetTokenid() 90 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in GetTokenid() 107 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetTokenid() 109 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in SetTokenid() 126 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetfTokenid() 128 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in GetfTokenid() 145 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetfTokenid() 147 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in SetfTokenid() 368 int fd = open(DEV_ACCESSTOKENI in HWTEST_F() [all...] |
/third_party/python/Lib/ |
H A D | webbrowser.py | 13 __all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"] 69 # It is recommended one does "import webbrowser" and uses webbrowser.open(url) 72 def open(url, new=0, autoraise=True): function 75 If possible, open url in a location determined by new. 87 if browser.open(url, new, autoraise): 94 If not possible, then open url in the only browser window. 96 return open(url, 1) 103 return open(url, 2) 149 def open(self, url, new=0, autoraise=True): member in BaseBrowser 153 return self.open(ur 173 def open(self, url, new=0, autoraise=True): global() member in GenericBrowser 191 def open(self, url, new=0, autoraise=True): global() member in BackgroundBrowser 258 def open(self, url, new=0, autoraise=True): global() member in UnixBrowser 359 def open(self, url, new=0, autoraise=True): global() member in Konqueror 443 def open(self, url, new=0, autoraise=True): global() member in Grail 606 def open(self, url, new=0, autoraise=True): global() member in .WindowsDefault 638 def open(self, url, new=0, autoraise=True): global() member in .MacOSX 690 def open(self, url, new=0, autoraise=True): global() member in .MacOSXOSAScript [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 29 with open(file, mode='rb') as f: 49 f = open(file, "r") 121 f = open(folder + "provision_cap", "wb", 0) 128 f = open(folder + "provision_akc", "wb", 0) 141 f = open(folder + "registers", "rb") 159 f = open(node, 'wb', 0) 173 f = open(node, 'wb', 0) 174 g = open(node, 'wb', 0) 176 with open(driver_dir + 'unbind', 'w') as k: 211 with open(driver_di [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_open_test.c | 35 * @tc.name open 43 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 49 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL); 63 * @tc.name open 71 int32_t fd = open(tmpFileName1, O_CREAT | O_RDWR); 75 fd = open(tmpFileName2, O_CREAT | O_RDWR); 84 * @tc.name open 94 fd = open(tmpFileName, O_CREAT | O_RDWR);
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | fchown.c | 36 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0100() 53 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0200() 70 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0300() 87 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0400() 101 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0500()
|
/third_party/python/Tools/scripts/ |
H A D | update_file.py | 19 The context manager provides two open files: the source file open 20 for reading, and the temp file, open for writing. 31 with open(filename, 'rb') as infile: 43 with open(tmpfile, 'w', newline=newline) as outfile: 44 with open(filename) as infile: 51 targetfile = open(filename, 'rb') 60 with open(tmpfile, 'rb') as f:
|
/third_party/rust/crates/proc-macro2/src/ |
H A D | extra.rs | 25 open: proc_macro::Span, 37 open: group.span_open(), 62 pub fn open(&self) -> Span { in open() functions 65 DelimSpanEnum::Compiler { open, .. } => Span::_new(imp::Span::Compiler(*open)), in open()
|
/third_party/skia/third_party/externals/brotli/python/tests/ |
H A D | compress_test.py | 22 with open(temp_uncompressed, 'wb') as out_file: 23 with open(temp_compressed, 'rb') as in_file: 29 with open(temp_compressed, 'wb') as out_file: 30 with open(test_data, 'rb') as in_file:
|
/third_party/zlib/contrib/iostream3/ |
H A D | test.cc | 17 outf.open("test1.txt.gz"); in main() 26 inf.open("test1.txt.gz"); in main() 33 outf.open("test2.txt.gz"); in main() 42 inf.open("test2.txt.gz"); in main()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
H A D | dlp_zip_test.cpp | 112 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F() 139 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F() 142 int32_t fd2 = open(inZip.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F() 172 int32_t fd = open(zipFile.c_str(), O_WRONLY | O_CREAT, 0666); in HWTEST_F() 176 int32_t fd2 = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F() 180 int32_t fd3 = open(inZip1.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F() 185 int32_t fd4 = open(inZip2.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
|
/base/update/packaging_tools/test/ |
H A D | test_utils.py | 63 with open('test.file', 'w') as w_f: 80 with open("./updater_specified_config_repeats.xml", "wb") as w_f: 102 with open('test.file', 'w') as w_f: 120 with open(VERSION_MBN_PATH, 'w') as w_f: 134 with open(VERSION_MBN_PATH, 'w') as w_f: 136 with open(BOARD_LIST_PATH, 'w') as w_f: 152 with open("./partition_file_conversion_failed.xml", "wb") as w_f:
|
H A D | test_update_package.py | 42 with open(VERSION_MBN_PATH) as om_second_f:
63 with open(VERSION_MBN_PATH) as om_third_f:
96 with open(VERSION_MBN_PATH, 'w') as w_f:
98 with open(BOARD_LIST_PATH, 'w') as w_f:
100 with open(VERSION_MBN_PATH) as om_first_f:
153 with open(package_path, 'wb') as w_f:
|