Home
last modified time | relevance | path

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

12

/build/tools/
Dgenerate-notice-files.py64 def md5sum(filename): argument
69 f = open(filename, "rb")
103 for filename in value:
104 id_table[filename] = id_count
122 for filename in sorted_filenames:
123 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename)
124 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena…
134 for filename in sorted(value):
135 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename))
160 for filename in sorted(value):
[all …]
Djava-layers.py38 def __init__(self, filename, lineno, lower, top, lowlevel, legacy): argument
39 self.filename = filename
60 % (dep.filename, dep.lineno))
63 % (v.filename, v.lineno, v.lower))
118 def parse_dependency_file(filename): argument
120 f = file(filename)
147 + " line %d.\n") % (filename, n, lower, deps[lower].lineno))
150 deps[lower] = Dependency(filename, n, lower, top, lowlevel, legacy)
158 + "'%s'\n") % (filename, n, lower))
161 dep = Dependency(filename, n, lower, False, False, False)
[all …]
Devent_log_tags.py23 def __init__(self, tagnum, tagname, description, filename, linenum): argument
27 self.filename = filename
36 self.errors.append((self.filename, linenum, msg))
41 self.warnings.append((self.filename, linenum, msg))
43 def __init__(self, filename, file_object=None): argument
52 self.filename = filename
57 file_object = open(filename, "rb")
102 self.filename, self.linenum))
Dfindleaves.py26 def perform_find(mindepth, prune, dirlist, filename): argument
51 if filename in files:
52 result.append(os.path.join(root, filename))
91 filename = argv[-1]
92 results = list(set(perform_find(mindepth, prune, dirlist, filename)))
Dpost_process_props.py112 filename = argv[1]
113 f = open(filename)
119 if filename.endswith("/build.prop"):
121 elif filename.endswith("/default.prop"):
134 f = open(filename, 'w+')
Dmerge-event-log-tags.py108 (t.tagname, t.tagnum, orig.filename, orig.linenum),
113 (t.tagname, orig.tagnum, orig.filename, orig.linenum),
123 (t.tagnum, orig.tagname, orig.filename, orig.linenum),
Ddiff_package_overlays.py48 def load_overlay_config(filename): argument
49 f = open(filename)
Dparsedeps.py89 filename = args[0]
90 print "Reading %s" % filename
93 f = open(filename)
/build/tools/releasetools/
Dsign_target_files_apks118 if info.filename.endswith(".apk"):
119 name = os.path.basename(info.filename)
149 maxsize = max([len(os.path.basename(i.filename))
151 if i.filename.endswith('.apk')])
172 if info.filename.startswith("IMAGES/"):
175 data = input_tf_zip.read(info.filename)
178 if (info.filename == "META/misc_info.txt" and
182 elif (info.filename == "BOOT/RAMDISK/verity_key" and
186 write_to_temp(info.filename, info.external_attr, new_data)
187 elif (info.filename.startswith("BOOT/") or
[all …]
Dsign_target_files_apks.py118 if info.filename.endswith(".apk"):
119 name = os.path.basename(info.filename)
149 maxsize = max([len(os.path.basename(i.filename))
151 if i.filename.endswith('.apk')])
172 if info.filename.startswith("IMAGES/"):
175 data = input_tf_zip.read(info.filename)
178 if (info.filename == "META/misc_info.txt" and
182 elif (info.filename == "BOOT/RAMDISK/verity_key" and
186 write_to_temp(info.filename, info.external_attr, new_data)
187 elif (info.filename.startswith("BOOT/") or
[all …]
Dcheck_target_files_signatures141 def CertFromPKCS7(data, filename): argument
144 Push(filename + ":")
167 def __init__(self, full_filename, filename): argument
168 self.filename = filename
173 Push(filename+":")
187 if info.filename.startswith("META-INF/") and \
188 (info.filename.endswith(".DSA") or info.filename.endswith(".RSA")):
189 pkcs7 = apk.read(info.filename)
190 cert = CertFromPKCS7(pkcs7, info.filename)
237 def LoadZipFile(self, filename): argument
[all …]
Dcheck_target_files_signatures.py141 def CertFromPKCS7(data, filename): argument
144 Push(filename + ":")
167 def __init__(self, full_filename, filename): argument
168 self.filename = filename
173 Push(filename+":")
187 if info.filename.startswith("META-INF/") and \
188 (info.filename.endswith(".DSA") or info.filename.endswith(".RSA")):
189 pkcs7 = apk.read(info.filename)
190 cert = CertFromPKCS7(pkcs7, info.filename)
237 def LoadZipFile(self, filename): argument
[all …]
Dtest_common.py127 arcname = zinfo_or_arcname.filename
223 zinfo = zipfile.ZipInfo(filename="foo")
242 zinfo = zipfile.ZipInfo(filename="foo")
263 zinfo = zipfile.ZipInfo(filename="foo")
279 zinfo = zipfile.ZipInfo(filename="baz")
283 zinfo = zipfile.ZipInfo(filename="qux")
Dcommon.py440 def UnzipTemp(filename, pattern=None): argument
453 def unzip_to_dir(filename, dirname): argument
454 cmd = ["unzip", "-o", "-q", filename, "-d", dirname]
461 (filename,))
463 m = re.match(r"^(.*[.]zip)\+(.*[.]zip)$", filename, re.IGNORECASE)
467 filename = m.group(1)
469 unzip_to_dir(filename, tmp)
471 return tmp, zipfile.ZipFile(filename, "r")
847 def ZipWrite(zip_file, filename, arcname=None, perms=0o644, argument
866 arcname = filename
[all …]
Dedify_generator.py146 def PatchCheck(self, filename, *sha1): argument
151 'apply_patch_check("%s"' % (filename,) +
153 ') || abort("\\"%s\\" has unexpected contents.");' % (filename,))
155 def FileCheck(self, filename, *sha1): argument
158 self.script.append('assert(sha1_check(read_file("%s")' % (filename,) +
Dadd_img_to_target_files231 def AddImagesToTargetFiles(filename): argument
232 OPTIONS.input_tmp, input_zip = common.UnzipTemp(filename)
252 output_zip = zipfile.ZipFile(filename, "a",
Dadd_img_to_target_files.py231 def AddImagesToTargetFiles(filename): argument
232 OPTIONS.input_tmp, input_zip = common.UnzipTemp(filename)
252 output_zip = zipfile.ZipFile(filename, "a",
Dota_from_target_files367 if info.filename.startswith(prefix):
368 basefilename = info.filename[len(prefix):]
370 symlinks.append((input_zip.read(info.filename),
375 fn = info2.filename = partition + "/" + basefilename
382 data = input_zip.read(info.filename)
696 if info.filename.startswith(prefix) and not IsSymlink(info):
697 basefilename = info.filename[len(prefix):]
699 data = z.read(info.filename)
712 def AddToKnownPaths(filename, known_paths): argument
713 if filename[-1] == "/":
[all …]
Dota_from_target_files.py367 if info.filename.startswith(prefix):
368 basefilename = info.filename[len(prefix):]
370 symlinks.append((input_zip.read(info.filename),
375 fn = info2.filename = partition + "/" + basefilename
382 data = input_zip.read(info.filename)
696 if info.filename.startswith(prefix) and not IsSymlink(info):
697 basefilename = info.filename[len(prefix):]
699 data = z.read(info.filename)
712 def AddToKnownPaths(filename, known_paths): argument
713 if filename[-1] == "/":
[all …]
Dbuild_image.py460 def LoadGlobalDict(filename): argument
463 f = open(filename)
/build/tools/atree/
Dfiles.cpp178 read_list_file(const string& filename, in read_list_file() argument
190 f = fopen(filename.c_str(), "r"); in read_list_file()
193 filename.c_str(), strerror(errno)); in read_list_file()
201 filename.c_str(), strerror(errno)); in read_list_file()
211 filename.c_str(), strerror(errno)); in read_list_file()
226 filename.c_str(), strerror(errno)); in read_list_file()
305 filename.c_str(), i+1, p, errstr.c_str()); in read_list_file()
313 add_file(files, op, filename, i+1, paths[0], paths[1]); in read_list_file()
383 dir_part(const string& filename) in dir_part() argument
385 int pos = filename.rfind('/'); in dir_part()
[all …]
Dfiles.h40 int read_list_file(const string& filename,
46 string dir_part(const string& filename);
/build/core/tasks/check_boot_jars/
Dcheck_boot_jars.py19 def LoadWhitelist(filename): argument
23 with open(filename, 'r') as f:
/build/core/
Dmulti_prebuilt.mk61 $(if $(word 3,$(tw)),$(error $(LOCAL_PATH): Bad prebuilt filename '$(t)')) \
/build/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-docs.css1121 div.download-box p.filename {

12