Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 73) sorted by relevance

123

/aosp12/build/soong/third_party/zip/
H A Dandroid.go35 fh := &fileHeader
39 fh.Extra = stripExtras(fh.Extra)
42 FileHeader: fh,
46 if !fh.isZip64() {
52 fh.CompressedSize = uint32(fh.CompressedSize64)
53 fh.UncompressedSize = uint32(fh.UncompressedSize64)
68 if fh.isZip64() {
76 if fh.isZip64() {
155 FileHeader: fh,
206 fh.CompressedSize = uint32(fh.CompressedSize64)
[all …]
H A Dwriter.go206 return w.createHeaderImpl(fh)
234 fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
254 FileHeader: fh,
375 fh := w.header.FileHeader
376 fh.CRC32 = w.crc32.Sum32()
380 if fh.isZip64() {
385 fh.CompressedSize = uint32(fh.CompressedSize64)
386 fh.UncompressedSize = uint32(fh.UncompressedSize64)
397 if fh.isZip64() {
404 b.uint32(fh.CRC32)
[all …]
H A Dstruct.go100 fh *FileHeader member
105 if fi.fh.UncompressedSize64 > 0 {
108 return int64(fi.fh.UncompressedSize)
122 fh := &FileHeader{
126 fh.SetModTime(fi.ModTime())
127 fh.SetMode(fi.Mode())
128 if fh.UncompressedSize64 > uint32max {
129 fh.UncompressedSize = uint32max
131 fh.UncompressedSize = uint32(fh.UncompressedSize64)
133 return fh, nil
[all …]
H A Dzip_test.go58 fh := new(FileHeader)
59 fh.SetModTime(testTime)
60 outTime := fh.ModTime()
67 fi := fh.FileInfo()
72 if got, want := fh2.Name, fh.Name; got != want {
81 if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want {
88 if sysfh, ok := fi.Sys().(*FileHeader); !ok && sysfh != fh {
94 fh := &FileHeader{
100 testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t)
104 fh := &FileHeader{
[all …]
/aosp12/frameworks/native/cmds/rawbu/
H A Dbackup.cpp376 FILE* fh = fopen(destPath, "w"); in backup_data() local
377 if (fh == nullptr) { in backup_data()
396 if (fflush(fh) != 0) { in backup_data()
402 if (fsync(fileno(fh)) != 0) { in backup_data()
408 fclose(fh); in backup_data()
439 *type = read_int32(fh, -1); in read_header()
484 ltime = read_int64(fh, -1); in read_header()
490 ltime = read_int64(fh, -1); in read_header()
506 FILE* fh = fopen(srcPath, "r"); in restore_data() local
507 if (fh == nullptr) { in restore_data()
[all …]
/aosp12/build/soong/zip/
H A Dzip_test.go138 fh("c", fileC, zip.Deflate),
139 fh("[", fileEmpty, zip.Store),
151 fh("a/a", fileA, zip.Deflate),
152 fh("a/b", fileB, zip.Deflate),
183 fh("c", fileC, zip.Store),
240 fh("c", fileC, zip.Deflate),
253 fh("c", fileC, zip.Deflate),
266 fh("@", fileC, zip.Deflate),
310 fh("b", fileB, zip.Deflate),
372 fh("a", fileA, zip.Deflate),
[all …]
H A Dzip.go227 fh *zip.FileHeader member
525 if op.fh.Method == zip.Deflate {
530 op.fh.CompressedSize64 = op.fh.UncompressedSize64
722 fh: header,
799 ze.fh.CRC32 = crc.Sum32()
861 ze.fh.CRC32 = crc.Sum32()
888 if ze.fh.Method == zip.Deflate {
902 ze.fh.Method = zip.Store
911 ze.fh.Method = zip.Store
965 fh: dirHeader,
[all …]
/aosp12/system/core/trusty/storage/lib/
H A Dstorage.c37 static inline storage_session_t _to_session(file_handle_t fh) in _to_session() argument
39 return (storage_session_t)(fh >> 32); in _to_session()
42 static inline uint32_t _to_handle(file_handle_t fh) in _to_handle() argument
44 return (uint32_t) fh; in _to_handle()
166 void storage_close_file(file_handle_t fh) in storage_close_file() argument
173 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 1); in storage_close_file()
198 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 2); in _read_chunk()
212 rc = _read_chunk(fh, off, ptr, chunk); in storage_read()
225 static int _write_req(file_handle_t fh, storage_off_t off, in _write_req() argument
233 ssize_t rc = send_reqv(_to_session(fh), tx, 3, rx, 1); in _write_req()
[all …]
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dfuse.h216 uint64_t fh; member
250 uint64_t fh; member
276 uint64_t fh; member
281 uint64_t fh; member
287 uint64_t fh; member
293 uint64_t fh; member
303 uint64_t fh; member
320 uint64_t fh; member
337 uint64_t fh; member
401 uint64_t fh; member
[all …]
/aosp12/hardware/qcom/msm8994/kernel-headers/linux/
H A Dfuse.h226 uint64_t fh; member
262 uint64_t fh; member
295 uint64_t fh; member
301 uint64_t fh; member
309 uint64_t fh; member
316 uint64_t fh; member
329 uint64_t fh; member
350 uint64_t fh; member
371 uint64_t fh; member
444 uint64_t fh; member
[all …]
/aosp12/hardware/qcom/msm8994/original-kernel-headers/linux/
H A Dfuse.h399 uint64_t fh; member
436 uint64_t fh; member
465 uint64_t fh; member
471 uint64_t fh; member
478 uint64_t fh; member
485 uint64_t fh; member
497 uint64_t fh; member
518 uint64_t fh; member
539 uint64_t fh; member
608 uint64_t fh; member
[all …]
/aosp12/hardware/qcom/msm8996/kernel-headers/linux/
H A Dfuse.h231 uint64_t fh; member
274 uint64_t fh; member
306 uint64_t fh; member
316 uint64_t fh; member
324 uint64_t fh; member
331 uint64_t fh; member
344 uint64_t fh; member
365 uint64_t fh; member
386 uint64_t fh; member
464 uint64_t fh; member
[all …]
/aosp12/hardware/qcom/msm8996/original-kernel-headers/linux/
H A Dfuse.h411 uint64_t fh; member
454 uint64_t fh; member
483 uint64_t fh; member
492 uint64_t fh; member
499 uint64_t fh; member
506 uint64_t fh; member
518 uint64_t fh; member
539 uint64_t fh; member
560 uint64_t fh; member
634 uint64_t fh; member
[all …]
/aosp12/packages/modules/adb/
H A Dsysdeps_win32.cpp614 if (!fh || !fh->used || fh->clazz != &_fh_socket_class) { in adb_poll()
832 if (!fh || fh->clazz != &_fh_socket_class) { in adb_bind()
881 if (!fh || fh->clazz != &_fh_socket_class) { in adb_sendmsg()
909 if (!fh || fh->clazz != &_fh_socket_class) { in GetWSARecvMsgFunc()
934 if (!fh || fh->clazz != &_fh_socket_class) { in adb_recvmsg()
1204 if (!fh || fh->clazz != &_fh_socket_class) { in network_peek()
1238 if (!fh) { in adb_socket_accept()
1263 if (!fh || fh->clazz != &_fh_socket_class) { in adb_setsockopt()
1288 if (!fh || fh->clazz != &_fh_socket_class) { in adb_getsockname()
1396 if (!fh || !fh->used) { in set_file_block_mode()
[all …]
/aosp12/packages/apps/Nfc/nci/jni/
H A DRouteDataSet.cpp243 FILE* fh = NULL; in saveToFile() local
250 fh = fopen(filename.c_str(), "w"); in saveToFile()
251 if (fh == NULL) { in saveToFile()
256 actualWritten = fwrite(routesXml, sizeof(char), strlen(routesXml), fh); in saveToFile()
258 fclose(fh); in saveToFile()
281 FILE* fh = NULL; in loadFromFile() local
287 fh = fopen(filename.c_str(), "r"); in loadFromFile()
288 if (fh == NULL) { in loadFromFile()
295 actual = fread(buffer, sizeof(char), sizeof(buffer), fh); in loadFromFile()
299 fclose(fh); in loadFromFile()
/aosp12/build/soong/cmd/merge_zips/
H A Dmerge_zips.go104 fh *zip.FileHeader member
113 return be.fh.FileInfo().IsDir()
125 w, err := zw.CreateHeader(be.fh)
197 fh, buf, err := jar.ManifestFileContents(contents)
209 fh := &zip.FileHeader{
214 fh.SetMode(0700)
215 fh.SetModTime(jar.DefaultTime)
216 _, err = oz.addZipEntry(name, ZipEntryFromBuffer{fh, buf})
223 fh := &zip.FileHeader{
228 fh.SetMode(0700)
[all …]
/aosp12/build/soong/cmd/zip2zip/
H A Dzip2zip.go221 fh := match.File.FileHeader
222 fh.Name = match.newName
223 fh.Method = zip.Store
224 fh.CompressedSize64 = fh.UncompressedSize64
226 zw, err := writer.CreateHeaderAndroid(&fh)
/aosp12/build/soong/jar/
H A Djar.go93 fh := &zip.FileHeader{
98 fh.SetMode(0644)
99 fh.SetModTime(DefaultTime)
101 return fh, b, nil
/aosp12/system/extras/simpleperf/
H A Dgenerate_event_type_table.py303 fh = open('event_type_table.h', 'w') variable
304 fh.write(generated_str)
305 fh.close()
/aosp12/system/core/set-verity-state/
H A Dset-verity-state.cpp70 fec::io fh(block_device, O_RDWR); in set_verity_enabled_state() local
72 if (!fh) { in set_verity_enabled_state()
80 if (!fh.get_verity_metadata(metadata)) { in set_verity_enabled_state()
95 if (!fh.set_verity_status(enable)) { in set_verity_enabled_state()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
H A Dqcamera_test.cpp422 if ( !fh ) { in encodeJPEG()
429 rewind(fh); in encodeJPEG()
433 fclose(fh); in encodeJPEG()
457 rewind(fh); in encodeJPEG()
495 rewind(fh); in encodeJPEG()
502 fclose(fh); in encodeJPEG()
3089 if ( !fh ) { in Interpreter()
3097 rewind(fh); in Interpreter()
3101 fclose(fh); in Interpreter()
3107 fclose(fh); in Interpreter()
[all …]
/aosp12/system/extras/simpleperf/scripts/test/
H A Dapp_profiler_test.py105 with open('build_id_list', 'rb') as fh:
106 self.assertEqual(bytes_to_str(fh.read()),
111 with open('build_id_list', 'wb') as fh:
112 fh.write(str_to_bytes('fake_build_id=binary_not_exist\n'))
H A Dinferno_test.py27 with open('report.html', 'r') as fh:
28 return fh.read()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DRilMessageDecoder.java65 public static synchronized RilMessageDecoder getInstance(Handler caller, IccFileHandler fh, in getInstance() argument
77 mInstance[slotId] = new RilMessageDecoder(caller, fh, context); in getInstance()
120 private RilMessageDecoder(Handler caller, IccFileHandler fh, Context context) { in RilMessageDecoder() argument
128 mCmdParamsFactory = CommandParamsFactory.getInstance(this, fh, context); in RilMessageDecoder()
H A DIconLoader.java73 private IconLoader(Looper looper , IccFileHandler fh) { in IconLoader() argument
75 mSimFH = fh; in IconLoader()
80 static IconLoader getInstance(Handler caller, IccFileHandler fh) { in getInstance() argument
84 if (fh != null) { in getInstance()
87 return new IconLoader(sThread.getLooper(), fh); in getInstance()

123