Searched refs:bytes (Results 1 – 25 of 83) sorted by relevance
1234
/build/soong/third_party/zip/ |
D | writer_test.go | 69 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)
|
D | android_test.go | 72 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)
|
D | example_test.go | 19 buf := new(bytes.Buffer) 82 buf := new(bytes.Buffer)
|
D | reader_test.go | 408 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/ |
D | symbol_inject_test.go | 49 in := bytes.NewReader([]byte(s)) 50 out := &bytes.Buffer{}
|
/build/soong/ui/logger/ |
D | logger_test.go | 101 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/ |
D | util.go | 74 i := bytes.IndexByte(read, 0x1b) 91 i = bytes.IndexFunc(read, func(r rune) bool { 111 bytes.Buffer
|
/build/soong/cc/config/ |
D | x86_darwin_host.go | 146 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/ |
D | modify_test.go | 58 buf := new(bytes.Buffer) 59 patchlist.Apply(bytes.NewReader(in), buf)
|
/build/soong/cmd/path_interposer/ |
D | main.go | 172 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/ |
D | main.go | 53 deps, err := makedeps.Parse(arg, bytes.NewBuffer(append([]byte(nil), input...))) 69 if !bytes.Equal(firstInput, new) {
|
/build/soong/ui/tracer/ |
D | tracer.go | 60 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/ |
D | exec.go | 97 bytes, err := c.Cmd.Output() 99 return bytes, err 104 bytes, err := c.Cmd.CombinedOutput() 106 return bytes, err
|
D | dumpvars.go | 103 output := bytes.Buffer{} 170 b := &bytes.Buffer{}
|
/build/soong/cmd/zip2zip/ |
D | zip2zip_test.go | 421 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/ |
D | run_with_timeout_test.go | 79 stdout := &bytes.Buffer{} 80 stderr := &bytes.Buffer{}
|
/build/soong/cmd/diff_target_files/ |
D | allow_list_test.go | 25 buf := &bytes.Buffer{} 38 r, err := zip.NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
|
/build/soong/cmd/merge_zips/ |
D | merge_zips_test.go | 250 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/ |
D | SignTos.java | 128 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/ |
D | main_test.go | 56 buf := bytes.Buffer{}
|
/build/blueprint/loadplugins/ |
D | loadplugins.go | 40 buf := &bytes.Buffer{}
|
/build/soong/androidmk/cmd/ |
D | androidmk.go | 47 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b))
|
/build/soong/partner/androidmk/ |
D | androidmk.go | 49 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b))
|
D | androidmk_test.go | 63 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in))
|
/build/soong/zip/ |
D | zip_test.go | 448 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