Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 15 of 15) 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.cpp1097 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) in filemove() argument
1111 if (fseek(fp, (long) src, SEEK_SET) != 0) { in filemove()
1116 if (fread(readBuf, 1, getSize, fp) != getSize) { in filemove()
1122 if (fseek(fp, (long) dst, SEEK_SET) != 0) { in filemove()
1127 if (fwrite(readBuf, 1, getSize, fp) != getSize) { in filemove()
1221 FileReader(FILE* fp) : Reader(), fp_(fp), current_offset_(0) { in FileReader() argument
1364 status_t ZipFile::EndOfCentralDir::write(FILE* fp) in write() argument
1377 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) in write()
1381 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen) in write()
DZipFile.h183 status_t write(FILE* fp);
230 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_utils.py123 with open(sparse_image, 'wb') as fp:
124 fp.write(struct.pack(
140 fp.write(struct.pack(
143 fp.write(os.urandom(data_size))
Dvalidate_target_files.py450 with open(path, 'r') as fp:
451 dupKey = CheckDataDuplicity(fp.readlines())
Dota_from_target_files505 with open(oem_file) as fp:
506 oem_dicts.append(common.LoadDictionaryFromLines(fp.readlines()))
1955 with open(OPTIONS.extra_script) as fp:
1956 OPTIONS.extra_script = fp.read()
Dota_from_target_files.py505 with open(oem_file) as fp:
506 oem_dicts.append(common.LoadDictionaryFromLines(fp.readlines()))
1955 with open(OPTIONS.extra_script) as fp:
1956 OPTIONS.extra_script = fp.read()
Dcommon.py2541 with open(os.path.join(d, self.name), "wb") as fp:
2542 fp.write(self.data)
/build/make/core/
Dfilter_symbols.sh15 $NM -g -fp $1 | while read -a line
/build/soong/ui/build/paths/
Dlogs_test.go122 if fp, err := os.Create(f); err == nil {
123 fp.Close()
/build/make/core/tasks/
Dgeneral-tests.mk64 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/