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:]
255 def get_partition_from_installed(HOST_OUT_ROOT, PRODUCT_OUT, filename): argument
259 if filename.startswith(host_prefix):
262 elif filename.startswith(device_prefix):
263 index = filename.find("/", len(device_prefix))
266 return filename[len(device_prefix):index]
612 for filename in makefiles:
613 if not filename.startswith(args.out_dir + "/"):
614 summary.Add(Makefile(filename))
652 all_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles]
653 clean_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
655 unblocked_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
657 soong.reverse_makefiles[makefile.filename])]
658 blocked_makefiles = [Analysis(makefile.filename, []) for makefile in makefiles
660 soong.reverse_makefiles[makefile.filename])]
702 for filename in soong.makefiles[module]:
703 makefile = summary.makefiles.get(filename)
852 "filename": analysis.filename,
855 [m for m in soong.reverse_makefiles[analysis.filename] if m in mods]),