Home
last modified time | relevance | path

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

123

/build/soong/ui/terminal/
Dutil.go60 read := input
67 advance := func(write, read []byte, count int) ([]byte, []byte) {
68 copy(write, read[:count])
69 return write[count:], read[count:]
74 i := bytes.IndexByte(read, 0x1b)
76 if i == -1 || i+1 >= len(read) {
77 copy(write, read)
82 if read[i+1] != '[' {
83 write, read = advance(write, read, i+1)
88 write, read = advance(write, read, i)
[all …]
/build/make/tools/
Dauto_gen_test_config_test.py141 self.assertEqual(config_file.read(), empty_config.read())
155 self.assertEqual(config_file.read(), EXPECTED_JUNIT_TEST_CONFIG)
170 config_file.read(), EXPECTED_INSTRUMENTATION_TEST_CONFIG)
Dfat16copy.py44 return struct.unpack("<H", f.read(2))[0]
48 return struct.unpack("<L", f.read(4))[0]
52 return struct.unpack("B", f.read(1))[0]
118 def read(self, size): member in fat_file
235 data_file.write(data.read())
399 record = f.read(32)
405 record = f.read(32)
427 def read(self, count): member in root_dentry_file
434 ret = f.read(count)
531 chars = f.read(10)
[all …]
Dgenerate-notice-files.py55 block = f.read(MD5_BLOCKSIZE)
122 print >> output_file, html_escape(open(value[0]).read())
146 print >> output_file, open(value[0]).read()
186 …tent contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, html_escape(open(filename).read()))
Dgenerate-self-extracting-archive.py89 b = src.read(_PIPE_CHUNK_SIZE)
134 license = license_file.read()
Dgenerate-enforce-rro-android-manifest.py63 data = f.read()
Dcheck_radio_versions.py48 digest = sha1(f.read()).hexdigest()
Dauto_gen_test_config.py83 config = template.read()
/build/make/tools/releasetools/
Dtest_sign_target_files_apks.py179 self.assertEqual(BOOT_CMDLINE1, output_zip.read('BOOT/cmdline').decode())
189 self.assertEqual(BOOT_CMDLINE2, output_zip.read('BOOT/cmdline').decode())
207 self.assertEqual(BOOT_CMDLINE, output_zip.read('BOOT/cmdline').decode())
212 cert1 = cert1_fp.read()
215 cert2 = cert2_fp.read()
218 cert3 = cert3_fp.read()
238 cert1 = cert1_fp.read()
241 cert2 = cert2_fp.read()
256 cert1 = cert1_fp.read()
259 cert2 = cert2_fp.read()
[all …]
Dsparse_img.py48 header_bin = f.read(28)
87 header_bin = f.read(12)
107 fill_data = f.read(4)
222 yield f.read(this_read * self.blocksize)
234 yield f.read(this_read * self.blocksize)
321 data = f.read(self.blocksize)
Dtest_ota_from_target_files.py376 ab_partitions = verify_zip.read('META/ab_partitions.txt').decode()
456 updated_misc_info = verify_zip.read('META/misc_info.txt').decode()
457 updated_dynamic_partitions_info = verify_zip.read(
488 ab_partitions = verify_zip.read('META/ab_partitions.txt').decode()
534 ab_partitions = verify_zip.read('META/ab_partitions.txt').decode()
535 updated_misc_info = verify_zip.read('META/misc_info.txt').decode()
536 updated_dynamic_partitions_info = verify_zip.read(
586 ab_partitions = verify_zip.read('META/ab_partitions.txt').decode()
587 oem_image = verify_zip.read('IMAGES/oem.img').decode()
606 ab_partitions = verify_zip.read('META/ab_partitions.txt').decode()
[all …]
Dsign_target_files_apks480 data = compressed.read()
483 data = signed.read()
531 data = input_tf_zip.read(filename)
759 common.ParseCertificate(old_fp.read())).decode().lower()
762 common.ParseCertificate(new_fp.read())).decode().lower()
874 keylist = input_tf_zip.read("META/otakeys.txt").split()
949 in_cmdline = input_zip.read("BOOT/cmdline").decode()
982 input_zip.read('META/misc_info.txt').decode().split('\n'))
1091 data = input_tf_zip.read("SYSTEM/build.prop").decode()
1113 data = input_tf_zip.read("SYSTEM/build.prop").decode()
[all …]
Dtest_merge_target_files.py162 merged_entries = f.read().split('\n')
168 output_entries = f.read().split('\n')
217 merged_entries = f.read().split('\n')
223 output_entries = f.read().split('\n')
Dota_from_target_files.py358 signature_size = f.read().rstrip()
608 header_bin = payload_fp.read(24)
690 content = f.read()
731 partition_list = f.read().splitlines()
808 original_ab_partitions = input_zip.read(
839 content = input_zip.read(info_file).decode()
1001 return fp.read(4) == b'\x3A\xFF\x26\xED'
1097 target_info.info_dict['ab_partitions'] = zfp.read(
1165 care_map_data = target_zip.read("META/" + care_map_name)
1177 common.ZipWriteStr(output_zip, "apex_info.pb", zfp.read(),
Dsign_apex.py58 apex_data = input_fp.read()
/build/soong/scripts/
Dconv_linker_config.py44 pb.ParseFromString(f.read())
51 pb.ParseFromString(f.read())
70 pb.ParseFromString(f.read())
85 pb.MergeFromString(f.read())
Dgenerate-notice-files.py55 block = f.read(MD5_BLOCKSIZE)
122 print >> output_file, html_escape(open(value[0]).read())
146 print >> output_file, open(value[0]).read()
186 …tent contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, html_escape(open(filename).read()))
Dmergenotice.py43 data = f.read().strip()
Dninja_rsp.py35 c = f.read(1)
/build/make/
DREADME.md18 are read by [Kati], and generate a ninja file instead of being executed
19 directly. That's combined with a ninja file read by Soong so that the build
/build/make/tools/signtos/
DSignTos.java129 input.read(bytes); in readPrivateKey()
233 int bytesRead = input.read(buffer, 0, HEADER_SIZE - skippedBytes); in signWholeFile()
240 int bytesRead = input.read(buffer); in signWholeFile()
/build/make/tools/zipalign/
DZipEntry.h242 status_t read(FILE* fp);
300 status_t read(FILE* fp);
DZipEntry.cpp50 result = mCDE.read(fp); in initFromCDE()
66 result = mLFH.read(fp); in initFromCDE()
404 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() function in android::ZipEntry::LocalFileHeader
538 status_t ZipEntry::CentralDirEntry::read(FILE* fp) in read() function in android::ZipEntry::CentralDirEntry
/build/soong/bloaty/
Dbloaty_merger_test.py61 metrics.ParseFromString(output.read())
/build/make/tools/signapk/src/com/android/signapk/
DSignApk.java264 input.read(bytes); in readPrivateKey()
306 int read; in addOtacert() local
307 while ((read = input.read(b)) != -1) { in addOtacert()
308 outputJar.write(b, 0, read); in addOtacert()
485 while ((num = data.read(buffer)) > 0) { in copyFiles()
545 while ((num = data.read(buffer)) > 0) { in copyFiles()
597 pinMetaStream.read(patternBlob); in extractPinPatterns()
644 while ((chunkSize = in.read(tmpbuf)) > 0) { in provideJarEntry()
1014 while ((chunkSize = in.read(buf)) != -1) { in toByteArray()

123