/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 | 27 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);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.java | 113 byte[] bytes = readAll(in); 123 byte[] bytes = readAll(in); 135 byte[] bytes = readAll(in); 146 byte[] bytes = readAll(in); 154 byte[] bytes = readAll(in); 165 private byte[] readAll(InputStream in) throws IOException {
|
/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)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
Streams.java | 37 public static byte[] readAll(InputStream inStr)
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
RecordingCallback.java | 41 body.source().readAll(buffer);
|
/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 {
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
AutobahnTester.java | 80 payload.readAll(buffer);
|
WebSocketRecorder.java | 56 source.readAll(message.buffer);
|
/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 | 641 int ret = readAll(is, sig); 677 private int readAll(InputStream is, byte[] b) throws IOException { 686 Log.w(TAG, "readAll() looping, read partial size: " + (b.length - left) + 694 int ret = readAll(is, ibytes);
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/ |
WebSocketReaderTest.java | 255 payload.readAll(new Buffer()); 317 payload.readAll(new Buffer());
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSUtils.java | 285 return Streams.readAll(in);
|
/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));
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
ShortcutManagerTestUtils.java | 100 public static List<String> readAll(File file) throws FileNotFoundException { 101 return readAll(ParcelFileDescriptor.open( 105 public static List<String> readAll(ParcelFileDescriptor pfd) { 167 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 | |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/ |
PerformanceResults.java | 469 public String[] readAll(String buildName, String[][] configs, String pattern, File dataDir, int threshold, IProgressMonitor monitor) {
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
GenerateResults.java | [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
Http2Test.java | 412 zipped.readAll(frame);
|