/build/soong/apex/ |
D | androidmk.go | 62 panic(fmt.Errorf("unknown class %d", class)) 144 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 146 fmt.Fprintln(w, "LOCAL_PATH :=", fi.moduleDir) 148 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 150 fmt.Fprintln(w, "LOCAL_MODULE :=", moduleName) 152 fmt.Fprintln(w, "LOCAL_MODULE_OWNER :=", fi.module.Owner()) 160 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", modulePath) 162 fmt.Fprintln(w, "LOCAL_SOONG_SYMBOL_PATH :=", pathWhenActivated) 165 fmt.Fprintln(w, "LOCAL_MODULE_SYMLINKS :=", strings.Join(fi.symlinks, " ")) 176 … fmt.Fprintln(w, "LOCAL_TEST_DATA :=", strings.Join(android.AndroidMkDataPaths(newDataPaths), " ")) [all …]
|
/build/soong/cmd/extract_linker/ |
D | main.go | 56 fmt.Fprintln(asm, ".globl __dlwrap_linker_offset") 57 fmt.Fprintf(asm, ".set __dlwrap_linker_offset, 0x%x\n", baseLoadAddr) 64 sectionName := fmt.Sprintf(".linker.sect%d", load) 65 symName := fmt.Sprintf("__dlwrap_linker_sect%d", load) 74 fmt.Fprintf(asm, ".section %s, \"a%s\"\n", sectionName, flags) 76 fmt.Fprintf(asm, ".globl %s\n%s:\n\n", symName, symName) 79 fmt.Sprintf("-Wl,--undefined=%s", symName), 80 fmt.Sprintf("-Wl,--section-start=%s=0x%x", 93 fmt.Fprintf(asm, ".fill 0x%x, 1, 0\n", prog.Memsz-prog.Filesz) 95 fmt.Fprintln(asm) [all …]
|
/build/soong/bpf/ |
D | bpf.go | 121 fmt.Fprintln(w) 122 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 123 fmt.Fprintln(w) 127 fmt.Fprintln(w, "include $(CLEAR_VARS)") 128 fmt.Fprintln(w, "LOCAL_MODULE := ", objName) 130 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", obj.String()) 131 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", obj.Base()) 132 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC") 133 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/bpf") 134 fmt.Fprintln(w, "include $(BUILD_PREBUILT)") [all …]
|
/build/soong/ui/terminal/ |
D | format.go | 45 return fmt.Sprintf("FAILED: %s", message) 47 return fmt.Sprintf("%s%s", level.Prefix(), message) 56 …return fmt.Sprintf("[%3d%% %d/%d] ", 100*counts.FinishedActions/counts.TotalActions, counts.Finish… 78 fmt.Fprintf(buf, "%d", counts.StartedActions) 80 fmt.Fprintf(buf, "%d", counts.TotalActions) 82 fmt.Fprintf(buf, "%d", counts.RunningActions) 84 fmt.Fprintf(buf, "%d", counts.TotalActions-counts.StartedActions) 86 fmt.Fprintf(buf, "%d", counts.FinishedActions) 88 fmt.Fprintf(buf, "%.1f", float64(counts.FinishedActions)/time.Since(s.start).Seconds()) 93 fmt.Fprintf(buf, "%3d%%", 100*counts.FinishedActions/counts.TotalActions) [all …]
|
D | smart_status.go | 87 fmt.Fprintln(w) 91 fmt.Fprintf(s.writer, ansi.hideCursor()) 194 fmt.Fprintf(s.writer, ansi.resetScrollingMargins()) 197 fmt.Fprintf(s.writer, ansi.setCursor(height-s.tableHeight, 1)) 199 fmt.Fprintf(s.writer, ansi.showCursor()) 212 fmt.Fprintln(s.writer) 219 fmt.Fprint(s.writer, "\r", ansi.clearToEndOfLine()) 222 fmt.Fprint(s.writer, str) 224 fmt.Fprint(s.writer, "\n") 242 fmt.Fprint(s.writer, start, str, end) [all …]
|
/build/soong/symbol_inject/ |
D | pe.go | 82 fmt.Println("&pe.File{") 83 fmt.Println("\tFileHeader: pe.FileHeader{") 84 fmt.Printf("\t\tMachine: %#v,\n", peFile.FileHeader.Machine) 85 fmt.Println("\t},") 87 fmt.Println("\tSections: []*pe.Section{") 89 fmt.Printf("\t\t&pe.Section{SectionHeader: %#v},\n", section.SectionHeader) 91 fmt.Println("\t},") 93 fmt.Println("\tSymbols: []*pe.Symbol{") 95 fmt.Printf("\t\t%#v,\n", symbol) 97 fmt.Println("\t},") [all …]
|
D | macho.go | 78 fmt.Println("&macho.File{") 80 fmt.Println("\tSections: []*macho.Section{") 82 fmt.Printf("\t\t&macho.Section{SectionHeader: %#v},\n", section.SectionHeader) 84 fmt.Println("\t},") 86 fmt.Println("\tSymtab: &macho.Symtab{") 87 fmt.Println("\t\tSyms: []macho.Symbol{") 89 fmt.Printf("\t\t\t%#v,\n", symbol) 91 fmt.Println("\t\t},") 92 fmt.Println("\t},") 94 fmt.Println("}")
|
D | elf.go | 93 return nil, fmt.Errorf("invalid section index %d", symbol.Section) 110 return nil, fmt.Errorf("symbol starts before the start of its section") 114 return nil, fmt.Errorf("symbol extends past the end of its section") 117 return nil, fmt.Errorf("unsupported elf file type %d", elfFile.Type()) 142 fmt.Println("mockElfFile{") 143 fmt.Printf("\tt: %#v,\n", elfFile.Type) 145 fmt.Println("\tsections: []elf.SectionHeader{") 147 fmt.Printf("\t\t%#v,\n", section.SectionHeader) 149 fmt.Println("\t},") 151 fmt.Println("\tsymbols: []elf.Symbol{") [all …]
|
/build/soong/cmd/soong_ui/ |
D | main.go | 124 cfgFile := filepath.Join(os.Getenv("TOP"), configDir, fmt.Sprintf("%s.%s", bc, jsonSuffix)) 128 …fmt.Fprintf(os.Stderr, "\033[33mWARNING:\033[0m failed to open config file %s: %s\n", cfgFile, err… 134 return fmt.Errorf("env vars config file: %s did not parse correctly: %s", cfgFile, err.Error()) 160 fmt.Fprintf(os.Stderr, "Error parsing `soong` args: %s.\n", err) 211 fmt.Fprintf(os.Stderr, "failed to parse env config files: %v", err) 309 fmt.Fprintf(ctx.Writer, "usage: %s --dumpvar-mode [--abs] <VAR>\n\n", os.Args[0]) 310 …fmt.Fprintln(ctx.Writer, "In dumpvar mode, print the value of the legacy make variable VAR to stdo… 311 fmt.Fprintln(ctx.Writer, "") 313 …fmt.Fprintln(ctx.Writer, "'report_config' is a special case that prints the human-readable config … 314 fmt.Fprintln(ctx.Writer, "from the beginning of the build.") [all …]
|
/build/soong/phony/ |
D | phony.go | 52 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 53 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 54 fmt.Fprintln(w, "LOCAL_MODULE :=", name) 57 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true") 60 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES :=", 64 fmt.Fprintln(w, "LOCAL_HOST_REQUIRED_MODULES :=", 68 fmt.Fprintln(w, "LOCAL_TARGET_REQUIRED_MODULES :=", 71 fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
/build/soong/cmd/host_bionic_inject/ |
D | host_bionic_inject.go | 44 fmt.Fprintln(os.Stderr, err.Error()) 51 fmt.Fprintln(os.Stderr, err.Error()) 57 fmt.Fprintln(os.Stderr, err.Error()) 63 fmt.Fprintln(os.Stderr, err.Error()) 69 fmt.Fprintln(os.Stderr, err.Error()) 76 fmt.Fprintln(os.Stderr, err.Error()) 95 return 0, fmt.Errorf("File should not have a PT_INTERP header") 102 return 0, fmt.Errorf("Expected file entry(0x%x) to point to __dlwrap_start(0x%x)", 108 return 0, fmt.Errorf("Linker executable failed verification against app embedded linker: %s\n"+ 115 return 0, fmt.Errorf("Failed to find _start symbol") [all …]
|
/build/soong/makedeps/ |
D | deps.go | 38 return nil, fmt.Errorf("many errors: %v", errs) 53 return nil, fmt.Errorf("%sunexpected recipe in rule: %v", pos(node), x) 57 return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Target.Dump()) 68 … return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Prerequisites.Dump()) 74 return nil, fmt.Errorf("%sunexpected line: %#v", pos(node), node) 91 fmt.Fprintf(b, "%s:", replacer.Replace(d.Output)) 93 fmt.Fprintf(b, " %s", replacer.Replace(input)) 95 fmt.Fprintln(b)
|
/build/soong/ui/build/ |
D | rbe.go | 59 base := fmt.Sprintf("reproxy_%v.sock", rand.Intn(1000)) 71 …return "", fmt.Errorf("cannot generate a proxy socket address shorter than the limit of %v", maxNa… 88 vars["RBE_server_address"] = fmt.Sprintf("unix://%v", name) 121 fmt.Fprintln(ctx.Writer, "") 122 fmt.Fprintln(ctx.Writer, fmt.Sprintf("%s", output)) 168 fmt.Fprintln(ctx.Writer, "") 169 fmt.Fprintln(ctx.Writer, "\033[33mWARNING:\033[0m") 170 …fmt.Fprintln(ctx.Writer, fmt.Sprintf("Setting OUT_DIR to a path other than %v may result in slow R… 171 fmt.Fprintln(ctx.Writer, "See http://go/android_rbe_out_dir for a workaround.") 172 fmt.Fprintln(ctx.Writer, "")
|
/build/soong/cmd/run_with_timeout/ |
D | run_with_timeout.go | 37 …fmt.Fprintf(os.Stderr, "usage: %s [--timeout N] [--on_timeout CMD] -- command [args...]\n", os.Arg… 39 …fmt.Fprintln(os.Stderr, "run_with_timeout is a utility that can kill a wrapped command after a con… 40 fmt.Fprintln(os.Stderr, "optionally running a command to collect debugging information first.") 50 fmt.Fprintln(os.Stderr, "command is required") 58 fmt.Fprintln(os.Stderr, "process exited with error:", exitErr.Error()) 60 fmt.Fprintln(os.Stderr, "error:", err.Error()) 122 return fmt.Errorf("process exited with error: %w", exitErr) 135 onTimeoutCmd.Env = append(os.Environ(), fmt.Sprintf("PID=%d", cmd.Process.Pid)) 138 return fmt.Errorf("on_timeout command %q exited with error: %w", onTimeoutCmdStr, err) 142 return fmt.Errorf("timed out after %s", timeout.String())
|
/build/blueprint/bootstrap/bpglob/ |
D | bpglob.go | 77 return fmt.Errorf("error parsing version argument: %w", err) 83 return fmt.Errorf("-o argument must be passed before -v") 121 return fmt.Errorf("-p argument is required before the first -e argument") 130 fmt.Fprintln(os.Stderr, "usage: bpglob -o out -v version -p glob [-e excludes ...] [-p glob ...]") 158 fmt.Fprintln(os.Stderr, "error:", err.Error()) 163 fmt.Fprintln(os.Stderr, "error: -o is required") 184 s := fmt.Sprintf("%s: error: %s\n", time.Now().Format(time.StampNano), globErr.Error()) 187 fmt.Fprintf(os.Stderr, "error: %s\n", err.Error()) 213 return fmt.Errorf("failed to write file list to %q: %w", fileListFile, err) 220 return fmt.Errorf("failed to write dep file to %q: %w", depFile, err)
|
/build/blueprint/ |
D | ninja_defs.go | 44 panic(fmt.Sprintf("unknown deps value: %d", d)) 151 return nil, fmt.Errorf("encountered rule params with no command " + 156 return nil, fmt.Errorf("Pool %s is not visible in this scope", r.Pool) 161 return nil, fmt.Errorf("error parsing Command param: %s", err) 168 return nil, fmt.Errorf("error parsing Depfile param: %s", err) 180 return nil, fmt.Errorf("error parsing Description param: %s", err) 196 return nil, fmt.Errorf("error parsing Rspfile param: %s", err) 204 return nil, fmt.Errorf("error parsing RspfileContent param: %s", 213 return nil, fmt.Errorf("error parsing SymlinkOutputs param: %s", 221 return nil, fmt.Errorf("error parsing CommandDeps param: %s", err) [all …]
|
D | provider.go | 119 panic(fmt.Sprintf("Can't set value of provider %s before GenerateBuildActions started", 122 panic(fmt.Sprintf("Can't set value of provider %s after GenerateBuildActions finished", 128 panic(fmt.Sprintf("Can't set value of provider %s associated with unregistered mutator %s", 131 panic(fmt.Sprintf("Can't set value of provider %s after mutator %s finished", 134 panic(fmt.Sprintf("Can't set value of provider %s before mutator %s started", 140 panic(fmt.Sprintf("Value for provider has incorrect type, wanted %s, got %s", 149 panic(fmt.Sprintf("Value of provider %s is already set", provider.typ)) 166 panic(fmt.Sprintf("Can't get value of provider %s before GenerateBuildActions finished", 172 panic(fmt.Sprintf("Can't get value of provider %s before mutator %s finished",
|
/build/soong/cmd/diff_target_files/ |
D | diff_target_files.go | 46 fmt.Fprintf(os.Stderr, "Error, exactly two arguments are required\n") 52 fmt.Fprintf(os.Stderr, "Error parsing allowlists: %v\n", err) 58 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(0), err) 65 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(1), err) 72 fmt.Fprintf(os.Stderr, "Error comparing zip files: %v\n", err) 76 fmt.Print(diff.String()) 79 fmt.Fprintln(os.Stderr, "differences found")
|
D | compare.go | 27 return zipDiff{}, fmt.Errorf("error fetching target file lists from primary zip %v", err) 32 return zipDiff{}, fmt.Errorf("error fetching target file lists from reference zip %v", err) 70 must(fmt.Fprintln(buf, "files modified:")) 72 …must(fmt.Fprintf(buf, " %v (%v bytes -> %v bytes)\n", f[0].Name, f[0].UncompressedSize64, f[1].U… 78 must(fmt.Fprintln(buf, "files removed:")) 80 must(fmt.Fprintf(buf, " - %v (%v bytes)\n", f.Name, f.UncompressedSize64)) 86 must(fmt.Fprintln(buf, "files added:")) 88 must(fmt.Fprintf(buf, " + %v (%v bytes)\n", f.Name, f.UncompressedSize64)) 94 must(fmt.Fprintf(buf, "total size change: %v bytes\n", sizeChange))
|
/build/blueprint/microfactory/ |
D | microfactory.go | 82 panic(fmt.Sprintf("Unable to discover go version: %v", err)) 103 return fmt.Errorf("Duplicate package prefix: %q", pkgPrefix) 117 return "", false, fmt.Errorf("No package mappings") 135 s := strings.TrimSpace(fmt.Sprintf(format, a...)) 279 return fmt.Errorf("Error parsing directory %q: %v", path, err) 285 return fmt.Errorf("Expected one package in %q, got %d", path, len(foundPkgs)) 313 return fmt.Errorf("%s: invalid quoted string: <%s> %v", filename, importSpec.Path.Value, err) 354 fmt.Fprintf(os.Stderr, "Package %q depends on %v\n", p.Name, deps) 397 fmt.Fprintln(hash, runtime.GOOS, runtime.GOARCH, goVersion) 405 cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU())) [all …]
|
/build/soong/dexpreopt/dexpreopt_gen/ |
D | dexpreopt_gen.go | 64 fmt.Println(err) 94 fmt.Fprintf(os.Stderr, "error reading global Soong config %q: %s\n", *globalSoongConfigPath, err) 100 fmt.Fprintf(os.Stderr, "error parsing global Soong config %q: %s\n", *globalSoongConfigPath, err) 106 fmt.Fprintf(os.Stderr, "error reading global config %q: %s\n", *globalConfigPath, err) 112 fmt.Fprintf(os.Stderr, "error parsing global config %q: %s\n", *globalConfigPath, err) 118 fmt.Fprintf(os.Stderr, "error reading module config %q: %s\n", *moduleConfigPath, err) 124 fmt.Fprintf(os.Stderr, "error parsing module config %q: %s\n", *moduleConfigPath, err) 136 fmt.Fprintln(os.Stderr, "error:", r) 175 fmt.Fprint(depFile, `: \`+"\n") 177 fmt.Fprintf(depFile, ` %s \`+"\n", tool) [all …]
|
/build/blueprint/proptools/ |
D | clone.go | 28 panic(fmt.Errorf("CloneProperties expected *struct, got %s", structValue.Type())) 40 panic(fmt.Errorf("CopyProperties expected dstValue *struct, got %s", dstValue.Type())) 43 panic(fmt.Errorf("CopyProperties expected srcValue *struct, got %s", srcValue.Type())) 51 panic(fmt.Errorf("can't copy mismatching types (%s <- %s)", 57 panic(fmt.Errorf("can't copy a private field %q", field.Name)) 90 panic(fmt.Errorf("can't clone field %q: expected interface to contain *struct, found %s", 130 panic(fmt.Errorf("can't clone pointer field %q type %s", 134 panic(fmt.Errorf("unexpected type for property struct field %q: %s", 144 panic(fmt.Errorf("ZeroProperties expected *struct, got %s", structValue.Type())) 172 panic(fmt.Errorf("can't zero field %q: expected interface to contain *struct, found %s", [all …]
|
/build/blueprint/gotestrunner/ |
D | gotestrunner.go | 54 fmt.Fprintln(os.Stderr, "error: must pass at least one test executable") 60 fmt.Fprintln(os.Stderr, "error: Failed to locate test binary:", err) 72 fmt.Fprintln(os.Stderr, "error: Failed to locate GOROOT:", err) 79 fmt.Fprintln(os.Stderr, err) 85 fmt.Fprintln(os.Stderr, err) 96 fmt.Fprintf(os.Stderr, "test got signal %s\n", status.Signal()) 100 fmt.Fprintln(os.Stderr, err)
|
/build/soong/cmd/zip2zip/ |
D | zip2zip.go | 56 fmt.Fprintln(os.Stderr, "usage: zip2zip -i zipfile -o zipfile [-s|-j] [-t] [filespec]...") 58 fmt.Fprintln(os.Stderr, " filespec:") 59 fmt.Fprintln(os.Stderr, " <name>") 60 fmt.Fprintln(os.Stderr, " <in_name>:<out_name>") 61 fmt.Fprintln(os.Stderr, " <glob>[:<out_dir>]") 62 fmt.Fprintln(os.Stderr, "") 63 …fmt.Fprintln(os.Stderr, "<glob> uses the rules at https://godoc.org/github.com/google/blueprint/pa… 64 fmt.Fprintln(os.Stderr, "") 65 …fmt.Fprintln(os.Stderr, "Files will be copied with their existing compression from the input zipfi… 66 fmt.Fprintln(os.Stderr, "the output zipfile, in the order of filespec arguments.") [all …]
|
/build/soong/ui/status/ |
D | log.go | 63 fmt.Fprintf(v.w, "[%d/%d] %s\n", counts.FinishedActions, counts.TotalActions, cmd) 66 fmt.Fprintf(v.w, "FAILED: %s\n", strings.Join(result.Outputs, " ")) 70 fmt.Fprintln(v.w, result.Output) 79 fmt.Fprintf(v.w, "%s%s\n", level.Prefix(), message) 83 fmt.Fprint(v.w, string(p)) 113 fmt.Fprintf(e.w, "\n\n") 117 fmt.Fprintf(e.w, "FAILED: %s\n", result.Description) 120 fmt.Fprintf(e.w, "Outputs: %s\n", strings.Join(result.Outputs, " ")) 123 fmt.Fprintf(e.w, "Error: %s\n", result.Error) 125 fmt.Fprintf(e.w, "Command: %s\n", result.Command) [all …]
|