• Home
  • Raw
  • Download

Lines Matching refs:filename

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
65 return Analysis(filename, line_matches);
119 self.makefiles[makefile.filename] = makefile
120 self.directories.setdefault(directory_group(makefile.filename), []).append(makefile)
123 def __init__(self, filename): argument
124 self.filename = filename
127 with open(filename, "r", errors="ignore") as f:
131 sys.stderr.write("Filename: %s\n" % filename)
135 self.analyses = dict([(analyzer, analyze_lines(filename, lines, analyzer.func)) for analyzer
141 for filename in files:
142 if filename == "Android.mk":
143 yield os.path.join(root, filename)[len(cwd) + 1:]
180 modules = soong.reverse_makefiles[makefile.filename]
183 for filename in soong.makefiles.get(dep, []):
184 m = all_makefiles.get(filename)
240 def contains_unblocked_modules(self, filename): argument
241 for m in self.reverse_makefiles[filename]:
246 def contains_blocked_modules(self, filename): argument
247 for m in self.reverse_makefiles[filename]:
269 def get_partition_from_installed(HOST_OUT_ROOT, PRODUCT_OUT, filename): argument
273 if filename.startswith(host_prefix):
276 elif filename.startswith(device_prefix):
277 index = filename.find("/", len(device_prefix))
280 return filename[len(device_prefix):index]
352 for filename, modules in soong.reverse_makefiles.items():
353 if filename.startswith(args.out_dir + "/"):
355 all_makefiles[filename] = Makefile(filename)
686 for filename in makefiles:
687 makefile = self.all_makefiles.get(filename)
736 for filename in self.soong.makefiles[module]:
737 makefile = summary.makefiles.get(filename)
896 "filename": analysis.filename,
899 [m for m in self.soong.reverse_makefiles[analysis.filename] if m in mods]),
935 return [Analysis(makefile.filename, []) for makefile in makefiles
939 all_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles]
940 clean_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
943 unblocked_clean_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
944 if (self.soong.contains_unblocked_modules(makefile.filename)
946 unblocked_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
947 if self.soong.contains_unblocked_modules(makefile.filename)]
948 blocked_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
949 if self.soong.contains_blocked_modules(makefile.filename)]
1004 for filename in sorted(self.all_makefiles.keys()):
1005 makefile = self.all_makefiles[filename]
1006 for module in self.soong.reverse_makefiles[filename]:
1007 row = [filename, module]
1019 if (self.soong.contains_unblocked_modules(makefile.filename) and is_clean(makefile))
1022 row.append(1 if self.soong.contains_unblocked_modules(makefile.filename) else "")
1024 row.append(1 if self.soong.contains_blocked_modules(makefile.filename) else "")