/build/make/tools/ |
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 | generate-notice-files.py | 45 def md5sum(filename): argument 50 f = open(filename, "rb") 90 for filename in value: 91 id_table[filename] = id_count 109 for filename in sorted_filenames: 110 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename) 111 …output_file.write(('<li><a href="#id%d">%s</a></li>\n' % (id_table.get(filename), stripped_filenam… 121 for filename in value: 122 output_file.write(("%s <br/>\n" % SRC_DIR_STRIP_RE.sub(r"\1", filename)).encode()) 146 for filename in value: [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") 103 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 …]
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | FlattenConfig.java | 117 private void forEachStatement(Str filename, VarType varType, Set<String> seen, in forEachStatement() argument 119 if (mStack.contains(filename)) { in forEachStatement() 120 mErrors.ERROR_INFINITE_RECURSION.add(filename.getPosition(), in forEachStatement() 121 "File is already in the inherit-product stack: " + filename); in forEachStatement() local 125 mStack.add(filename); in forEachStatement() 127 final GenericConfig.ConfigFile genericFile = mGenericConfigs.get(filename.toString()); in forEachStatement() 130 mErrors.ERROR_MISSING_CONFIG_FILE.add(filename.getPosition(), in forEachStatement() 131 "Unable to find config file: " + filename); in forEachStatement() local 143 assertVarType(filename, varName); in forEachStatement() 164 mStack.remove(filename); in forEachStatement() [all …]
|
D | Position.java | 81 String filename = m.group(1); in parse() local 82 if (filename.length() == 0 || UNKNOWN.equals(filename)) { in parse() 83 filename = null; in parse() 96 return new Position(filename, line); in parse()
|
D | GenericConfig.java | 49 public ConfigFile(String filename) { in ConfigFile() argument 50 mFilename = filename; in ConfigFile() 112 public Inherit(Str filename) { in Inherit() argument 113 mFilename = filename; in Inherit()
|
/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(filename, "gen "+filename) 101 rule.Build(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(filename, "gen "+filename)
|
/build/make/tools/releasetools/ |
D | sign_target_files_apks.py | 235 def IsApexFile(filename): argument 236 return filename.endswith(".apex") or filename.endswith(".capex") 239 def GetApexFilename(filename): argument 240 name = os.path.basename(filename) 322 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument 356 is_apk = (filename.endswith(".apk") or 358 filename.endswith(compressed_apk_extension))) 363 filename.endswith(compressed_apk_extension)) 364 should_be_skipped = filename.startswith(tuple(skipped_prefixes)) 386 if IsApexFile(info.filename): [all …]
|
D | sign_target_files_apks | 235 def IsApexFile(filename): argument 236 return filename.endswith(".apex") or filename.endswith(".capex") 239 def GetApexFilename(filename): argument 240 name = os.path.basename(filename) 322 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument 356 is_apk = (filename.endswith(".apk") or 358 filename.endswith(compressed_apk_extension))) 363 filename.endswith(compressed_apk_extension)) 364 should_be_skipped = filename.startswith(tuple(skipped_prefixes)) 386 if IsApexFile(info.filename): [all …]
|
D | check_target_files_signatures.py | 163 def CertFromPKCS7(data, filename): argument 166 Push(filename + ":") 191 def __init__(self, full_filename, filename): argument 192 self.filename = filename 197 Push(filename+":") 209 filename = info.filename 210 if (filename.startswith("META-INF/") and 211 info.filename.endswith((".DSA", ".RSA"))): 212 pkcs7 = apk.read(filename) 213 cert = CertFromPKCS7(pkcs7, filename) [all …]
|
D | check_target_files_signatures | 163 def CertFromPKCS7(data, filename): argument 166 Push(filename + ":") 191 def __init__(self, full_filename, filename): argument 192 self.filename = filename 197 Push(filename+":") 209 filename = info.filename 210 if (filename.startswith("META-INF/") and 211 info.filename.endswith((".DSA", ".RSA"))): 212 pkcs7 = apk.read(filename) 213 cert = CertFromPKCS7(pkcs7, filename) [all …]
|
/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) 56 func writeSymlink(filename string, in io.Reader) error { 62 err = os.Symlink(dest, filename) 126 filename := filepath.Join(*outputDir, name) 128 must(os.MkdirAll(filename, 0777)) 130 must(os.MkdirAll(filepath.Dir(filename), 0777)) 136 must(writeSymlink(filename, in)) 138 must(writeFile(filename, in, f.FileInfo().Mode())) 141 files = append(files, filename)
|
/build/make/tools/rbcrun/cmd/ |
D | rbcrun.go | 35 filename := *file 43 } else if filename == "" { 44 filename = arg 50 if filename != "" { 53 filename = "<cmdline>" 56 if filename == "" { 78 err := rbcrun.Run(filename, src, env)
|
/build/bazel/rules/ |
D | sh_binary.bzl | 5 "filename": "Optional name for the installed file", 13 filename = None, 25 # attributes such as filename and sub_dir that are useful when building apex. 29 filename = filename, 54 filename = ctx.attr.filename, 62 "filename": attr.string(),
|
D | prebuilt_file.bzl | 22 "filename": "Optional name for the installed file", 47 filename = ctx.attr.filename, 65 "filename": attr.string(), 74 filename = None, 86 filename = filename,
|
/build/soong/cmd/symbols_map/ |
D | elf.go | 31 func elfIdentifier(filename string, allowMissing bool) (string, error) { 32 f, err := os.Open(filename) 34 return "", fmt.Errorf("failed to open %s: %w", filename, err) 38 return elfIdentifierFromReaderAt(f, filename, allowMissing) 43 func elfIdentifierFromReaderAt(r io.ReaderAt, filename string, allowMissing bool) (string, error) { 55 return "", fmt.Errorf("failed to parse elf file %s: %w", filename, err) 64 return "", fmt.Errorf("failed to find .note.gnu.build-id in %s", filename)
|
D | symbols_map_test.go | 32 filename string 55 filename: "foo", 63 filename: "bar", 90 filename: "foo", 98 filename: "bar", 126 filename: "foo", 134 filename: "bar", 144 filename: "foo", 152 filename: "bar", 178 path := filepath.Join(dir, in.filename)
|
D | r8.go | 31 func r8Identifier(filename string) (string, error) { 32 f, err := os.Open(filename) 34 return "", fmt.Errorf("failed to open %s: %w", filename, err)
|
/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/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/bp2build/ |
D | prebuilt_etc_conversion_test.go | 42 filename: "tz_version", 64 filename: "tz_version", 98 filename: "tz_version", 150 filename: "tz_version", 172 filename: "tz_version",
|
/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/make/tools/fs_config/ |
D | Android.bp | 81 filename: "passwd", 98 filename: "passwd", 116 filename: "passwd", 134 filename: "passwd", 152 filename: "passwd", 173 filename: "group", 190 filename: "group", 208 filename: "group", 226 filename: "group", 244 filename: "group",
|