Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 83) sorted by relevance

1234

/build/soong/third_party/zip/
Dwriter_test.go69 buf := new(bytes.Buffer)
81 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
101 buf := new(bytes.Buffer)
116 r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
126 var buf bytes.Buffer
178 if !bytes.Equal(b, wt.Data) {
185 var buf bytes.Buffer
186 bigBuf := bytes.Repeat([]byte("a"), 1<<20)
Dandroid_test.go72 if !bytes.Equal(got, testcase.out) {
84 fromZipBytes := &bytes.Buffer{}
105 fromZipReader, err := NewReader(bytes.NewReader(fromZipBytes.Bytes()), int64(fromZipBytes.Len()))
110 toZipBytes := &bytes.Buffer{}
126 toZipReader, err := NewReader(bytes.NewReader(toZipBytes.Bytes()), int64(toZipBytes.Len()))
151 zipBytes := &bytes.Buffer{}
201 r := bytes.NewReader(buf)
Dexample_test.go19 buf := new(bytes.Buffer)
82 buf := new(bytes.Buffer)
Dreader_test.go408 var b bytes.Buffer
457 _, err := NewReader(bytes.NewReader(b), size)
468 _, err = NewReader(bytes.NewReader(b), size)
480 return bytes.NewReader(data), int64(len(data))
549 return bytes.NewReader(b), int64(len(b))
712 r, err := NewReader(bytes.NewReader(b), int64(len(b)))
725 return bytes.NewReader(b), int64(len(b))
767 z, err := NewReader(bytes.NewReader(data), int64(len(data)))
794 _, err := NewReader(bytes.NewReader(data), int64(len(data)))
809 z, err := NewReader(bytes.NewReader(data), int64(len(data)))
[all …]
/build/soong/symbol_inject/
Dsymbol_inject_test.go49 in := bytes.NewReader([]byte(s))
50 out := &bytes.Buffer{}
/build/soong/ui/logger/
Dlogger_test.go101 log := New(&bytes.Buffer{})
132 log := New(&bytes.Buffer{})
154 log := New(&bytes.Buffer{})
169 log := New(&bytes.Buffer{})
185 log := New(&bytes.Buffer{})
/build/soong/ui/terminal/
Dutil.go74 i := bytes.IndexByte(read, 0x1b)
91 i = bytes.IndexFunc(read, func(r rune) bool {
111 bytes.Buffer
/build/soong/cc/config/
Dx86_darwin_host.go146 bytes, err := exec.Command(xcrunTool, args...).Output()
152 return strings.TrimSpace(string(bytes))
166 bytes, err := exec.Command(xcrunTool, "--sdk", "macosx"+sdk, arg).Output()
168 return strings.TrimSpace(string(bytes))
/build/blueprint/parser/
Dmodify_test.go58 buf := new(bytes.Buffer)
59 patchlist.Apply(bytes.NewReader(in), buf)
/build/soong/cmd/path_interposer/
Dmain.go172 lines := bytes.Split(data, []byte("\n"))
181 fields := bytes.SplitN(line, []byte(" "), 2)
191 line = bytes.TrimLeft(fields[1], " ")
193 fields = bytes.SplitN(line, []byte(" "), 2)
206 Command: string(bytes.TrimLeft(fields[1], " ")),
/build/soong/cmd/dep_fixer/
Dmain.go53 deps, err := makedeps.Parse(arg, bytes.NewBuffer(append([]byte(nil), input...)))
69 if !bytes.Equal(firstInput, new) {
/build/soong/ui/tracer/
Dtracer.go60 buf bytes.Buffer
153 t.buf = bytes.Buffer{}
173 bytes, err := json.Marshal(event)
186 if _, err = t.w.Write(bytes); err != nil {
/build/soong/ui/build/
Dexec.go97 bytes, err := c.Cmd.Output()
99 return bytes, err
104 bytes, err := c.Cmd.CombinedOutput()
106 return bytes, err
Ddumpvars.go103 output := bytes.Buffer{}
170 b := &bytes.Buffer{}
/build/soong/cmd/zip2zip/
Dzip2zip_test.go421 inputBuf := &bytes.Buffer{}
422 outputBuf := &bytes.Buffer{}
434 inputReader, err := zip.NewReader(bytes.NewReader(inputBytes), int64(len(inputBytes)))
448 outputReader, err := zip.NewReader(bytes.NewReader(outputBytes), int64(len(outputBytes)))
/build/soong/cmd/run_with_timeout/
Drun_with_timeout_test.go79 stdout := &bytes.Buffer{}
80 stderr := &bytes.Buffer{}
/build/soong/cmd/diff_target_files/
Dallow_list_test.go25 buf := &bytes.Buffer{}
38 r, err := zip.NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
/build/soong/cmd/merge_zips/
Dmerge_zips_test.go250 out := &bytes.Buffer{}
271 if !bytes.Equal(want, out.Bytes()) {
281 b := &bytes.Buffer{}
311 r := bytes.NewReader(b)
322 r := bytes.NewReader(buf)
/build/make/tools/signtos/
DSignTos.java128 byte[] bytes = new byte[(int) file.length()]; in readPrivateKey()
129 input.read(bytes); in readPrivateKey()
132 PKCS8EncodedKeySpec spec = decryptPrivateKey(bytes, file); in readPrivateKey()
134 spec = new PKCS8EncodedKeySpec(bytes); in readPrivateKey()
/build/soong/cmd/extract_linker/
Dmain_test.go56 buf := bytes.Buffer{}
/build/blueprint/loadplugins/
Dloadplugins.go40 buf := &bytes.Buffer{}
/build/soong/androidmk/cmd/
Dandroidmk.go47 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b))
/build/soong/partner/androidmk/
Dandroidmk.go49 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b))
Dandroidmk_test.go63 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in))
/build/soong/zip/
Dzip_test.go448 args.Stderr = &bytes.Buffer{}
450 buf := &bytes.Buffer{}
470 br := bytes.NewReader(buf.Bytes())
561 args.Stderr = &bytes.Buffer{}
563 buf := &bytes.Buffer{}
569 br := bytes.NewReader(buf.Bytes())

1234