/build/make/tools/ |
D | generate-notice-files.py | 47 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 …]
|
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") 102 self.filename, self.linenum))
|
D | java-layers.py | 38 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 …]
|
D | post_process_props.py | 113 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/ |
D | file.cc | 29 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()
|
D | loc.h | 23 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
|
D | file_cache.cc | 43 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()
|
D | fileutil.cc | 37 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()
|
D | parser.go | 38 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 …]
|
D | func.cc | 706 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 …]
|
D | file.h | 29 explicit Makefile(const string& filename); 33 const string& filename() const { return filename_; } in filename() function
|
D | serialize.go | 290 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/ |
D | sign_target_files_apks.py | 209 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 …]
|
D | sign_target_files_apks | 209 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 …]
|
D | check_target_files_signatures | 145 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 …]
|
D | check_target_files_signatures.py | 145 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/ |
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/blueprint/bpfmt/ |
D | bpfmt.go | 50 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/ |
D | zipsync.go | 41 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/ |
D | log.go | 29 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/ |
D | env.go | 30 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/ |
D | logger.go | 99 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/ |
D | sh_binary.go | 102 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/ |
D | depfile.go | 35 func WriteDepFile(filename, target string, deps []string) error { argument 36 f, err := os.Create(filename)
|
/build/make/tools/atree/ |
D | files.cpp | 178 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 …]
|