Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/build/soong/androidmk/cmd/androidmk/
Dandroidmk.go153 file := &bpFile{
163 file.setMkPos(p.Unpack(node.Pos()), p.Unpack(node.End()))
167 file.insertComment("//" + x.Comment)
169 handleAssignment(file, x, assignmentCond)
173 module, ok := mapIncludePath(x.Args.Value(file.scope))
175 file.errorf(x, "unsupported include")
180 resetModule(file)
185 handleModuleConditionals(file, x, conds)
186 makeModule(file, module)
194 if file.inModule {
[all …]
Dandroid.go37 file *bpFile member
346 val, err := makeVariableToBlueprint(ctx.file, ctx.mkvalue, bpparser.ListType)
359 err = setVariable(ctx.file, ctx.append, ctx.prefix, name, component, true)
379 val, err := makeVariableToBlueprint(ctx.file, ctx.mkvalue, bpparser.BoolType)
387 setVariable(ctx.file, false, ctx.prefix, "compile_multilib", thirtyTwo, true)
400 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, paths, true)
416 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, &bpparser.List{}, true)
418 err = setVariable(ctx.file, ctx.append, ctx.prefix, attribute, pathList.Values[0], true)
434 bpvalue, err := makeVariableToBlueprint(ctx.file, ctx.mkvalue, bpparser.ListType)
455 val, err := makeVariableToBlueprint(ctx.file, ctx.mkvalue, bpparser.StringType)
[all …]
/build/soong/scripts/
Dgen-kotlin-build-file.sh38 local file="$1"
40 echo "${file}"
42 echo "${prefix}/${file}"
50 for file in $(echo "$classpath" | tr ":" "\n"); do
51 path="$(get_abs_path "$file")"
57 for file in $(cat "$1"); do
58 path="$(get_abs_path "$file")"
59 if [[ $file == *.java ]]; then
61 elif [[ $file == *.kt ]]; then
64 echo "Unknown source file type ${file}"
/build/soong/symbol_inject/
Dsymbol_inject.go32 file, err := elfSymbolsFromFile(r)
35 file, err = machoSymbolsFromFile(r)
38 file, err = peSymbolsFromFile(r)
49 file.r = r
51 return file, err
54 func InjectStringSymbol(file *File, w io.Writer, symbol, value, from string) error {
55 offset, size, err := findSymbol(file, symbol)
69 _, err := file.r.ReadAt(existing, int64(offset))
82 return copyAndInject(file.r, w, offset, buf)
85 func InjectUint64Symbol(file *File, w io.Writer, symbol string, value uint64) error {
[all …]
Delf_test.go24 file *mockElfFile
29 file: elfSymbolTable1,
35 file: elfSymbolTable2,
41 file: elfSymbolTable2,
50 file, err := extractElfSymbols(testCase.file)
54 offset, size, err := findSymbol(file, testCase.symbol)
Dmacho_test.go25 file *macho.File
30 file: machoSymbolTable1,
36 file: machoSymbolTable2,
42 file: machoSymbolTable2,
51 file, err := extractMachoSymbols(testCase.file)
55 offset, size, err := findSymbol(file, testCase.symbol)
Dmacho.go43 file := &File{}
46 file.Sections = append(file.Sections, &Section{
56 section := file.Sections[symbol.Sect-1]
57 file.Symbols = append(file.Symbols, &Symbol{
69 return file, nil
Dpe.go49 file := &File{}
52 file.Sections = append(file.Sections, &Section{
62 file.Symbols = append(file.Symbols, &Symbol{
68 Section: file.Sections[symbol.SectionNumber-1],
73 return file, nil
Dpe_test.go25 file *pe.File
30 file: peSymbolTable1,
36 file: peSymbolTable2,
42 file: peSymbolTable2,
49 file: &pe.File{
69 file: &pe.File{
87 file: &pe.File{
107 file: &pe.File{
128 file, err := extractPESymbols(testCase.file)
132 offset, size, err := findSymbol(file, testCase.symbol)
Delf.go72 file := &File{}
75 file.Sections = append(file.Sections, &Section{
92 if int(symbol.Section) >= len(file.Sections) {
96 section := file.Sections[symbol.Section]
120 file.Symbols = append(file.Symbols, &Symbol{
128 return file, nil
/build/kati/
Dlog.cc27 void ColorErrorLog(const char* file, int line, const char* msg) { in ColorErrorLog() argument
28 if (file == nullptr) { in ColorErrorLog()
36 ERROR(BOLD "%s:%d: " RED "error: " RESET BOLD "%s" RESET, file, line, in ColorErrorLog()
39 ERROR("%s:%d: %s", file, line, msg); in ColorErrorLog()
43 void ColorWarnLog(const char* file, int line, const char* msg) { in ColorWarnLog() argument
44 if (file == nullptr) { in ColorWarnLog()
54 BOLD "%s:%d: " MAGENTA "warning: " RESET BOLD "%s" RESET "\n", file, in ColorWarnLog()
57 fprintf(stderr, "%s:%d: %s\n", file, line, msg); in ColorWarnLog()
/build/blueprint/parser/
Dsort.go22 func SortLists(file *File) {
23 for _, def := range file.Defs {
25 sortListsInValue(assignment.Value, file)
28 sortListsInValue(prop.Value, file)
32 sort.Sort(commentsByOffset(file.Comments))
35 func SortList(file *File, list *List) {
51 sortSubList(list.Values[i:j], nextPos, file)
77 func sortListsInValue(value Expression, file *File) {
82 sortListsInValue(v.Args[0], file)
83 sortListsInValue(v.Args[1], file)
[all …]
/build/make/core/
Ddistdir.mk39 $(foreach file,$(2), \
40 $(eval src := $(call word-colon,1,$(file))) \
41 $(eval dst := $(call word-colon,2,$(file))) \
53 define dist-write-file
55 $(KATI_obsolete_var dist-for-goals,Cannot be used after dist-write-file) \
59 $(file >$(1).tmp, \
69 .KATI_READONLY := dist-for-goals dist-write-file
Dsoong_app_prebuilt.mk33 $(eval $(call copy-one-file,$(LOCAL_SOONG_CLASSES_JAR),$(full_classes_jar)))
34 $(eval $(call copy-one-file,$(LOCAL_SOONG_CLASSES_JAR),$(full_classes_pre_proguard_jar)))
39 $(eval $(call copy-one-file,$(LOCAL_SOONG_HEADER_JAR),$(full_classes_header_jar)))
41 $(eval $(call copy-one-file,$(full_classes_jar),$(full_classes_header_jar)))
62 $(copy-file-to-target)
66 $(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
70 $(eval $(call copy-one-file,$(LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR),\
77 $(eval $(call copy-one-file,$(LOCAL_SOONG_PROGUARD_DICT),\
91 $(copy-file-to-target)
101 $(eval $(call copy-one-file,$(LOCAL_SOONG_DEX_JAR),$(dir $(LOCAL_BUILT_MODULE))package.dex.apk))
/build/make/tools/
Ddump-package-stats33 usage: $PROGNAME <.jar/.apk-file-list>
74 for file
76 if [ ! -f "$file" ]
78 fail "$file doesn't exist or isn't a file"
80 unzip -lvq "$file" | awk '
129 print "filesize='$(printFileSize "$file")'",
132 "name=\"'"$file"'\"";
140 fail "Could not get stats for $file"
Dfixlinebreaks.sh10 for file in $FILES ; do
11 echo $file
12 tr -d \\r < $file > _temp_file
13 mv _temp_file $file
/build/kati/testcase/
Dhash_in_var.mk2 file = $(shell echo tmp/test\#.ext)
6 test1: $(file)
9 $(file):
10 touch $(file)
Dfile_func.sh32 \$(file >testwrite,PASS)
33 \$(info Read not found: \$(if \$(file <notfound),FAIL,PASS))
34 \$(info Read: \$(file < testfile))
35 \$(info Read back: \$(file <testwrite))
/build/soong/
DOWNERS1 per-file * = asmundak@google.com,ccross@android.com,dwillemsen@google.com,jungjw@google.com
2 per-file ndk_*.go, *gen_stub_libs.py = danalbert@google.com
3 per-file clang.go,global.go = srhines@google.com, chh@google.com, pirama@google.com, yikong@google.…
4 per-file tidy.go = srhines@google.com, chh@google.com
5 per-file lto.go,pgo.go = srhines@google.com, pirama@google.com, yikong@google.com
/build/soong/cmd/host_bionic_inject/
Dhost_bionic_inject.go49 file, err := symbol_inject.OpenFile(r)
74 err = symbol_inject.InjectUint64Symbol(file, w, "__dlwrap_original_start", start_addr)
83 file, err := elf.NewFile(r)
88 symbols, err := file.Symbols()
93 for _, prog := range file.Progs {
101 } else if dlwrap_start.Value != file.Entry {
103 file.Entry, dlwrap_start.Value)
106 err = checkLinker(file, linker, symbols)
128 func checkLinker(file, linker *elf.File, fileSyms []elf.Symbol) error { argument
142 for _, prog := range file.Progs {
/build/soong/ui/build/sandbox/darwin/
Dglobal.sb9 ; Allow reading of any file
10 (allow file-read*)
13 (allow file-write*
18 (deny file-write* (with no-log)
22 (allow file-write*
26 (allow file-write-data
44 ; Allow executing any file
/build/soong/ui/build/
Dutil.go87 func ensureEmptyFileExists(ctx Context, file string) {
88 ensureDirectoriesExist(ctx, filepath.Dir(file))
89 if _, err := os.Stat(file); os.IsNotExist(err) {
90 f, err := os.Create(file)
92 ctx.Fatalf("Error creating %s: %q\n", file, err)
96 ctx.Fatalf("Error checking %s: %q\n", file, err)
/build/make/core/tasks/
Dfind-shareduid-violation.py36 def make_aapt_cmds(file): argument
37 return [aapt + ' dump ' + file + ' --file AndroidManifest.xml',
38 aapt + ' dump xmltree ' + file + ' --file AndroidManifest.xml']
40 def extract_shared_uid(file): argument
41 for cmd in make_aapt_cmds(file):
46 print(error_msg, file=sys.stderr)
/build/soong/android/
Dtesting.go195 func maybeBuildParamsFromOutput(provider testBuildProvider, file string) (TestingBuildParams, []str…
204 if f.String() == file || f.Rel() == file {
213 func buildParamsFromOutput(provider testBuildProvider, file string) TestingBuildParams {
214 p, searchedOutputs := maybeBuildParamsFromOutput(provider, file)
217 file, searchedOutputs))
271 func (m TestingModule) MaybeOutput(file string) TestingBuildParams {
272 p, _ := maybeBuildParamsFromOutput(m.module, file)
278 func (m TestingModule) Output(file string) TestingBuildParams {
279 return buildParamsFromOutput(m.module, file)
324 func (s TestingSingleton) MaybeOutput(file string) TestingBuildParams {
[all …]
/build/make/tools/releasetools/
Dtarget_files_diff.py149 print("%s: Binary files differ" % name, file=out_file)
152 print("%s: %s" % (name, line), file=out_file)
175 file=out_file)
178 print("%s: File types differ, skipping compare" % name, file=out_file)
187 print("%s: File types differ, skipping compare" % name, file=out_file)
192 (name, stat1.st_mode, stat2.st_mode), file=out_file)
199 print("%s: Unknown file type, skipping compare" % name, file=out_file)
201 print("%s: Only in base package" % name, file=out_file)
212 print("%s: Only in new package" % name, file=out_file)

12345678910>>...12