/build/soong/ui/terminal/ |
D | writer.go | 77 w := &writerImpl{ 84 w.smartTerminal = isTerminal(stdio.Stdout()) 86 w.stripEscapes = !w.smartTerminal 88 return w 104 func (w *writerImpl) isSmartTerminal() bool { 105 return w.smartTerminal 108 func (w *writerImpl) requestLine() { 109 if !w.haveBlankLine { 110 fmt.Fprintln(w.stdio.Stdout()) 111 w.haveBlankLine = true [all …]
|
/build/blueprint/ |
D | ninja_writer_test.go | 29 input func(w *ninjaWriter) 33 input: func(w *ninjaWriter) { 34 ck(w.Comment("foo")) 39 input: func(w *ninjaWriter) { 40 ck(w.Pool("foo")) 45 input: func(w *ninjaWriter) { 46 ck(w.Rule("foo")) 51 input: func(w *ninjaWriter) { 52 ck(w.Build("foo comment", "foo", []string{"o1", "o2"}, []string{"io1", "io2"}, 58 input: func(w *ninjaWriter) { [all …]
|
/build/soong/java/ |
D | androidmk.go | 25 func (library *Library) AndroidMkHostDex(w io.Writer, name string, data android.AndroidMkData) { 27 fmt.Fprintln(w, "include $(CLEAR_VARS)") 28 fmt.Fprintln(w, "LOCAL_MODULE := "+name+"-hostdex") 29 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true") 30 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := JAVA_LIBRARIES") 32 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", library.dexJarFile.String()) 34 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", library.implementationAndResourcesJar.String()) 37 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", library.dexJarFile.String()) 39 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", library.headerJarFile.String()) 40 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", library.implementationAndResourcesJar.String()) [all …]
|
D | system_modules.go | 131 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 133 fmt.Fprintln(w) 134 fmt.Fprintln(w, makevar, ":=", system.outputFile.String()) 135 fmt.Fprintln(w, ".KATI_READONLY", ":=", makevar) 136 fmt.Fprintln(w, name+":", "$("+makevar+")") 137 fmt.Fprintln(w, ".PHONY:", name) 138 fmt.Fprintln(w) 140 fmt.Fprintln(w, makevar, ":=", strings.Join(system.properties.Libs, " ")) 141 fmt.Fprintln(w, ".KATI_READONLY :=", makevar)
|
/build/soong/third_party/zip/ |
D | writer.go | 33 func NewWriter(w io.Writer) *Writer { 34 return &Writer{cw: &countWriter{w: bufio.NewWriter(w)}} 41 func (w *Writer) SetOffset(n int64) { 42 if w.cw.count != 0 { 45 w.cw.count = n 50 func (w *Writer) Flush() error { 51 return w.cw.w.(*bufio.Writer).Flush() 56 func (w *Writer) Close() error { 57 if w.last != nil && !w.last.closed { 58 if err := w.last.close(); err != nil { [all …]
|
D | android.go | 25 func (w *Writer) CopyFrom(orig *File, newName string) error { 26 if w.last != nil && !w.last.closed { 27 if err := w.last.close(); err != nil { 30 w.last = nil 43 offset: uint64(w.cw.count), 45 w.dir = append(w.dir, h) 47 if err := writeHeader(w.cw, fh); err != nil { 54 io.Copy(w.cw, io.NewSectionReader(orig.zipr, dataOffset, int64(orig.CompressedSize64))) 74 _, err = w.cw.Write(buf) 122 func (w *Writer) CreateCompressedHeader(fh *FileHeader) (io.WriteCloser, error) { [all …]
|
D | register.go | 20 type Compressor func(w io.Writer) (io.WriteCloser, error) 31 func newFlateWriter(w io.Writer) io.WriteCloser { 34 fw.Reset(w) 36 fw, _ = flate.NewWriter(w, 5) 46 func (w *pooledFlateWriter) Write(p []byte) (n int, err error) { 47 w.mu.Lock() 48 defer w.mu.Unlock() 49 if w.fw == nil { 52 return w.fw.Write(p) 55 func (w *pooledFlateWriter) Close() error { [all …]
|
D | writer_test.go | 70 w := NewWriter(buf) 73 testCreate(t, w, &wt) 76 if err := w.Close(); err != nil { 104 w := NewWriter(buf) 105 w.SetOffset(int64(n)) 108 testCreate(t, w, &wt) 111 if err := w.Close(); err != nil { 127 w := NewWriter(struct{ io.Writer }{&buf}) 128 _, err := w.Create("foo") 135 if err := w.Flush(); err != nil { [all …]
|
D | example_test.go | 22 w := zip.NewWriter(buf) 33 f, err := w.Create(file.Name) 44 err := w.Close() 85 w := zip.NewWriter(buf) 88 w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
|
/build/kati/ |
D | query.go | 22 func showDeps(w io.Writer, n *DepNode, indent int, seen map[string]int) { 28 fmt.Fprintf(w, "%*c%s (%d)\n", indent, ' ', n.Output, id) 33 showDeps(w, d, indent+1, seen) 36 fmt.Fprintf(w, "%*corder_onlys:\n", indent, ' ') 38 showDeps(w, d, indent+1, seen) 43 func showNode(w io.Writer, n *DepNode) { 44 fmt.Fprintf(w, "%s:", n.Output) 46 fmt.Fprintf(w, " %s", i) 48 fmt.Fprintf(w, "\n") 50 fmt.Fprintf(w, "\t%s\n", c) [all …]
|
D | buf.go | 31 func writeByte(w io.Writer, b byte) error { 32 if bw, ok := w.(io.ByteWriter); ok { 35 _, err := w.Write([]byte{b}) 46 func (w *ssvWriter) writeWord(word []byte) { 47 if w.sep { 48 writeByte(w.Writer, ' ') 50 w.sep = true 51 w.Writer.Write(word) 54 func (w *ssvWriter) writeWordString(word string) { 55 if w.sep { [all …]
|
D | worker.go | 47 w *worker member 87 w := &worker{ 93 return w 96 func (w *worker) Run() { 100 case j := <-w.jobChan: 102 w.wm.ReportResult(w, j, err) 103 case done = <-w.waitChan: 106 w.doneChan <- true 109 func (w *worker) PostJob(j *job) { 110 w.jobChan <- j [all …]
|
D | func.go | 172 func (f *funcSubst) Eval(w evalWriter, ev *Evaluator) error { 188 w.Write(text) 189 w.Write(to) 191 w.Write(bytes.Replace(text, from, to, -1)) 201 func (f *funcPatsubst) Eval(w evalWriter, ev *Evaluator) error { 227 w.writeWord(sword) 238 func (f *funcStrip) Eval(w evalWriter, ev *Evaluator) error { 250 w.writeWord(word) 260 func (f *funcFindstring) Eval(w evalWriter, ev *Evaluator) error { 274 w.Write(find) [all …]
|
/build/soong/cc/ |
D | androidmk.go | 76 func(w io.Writer, outputFile android.Path) { 78 fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES :=", strings.Join(c.Properties.Logtags, " ")) 81 … fmt.Fprintln(w, "LOCAL_SHARED_LIBRARIES := "+strings.Join(c.Properties.AndroidMkSharedLibs, " ")) 84 … fmt.Fprintln(w, "LOCAL_STATIC_LIBRARIES := "+strings.Join(c.Properties.AndroidMkStaticLibs, " ")) 87 …fmt.Fprintln(w, "LOCAL_WHOLE_STATIC_LIBRARIES := "+strings.Join(c.Properties.AndroidMkWholeStaticL… 89 fmt.Fprintln(w, "LOCAL_SOONG_LINK_TYPE :=", c.getMakeLinkType()) 91 fmt.Fprintln(w, "LOCAL_USE_VNDK := true") 131 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 132 fmt.Fprintln(w, "LOCAL_TEST_DATA := "+strings.Join(testFiles, " ")) 137 func (library *libraryDecorator) androidMkWriteExportedFlags(w io.Writer) { [all …]
|
D | proto_test.go | 64 if w := "--foobar_out="; !strings.Contains(cmd, w) { 65 t.Errorf("expected %q in %q", w, cmd) 70 if w := "--plugin=protoc-gen-foobar=" + foobarPath; !strings.Contains(cmd, w) { 71 t.Errorf("expected %q in %q", w, cmd)
|
/build/soong/ui/status/ |
D | log.go | 26 w io.WriteCloser member 40 w := gzip.NewWriter(f) 43 w: w, 55 fmt.Fprintf(v.w, "[%d/%d] %s\n", counts.FinishedActions, counts.TotalActions, cmd) 58 fmt.Fprintf(v.w, "FAILED: %s\n", strings.Join(result.Outputs, " ")) 62 fmt.Fprintln(v.w, result.Output) 67 v.w.Close() 71 fmt.Fprintf(v.w, "%s%s\n", level.Prefix(), message) 75 w io.WriteCloser member 88 w: f, [all …]
|
/build/soong/bpf/ |
D | bpf.go | 100 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 102 fmt.Fprintln(w) 103 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 104 fmt.Fprintln(w) 108 fmt.Fprintln(w, "include $(CLEAR_VARS)") 109 fmt.Fprintln(w, "LOCAL_MODULE := ", objName) 110 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", obj.String()) 111 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", obj.Base()) 112 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC") 113 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/bpf") [all …]
|
/build/soong/phony/ |
D | phony.go | 50 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 51 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 52 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 53 fmt.Fprintln(w, "LOCAL_MODULE :=", name) 55 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true") 57 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(p.requiredModuleNames, " ")) 58 fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
/build/soong/android/ |
D | prebuilt_etc.go | 140 Custom: func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) { 145 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 146 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 147 fmt.Fprintln(w, "LOCAL_MODULE :=", name+nameSuffix) 148 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC") 150 fmt.Fprintln(w, "LOCAL_MODULE_OWNER :=", *p.commonProperties.Owner) 152 fmt.Fprintln(w, "LOCAL_MODULE_TAGS := optional") 154 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true") 156 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", p.outputFilePath.String()) 157 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", "$(OUT_DIR)/"+p.installDirPath.RelPathString()) [all …]
|
D | rule_builder_test.go | 299 if g, w := rule.Commands(), wantCommands; !reflect.DeepEqual(g, w) { 300 t.Errorf("\nwant rule.Commands() = %#v\n got %#v", w, g) 303 if g, w := rule.depFileMergerCmd(ctx, rule.DepFiles()).String(), wantDepMergerCommand; g != w { 304 t.Errorf("\nwant rule.depFileMergerCmd() = %#v\n got %#v", w, g) 307 if g, w := rule.Inputs(), wantInputs; !reflect.DeepEqual(w, g) { 308 t.Errorf("\nwant rule.Inputs() = %#v\n got %#v", w, g) 310 if g, w := rule.Outputs(), wantOutputs; !reflect.DeepEqual(w, g) { 311 t.Errorf("\nwant rule.Outputs() = %#v\n got %#v", w, g) 313 if g, w := rule.DepFiles(), wantDepFiles; !reflect.DeepEqual(w, g) { 314 t.Errorf("\nwant rule.DepFiles() = %#v\n got %#v", w, g) [all …]
|
D | androidmk.go | 49 Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData) 56 type AndroidMkExtraFunc func(w io.Writer, outputFile Path) 147 func translateAndroidMkModule(ctx SingletonContext, w io.Writer, mod blueprint.Module) error { 157 return translateAndroidModule(ctx, w, mod, x) 159 return translateGoBinaryModule(ctx, w, mod, x) 165 func translateGoBinaryModule(ctx SingletonContext, w io.Writer, mod blueprint.Module, 169 fmt.Fprintln(w, ".PHONY:", name) 170 fmt.Fprintln(w, name+":", goBinary.InstallPath()) 171 fmt.Fprintln(w, "") 176 func translateAndroidModule(ctx SingletonContext, w io.Writer, mod blueprint.Module, [all …]
|
/build/soong/python/ |
D | androidmk.go | 52 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 54 fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", 64 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 66 fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", 71 fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", 75 fmt.Fprintln(w, "LOCAL_FULL_TEST_CONFIG :=", 91 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 96 fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+filepath.Ext(file)) 97 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Clean(dir)) 98 fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem) [all …]
|
/build/soong/cmd/diff_target_files/ |
D | whitelist.go | 61 for _, w := range newWhitelists { 62 add(w.path, w.ignoreMatchingLines) 92 for _, w := range jsonWhitelists { 93 for _, p := range w.Paths { 96 ignoreMatchingLines: w.IgnoreMatchingLines, 107 for _, w := range whitelists { 108 if match, err := Match(w.path, l[i][0].Name); err != nil { 111 … if match, err := diffIgnoringMatchingLines(l[i][0], l[i][1], w.ignoreMatchingLines); err != nil { 113 } else if match || len(w.ignoreMatchingLines) == 0 { 132 for _, w := range whitelists { [all …]
|
/build/soong/ui/tracer/ |
D | tracer.go | 62 w io.WriteCloser member 105 t.w = nopCloser{&t.buf} 106 fmt.Fprintln(t.w, "[") 113 fmt.Fprintln(t.w, "]") 115 if err := t.w.Close(); err != nil { 147 t.w = gzip.NewWriter(f) 150 if _, err := io.Copy(t.w, &t.buf); err != nil { 181 fmt.Fprintln(t.w, ",") 186 if _, err = t.w.Write(bytes); err != nil {
|
/build/soong/symbol_inject/ |
D | symbol_inject.go | 54 func InjectStringSymbol(file *File, w io.Writer, symbol, value, from string) error { 82 return copyAndInject(file.r, w, offset, buf) 85 func InjectUint64Symbol(file *File, w io.Writer, symbol string, value uint64) error { 98 return copyAndInject(file.r, w, offset, buf) 101 func copyAndInject(r io.ReaderAt, w io.Writer, offset uint64, buf []byte) (err error) { 103 _, err = io.Copy(w, io.NewSectionReader(r, 0, int64(offset))) 107 _, err = w.Write(buf) 113 _, err = io.Copy(w, io.NewSectionReader(r, pos, 1<<63-1-pos))
|