/build/tools/ |
D | generate-notice-files.py | 64 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 …]
|
D | java-layers.py | 38 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 …]
|
D | event_log_tags.py | 23 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))
|
D | findleaves.py | 26 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)))
|
D | post_process_props.py | 112 filename = argv[1] 113 f = open(filename) 119 if filename.endswith("/build.prop"): 121 elif filename.endswith("/default.prop"): 134 f = open(filename, 'w+')
|
D | merge-event-log-tags.py | 108 (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),
|
D | diff_package_overlays.py | 48 def load_overlay_config(filename): argument 49 f = open(filename)
|
D | parsedeps.py | 89 filename = args[0] 90 print "Reading %s" % filename 93 f = open(filename)
|
/build/tools/releasetools/ |
D | sign_target_files_apks | 118 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 …]
|
D | sign_target_files_apks.py | 118 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 …]
|
D | check_target_files_signatures | 141 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 …]
|
D | check_target_files_signatures.py | 141 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 …]
|
D | test_common.py | 127 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")
|
D | common.py | 440 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 …]
|
D | edify_generator.py | 146 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,) +
|
D | add_img_to_target_files | 231 def AddImagesToTargetFiles(filename): argument 232 OPTIONS.input_tmp, input_zip = common.UnzipTemp(filename) 252 output_zip = zipfile.ZipFile(filename, "a",
|
D | add_img_to_target_files.py | 231 def AddImagesToTargetFiles(filename): argument 232 OPTIONS.input_tmp, input_zip = common.UnzipTemp(filename) 252 output_zip = zipfile.ZipFile(filename, "a",
|
D | ota_from_target_files | 367 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 …]
|
D | ota_from_target_files.py | 367 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 …]
|
D | build_image.py | 460 def LoadGlobalDict(filename): argument 463 f = open(filename)
|
/build/tools/atree/ |
D | files.cpp | 178 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 …]
|
D | files.h | 40 int read_list_file(const string& filename, 46 string dir_part(const string& filename);
|
/build/core/tasks/check_boot_jars/ |
D | check_boot_jars.py | 19 def LoadWhitelist(filename): argument 23 with open(filename, 'r') as f:
|
/build/core/ |
D | multi_prebuilt.mk | 61 $(if $(word 3,$(tw)),$(error $(LOCAL_PATH): Bad prebuilt filename '$(t)')) \
|
/build/tools/droiddoc/templates-pdk/assets/ |
D | android-developer-docs.css | 1121 div.download-box p.filename {
|