Home
last modified time | relevance | path

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

1234

/build/soong/cc/config/
Dx86_darwin_host.go93 bytes, err := exec.Command(xcodeselect, "--print-path").Output()
97 return strings.TrimSpace(string(bytes))
130 bytes, err := exec.Command(xcrun, args...).Output()
134 return strings.TrimSpace(string(bytes))
145 bytes, err := exec.Command(xcrun, "--sdk", "macosx"+selected, arg).Output()
149 return strings.TrimSpace(string(bytes))
153 bytes, err := exec.Command(xcrun, "--sdk", "macosx"+sdk, arg).Output()
155 return strings.TrimSpace(string(bytes))
/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)
Dexample_test.go19 buf := new(bytes.Buffer)
82 buf := new(bytes.Buffer)
Dandroid_test.go72 if !bytes.Equal(got, testcase.out) {
/build/kati/
Dstrutil.go140 i := bytes.IndexByte(pat, '%')
142 return bytes.Equal(pat, str)
144 return bytes.HasPrefix(str, pat[:i]) && bytes.HasSuffix(str, pat[i+1:])
179 i := bytes.IndexByte(pat, '%')
181 if bytes.Equal(str, pat) {
189 trimed = bytes.TrimPrefix(in, pat[:i])
190 if bytes.Equal(trimed, in) {
196 trimed = bytes.TrimSuffix(in, pat[i+1:])
197 if bytes.Equal(trimed, in) {
202 i = bytes.IndexByte(repl, '%')
Dexpr.go346 if term != nil && bytes.IndexByte(term, ch) >= 0 {
360 if bytes.IndexByte(term, in[i+1]) >= 0 {
381 if i := bytes.IndexByte(term, cp); i >= 0 {
394 i := bytes.IndexByte(term, 0)
532 if bytes.IndexByte(term, in[i]) >= 0 {
550 b := bytes.TrimSpace([]byte(v))
598 i := bytes.Index(b, []byte{'\\', '\n'})
602 var buf bytes.Buffer
604 buf.Write(bytes.TrimLeft(b[i+2:], " \t"))
/build/soong/ui/build/
Dconfig_test.go31 Logger: logger.New(&bytes.Buffer{}),
32 …Writer: terminal.NewWriter(terminal.NewCustomStdio(&bytes.Buffer{}, &bytes.Buffer{}, &bytes.Buffe…
Dexec.go73 bytes, err := c.Cmd.Output()
74 return bytes, err
79 bytes, err := c.Cmd.CombinedOutput()
80 return bytes, err
/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/blueprint/parser/
Dmodify_test.go58 buf := new(bytes.Buffer)
59 patchlist.Apply(bytes.NewReader(in), buf)
/build/soong/cmd/path_interposer/
Dmain.go181 lines := bytes.Split(data, []byte("\n"))
190 fields := bytes.SplitN(line, []byte(" "), 2)
200 line = bytes.TrimLeft(fields[1], " ")
202 fields = bytes.SplitN(line, []byte(" "), 2)
215 Command: string(bytes.TrimLeft(fields[1], " ")),
/build/soong/cmd/dep_fixer/
Dmain.go51 deps, err := Parse(arg, bytes.NewBuffer(append([]byte(nil), input...)))
67 if !bytes.Equal(firstInput, new) {
/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/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/terminal/
Dutil.go67 i := bytes.IndexByte(read, 0x1b)
84 i = bytes.IndexFunc(read, func(r rune) bool {
/build/make/tools/
Ddump-package-stats45 These fields are presented as <uncompressed bytes>/<compressed bytes>:
/build/soong/cmd/merge_zips/
Dmerge_zips_test.go221 out := &bytes.Buffer{}
242 if !bytes.Equal(want, out.Bytes()) {
252 b := &bytes.Buffer{}
282 r := bytes.NewReader(b)
293 r := bytes.NewReader(buf)
/build/make/tools/droiddoc/templates-ndk/
Dsdkpage.cs282 <td><?cs var:sdk.win_installer_bytes ?> bytes</td>
291 <td><?cs var:sdk.win_bytes ?> bytes</td>
301 <td><?cs var:sdk.mac_bytes ?> bytes</td>
311 <td><?cs var:sdk.linux_bytes ?> bytes</td>
338 <td><?cs var:studio.win_bundle_exe_bytes ?> bytes</td>
349 <td><?cs var:studio.win_notools_exe_bytes ?> bytes</td>
360 <td><?cs var:studio.win_bundle_bytes ?> bytes</td>
371 <td><?cs var:studio.mac_bundle_bytes ?> bytes</td>
382 <td><?cs var:studio.linux_bundle_bytes ?> bytes</td>
/build/soong/cmd/diff_target_files/
Dwhitelist_test.go25 buf := &bytes.Buffer{}
38 r, err := zip.NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
/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/zip/
Dzip.go60 *bytes.Reader
228 func ReadRespFile(bytes []byte) []string {
234 for _, c := range string(bytes) {
375 buf := &bytes.Buffer{}
687 reader := &byteReaderCloser{bytes.NewReader(buf), ioutil.NopCloser(nil)}
798 func (z *ZipWriter) compressBlock(r io.Reader, dict []byte, last bool) (*bytes.Buffer, error) {
799 buf := new(bytes.Buffer)
883 futureReader <- bytes.NewReader(buf)
892 futureReader <- bytes.NewReader(buf)
975 futureReader <- bytes.NewBufferString(dest)
/build/soong/cmd/extract_linker/
Dmain_test.go56 buf := bytes.Buffer{}
/build/kati/make-c/
Dmain.go37 if bytes.HasPrefix(s.Bytes(), []byte("echo ")) {
/build/blueprint/loadplugins/
Dloadplugins.go40 buf := &bytes.Buffer{}

1234