Home
last modified time | relevance | path

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

1234

/build/make/tools/
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 …]
Dpost_process_props.py113 filename = argv[1]
114 f = open(filename)
120 if filename.endswith("/build.prop"):
122 elif (filename.endswith("/vendor/default.prop") or
123 filename.endswith("/odm/default.prop")):
125 elif (filename.endswith("/default.prop") or # legacy
126 filename.endswith("/prop.default")):
139 f = open(filename, 'w+')
/build/kati/
Dfile.cc29 Makefile::Makefile(const string& filename) in Makefile() argument
30 : mtime_(0), filename_(filename), exists_(false) { in Makefile()
31 int fd = open(filename.c_str(), O_RDONLY); in Makefile()
38 PERROR("fstat failed for %s", filename.c_str()); in Makefile()
48 PERROR("read failed for %s", filename.c_str()); in Makefile()
53 PERROR("close failed for %s", filename.c_str()); in Makefile()
Dloc.h23 Loc() : filename(0), lineno(-1) {} in Loc()
24 Loc(const char* f, int l) : filename(f), lineno(l) {} in Loc()
26 const char* filename; member
30 #define LOCF(x) (x).filename, (x).lineno
Dfile_cache.cc43 virtual Makefile* ReadMakefile(const string& filename) override { in ReadMakefile() argument
45 auto p = cache_.emplace(filename, result); in ReadMakefile()
47 p.first->second = result = new Makefile(filename); in ReadMakefile()
Dfileutil.cc37 bool Exists(StringPiece filename) { in Exists() argument
38 CHECK(filename.size() < PATH_MAX); in Exists()
40 if (stat(filename.as_string().c_str(), &st) < 0) { in Exists()
54 double GetTimestamp(StringPiece filename) { in GetTimestamp() argument
55 CHECK(filename.size() < PATH_MAX); in GetTimestamp()
57 if (stat(filename.as_string().c_str(), &st) < 0) { in GetTimestamp()
Dparser.go38 filename string member
67 func newParser(rd io.Reader, filename string) *parser {
71 p.mk.filename = filename
78 filename: p.mk.filename,
731 for _, filename := range candidates {
732 if exists(filename) {
733 return filename, nil
740 parser := newParser(rd, loc.filename)
771 func (mc *makefileCacheT) lookup(filename string) (makefile, [sha1.Size]byte, bool, error) {
774 c, present := mc.mk[filename]
[all …]
Dfunc.cc706 static void FileReadFunc(Evaluator* ev, const string& filename, string* s) { in FileReadFunc() argument
707 int fd = open(filename.c_str(), O_RDONLY); in FileReadFunc()
710 if (ShouldStoreCommandResult(filename)) { in FileReadFunc()
713 cr->cmd = filename; in FileReadFunc()
743 if (ShouldStoreCommandResult(filename)) { in FileReadFunc()
746 cr->cmd = filename; in FileReadFunc()
753 const string& filename, in FileWriteFunc() argument
756 FILE* f = fopen(filename.c_str(), append ? "ab" : "wb"); in FileWriteFunc()
769 if (ShouldStoreCommandResult(filename)) { in FileWriteFunc()
772 cr->cmd = filename; in FileWriteFunc()
[all …]
Dfile.h29 explicit Makefile(const string& filename);
33 const string& filename() const { return filename_; } in filename() function
Dserialize.go290 func (jsonLoadSaver) Save(g *DepGraph, filename string, roots []string) error {
300 f, err := os.Create(filename)
317 func (gobLoadSaver) Save(g *DepGraph, filename string, roots []string) error {
319 f, err := os.Create(filename)
350 filename := ".kati_cache." + mk
352 filename += "." + r
354 return url.QueryEscape(filename)
711 func (jsonLoadSaver) Load(filename string) (*DepGraph, error) {
713 f, err := os.Open(filename)
733 func (gobLoadSaver) Load(filename string) (*DepGraph, error) {
[all …]
/build/make/tools/releasetools/
Dsign_target_files_apks.py209 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument
243 is_apk = (filename.endswith(".apk") or
245 filename.endswith(compressed_apk_extension)))
250 filename.endswith(compressed_apk_extension))
251 should_be_skipped = filename.startswith(tuple(skipped_prefixes))
273 if (info.filename.startswith('SYSTEM/apex') and
274 info.filename.endswith('.apex')):
275 name = os.path.basename(info.filename)
282 info.filename, compressed_extension, OPTIONS.skip_apks_with_path_prefix)
286 name = os.path.basename(info.filename)
[all …]
Dsign_target_files_apks209 def GetApkFileInfo(filename, compressed_extension, skipped_prefixes): argument
243 is_apk = (filename.endswith(".apk") or
245 filename.endswith(compressed_apk_extension)))
250 filename.endswith(compressed_apk_extension))
251 should_be_skipped = filename.startswith(tuple(skipped_prefixes))
273 if (info.filename.startswith('SYSTEM/apex') and
274 info.filename.endswith('.apex')):
275 name = os.path.basename(info.filename)
282 info.filename, compressed_extension, OPTIONS.skip_apks_with_path_prefix)
286 name = os.path.basename(info.filename)
[all …]
Dcheck_target_files_signatures145 def CertFromPKCS7(data, filename): argument
148 Push(filename + ":")
172 def __init__(self, full_filename, filename): argument
173 self.filename = filename
178 Push(filename+":")
192 if info.filename.startswith("META-INF/") and \
193 (info.filename.endswith(".DSA") or info.filename.endswith(".RSA")):
194 pkcs7 = apk.read(info.filename)
195 cert = CertFromPKCS7(pkcs7, info.filename)
242 def LoadZipFile(self, filename): argument
[all …]
Dcheck_target_files_signatures.py145 def CertFromPKCS7(data, filename): argument
148 Push(filename + ":")
172 def __init__(self, full_filename, filename): argument
173 self.filename = filename
178 Push(filename+":")
192 if info.filename.startswith("META-INF/") and \
193 (info.filename.endswith(".DSA") or info.filename.endswith(".RSA")):
194 pkcs7 = apk.read(info.filename)
195 cert = CertFromPKCS7(pkcs7, info.filename)
242 def LoadZipFile(self, filename): argument
[all …]
/build/soong/bpfix/cmd/
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/cmd/zipsync/
Dzipsync.go41 func writeFile(filename string, in io.Reader, perm os.FileMode) error {
42 out, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
104 filename := filepath.Join(*outputDir, f.Name)
106 must(os.MkdirAll(filename, f.FileInfo().Mode()))
108 must(os.MkdirAll(filepath.Dir(filename), 0777))
113 must(writeFile(filename, in, f.FileInfo().Mode()))
115 files = append(files, filename)
/build/soong/ui/status/
Dlog.go29 func NewVerboseLog(log logger.Logger, filename string) StatusOutput {
30 if !strings.HasSuffix(filename, ".gz") {
31 filename += ".gz"
34 f, err := logger.CreateFileWithRotation(filename, 5)
80 func NewErrorLog(log logger.Logger, filename string) StatusOutput {
81 f, err := logger.CreateFileWithRotation(filename, 5)
/build/soong/env/
Denv.go30 func WriteEnvFile(filename string, envDeps map[string]string) error {
45 err = ioutil.WriteFile(filename, data, 0664)
53 func StaleEnvFile(filename string) (bool, error) {
54 data, err := ioutil.ReadFile(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/soong/android/
Dsh_binary.go102 filename := String(s.properties.Filename)
104 if filename == "" {
106 filename = s.sourceFilePath.Base()
108 filename = ctx.ModuleName()
114 s.outputFilePath = PathForModuleOut(ctx, filename).OutputPath
/build/blueprint/deptools/
Ddepfile.go35 func WriteDepFile(filename, target string, deps []string) error { argument
36 f, err := os.Create(filename)
/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 …]

1234