Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 102) sorted by relevance

12345

/build/make/tools/
Dmk2bp_catalog.py26 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 …]
Dgenerate-notice-files.py47 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 …]
Devent_log_tags.py23 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))
Djava-layers.py38 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 …]
Dcompare_builds.py449 return [f.filename for f in sorted(result, key=lambda f: f.timestamp)]
452 def GetFileTimestamp(filename): argument
454 st = os.stat(filename, follow_symlinks=False)
480 return [f.filename for f in sorted(result, key=lambda f: f.timestamp)]
492 def CreateEmptyFile(filename): argument
495 os.makedirs(os.path.dirname(filename))
498 open(filename, "w").close()
499 os.utime(filename)
502 def TouchFile(filename): argument
503 os.utime(filename)
[all …]
/build/soong/scripts/
Dgenerate-notice-files.py47 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/product_config/src/com/android/build/config/
DFlattenConfig.java117 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 …]
DPosition.java81 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()
DGenericConfig.java49 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/
Dlog.go37 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/
Dcflag_artifacts.go57 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/
Dsign_target_files_apks.py220 def IsApexFile(filename): argument
221 return filename.endswith(".apex") or filename.endswith(".capex")
224 def GetApexFilename(filename): argument
225 name = os.path.basename(filename)
307 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument
341 is_apk = (filename.endswith(".apk") or
343 filename.endswith(compressed_apk_extension)))
348 filename.endswith(compressed_apk_extension))
349 should_be_skipped = filename.startswith(tuple(skipped_prefixes))
371 if IsApexFile(info.filename):
[all …]
Dsign_target_files_apks220 def IsApexFile(filename): argument
221 return filename.endswith(".apex") or filename.endswith(".capex")
224 def GetApexFilename(filename): argument
225 name = os.path.basename(filename)
307 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument
341 is_apk = (filename.endswith(".apk") or
343 filename.endswith(compressed_apk_extension)))
348 filename.endswith(compressed_apk_extension))
349 should_be_skipped = filename.startswith(tuple(skipped_prefixes))
371 if IsApexFile(info.filename):
[all …]
Dcheck_target_files_signatures.py159 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 …]
Dcheck_target_files_signatures159 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/soong/cmd/zipsync/
Dzipsync.go42 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/
Drbcrun.go35 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/soong/bpfix/cmd_lib/
Dbpfix.go52 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/
Dbpfmt.go50 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/ui/logger/
Dlogger.go99 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/
DAndroid.bp85 filename: "passwd",
102 filename: "passwd",
120 filename: "passwd",
138 filename: "passwd",
156 filename: "passwd",
177 filename: "group",
194 filename: "group",
212 filename: "group",
230 filename: "group",
248 filename: "group",
/build/make/tools/atree/
Dfiles.cpp178 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/soong/ui/build/
Drbe.go130 func DumpRBEMetrics(ctx Context, config Config, filename string) {
136 os.Remove(filename)
155 if metricsFile == filename {
158 if _, err := copyFile(metricsFile, filename); err != nil {
159 ctx.Fatalf("failed to copy %q to %q: %v\n", metricsFile, filename, err)
/build/soong/scripts/hiddenapi/
Dgenerate_hiddenapi_lists.py134 def read_lines(filename): argument
145 with open(filename, 'r') as f:
152 def write_lines(filename, lines): argument
160 with open(filename, 'w') as f:
345 for filename in args["csv"]:
346 flags.parse_and_merge_csv(read_lines(filename), filename)
365 flags.assign_flag(info.flag, valid_entries, filename, info.tag)
/build/blueprint/deptools/
Ddepfile.go35 func WriteDepFile(filename, target string, deps []string) error { argument
36 f, err := os.Create(filename)

12345