Searched refs:sink (Results 1 - 25 of 168) sorted by relevance

1234567

/external/compiler-rt/test/asan/TestCases/
H A Dcoverage-levels.cc20 volatile int sink; variable
23 sink = 0;
H A Dcoverage-tracing.cc30 volatile int sink; variable
31 __attribute__((noinline)) void foo() { sink++; }
32 __attribute__((noinline)) void bar() { sink++; }
/external/llvm/test/DebugInfo/Inputs/
H A Ddwarfdump-type-units.cc3 void sink(void*);
6 sink(&f);
8 sink(&b);
/external/compiler-rt/test/msan/
H A Dcoverage-levels.cc13 volatile int sink; variable
20 sink = 0;
/external/compiler-rt/test/ubsan/TestCases/Misc/Linux/
H A Dcoverage-levels.cc17 volatile int sink; variable
/external/okhttp/okio/okio/src/test/java/okio/
H A DBufferedSinkTest.java75 private BufferedSink sink; field in class:BufferedSinkTest
79 sink = factory.create(data);
83 sink.writeUtf8("");
84 sink.flush();
89 sink.writeByte(0xab);
90 sink.writeByte(0xcd);
91 sink.flush();
96 sink.writeUtf8(repeat('a', Segment.SIZE - 1));
97 sink.writeByte(0x20);
98 sink
[all...]
H A DOkioTest.java38 BufferedSink sink = Okio.buffer(Okio.sink(file));
39 sink.writeUtf8("Hello, java.io file!");
40 sink.close();
52 BufferedSink sink = Okio.buffer(Okio.appendingSink(file));
53 sink.writeUtf8("Hello, ");
54 sink.close();
58 sink = Okio.buffer(Okio.appendingSink(file));
59 sink.writeUtf8("java.io file!");
60 sink
[all...]
H A DRealBufferedSinkTest.java32 RealBufferedSink sink = new RealBufferedSink(new Buffer());
33 OutputStream out = sink.outputStream();
36 sink.writeUtf8("Hi!");
44 Buffer sink = new Buffer();
45 BufferedSink bufferedSink = new RealBufferedSink(sink);
47 assertEquals(0, sink.size());
49 assertEquals(Segment.SIZE, sink.size());
54 Buffer sink = new Buffer();
55 BufferedSink bufferedSink = new RealBufferedSink(sink);
57 assertEquals(Segment.SIZE * 3, sink
[all...]
H A DBufferedSourceTest.java44 result.sink = buffer;
58 result.sink = buffer;
72 result.sink = buffer;
74 @Override public long read(Buffer sink, long byteCount) throws IOException {
75 return super.read(sink, Math.min(byteCount, 1L));
91 BufferedSink sink; field in class:BufferedSourceTest.Pipe
109 private BufferedSink sink; field in class:BufferedSourceTest
114 sink = pipe.sink;
119 sink
[all...]
/external/guava/guava-tests/test/com/google/common/hash/
H A DAbstractStreamingHasherTest.java45 Sink sink = new Sink(4); // byte order insignificant here
47 sink.putByte((byte) 1);
48 sink.putBytes(new byte[] { 2, 3, 4, 5, 6 });
49 sink.putByte((byte) 7);
50 sink.putBytes(new byte[] {});
51 sink.putBytes(new byte[] { 8 });
52 sink.hash();
53 sink.assertInvariants(8);
54 sink.assertBytes(expected);
58 Sink sink
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DCharSinkTest.java40 private TestCharSink sink; field in class:CharSinkTest
44 sink = new TestCharSink();
48 Writer writer = sink.openBufferedStream();
49 assertTrue(sink.wasStreamOpened());
50 assertFalse(sink.wasStreamClosed());
55 assertTrue(sink.wasStreamClosed());
56 assertEquals(STRING, sink.getString());
60 assertEquals("", sink.getString());
61 sink.write(STRING);
63 assertTrue(sink
[all...]
H A DByteSinkTest.java39 private TestByteSink sink; field in class:ByteSinkTest
43 sink = new TestByteSink();
47 OutputStream out = sink.openBufferedStream();
48 assertTrue(sink.wasStreamOpened());
49 assertFalse(sink.wasStreamClosed());
54 assertTrue(sink.wasStreamClosed());
55 assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
59 assertArrayEquals(new byte[0], sink.getBytes());
60 sink.write(bytes);
62 assertTrue(sink
[all...]
/external/okhttp/okio/okio/src/main/java/okio/
H A DSegment.java133 /** Moves {@code byteCount} bytes from this segment to {@code sink}. */
134 public void writeTo(Segment sink, int byteCount) { argument
135 if (!sink.owner) throw new IllegalArgumentException();
136 if (sink.limit + byteCount > SIZE) {
137 // We can't fit byteCount bytes at the sink's current position. Shift sink first.
138 if (sink.shared) throw new IllegalArgumentException();
139 if (sink.limit + byteCount - sink.pos > SIZE) throw new IllegalArgumentException();
140 System.arraycopy(sink
[all...]
H A DDeflaterSink.java24 * A sink that uses <a href="http://tools.ietf.org/html/rfc1951">DEFLATE</a> to
38 private final BufferedSink sink; field in class:DeflaterSink
42 public DeflaterSink(Sink sink, Deflater deflater) { argument
43 this(Okio.buffer(sink), deflater);
51 DeflaterSink(BufferedSink sink, Deflater deflater) { argument
52 if (sink == null) throw new IllegalArgumentException("source == null");
54 this.sink = sink;
67 // Deflate those bytes into sink.
86 Buffer buffer = sink
[all...]
H A DSource.java65 * them to {@code sink}. Returns the number of bytes read, or -1 if this
68 long read(Buffer sink, long byteCount) throws IOException; argument
H A DGzipSink.java25 * A sink that uses <a href="http://www.ietf.org/rfc/rfc1952.txt">GZIP</a> to
26 * compress written data to another sink.
40 private final BufferedSink sink; field in class:GzipSink
46 * The deflater sink takes care of moving data between decompressed source and
47 * compressed sink buffers.
56 public GzipSink(Sink sink) { argument
57 if (sink == null) throw new IllegalArgumentException("sink == null");
59 this.sink = Okio.buffer(sink);
[all...]
H A DBufferedSource.java110 * Removes up to {@code sink.length} bytes from this and copies them into {@code sink}.
113 int read(byte[] sink) throws IOException; argument
116 * Removes exactly {@code sink.length} bytes from this and copies them into {@code sink}.
119 void readFully(byte[] sink) throws IOException; argument
122 * Removes up to {@code byteCount} bytes from this and copies them into {@code sink} at
125 int read(byte[] sink, int offset, int byteCount) throws IOException; argument
129 * {@code sink}. Throws an {@link java.io.EOFException} if the requested
132 void readFully(Buffer sink, lon argument
139 readAll(Sink sink) argument
[all...]
H A DForwardingSource.java34 @Override public long read(Buffer sink, long byteCount) throws IOException { argument
35 return delegate.read(sink, byteCount);
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
H A DWebSocketWriter.java53 private final BufferedSink sink; field in class:WebSocketWriter
64 public WebSocketWriter(boolean isClient, BufferedSink sink, Random random) { argument
65 if (sink == null) throw new NullPointerException("sink == null");
68 this.sink = sink;
78 synchronized (sink) {
85 synchronized (sink) {
111 synchronized (sink) {
130 sink
[all...]
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dhard_rss_limit_mb_test.cc24 volatile char *sink[kNumAllocs]; variable
33 sink[i] = x;
H A Dsanitizer_set_death_callback_test.cc18 volatile char *sink; variable
33 sink = new char[100]; // trigger lsan report.
48 sink = 0;
/external/compiler-rt/test/asan/TestCases/Android/
H A Dcoverage-android.cc122 volatile int sink; variable
131 sink = 0;
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
H A DSpdy3.java102 @Override public FrameWriter newWriter(BufferedSink sink, boolean client) { argument
103 return new Writer(sink, client);
288 private final BufferedSink sink; field in class:Spdy3.Writer
294 Writer(BufferedSink sink, boolean client) { argument
295 this.sink = sink;
320 sink.flush();
333 sink.writeInt(0x80000000 | (VERSION & 0x7fff) << 16 | type & 0xffff);
334 sink.writeInt((flags & 0xff) << 24 | length & 0xffffff);
335 sink
[all...]
/external/compiler-rt/test/tsan/
H A Dstack_sync_reuse.cc22 long sink; variable
50 sink = __atomic_load_n(&s, __ATOMIC_ACQUIRE);
60 if (sink != 0)
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DMultipartBuilder.java224 * Either writes this request to {@code sink} or measures its content length. We have one method
229 private long writeOrCountBytes(BufferedSink sink, boolean countBytes) throws IOException { argument
234 sink = byteCountBuffer = new Buffer();
241 sink.write(DASHDASH);
242 sink.write(boundary);
243 sink.write(CRLF);
247 sink.writeUtf8(headers.name(h))
256 sink.writeUtf8("Content-Type: ")
263 sink.writeUtf8("Content-Length: ")
272 sink
296 writeTo(BufferedSink sink) argument
[all...]

Completed in 8694 milliseconds

1234567