Home
last modified time | relevance | path

Searched refs:file (Results 351 - 375 of 8763) sorted by relevance

1...<<11121314151617181920>>...351

/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dpacket_create.py7 * you may not use this file except in compliance with the License.
18 * Description: packet allinone bin file
92 with open(outputPath, 'wb+') as file:
93 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
98 file.write(
107 file.write(data)
108 file.write(struct.pack('IIII', 0, 0, 0, 0))
110 file.flush()
111 file.seek(6)
112 newdata = file
[all...]
/device/soc/rockchip/common/sdk_linux/include/drm/
H A Ddrm_file.h45 struct file;
149 * userspace closes the file before the event is delivered.
155 * struct drm_file - DRM file private data
157 * This structure tracks DRM state per open file descriptor.
238 /** @pid: Process that opened this file. */
252 /** @minor: &struct drm_minor for this file. */
271 /** @filp: Pointer to the core file structure. */
272 struct file *filp;
285 * List of &struct drm_framebuffer associated with this file, using the
313 * events in case this file get
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_type_dir.cpp4 * you may not use this file except in compliance with the License.
29 MtpFsTypeDir::MtpFsTypeDir(LIBMTP_file_t *file) in MtpFsTypeDir() argument
30 : MtpFsTypeBasic(file->item_id, file->parent_id, file->storage_id, std::string(file->filename)), in MtpFsTypeDir()
35 modifyDate_(file->modificationdate) in MtpFsTypeDir()
69 void MtpFsTypeDir::AddFile(const MtpFsTypeFile &file) in AddFile() argument
72 files_.insert(file); in AddFile()
89 bool MtpFsTypeDir::RemoveFile(const MtpFsTypeFile &file) in RemoveFile() argument
[all...]
/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/
H A DCommon.js4 * 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...]
/third_party/libsnd/tests/
H A Ddither_test.c53 printf (" wav - test WAV file peak chunk\n") ; in main()
54 printf (" aiff - test AIFF file PEAK chunk\n") ; in main()
138 { SNDFILE *file ; in dither_test() local
149 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in dither_test()
152 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, NULL, SF_TRUE) == 0) in dither_test()
161 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, &dither, sizeof (dither)) != 0) in dither_test()
163 __LINE__, sf_strerror (file)) ; in dither_test()
167 /* Write data to file. */ in dither_test()
168 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ; in dither_test()
169 test_seek_or_die (file, in dither_test()
[all...]
H A Dchecksum_test.c85 { SNDFILE * file ; in checksum_test() local
95 file = test_open_file_or_die (cksum->enc_name, SFM_WRITE, &info, 0, __LINE__) ; in checksum_test()
96 test_write_float_or_die (file, 0, orig, ARRAY_LEN (orig), __LINE__) ; in checksum_test()
97 sf_close (file) ; in checksum_test()
110 file = test_open_file_or_die (cksum->enc_name, SFM_READ, &info, 0, __LINE__) ; in checksum_test()
111 test_read_short_or_die (file, 0, data, ARRAY_LEN (data), __LINE__) ; in checksum_test()
112 sf_close (file) ; in checksum_test()
118 file = test_open_file_or_die (cksum->dec_name, SFM_WRITE, &info, 0, __LINE__) ; in checksum_test()
119 test_write_short_or_die (file, 0, data, ARRAY_LEN (data), __LINE__) ; in checksum_test()
120 sf_close (file) ; in checksum_test()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/
H A Dcpufreq_boost.c48 char *file; member
63 static void check_set_turbo(char *file, char *off) in check_set_turbo() argument
67 fd = SAFE_OPEN(NULL, file, O_WRONLY); in check_set_turbo()
81 FILE_PRINTF(cdrv[id].file, "%d", boost_value); in cleanup()
97 fd = open(cdrv[i].file, O_RDWR); in setup()
110 cdrv[id].name, cdrv[id].file); in setup()
114 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup()
121 check_set_turbo(cdrv[i].file, cdrv[i].off_str); in setup()
178 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].on_str); in test_run()
183 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, " in test_run()
[all...]
/third_party/ltp/include/
H A Dtst_rtnetlink.h27 struct tst_rtnl_context *tst_rtnl_create_context(const char *file,
36 void tst_rtnl_destroy_context(const char *file, const int lineno,
42 int tst_rtnl_send(const char *file, const int lineno,
47 int tst_rtnl_send_validate(const char *file, const int lineno,
60 struct tst_rtnl_message *tst_rtnl_recv(const char *file, const int lineno,
65 int tst_rtnl_add_message(const char *file, const int lineno,
73 int tst_rtnl_add_attr(const char *file, const int lineno,
80 int tst_rtnl_add_attr_string(const char *file, const int lineno,
89 int tst_rtnl_add_attr_list(const char *file, const int lineno,
103 int tst_rtnl_check_acks(const char *file, cons
[all...]
/third_party/ltp/libs/libltpuinput/
H A Dtst_uinput.c71 FILE *file; in get_input_field_value() local
75 file = fopen("/proc/bus/input/devices", "r"); in get_input_field_value()
76 if (!file) in get_input_field_value()
79 while (fgets(line, sizeof(line), file)) { in get_input_field_value()
92 fclose(file); in get_input_field_value()
98 FILE *file; in check_device() local
101 file = fopen("/proc/bus/input/devices", "r"); in check_device()
102 if (!file) in check_device()
105 while (fgets(line, sizeof(line), file)) { in check_device()
110 fclose(file); in check_device()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/drm/kernel_space/
H A Dtdrm.c23 * appropriate file descriptor for this device.
81 int tdrm_test_stub_register(struct inode *inode, struct file *filp, in tdrm_test_stub_register()
92 int tdrm_test_stub_unregister(struct inode *inode, struct file *filp, in tdrm_test_stub_unregister()
99 int tdrm_test_uninit_agp(struct inode *inode, struct file *filp, in tdrm_test_uninit_agp()
106 int tdrm_test_init_agp(struct inode *inode, struct file *filp, in tdrm_test_init_agp()
113 int tdrm_test_add_magic(struct inode *inode, struct file *filp, in tdrm_test_add_magic()
122 int tdrm_test_remove_magic(struct inode *inode, struct file *filp, in tdrm_test_remove_magic()
131 int tdrm_test_ctxbitmap_init(struct inode *inode, struct file *filp, in tdrm_test_ctxbitmap_init()
139 int tdrm_test_ctxbitmap_cleanup(struct inode *inode, struct file *filp, in tdrm_test_ctxbitmap_cleanup()
148 int tdrm_test_alloc_pages(struct inode *inode, struct file *fil
[all...]
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_mem.c78 const char *func, const char *file, in nghttp3_mem_malloc_debug()
83 file, line); in nghttp3_mem_malloc_debug()
89 const char *file, size_t line) { in nghttp3_mem_free_debug()
90 fprintf(stderr, "free ptr=%p in %s at %s:%zu\n", ptr, func, file, line); in nghttp3_mem_free_debug()
97 const char *file, size_t line) { in nghttp3_mem_free2_debug()
98 fprintf(stderr, "free ptr=%p in %s at %s:%zu\n", ptr, func, file, line); in nghttp3_mem_free2_debug()
104 size_t size, const char *func, const char *file, in nghttp3_mem_calloc_debug()
109 size, func, file, line); in nghttp3_mem_calloc_debug()
115 const char *func, const char *file, in nghttp3_mem_realloc_debug()
120 size, func, file, lin in nghttp3_mem_realloc_debug()
77 nghttp3_mem_malloc_debug(const nghttp3_mem *mem, size_t size, const char *func, const char *file, size_t line) nghttp3_mem_malloc_debug() argument
88 nghttp3_mem_free_debug(const nghttp3_mem *mem, void *ptr, const char *func, const char *file, size_t line) nghttp3_mem_free_debug() argument
95 nghttp3_mem_free2_debug(const nghttp3_free free_func, void *ptr, void *user_data, const char *func, const char *file, size_t line) nghttp3_mem_free2_debug() argument
103 nghttp3_mem_calloc_debug(const nghttp3_mem *mem, size_t nmemb, size_t size, const char *func, const char *file, size_t line) nghttp3_mem_calloc_debug() argument
114 nghttp3_mem_realloc_debug(const nghttp3_mem *mem, void *ptr, size_t size, const char *func, const char *file, size_t line) nghttp3_mem_realloc_debug() argument
[all...]
/third_party/musl/libc-test/src/functionalext/unittest/
H A Dunit_test_assert_fail_dialog.c4 * you may not use this file except in compliance with the License.
38 FILE *file = fopen(filename, "w"); in WriteToFile() local
39 if (file != NULL) { in WriteToFile()
40 fprintf(file, "%s\n", content); in WriteToFile()
41 fclose(file); in WriteToFile()
50 FILE *file; in ReadFile() local
52 file = fopen(filename, "r"); in ReadFile()
53 if (file == NULL) { in ReadFile()
57 if (fgets(buffer, sizeof(buffer), file) == NULL) { in ReadFile()
59 fclose(file); in ReadFile()
[all...]
/third_party/python/Lib/
H A Dchunk.py20 Usually an IFF-type file consists of one or more chunks. The proposed
24 of the file, creating a new instance will fail with an EOFError
30 chunk = Chunk(file)
40 The interface is file-like. The implemented methods are:
45 The __init__ method has one required argument, a file-like object
56 def __init__(self, file, align=True, bigendian=True, inclheader=False):
64 self.file = file
65 self.chunkname = file.read(4)
69 self.chunksize = struct.unpack_from(strflag+'L', file
[all...]
/third_party/skia/third_party/externals/expat/expat/tests/
H A Dxmltest.sh13 # output differs are prefixed with "Output differs:", and a diff file
68 # RunXmlwfNotWF file reldir
71 file="$1"
73 if $XMLWF -p "$file" > /dev/null; then
74 echo "Expected not well-formed: $reldir$file"
81 # RunXmlwfWF file reldir
84 file="$1"
86 $XMLWF -p -N -d "$OUTPUT$reldir" "$file" > outfile || return $?
89 if [ -f "out/$file" ] ; then
90 $DIFF "$OUTPUT$reldir$file" "ou
[all...]
/third_party/rust/crates/rustix/tests/fs/
H A Dfile.rs24 let file = rustix::fs::openat( in test_file()
34 &file, in test_file()
54 rustix::fs::fadvise(&file, 0, 10, rustix::fs::Advice::Normal).unwrap(); in test_file()
57 rustix::io::fcntl_getfd(&file).unwrap(), in test_file()
61 rustix::fs::fcntl_getfl(&file).unwrap(), in test_file()
65 let stat = rustix::fs::fstat(&file).unwrap(); in test_file()
78 let statfs = rustix::fs::fstatfs(&file).unwrap(); in test_file()
90 let statvfs = rustix::fs::fstatvfs(&file).unwrap(); in test_file()
95 assert_eq!(rustix::io::is_read_write(&file).unwrap(), (true, false)); in test_file()
97 assert_ne!(rustix::io::ioctl_fionread(&file) in test_file()
[all...]
/third_party/spirv-tools/tools/
H A Dio.h4 // you may not use this file except in compliance with the License.
40 // Appends the contents of the |file| to |data|, assuming each element in the
41 // file is of type |T|.
43 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() argument
44 if (file == nullptr) return; in ReadFile()
48 while (size_t len = fread(buf, sizeof(T), buf_size, file)) { in ReadFile()
53 // Returns true if |file| has encountered an error opening the file or reading
54 // the file as a series of element of type |T|. If there was an error, writes an
57 bool WasFileCorrectlyRead(FILE* file, cons argument
[all...]
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_database.cpp4 * you may not use this file except in compliance with the License.
42 int64_t GetFileSeq(const std::string& file) in GetFileSeq() argument
45 ss << file.substr(file.rfind(FILE_NAME_DELIMIT_STR) + 1); in GetFileSeq()
51 std::string GetFileDomain(const std::string& file) in GetFileDomain() argument
54 StringUtil::SplitStr(file, FILE_DELIMIT_STR, dirNames); in GetFileDomain()
74 HIVIEW_LOGW("invalid file name, file=%{public}s", fileName.c_str()); in GetEventTypeFromFileName()
148 HIVIEW_LOGW("seq id file not exist."); in Backup()
154 HIVIEW_LOGW("zip seq id file faile in Backup()
282 std::string file = files.top(); UpdateClearMap() local
370 IsContainQueryArg(const std::string& file, const SysEventQueryArg& queryArg, std::unordered_map<std::string, long long>& nameSeqMap) IsContainQueryArg() argument
412 std::string file = queryFiles.top(); QueryByFiles() local
[all...]
/third_party/libwebsockets/win32port/zlib/
H A Dgzread.c47 file is reached, even though there may be unused data in the buffer. Once
48 that data has been used, no more attempts will be made to read the file.
99 the output buffer. In that case, all further file reads will be directly to
183 if (flags & 8) /* file name */
193 /* an unexpected end of file is not checked for here -- it will be
204 /* not a gzip file -- save first byte (31) and fall to raw i/o */
248 gz_error(state, Z_DATA_ERROR, "unexpected end of file");
278 gz_error(state, Z_DATA_ERROR, "unexpected end of file");
298 Data is either copied from the input file or decompressed from the input
299 file dependin
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
H A DDescriptorsTest.cs73 private void TestFileDescriptor(FileDescriptor file, FileDescriptor importedFile, FileDescriptor importedPublicFile) in TestFileDescriptor() argument
75 Assert.AreEqual("unittest_proto3.proto", file.Name); in TestFileDescriptor()
76 Assert.AreEqual("protobuf_unittest3", file.Package); in TestFileDescriptor()
78 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in TestFileDescriptor()
79 Assert.AreEqual("unittest_proto3.proto", file.Proto.Name); in TestFileDescriptor()
82 Assert.AreEqual(0, file.PublicDependencies.Count); in TestFileDescriptor()
86 Assert.AreEqual(1, file.Dependencies.Count); in TestFileDescriptor()
87 Assert.AreEqual(importedFile, file.Dependencies[0]); in TestFileDescriptor()
89 Assert.Null(file.FindTypeByName<MessageDescriptor>("NoSuchType")); in TestFileDescriptor()
90 Assert.Null(file in TestFileDescriptor()
[all...]
/third_party/toybox/toys/pending/
H A Dsyslogd.c14 usage: syslogd [-a socket] [-O logfile] [-f config file] [-m interval]
20 -O FILE Default log file <DEFAULT: /var/log/messages>
21 -f FILE Config file <DEFAULT: /etc/syslog.conf>
46 // Log file entry to log into.
96 * for evry file and updates facilty and log level bits.
98 static int resolve_config(struct logfile *file, char *config) in resolve_config() argument
143 if (set & 0x1) file->facility[i] |= ~facval; in resolve_config()
145 if (facval & 0x1) file->level[i] |= ~levval; in resolve_config()
151 // Parse config file and update the log file lis
154 struct logfile *file; parse_config_file() local
[all...]
/third_party/python/Tools/scripts/
H A Dtexi2html.py3 # Convert GNU texinfo files into HTML, one file per node.
6 # The input file must be a complete texinfo file, e.g. emacs.texi.
48 # @image image file reference (see note below)
55 # `basename`.hhp HTML Help Workshop project file
56 # `basename`.hhc Contents file for the project
57 # `basename`.hhk Index file for the project
58 # When fed into HTML Help Workshop, the resulting file will be
213 self.nodefp = None # open file we're writing to
252 # Parse the contents of an entire file
[all...]
/base/security/code_signature/test/unittest/
H A Denable_verity_test.cpp4 * you may not use this file except in compliance with the License.
121 FILE *file = fopen(path.c_str(), "rb"); in GetFileSize() local
122 if (file == nullptr) { in GetFileSize()
125 if (fseek(file, 0L, SEEK_END) != 0) { in GetFileSize()
126 (void)fclose(file); in GetFileSize()
129 size_t fileSize = ftell(file); in GetFileSize()
130 (void)fclose(file); in GetFileSize()
136 FILE *file = fopen(path.c_str(), "rb"); in ReadDataFromFile() local
137 if (file == nullptr) { in ReadDataFromFile()
140 if (fseek(file, in ReadDataFromFile()
239 FILE *file = fopen(filePath.c_str(), "ab"); TamperFileTail() local
261 FILE *file = fopen(filePath.c_str(), "ab"); TamperFileHead() local
[all...]
/base/hiviewdfx/hiview/core/param_update/src/
H A Dparam_manager.cpp4 * you may not use this file except in compliance with the License.
75 for (const std::string& file : files) { in CopyConfigFiles()
76 std::string dstFile(file); in CopyConfigFiles()
78 if (!CopyFile(file, dstFile)) { in CopyConfigFiles()
79 HIVIEW_LOGI("copy file failed: %{public}s", file.c_str()); in CopyConfigFiles()
89 for (const std::string& file : files) { in GetValidFiles()
90 std::string fileName(FileUtil::ExtractFileName(file)); in GetValidFiles()
94 std::string relativedPath(file.substr(CFG_PATH.length())); in GetValidFiles()
96 HIVIEW_LOGE("verify file faile in GetValidFiles()
[all...]
H A Dparam_reader.cpp4 * you may not use this file except in compliance with the License.
46 std::ifstream file(verifyFile); in VerifyCertFile()
47 if (!file.good()) { in VerifyCertFile()
53 std::getline(file, line); in VerifyCertFile()
54 file.close(); in VerifyCertFile()
69 HIVIEW_LOGE("verify cert file failed"); in VerifyCertFile()
76 std::ifstream file(manifestFile); in VerifyParamFile()
77 if (!file.good()) { in VerifyParamFile()
90 while (std::getline(file, line)) { in VerifyParamFile()
93 std::getline(file, nextlin in VerifyParamFile()
[all...]
/foundation/arkui/ace_engine/frameworks/core/image/test/unittest/
H A Dimage_provider_test_utils.h4 * you may not use this file except in compliance with the License.
31 const std::string FILE_GIF = "file:///data/test/resource/imageprovider/images/unbroken.gif";
32 const std::string FILE_GIF_BROKEN = "file:///data/test/resource/imageprovider/images/broken.gif";
34 const std::string FILE_JPG = "file:///data/test/resource/imageprovider/images/unbroken.jpg";
35 const std::string FILE_JPG_BROKEN = "file:///data/test/resource/imageprovider/images/broken.jpg";
37 const std::string FILE_PNG = "file:///data/test/resource/imageprovider/images/unbroken.png";
38 const std::string FILE_PNG_BROKEN = "file:///data/test/resource/imageprovider/images/broken.png";
40 const std::string FILE_WEBP = "file:///data/test/resource/imageprovider/images/unbroken.webp";
41 const std::string FILE_WEBP_BROKEN = "file:///data/test/resource/imageprovider/images/broken.webp";
43 const std::string FILE_BMP = "file
53 GetFileSize(FILE* file) GetFileSize() argument
61 ReadFromFile(std::unique_ptr<FILE, decltype(&fclose)> file) ReadFromFile() argument
[all...]

Completed in 11 milliseconds

1...<<11121314151617181920>>...351