Searched refs:filename (Results 1 - 24 of 24) sorted by relevance

/build/tools/
H A Devent_log_tags.py21 __slots__ = ["tagnum", "tagname", "description", "filename", "linenum"]
23 def __init__(self, tagnum, tagname, description, filename, linenum):
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):
44 """'filename' is the name of the file (included in any error
45 messages). If 'file_object' is None, 'filename' will be opened
52 self.filename
[all...]
H A Dgenerate-notice-files.py64 def md5sum(filename):
69 f = open(filename, "rb")
98 # Set up a filename to row id table (anchors inside tables don't work in
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_filename)
134 for filename in sorted(value):
135 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename))
[all...]
H A Dpost_process_props.py66 filename = argv[1]
67 f = open(filename)
72 if filename.endswith("/build.prop"):
74 elif filename.endswith("/default.prop"):
80 f = open(filename, 'w+')
H A Djava-layers.py38 def __init__(self, filename, lineno, lower, top, lowlevel, legacy):
39 self.filename = filename
60 % (dep.filename, dep.lineno))
63 % (v.filename, v.lineno, v.lower))
118 def parse_dependency_file(filename):
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,
[all...]
H A Dfindleaves.py26 def perform_find(mindepth, prune, dirlist, filename):
51 if filename in files:
52 result.append(os.path.join(root, filename))
57 sys.stderr.write("""Usage: %(progName)s [<options>] <dirlist> <filename>
88 if len(argv)-i < 2: # need both <dirlist> and <filename>
91 filename = argv[-1]
92 results = list(set(perform_find(mindepth, prune, dirlist, filename)))
H A Ddiff_package_overlays.py48 def load_overlay_config(filename):
49 f = open(filename)
H A 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),
H A Dparsedeps.py89 filename = args[0]
90 print "Reading %s" % filename
93 f = open(filename)
/build/tools/releasetools/
H A Dcheck_target_files_signatures32 can be found that match APK signatures, the filename will be
162 def CertFromPKCS7(data, filename):
165 Push(filename + ":")
188 def __init__(self, full_filename, filename):
189 self.filename = filename
190 Push(filename+":")
204 if info.filename.startswith("META-INF/") and \
205 (info.filename.endswith(".DSA") or info.filename
[all...]
H A Dsign_target_files_apks112 if info.filename.endswith(".apk"):
113 name = os.path.basename(info.filename)
141 maxsize = max([len(os.path.basename(i.filename))
143 if i.filename.endswith('.apk')])
146 data = input_tf_zip.read(info.filename)
148 if info.filename.endswith(".apk"):
149 name = os.path.basename(info.filename)
159 elif info.filename in ("SYSTEM/build.prop",
161 print "rewriting %s:" % (info.filename,)
H A Dbuild_image.py138 def LoadGlobalDict(filename):
139 """Load "name=value" pairs from filename"""
141 f = open(filename)
H A Dedify_generator.py121 def PatchCheck(self, filename, *sha1):
126 'apply_patch_check("%s"' % (filename,) +
128 ') || abort("\\"%s\\" has unexpected contents.");' % (filename,))
130 def FileCheck(self, filename, *sha1):
133 self.script.append('assert(sha1_check(read_file("%s")' % (filename,) +
H A Dcommon.py347 def UnzipTemp(filename, pattern=None):
350 If filename is of the form "foo.zip+bar.zip", unzip foo.zip into a
360 def unzip_to_dir(filename, dirname):
361 cmd = ["unzip", "-o", "-q", filename, "-d", dirname]
368 (filename,))
370 m = re.match(r"^(.*[.]zip)\+(.*[.]zip)$", filename, re.IGNORECASE)
374 filename = m.group(1)
376 unzip_to_dir(filename, tmp)
378 return tmp, zipfile.ZipFile(filename, "r")
725 def ZipWriteStr(zip, filename, dat
[all...]
H A Dota_from_target_files278 optional dict of {output filename: contents} to be output instead of
285 if info.filename.startswith("SYSTEM/"):
286 basefilename = info.filename[7:]
288 symlinks.append((input_zip.read(info.filename),
292 fn = info2.filename = "system/" + basefilename
299 data = input_zip.read(info.filename)
464 ZipFile, and return a dict of {filename: File object}."""
467 if info.filename.startswith("SYSTEM/") and not IsSymlink(info):
468 basefilename = info.filename[7:]
470 data = z.read(info.filename)
[all...]
/build/tools/atree/
H A Dfiles.h40 int read_list_file(const string& filename,
46 string dir_part(const string& filename);
H A Dfiles.cpp178 read_list_file(const string& filename, argument
190 f = fopen(filename.c_str(), "r");
193 filename.c_str(), strerror(errno));
201 filename.c_str(), strerror(errno));
211 filename.c_str(), strerror(errno));
226 filename.c_str(), strerror(errno));
305 filename.c_str(), i+1, p, errstr.c_str());
313 add_file(files, op, filename, i+1, paths[0], paths[1]);
383 dir_part(const string& filename) argument
385 int pos = filename
[all...]
/build/core/
H A Dmulti_prebuilt.mk46 # or of the form "<modulename>:<filename>".
48 # name will be the filename with the suffix removed.
61 $(if $(word 3,$(tw)),$(error $(LOCAL_PATH): Bad prebuilt filename '$(t)')) \
/build/tools/droiddoc/templates-ds/assets/
H A Dandroid-developer-docs.css1121 div.download-box p.filename {
/build/tools/droiddoc/templates-pdk/assets/
H A Dandroid-developer-docs.css1121 div.download-box p.filename {
/build/tools/droiddoc/templates-sac/assets/
H A Dandroid-developer-docs.css2313 div.download-box p.filename {
/build/tools/droiddoc/templates-sdk/assets/
H A Dandroid-developer-docs.css2313 div.download-box p.filename {
/build/tools/droiddoc/templates-sdk/assets/css/
H A Ddefault.css1814 #tb .download-box .filename,
1815 #qv .download-box .filename {
/build/tools/droiddoc/templates-ds/assets/css/
H A Ddefault.css1780 #tb .download-box .filename {
/build/tools/droiddoc/templates-sac/assets/css/
H A Ddefault.css1848 #tb .download-box .filename {

Completed in 1087 milliseconds