/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 …]
|
D | module_ctx_test.go | 126 if g, w := barB.variantName, "b"; g != w { 127 t.Fatalf("expected bar.modules[1] variant to be %q, got %q", w, g) 130 if g, w := foo.forwardDeps, []*moduleInfo{barB}; !reflect.DeepEqual(g, w) { 131 t.Fatalf("expected foo deps to be %q, got %q", w, g) 150 if g, w := barBB.variantName, "b_b"; g != w { 151 t.Fatalf("expected bar.modules[3] variant to be %q, got %q", w, g) 154 if g, w := foo.forwardDeps, []*moduleInfo{barBB}; !reflect.DeepEqual(g, w) { 155 t.Fatalf("expected foo deps to be %q, got %q", w, g) 174 if g, w := barAB.variantName, "a_b"; g != w { 175 t.Fatalf("expected bar.modules[1] variant to be %q, got %q", w, g) [all …]
|
/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/soong/apex/ |
D | androidmk.go | 39 func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, moduleDir string) []s… 104 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 106 fmt.Fprintln(w, "LOCAL_PATH :=", fi.moduleDir) 108 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 110 fmt.Fprintln(w, "LOCAL_MODULE :=", moduleName) 117 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", modulePath) 119 fmt.Fprintln(w, "LOCAL_SOONG_SYMBOL_PATH :=", pathWhenActivated) 122 fmt.Fprintln(w, "LOCAL_MODULE_SYMLINKS :=", strings.Join(fi.symlinks, " ")) 133 fmt.Fprintln(w, "LOCAL_TEST_DATA :=", strings.Join(cc.AndroidMkDataPaths(newDataPaths), " ")) 137 fmt.Fprintln(w, "LOCAL_NOTICE_FILE :=", strings.Join(fi.module.NoticeFiles().Strings(), " ")) [all …]
|
/build/soong/bpf/ |
D | bpf.go | 106 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 108 fmt.Fprintln(w) 109 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 110 fmt.Fprintln(w) 114 fmt.Fprintln(w, "include $(CLEAR_VARS)") 115 fmt.Fprintln(w, "LOCAL_MODULE := ", objName) 116 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", obj.String()) 117 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", obj.Base()) 118 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC") 119 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/bpf") [all …]
|
/build/soong/rust/ |
D | androidmk.go | 60 func(w io.Writer, outputFile android.Path) { 62 fmt.Fprintln(w, "LOCAL_RLIB_LIBRARIES := "+strings.Join(mod.Properties.AndroidMkRlibs, " ")) 65 fmt.Fprintln(w, "LOCAL_DYLIB_LIBRARIES := "+strings.Join(mod.Properties.AndroidMkDylibs, " ")) 68 …fmt.Fprintln(w, "LOCAL_PROC_MACRO_LIBRARIES := "+strings.Join(mod.Properties.AndroidMkProcMacroLib… 71 …fmt.Fprintln(w, "LOCAL_SHARED_LIBRARIES := "+strings.Join(mod.Properties.AndroidMkSharedLibs, " ")) 74 …fmt.Fprintln(w, "LOCAL_STATIC_LIBRARIES := "+strings.Join(mod.Properties.AndroidMkStaticLibs, " ")) 97 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 98 fmt.Fprintln(w, "LOCAL_SOONG_UNSTRIPPED_BINARY :=", binary.unstrippedOutputFile.String()) 100 fmt.Fprintln(w, "LOCAL_PREBUILT_COVERAGE_ARCHIVE := "+binary.coverageOutputZipFile.String()) 108 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { [all …]
|
/build/soong/ui/status/ |
D | log.go | 34 w io.WriteCloser member 48 w := gzip.NewWriter(f) 51 w: w, 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) 75 v.w.Close() 79 fmt.Fprintf(v.w, "%s%s\n", level.Prefix(), message) 83 fmt.Fprint(v.w, string(p)) 88 w io.WriteCloser member [all …]
|
/build/soong/phony/ |
D | phony.go | 56 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { 57 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)") 58 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir) 59 fmt.Fprintln(w, "LOCAL_MODULE :=", name) 61 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true") 64 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES :=", 68 fmt.Fprintln(w, "LOCAL_HOST_REQUIRED_MODULES :=", 72 fmt.Fprintln(w, "LOCAL_TARGET_REQUIRED_MODULES :=", 75 fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
/build/soong/android/ |
D | rule_builder_test.go | 338 if g, w := rule.Commands(), wantCommands; !reflect.DeepEqual(g, w) { 339 t.Errorf("\nwant rule.Commands() = %#v\n got %#v", w, g) 342 if g, w := rule.Inputs(), wantInputs; !reflect.DeepEqual(w, g) { 343 t.Errorf("\nwant rule.Inputs() = %#v\n got %#v", w, g) 345 if g, w := rule.Outputs(), wantOutputs; !reflect.DeepEqual(w, g) { 346 t.Errorf("\nwant rule.Outputs() = %#v\n got %#v", w, g) 348 if g, w := rule.DepFiles(), wantDepFiles; !reflect.DeepEqual(w, g) { 349 t.Errorf("\nwant rule.DepFiles() = %#v\n got %#v", w, g) 351 if g, w := rule.Tools(), wantTools; !reflect.DeepEqual(w, g) { 352 t.Errorf("\nwant rule.Tools() = %#v\n got %#v", w, g) [all …]
|
D | arch_test.go | 368 if g, w := enabledVariants(ctx, "foo"), tt.fooVariants; !reflect.DeepEqual(w, g) { 369 t.Errorf("want foo variants:\n%q\ngot:\n%q\n", w, g) 372 if g, w := enabledVariants(ctx, "bar"), tt.barVariants; !reflect.DeepEqual(w, g) { 373 t.Errorf("want bar variants:\n%q\ngot:\n%q\n", w, g) 376 if g, w := enabledVariants(ctx, "baz"), tt.bazVariants; !reflect.DeepEqual(w, g) { 377 t.Errorf("want baz variants:\n%q\ngot:\n%q\n", w, g) 380 if g, w := enabledVariants(ctx, "qux"), tt.quxVariants; !reflect.DeepEqual(w, g) { 381 t.Errorf("want qux variants:\n%q\ngot:\n%q\n", w, g) 457 if g, w := enabledVariants(ctx, "foo"), tt.fooVariants; !reflect.DeepEqual(w, g) { 458 t.Errorf("want foo variants:\n%q\ngot:\n%q\n", w, g) [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 :=", 70 fmt.Fprintln(w, "LOCAL_FULL_TEST_CONFIG :=", 75 fmt.Fprintln(w, "LOCAL_DISABLE_AUTO_GENERATE_TEST_CONFIG := true") 89 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { 93 fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+filepath.Ext(file)) 94 fmt.Fprintln(w, "LOCAL_MODULE_PATH := "+path) 95 fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem) [all …]
|
/build/soong/java/ |
D | androidmk.go | 279 func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) { 280 fmt.Fprintln(w, "jar_installed_module := $(LOCAL_INSTALLED_MODULE)") 294 func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) { 296 fmt.Fprintln(w, "$(LOCAL_INSTALLED_MODULE): $(jar_installed_module)") 297 fmt.Fprintln(w, "jar_installed_module :=") 399 func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) { 401 fmt.Fprintf(w, "$(call dist-for-goals,%s,%s:%s)\n", 405 fmt.Fprintf(w, "$(call dist-for-goals,%s,%s:%s)\n", 409 fmt.Fprintf(w, "$(call dist-for-goals,%s,%s:%s)\n", 517 func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) { [all …]
|
D | robolectric.go | 263 func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) { 269 r.writeTestRunner(w, name, "Run"+name+strconv.Itoa(i), shard) 273 fmt.Fprintln(w, "") 274 fmt.Fprintln(w, ".PHONY:", "Run"+name) 275 fmt.Fprintln(w, "Run"+name, ": \\") 277 fmt.Fprintln(w, " ", "Run"+name+strconv.Itoa(i), "\\") 279 fmt.Fprintln(w, "") 281 r.writeTestRunner(w, name, "Run"+name, r.tests) 289 func (r *robolectricTest) writeTestRunner(w io.Writer, module, name string, tests []string) { 290 fmt.Fprintln(w, "") [all …]
|
/build/soong/cmd/diff_target_files/ |
D | allow_list.go | 56 for _, w := range newAllowlists { 57 add(w.path, w.ignoreMatchingLines) 92 for _, w := range jsonAllowLists { 93 for _, p := range w.Paths { 96 ignoreMatchingLines: w.IgnoreMatchingLines, 107 for _, w := range allowLists { 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 allowLists { [all …]
|
/build/soong/cc/ |
D | proto_test.go | 60 if w := "--foobar_out="; !strings.Contains(cmd, w) { 61 t.Errorf("expected %q in %q", w, cmd) 66 if w := "--plugin=protoc-gen-foobar=" + foobarPath; !strings.Contains(cmd, w) { 67 t.Errorf("expected %q in %q", w, cmd)
|
/build/soong/ui/terminal/ |
D | status.go | 29 func NewStatusOutput(w io.Writer, statusFormat string, forceSimpleOutput, quietBuild bool) status.S… 32 if !forceSimpleOutput && isSmartTerminal(w) { 33 return NewSmartStatusOutput(w, formatter) 35 return NewSimpleStatusOutput(w, formatter)
|
D | util.go | 25 func isSmartTerminal(w io.Writer) bool { 26 if f, ok := w.(*os.File); ok { 35 } else if _, ok := w.(*fakeSmartTerminal); ok { 41 func termSize(w io.Writer) (width int, height int, ok bool) { 42 if f, ok := w.(*os.File); ok { 51 } else if f, ok := w.(*fakeSmartTerminal); ok {
|
/build/soong/finder/fs/ |
D | fs_test.go | 39 if g, w := stat.Name(), wantName; g != w { 40 t.Errorf("want name %q, got %q", w, g) 42 if g, w := stat.Mode(), wantMode; g != w { 43 t.Errorf("%s: want mode %q, got %q", wantName, w, g)
|
/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))
|
/build/make/common/ |
D | strings.mk | 22 …t Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst … 29 …bst q,Q,$(subst r,R,$(subst s,S,$(subst t,T,$(subst u,U,$(subst v,V,$(subst w,W,$(subst x,X,$(subs… 103 $(foreach w,$(subst $(space)$(_cpSEP),$(_cpSEP),$(strip \ 105 $(if $(findstring $(_cpSEP),$(w)),\ 106 $(eval _cpRET += $(_cpLHS))$(eval _cpLHS := $(w)),\ 107 $(eval _cpRET += $(_cpLHS)$(w))$(eval _cpLHS :=)))\ 130 $(strip $(foreach w,$(1), $(eval _first := $(word 1,$(subst $(2),$(space),$(w))))\ 131 $(if $(filter $(_upbfc_fc_set),$(_first)),,$(w)\
|