/build/soong/scripts/ |
D | generate-notice-files.py | 47 def md5sum(filename): argument 52 f = open(filename, "rb") 86 for filename in value: 87 id_table[filename] = id_count 105 for filename in sorted_filenames: 106 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename) 107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena… 117 for filename in value: 118 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename)) 143 for filename in value: [all …]
|
/build/make/tools/ |
D | generate-notice-files.py | 47 def md5sum(filename): argument 52 f = open(filename, "rb") 86 for filename in value: 87 id_table[filename] = id_count 105 for filename in sorted_filenames: 106 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename) 107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena… 117 for filename in value: 118 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename)) 143 for filename in value: [all …]
|
D | mk2bp_catalog.py | 26 def match_directory_group(pattern, filename): argument 28 filename = filename.split("/") 29 if len(filename) < len(pattern): 33 filename_segment = filename[i] 43 def directory_group(filename): argument 45 match = match_directory_group(pattern, filename) 48 return os.path.dirname(filename) 51 def __init__(self, filename, line_matches): argument 52 self.filename = filename; 55 def analyze_lines(filename, lines, func): argument [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 | 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 | post_process_props.py | 173 def __init__(self, filename): argument 174 with open(filename) as f: 207 def write(self, filename): argument 208 with open(filename, 'w+') as f: 220 if not args.filename.endswith("/build.prop"): 224 props = PropList(args.filename) 236 props.write(args.filename)
|
/build/soong/ui/status/ |
D | log.go | 37 func NewVerboseLog(log logger.Logger, filename string) StatusOutput { 38 if !strings.HasSuffix(filename, ".gz") { 39 filename += ".gz" 42 f, err := logger.CreateFileWithRotation(filename, 5) 92 func NewErrorLog(log logger.Logger, filename string) StatusOutput { 93 f, err := logger.CreateFileWithRotation(filename, 5) 154 filename string member 158 func NewProtoErrorLog(log logger.Logger, filename string) StatusOutput { 159 os.Remove(filename) 162 filename: filename, [all …]
|
/build/soong/cc/ |
D | cflag_artifacts.go | 57 filename := fmt.Sprintf("%s.%d", s.genFlagFilename(flag), part) 58 filepath := android.PathForOutput(ctx, "cflags", filename) 60 return filename, filepath 70 filename, filepath := s.incrementFile(ctx, cleanedName, part) 87 rule.Build(pctx, ctx, filename, "gen "+filename) 101 rule.Build(pctx, ctx, filename, "gen "+filename) 104 filename, filepath = s.incrementFile(ctx, cleanedName, part+index+1) 125 filename := s.genFlagFilename(flag) 126 outputpath := android.PathForOutput(ctx, "cflags", filename) 131 rule.Build(pctx, ctx, filename, "gen "+filename)
|
D | vndk.go | 292 filename := m.BaseModuleName() + ".so" 297 llndkLibraries(mctx.Config())[name] = filename 299 vndkPrivateLibraries(mctx.Config())[name] = filename 308 filename, err := getVndkFileName(m) 330 vndkUsingCoreVariantLibraries(mctx.Config())[name] = filename 334 vndkSpLibraries(mctx.Config())[name] = filename 336 vndkCoreLibraries(mctx.Config())[name] = filename 339 vndkPrivateLibraries(mctx.Config())[name] = filename 443 func insertVndkVersion(filename string, vndkVersion string) string { 444 if index := strings.LastIndex(filename, "."); index != -1 { [all …]
|
/build/make/tools/releasetools/ |
D | sign_target_files_apks.py | 269 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument 303 is_apk = (filename.endswith(".apk") or 305 filename.endswith(compressed_apk_extension))) 310 filename.endswith(compressed_apk_extension)) 311 should_be_skipped = filename.startswith(tuple(skipped_prefixes)) 333 if (info.filename.startswith('SYSTEM/apex') and 334 info.filename.endswith('.apex')): 335 name = os.path.basename(info.filename) 342 info.filename, compressed_extension, OPTIONS.skip_apks_with_path_prefix) 346 name = os.path.basename(info.filename) [all …]
|
D | sign_target_files_apks | 269 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument 303 is_apk = (filename.endswith(".apk") or 305 filename.endswith(compressed_apk_extension))) 310 filename.endswith(compressed_apk_extension)) 311 should_be_skipped = filename.startswith(tuple(skipped_prefixes)) 333 if (info.filename.startswith('SYSTEM/apex') and 334 info.filename.endswith('.apex')): 335 name = os.path.basename(info.filename) 342 info.filename, compressed_extension, OPTIONS.skip_apks_with_path_prefix) 346 name = os.path.basename(info.filename) [all …]
|
D | check_target_files_signatures | 159 def CertFromPKCS7(data, filename): argument 162 Push(filename + ":") 187 def __init__(self, full_filename, filename): argument 188 self.filename = filename 193 Push(filename+":") 205 filename = info.filename 206 if (filename.startswith("META-INF/") and 207 info.filename.endswith((".DSA", ".RSA"))): 208 pkcs7 = apk.read(filename) 209 cert = CertFromPKCS7(pkcs7, filename) [all …]
|
D | check_target_files_signatures.py | 159 def CertFromPKCS7(data, filename): argument 162 Push(filename + ":") 187 def __init__(self, full_filename, filename): argument 188 self.filename = filename 193 Push(filename+":") 205 filename = info.filename 206 if (filename.startswith("META-INF/") and 207 info.filename.endswith((".DSA", ".RSA"))): 208 pkcs7 = apk.read(filename) 209 cert = CertFromPKCS7(pkcs7, filename) [all …]
|
/build/blueprint/bpfmt/ |
D | bpfmt.go | 50 func processFile(filename string, out io.Writer) error { 51 f, err := os.Open(filename) 57 return processReader(filename, f, out) 60 func processReader(filename string, in io.Reader, out io.Writer) error { 68 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 88 fmt.Fprintln(out, filename) 91 err = ioutil.WriteFile(filename, res, 0644) 101 fmt.Printf("diff %s bpfmt/%s\n", filename, filename)
|
/build/soong/bpfix/cmd_lib/ |
D | bpfix.go | 52 func openAndProcess(filename string, out io.Writer, fixRequest bpfix.FixRequest) error { 53 f, err := os.Open(filename) 58 return processFile(filename, f, out, fixRequest) 62 func processFile(filename string, in io.Reader, out io.Writer, fixRequest bpfix.FixRequest) error { 69 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 92 fmt.Fprintln(out, filename) 95 err = ioutil.WriteFile(filename, res, 0644) 105 fmt.Printf("diff %s bpfix/%s\n", filename, filename)
|
/build/soong/cmd/zipsync/ |
D | zipsync.go | 42 func writeFile(filename string, in io.Reader, perm os.FileMode) error { 43 out, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm) 116 filename := filepath.Join(*outputDir, name) 118 must(os.MkdirAll(filename, 0777)) 120 must(os.MkdirAll(filepath.Dir(filename), 0777)) 125 must(writeFile(filename, in, f.FileInfo().Mode())) 127 files = append(files, filename)
|
/build/make/tools/fs_config/ |
D | Android.bp | 76 filename: "passwd", 93 filename: "passwd", 111 filename: "passwd", 129 filename: "passwd", 147 filename: "passwd", 168 filename: "group", 185 filename: "group", 203 filename: "group", 221 filename: "group", 239 filename: "group",
|
/build/soong/ui/logger/ |
D | logger.go | 99 func CreateFileWithRotation(filename string, maxCount int) (*os.File, error) { 100 lockFileName := filepath.Join(filepath.Dir(filename), ".lock_"+filepath.Base(filename)) 112 if _, err := os.Lstat(filename); err == nil { 113 ext := filepath.Ext(filename) 114 basename := filename[:len(filename)-len(ext)] 115 if err = fileRotation(filename, basename, ext, 1, maxCount); err != nil { 120 return os.Create(filename)
|
/build/soong/ui/build/ |
D | rbe.go | 89 func DumpRBEMetrics(ctx Context, config Config, filename string) { 95 os.Remove(filename) 114 if _, err := copyFile(metricsFile, filename); err != nil { 115 ctx.Fatalf("failed to copy %q to %q: %v\n", metricsFile, filename, err)
|
D | upload_test.go | 84 filename := filepath.Join(outDir, f) 85 metricsFiles = append(metricsFiles, filename) 86 if err := ioutil.WriteFile(filename, []byte("test file"), 0644); err != nil { 87 t.Fatalf("failed to create a fake metrics file %q for uploading: %v", filename, err)
|
/build/make/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 …]
|
/build/blueprint/deptools/ |
D | depfile.go | 35 func WriteDepFile(filename, target string, deps []string) error { argument 36 f, err := os.Create(filename)
|
/build/soong/ui/tracer/ |
D | tracer.go | 49 ImportMicrofactoryLog(filename string) 128 func (t *tracerImpl) SetOutput(filename string) { 135 if !strings.HasSuffix(filename, ".gz") { 136 filename += ".gz" 139 f, err := logger.CreateFileWithRotation(filename, 5)
|
D | microfactory.go | 62 func (t *tracerImpl) ImportMicrofactoryLog(filename string) { 63 if _, err := os.Stat(filename); err != nil { 67 f, err := os.Open(filename)
|
/build/blueprint/bpmodify/ |
D | bpmodify.go | 57 func processFile(filename string, in io.Reader, out io.Writer) error { 59 f, err := os.Open(filename) 74 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 97 fmt.Fprintln(out, filename) 100 err = ioutil.WriteFile(filename, res, 0644) 110 fmt.Printf("diff %s bpfmt/%s\n", filename, filename)
|