Home
last modified time | relevance | path

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

/build/make/tools/ziptime/
DZipEntry.cpp44 status_t ZipEntry::initAndRewriteFromCDE(FILE* fp) in initAndRewriteFromCDE() argument
47 status_t result = mCDE.rewrite(fp); in initAndRewriteFromCDE()
54 off_t posn = ftello(fp); in initAndRewriteFromCDE()
55 if (fseeko(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initAndRewriteFromCDE()
61 result = mLFH.rewrite(fp); in initAndRewriteFromCDE()
67 if (fseeko(fp, posn, SEEK_SET) != 0) in initAndRewriteFromCDE()
84 status_t ZipEntry::LocalFileHeader::rewrite(FILE* fp) in rewrite() argument
88 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite()
99 if (fseek(fp, -kLFHLen, SEEK_CUR) != 0) in rewrite()
102 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.cpp43 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE() argument
48 status_t result = mCDE.read(fp); in initFromCDE()
57 off_t posn = ftello(fp); in initFromCDE()
58 if (fseeko(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
64 result = mLFH.read(fp); in initFromCDE()
70 if (fseeko(fp, posn, SEEK_SET) != 0) in initFromCDE()
400 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument
408 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
439 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
453 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.h185 status_t write(FILE* fp);
232 status_t filemove(FILE* fp, off_t dest, off_t src, size_t n);
DZipFile.cpp1108 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) in filemove() argument
1122 if (fseeko(fp, src, SEEK_SET) != 0) { in filemove()
1128 if (fread(readBuf, 1, getSize, fp) != getSize) { in filemove()
1129 if (feof(fp)) { in filemove()
1139 if (fseeko(fp, dst, SEEK_SET) != 0) { in filemove()
1145 if (fwrite(readBuf, 1, getSize, fp) != getSize) { in filemove()
1239 FileReader(FILE* fp) : Reader(), fp_(fp), current_offset_(0) { in FileReader() argument
1382 status_t ZipFile::EndOfCentralDir::write(FILE* fp) in write() argument
1395 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) { in write()
1401 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen) { in write()
/build/soong/cc/
Dfdo_profile.go49 func (fp *fdoProfile) GenerateAndroidBuildActions(ctx android.ModuleContext) {
50 if fp.properties.Profile != nil {
51 path := android.PathForModuleSrc(ctx, *fp.properties.Profile)
/build/make/tools/releasetools/
Dtest_ota_utils.py50 fp = io.BytesIO(magic_zip)
51 with zipfile.ZipFile(fp, 'r') as zfp:
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.py154 with open(sparse_image, 'wb') as fp:
155 fp.write(struct.pack(
171 fp.write(struct.pack(
174 fp.write(os.urandom(data_size))
Dmerge_ota.py160 def WriteHeaderAndManifest(manifest: DeltaArchiveManifest, fp: BinaryIO):
164 fp.write(struct.pack(f">4sQQL", __MAGIC,
166 fp.write(manifest_bytes)
Dota_utils.py493 zfp = zfp.fp
770 with open(entry_path, "r") as fp:
771 return fp.read()
874 with open(os.path.join(target_dir, "META", "ab_partitions.txt"), "r") as fp:
875 ab_partitions = fp.read().strip().splitlines()
1067 payload_fp = input_zip.fp
Dvalidate_target_files.py503 with open(path, 'r') as fp:
504 dupKey = CheckDataInconsistency(fp.readlines())
Dsign_target_files_apks.py263 def IsOtaPackage(fp): argument
264 with zipfile.ZipFile(fp) as zfp:
273 with input_zip.open(filename, "r") as fp:
277 os.path.join(os.path.dirname(filename), fp.read().decode()))
278 return IsOtaPackage(fp)
Dota_from_target_files.py572 with open(dynamic_partition_info_path, "r") as fp:
573 dynamic_partition_info = fp.read()
576 with open(dynamic_partition_info_path, "w") as fp:
577 fp.write(dynamic_partition_info)
Dcommon.py819 with open(tmp_file, "wb") as fp:
820 fp.write(zfp.read(fn))
1838 with open(kernel_path, "rb") as fp:
1839 salt = sha256(fp.read()).hexdigest()
1890 with open(path, "rb") as fp:
1891 salt = sha256(fp.read()).hexdigest()
3236 with open(os.path.join(d, self.name), "wb") as fp:
3237 fp.write(self.data)
4194 with open(filepath, 'rb') as fp:
4197 return fp.read(4) == b'\x3A\xFF\x26\xED'
[all …]
Dnon_ab_ota.py555 with open(OPTIONS.extra_script) as fp:
556 OPTIONS.extra_script = fp.read()
Dadd_img_to_target_files.py92 with open(img_path, 'rb') as fp:
93 fp.seek(-avbtool.AvbFooter.SIZE, os.SEEK_END)
94 data = fp.read(avbtool.AvbFooter.SIZE)
Dtest_ota_from_target_files.py1386 with tempfile.NamedTemporaryFile() as fp:
1387 with zipfile.ZipFile(fp, "w") as zfp:
1397 with tempfile.NamedTemporaryFile() as fp:
1398 with zipfile.ZipFile(fp, "w") as zfp:
Dtest_common.py52 with open(filename, "rb") as fp:
53 for data in iter(lambda: fp.read(4*MiB), b''):
/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/bazel/scripts/incremental_build/
Dplot_metrics.py80 with open(template_file, "r") as fp:
81 script_template = Template(fp.read())
/build/make/core/tasks/
Dgeneral-tests.mk60 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/
Dautomotive-general-tests.mk64 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/