HomeSort by relevance Sort by last modified time
    Searched refs:readAll (Results 1 - 25 of 53) sorted by null

1 2 3

  /libcore/ojluni/src/main/java/sun/misc/
IOUtils.java 45 * @param readAll if true, an EOFException will be thrown if not enough
50 public static byte[] readFully(InputStream is, int length, boolean readAll)
67 if (readAll && length != Integer.MAX_VALUE) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
BEROctetStringParser.java 41 return new BEROctetString(Streams.readAll(getOctetStream()));
  /external/okhttp/okio/benchmarks/src/main/java/com/squareup/okio/benchmarks/
BufferPerformanceBench.java 138 buffers.receive(requestBytes).readAll(NullSink);
145 buffers.transmit(responseBytes).readAll(NullSink);
149 buffers.receive(requestBytes).readAll(NullSink);
150 buffers.transmit(responseBytes).readAll(NullSink);
278 writeChunked(received, bytes, maxChunkSize).readAll(process);
288 writeChunked(process, bytes, maxChunkSize).readAll(sent);
  /prebuilts/go/darwin-x86/src/io/ioutil/
ioutil.go 16 // readAll reads from r until an error or EOF and returns the data it read
18 func readAll(r io.Reader, capacity int64) (b []byte, err error) {
37 // ReadAll reads from r until an error or EOF and returns the data it read.
38 // A successful call returns err == nil, not err == EOF. Because ReadAll is
41 func ReadAll(r io.Reader) ([]byte, error) {
42 return readAll(r, bytes.MinRead)
65 // As initial capacity for readAll, use n + a little extra in case Size is zero,
66 // and to avoid another allocation after Read has filled the buffer. The readAll
70 return readAll(f, n+bytes.MinRead)
  /prebuilts/go/linux-x86/src/io/ioutil/
ioutil.go 16 // readAll reads from r until an error or EOF and returns the data it read
18 func readAll(r io.Reader, capacity int64) (b []byte, err error) {
37 // ReadAll reads from r until an error or EOF and returns the data it read.
38 // A successful call returns err == nil, not err == EOF. Because ReadAll is
41 func ReadAll(r io.Reader) ([]byte, error) {
42 return readAll(r, bytes.MinRead)
65 // As initial capacity for readAll, use n + a little extra in case Size is zero,
66 // and to avoid another allocation after Read has filled the buffer. The readAll
70 return readAll(f, n+bytes.MinRead)
  /cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
ProcStatsTest.java 92 static List<String> readAll(ParcelFileDescriptor pfd) {
124 final String result = concatResult(readAll(
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherInputStreamTest.java 126 byte[] bytes = readAll(in);
136 byte[] bytes = readAll(in);
148 byte[] bytes = readAll(in);
159 byte[] bytes = readAll(in);
167 byte[] bytes = readAll(in);
178 private byte[] readAll(InputStream in) throws IOException {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/
Streams.java 37 public static byte[] readAll(InputStream inStr)
  /external/okhttp/okio/okio/src/main/java/okio/
BufferedSource.java 139 long readAll(Sink sink) throws IOException;
RealBufferedSource.java 144 @Override public long readAll(Sink sink) throws IOException {
  /cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
ContactsContract_Wipe.java 97 static List<String> readAll(ParcelFileDescriptor pfd) {
132 final String result = concatResult(readAll(
  /external/oauth/core/src/main/java/net/oauth/
OAuthMessage.java 189 return readAll(body, getBodyEncoding());
337 public static String readAll(InputStream from, String encoding) throws IOException
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/
ShortcutManagerTest7.java 23 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.readAll;
73 return readAll(out);
  /frameworks/base/core/java/android/bluetooth/
BluetoothSocket.java 644 int ret = readAll(is, sig);
680 private int readAll(InputStream is, byte[] b) throws IOException {
689 Log.w(TAG, "readAll() looping, read partial size: " + (b.length - left) +
697 int ret = readAll(is, ibytes);
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
WebSocketReaderTest.java 258 body.source().readAll(new Buffer());
320 message.source().readAll(new Buffer());
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
CMSUtils.java 285 return Streams.readAll(in);
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
WebSocketRecorder.java 56 message.source().readAll(event.buffer);
  /external/okhttp/okio/okio/src/test/java/okio/
RealBufferedSourceTest.java 197 * We don't want readAll to buffer an unbounded amount of data. Instead it
212 assertEquals(Segment.SIZE * 3, bufferedSource.readAll(mockSink));
BufferedSourceTest.java 218 @Test public void readAll() throws IOException {
223 assertEquals(6, source.readAll(sink));
230 assertEquals(0, source.readAll(mockSink));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
CertificateFactory.java 215 // Was: pis = new ByteArrayInputStream(Streams.readAll(in));
338 pis = new ByteArrayInputStream(Streams.readAll(in));
  /frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
ShortcutManagerTestUtils.java 104 public static List<String> readAll(File file) throws FileNotFoundException {
105 return readAll(ParcelFileDescriptor.open(
109 public static List<String> readAll(ParcelFileDescriptor pfd) {
171 result = readAll(
    [all...]
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
JavaApiConverterTest.java 544 assertEquals("ResponseBody", readAll(javaCacheResponse.getBody()));
571 assertEquals("ResponseBody", readAll(javaCacheResponse.getBody()));
680 private String readAll(InputStream in) throws IOException {
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.6.0/
okio-1.6.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.8.0/
okio-1.8.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.9.0/
okio-1.9.0.jar 

Completed in 863 milliseconds

1 2 3