/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))
|
/build/soong/cc/ |
D | vndk.go | 78 func insertVndkVersion(filename string, vndkVersion string) string { 79 if index := strings.LastIndex(filename, "."); index != -1 { 80 return filename[:index] + "." + vndkVersion + filename[index:] 82 return filename
|
/build/bazel/rules/ |
D | prebuilt_file.bzl | 24 "filename": "Optional name for the installed file", 43 if ctx.attr.filename_from_src and ctx.attr.filename != "": 44 fail("filename is set. filename_from_src cannot be true") 45 elif ctx.attr.filename != "": 46 filename = ctx.attr.filename 48 filename = src.basename 50 filename = ctx.attr.name 52 if "/" in filename: 53 fail("filename cannot contain separator '/'") 59 filename = filename, [all …]
|
D | sh_binary.bzl | 5 "filename": "Optional name for the installed file", 13 filename = None, 27 # attributes such as filename and sub_dir that are useful when building apex. 31 filename = filename, 57 filename = ctx.attr.filename, 65 "filename": attr.string(),
|
D | prebuilt_xml.bzl | 50 filename = "" 52 if ctx.attr.filename_from_src and ctx.attr.filename != "": 53 fail("filename is set. filename_from_src cannot be true") 54 elif ctx.attr.filename != "": 55 filename = ctx.attr.filename 57 filename = src 59 filename = ctx.attrs.name 65 filename = filename, 86 "filename": attr.string(doc = "Optional name for the installed file"), 88 doc = "Optional. When filename is not provided and" +
|
/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/elf/ |
D | elf.go | 31 func Identifier(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)
|
/build/soong/cmd/zipsync/ |
D | zipsync.go | 46 func writeFile(filename string, in io.Reader, perm os.FileMode) error { 47 out, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm) 60 func writeSymlink(filename string, in io.Reader) error { 66 err = os.Symlink(dest, filename) 132 filename := filepath.Join(*outputDir, name) 134 must(os.MkdirAll(filename, 0777)) 136 must(os.MkdirAll(filepath.Dir(filename), 0777)) 142 must(writeSymlink(filename, in)) 144 must(writeFile(filename, in, f.FileInfo().Mode())) 147 files = append(files, filename)
|
/build/make/tools/releasetools/ |
D | sign_target_files_apks.py | 259 def IsApexFile(filename): argument 260 return filename.endswith(".apex") or filename.endswith(".capex") 272 def IsEntryOtaPackage(input_zip, filename): argument 273 with input_zip.open(filename, "r") as fp: 274 external_attr = input_zip.getinfo(filename).external_attr 277 os.path.join(os.path.dirname(filename), fp.read().decode())) 281 def GetApexFilename(filename): argument 282 name = os.path.basename(filename) 377 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument 411 is_apk = (filename.endswith(".apk") or [all …]
|
D | check_target_files_signatures.py | 147 def CertFromPKCS7(data, filename): argument 150 Push(filename + ":") 175 def __init__(self, full_filename, filename): argument 176 self.filename = filename 181 Push(filename+":") 193 filename = info.filename 194 if (filename.startswith("META-INF/") and 195 info.filename.endswith((".DSA", ".RSA"))): 196 pkcs7 = apk.read(filename) 197 cert = CertFromPKCS7(pkcs7, filename) [all …]
|
/build/soong/cmd/symbols_map/ |
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/python/scripts/ |
D | precompile_python.py | 32 info = zipfile.ZipInfo(filename=name, date_time=(2008, 1, 1, 0, 0, 0)) 35 if not info.filename.endswith('.py'): 51 …py_compile.compile(in_name, out_name, info.filename, doraise=True, invalidation_mode=py_compile.Py… 53 py_compile.compile(in_name, out_name, info.filename, doraise=True) 55 info.filename = info.filename + 'c'
|
/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/ui/build/ |
D | staging_snapshot.go | 44 func sha1_hash(filename string) (string, error) { 45 f, err := os.Open(filename) 96 func(filename string, dirent fs.DirEntry, err error) error { 105 relative := strings.TrimPrefix(filename, productOut) 106 sha, err := sha1_hash(filename) 127 func readJson(filename string) ([]fileEntry, error) { 128 buf, err := os.ReadFile(filename) 145 func writeJson(filename string, obj interface{}) error { 151 return os.WriteFile(filename, buf, 0660)
|
/build/blueprint/bpfmt/ |
D | bpfmt.go | 51 func processFile(filename string, out io.Writer) error { 52 f, err := os.Open(filename) 58 return processReader(filename, f, out) 61 func processReader(filename string, in io.Reader, out io.Writer) error { 69 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 89 fmt.Fprintln(out, filename) 92 err = ioutil.WriteFile(filename, res, 0644) 102 fmt.Printf("diff %s bpfmt/%s\n", filename, filename)
|
/build/make/tools/fs_config/ |
D | Android.bp | 94 filename: "passwd", 111 filename: "passwd", 129 filename: "passwd", 147 filename: "passwd", 165 filename: "passwd", 186 filename: "group", 203 filename: "group", 221 filename: "group", 239 filename: "group", 257 filename: "group", [all …]
|
/build/make/tools/rbcrun/rbcrun/ |
D | rbcrun.go | 37 filename := "" 40 if filename == "" { 41 filename = arg 46 if filename == "" { 50 return filename 147 filename := getEntrypointStarlarkFile() 163 variables, loadedStarlarkFiles, err := rbcrun.Run(filename, nil, mode, *allowExternalEntrypoint)
|
/build/blueprint/deptools/ |
D | depfile.go | 35 func WriteDepFile(filename, target string, deps []string) error { argument 36 f, err := os.Create(filename)
|
/build/soong/scripts/ |
D | build-apex-bundle.py | 61 if info.filename == 'bundle_config.json': 62 bundle_config = json.load(base_zip.open(info.filename)) 66 dir, basename = os.path.split(info.filename) 72 out.writestr(info, base_zip.open(info.filename).read())
|