Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 18 of 18) sorted by relevance

/build/make/tools/ziptime/
DZipEntry.cpp44 status_t ZipEntry::initAndRewriteFromCDE(FILE* fp) in initAndRewriteFromCDE() argument
50 result = mCDE.rewrite(fp); in initAndRewriteFromCDE()
57 posn = ftell(fp); in initAndRewriteFromCDE()
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initAndRewriteFromCDE()
64 result = mLFH.rewrite(fp); in initAndRewriteFromCDE()
70 if (fseek(fp, posn, SEEK_SET) != 0) in initAndRewriteFromCDE()
87 status_t ZipEntry::LocalFileHeader::rewrite(FILE* fp) in rewrite() argument
91 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite()
102 if (fseek(fp, -kLFHLen, SEEK_CUR) != 0) in rewrite()
105 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite()
[all …]
DZipEntry.h69 status_t initAndRewriteFromCDE(FILE* fp);
83 status_t rewrite(FILE* fp);
101 status_t rewrite(FILE* fp);
/build/make/tools/zipalign/
DZipEntry.cpp41 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE() argument
50 result = mCDE.read(fp); in initFromCDE()
59 posn = ftell(fp); in initFromCDE()
60 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
66 result = mLFH.read(fp); in initFromCDE()
72 if (fseek(fp, posn, SEEK_SET) != 0) in initFromCDE()
404 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument
412 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
443 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
457 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read()
[all …]
DZipEntry.h158 status_t initFromCDE(FILE* fp);
242 status_t read(FILE* fp);
243 status_t write(FILE* fp);
300 status_t read(FILE* fp);
301 status_t write(FILE* fp);
DZipFile.cpp1130 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) in filemove() argument
1144 if (fseek(fp, (long) src, SEEK_SET) != 0) { in filemove()
1150 if (fread(readBuf, 1, getSize, fp) != getSize) { in filemove()
1151 if (feof(fp)) { in filemove()
1161 if (fseek(fp, (long) dst, SEEK_SET) != 0) { in filemove()
1167 if (fwrite(readBuf, 1, getSize, fp) != getSize) { in filemove()
1261 FileReader(FILE* fp) : Reader(), fp_(fp), current_offset_(0) { in FileReader() argument
1404 status_t ZipFile::EndOfCentralDir::write(FILE* fp) in write() argument
1417 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) { in write()
1423 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen) { in write()
DZipFile.h185 status_t write(FILE* fp);
232 status_t filemove(FILE* fp, off_t dest, off_t src, size_t n);
/build/make/tools/releasetools/
Dedify_generator.py96 def AssertSomeFingerprint(self, *fp): argument
98 if not fp:
101 for i in fp]) +
104 common.ErrorCode.FINGERPRINT_MISMATCH, " or ".join(fp))
107 def AssertSomeThumbprint(self, *fp): argument
109 if not fp:
112 for i in fp]) +
115 common.ErrorCode.THUMBPRINT_MISMATCH, " or ".join(fp))
118 def AssertFingerprintOrThumbprint(self, fp, tp): argument
126 '+ getprop("ro.build.thumbprint") + ".");').format(fp=fp, tp=tp)
Dtest_ota_utils.py50 fp = io.BytesIO(magic_zip)
51 with zipfile.ZipFile(fp, 'r') as zfp:
Dtest_utils.py132 with open(sparse_image, 'wb') as fp:
133 fp.write(struct.pack(
149 fp.write(struct.pack(
152 fp.write(os.urandom(data_size))
Dota_utils.py417 zfp = zfp.fp
694 with open(entry_path, "r") as fp:
695 return fp.read()
Dvalidate_target_files.py505 with open(path, 'r') as fp:
506 dupKey = CheckDataInconsistency(fp.readlines())
Dnon_ab_ota.py560 with open(OPTIONS.extra_script) as fp:
561 OPTIONS.extra_script = fp.read()
Dcommon.py3008 with open(os.path.join(d, self.name), "wb") as fp:
3009 fp.write(self.data)
4090 with open(filepath, 'rb') as fp:
4093 return fp.read(4) == b'\x3A\xFF\x26\xED'
Dota_from_target_files.py637 payload_fp = input_zip.fp
Dota_from_target_files637 payload_fp = input_zip.fp
/build/make/core/
Dfilter_symbols.sh15 $NM -g -fp $1 | while read -a line
/build/soong/ui/build/paths/
Dlogs_test.go125 if fp, err := os.Create(f); err == nil {
126 fp.Close()
/build/make/core/tasks/
Dgeneral-tests.mk77 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/