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

1 2 3

  /external/guava/guava/src/com/google/common/hash/
Sink.java 28 public interface Sink {
30 * Puts a byte into this sink.
35 Sink putByte(byte b);
38 * Puts an array of bytes into this sink.
43 Sink putBytes(byte[] bytes);
46 * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written,
56 Sink putBytes(byte[] bytes, int off, int len);
59 * Puts a short into this sink.
61 Sink putShort(short s);
64 * Puts an int into this sink
    [all...]
Funnel.java 20 * An object which can send data from an object of type {@code T} into a {@code Sink}.
28 * Sends a stream of data from the {@code from} object into the sink {@code into}. There
32 void funnel(T from, Sink into);
Funnels.java 39 public void funnel(byte[] from, Sink into) {
58 public void funnel(CharSequence from, Sink into) {
Hasher.java 22 * A {@link Sink} that can compute a hash code after reading the input. Each hasher should
30 public interface Hasher extends Sink {
  /external/chromium_org/third_party/libjingle/source/talk/media/base/
audiorenderer.h 36 class Sink {
49 virtual ~Sink() {}
52 // Sets a sink to the AudioRenderer. There can be only one sink connected
54 virtual void SetSink(Sink* sink) {}
61 // AudioRenderer::Sink interface.
67 // AudioRenderer::Sink interface.
  /external/okhttp/okio/src/main/java/okio/
Sink.java 27 * <p>Most application code shouldn't operate on a sink directly, but rather
29 * {@link Okio#buffer(Sink)} to wrap any sink with a buffer.
42 * <p>Sink is also easier to layer: there is no {@link
47 * Use {@link Okio#sink} to adapt an {@code OutputStream} to a sink. Use {@link
48 * BufferedSink#outputStream} to adapt a sink to an {@code OutputStream}.
50 public interface Sink extends Closeable {
58 * Sets the deadline for all operations on this sink.
59 * @return this sink
    [all...]
DeflaterSink.java 24 * A sink that uses <a href="http://tools.ietf.org/html/rfc1951">DEFLATE</a> to
37 public final class DeflaterSink implements Sink {
38 private final BufferedSink sink; field in class:DeflaterSink
42 public DeflaterSink(Sink sink, Deflater deflater) {
43 this.sink = Okio.buffer(sink);
56 // Deflate those bytes into sink.
72 OkBuffer buffer = sink.buffer();
87 sink.emitCompleteSegments()
    [all...]
BufferedSink.java 22 * A sink that keeps a buffer internally so that callers can do small writes
25 public interface BufferedSink extends Sink {
26 /** Returns this sink's internal buffer. */
33 * sink.
43 /** Encodes {@code string} in UTF-8 and writes it to this sink. */
46 /** Writes a byte to this sink. */
49 /** Writes a big-endian short to this sink using two bytes. */
52 /** Writes a little-endian short to this sink using two bytes. */
55 /** Writes a big-endian int to this sink using four bytes. */
58 /** Writes a little-endian int to this sink using four bytes. *
    [all...]
Okio.java 32 public static BufferedSink buffer(Sink sink) {
33 return new RealBufferedSink(sink);
36 /** Copies bytes from {@code source} to {@code sink}. */
37 public static void copy(OkBuffer source, long offset, long byteCount, OutputStream sink)
52 sink.write(s.data, pos, toWrite);
58 /** Returns a sink that writes to {@code out}. */
59 public static Sink sink(final OutputStream out) { method in class:Okio
60 return new Sink() {
    [all...]
RealBufferedSink.java 23 public final Sink sink; field in class:RealBufferedSink
26 public RealBufferedSink(Sink sink, OkBuffer buffer) {
27 if (sink == null) throw new IllegalArgumentException("sink == null");
29 this.sink = sink;
32 public RealBufferedSink(Sink sink) {
    [all...]
  /external/guava/guava-tests/test/com/google/common/hash/
AbstractStreamingHasherTest.java 27 /** Test we get the HashCode that is created by the sink. Later we ignore the result */
29 Sink sink = new Sink(4); local
30 assertEquals(0xDeadBeef, sink.makeHash().asInt());
34 Sink sink = new Sink(4); // byte order insignificant here local
36 sink.putByte((byte) 1);
37 sink.putBytes(new byte[] { 2, 3, 4, 5, 6 })
47 Sink sink = new Sink(4); local
55 Sink sink = new Sink(4); local
63 Sink sink = new Sink(8); local
71 Sink sink = new Sink(4); local
79 Sink sink = new Sink(4); local
87 Sink sink = new Sink(8); local
95 Sink sink = new Sink(4); local
    [all...]
HashTestUtils.java 79 @Override public void funnel(Object object, Sink byteSink) {
86 @Override void performAction(Random random, Iterable<? extends Sink> sinks) {
88 for (Sink sink : sinks) {
89 sink.putBoolean(value);
94 @Override void performAction(Random random, Iterable<? extends Sink> sinks) {
96 for (Sink sink : sinks) {
97 sink.putByte((byte) value);
102 @Override void performAction(Random random, Iterable<? extends Sink> sinks)
    [all...]
FunnelsTest.java 20 Sink byteSink = EasyMock.createMock(Sink.class);
37 Sink byteSink = EasyMock.createMock(Sink.class);
52 Sink byteSink = new AbstractStreamingHasher(4, 4) {
  /external/chromium_org/mojo/public/cpp/bindings/
callback.h 38 template <typename Sink>
39 Callback(const Sink& sink) : sink_(new Adapter<Sink>(sink)) {}
47 template <typename Sink>
49 explicit Adapter(const Sink& sink) : sink(sink) {}
53 Sink sink; member in struct:mojo::Callback::Adapter
95 Sink sink; member in struct:mojo::Callback::Adapter
142 Sink sink; member in struct:mojo::Callback::Adapter
194 Sink sink; member in struct:mojo::Callback::Adapter
251 Sink sink; member in struct:mojo::Callback::Adapter
313 Sink sink; member in struct:mojo::Callback::Adapter
381 Sink sink; member in struct:mojo::Callback::Adapter
454 Sink sink; member in struct:mojo::Callback::Adapter
    [all...]
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/
doxia-sink-api-1.0-alpha-7.jar 
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
Transport.java 23 import okio.Sink;
50 Sink createRequestBody(Request request) throws IOException;
RetryableSink.java 24 import okio.Sink;
33 final class RetryableSink implements Sink {
67 @Override public Sink deadline(Deadline deadline) {
HttpTransport.java 23 import okio.Sink;
35 @Override public Sink createRequestBody(Request request) throws IOException {
HttpConnection.java 36 import okio.Sink;
48 * <li>Open a sink to write the request body. Either {@link
78 private final BufferedSink sink; field in class:HttpConnection
89 this.sink = Okio.buffer(Okio.sink(socket.getOutputStream()));
126 sink.flush();
157 sink.writeUtf8(requestLine).writeUtf8("\r\n");
159 sink.writeUtf8(headers.name(i))
164 sink.writeUtf8("\r\n");
221 public Sink newChunkedSink()
    [all...]
  /frameworks/base/location/lib/java/com/android/location/provider/
ActivityRecognitionProvider.java 34 private final HashSet<Sink> mSinkSet = new HashSet<Sink>();
55 public interface Sink {
74 public void registerSink(Sink sink) {
75 Preconditions.checkNotNull(sink);
77 mSinkSet.add(sink);
83 public void unregisterSink(Sink sink) {
84 Preconditions.checkNotNull(sink);
    [all...]
  /external/chromium_org/content/renderer/media/
webrtc_audio_device_impl.h 238 // WebRtcPlayoutDataSource::Sink.
241 class Sink {
249 // Callback to notify the sink that the source has changed.
254 virtual ~Sink() {}
257 // Adds/Removes the sink of WebRtcAudioRendererSource to the ADM.
260 virtual void AddPlayoutSink(Sink* sink) = 0;
261 virtual void RemovePlayoutSink(Sink* sink) = 0;
358 typedef std::list<WebRtcPlayoutDataSource::Sink*> PlayoutDataSinkList
    [all...]
  /external/okhttp/okio/src/test/java/okio/
MockSink.java 28 /** A scriptable sink. Like Mockito, but worse and requiring less configuration. */
29 class MockSink implements Sink {
61 @Override public Sink deadline(Deadline deadline) {
  /external/icu/icu4c/source/i18n/
collationruleparser.h 69 class U_I18N_API Sink : public UObject {
71 virtual ~Sink();
103 * The Sink must be set before parsing.
110 * Sets the pointer to a Sink object.
113 void setSink(Sink *sinkAlias) {
114 sink = sinkAlias;
186 Sink *sink; member in class:CollationRuleParser
  /external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
mediastreamhandler.h 71 // LocalAudioSinkAdapter receives data callback as a sink to the local
72 // AudioTrack, and passes the data to the sink of AudioRenderer.
86 virtual void SetSink(cricket::AudioRenderer::Sink* sink) OVERRIDE;
88 cricket::AudioRenderer::Sink* sink_;
  /external/llvm/lib/Transforms/Scalar/
Android.mk 37 Sink.cpp \

Completed in 387 milliseconds

1 2 3