Searched refs:read_callback (Results 1 - 25 of 41) sorted by relevance

12

/external/chromium_org/device/hid/
H A Dhid_connection_unittest.cc52 const HidConnection::ReadCallback& read_callback() { return read_callback_; } function in class:device::__anon8011::TestCompletionCallback
145 TestCompletionCallback read_callback; local
146 conn->Read(read_callback.read_callback());
147 ASSERT_TRUE(read_callback.WaitForResult());
148 ASSERT_EQ(9UL, read_callback.size());
149 ASSERT_EQ(0, read_callback.buffer()->data()[0]);
151 ASSERT_EQ(i + j - 1, read_callback.buffer()->data()[j]);
/external/chromium_org/google_apis/gcm/engine/
H A Dfake_connection_factory.cc23 const ConnectionHandler::ProtoReceivedCallback& read_callback,
26 connection_handler_.reset(new FakeConnectionHandler(read_callback,
21 Initialize( const BuildLoginRequestCallback& request_builder, const ConnectionHandler::ProtoReceivedCallback& read_callback, const ConnectionHandler::ProtoSentCallback& write_callback) argument
H A Dfake_connection_handler.cc29 const ConnectionHandler::ProtoReceivedCallback& read_callback,
31 : read_callback_(read_callback),
28 FakeConnectionHandler( const ConnectionHandler::ProtoReceivedCallback& read_callback, const ConnectionHandler::ProtoSentCallback& write_callback) argument
H A Dfake_connection_factory.h25 const ConnectionHandler::ProtoReceivedCallback& read_callback,
H A Dfake_connection_handler.h20 const ConnectionHandler::ProtoReceivedCallback& read_callback,
H A Dconnection_factory_impl.h50 const ConnectionHandler::ProtoReceivedCallback& read_callback,
93 const ConnectionHandler::ProtoReceivedCallback& read_callback,
H A Dconnection_factory.h69 // |read_callback| will be invoked with the contents of any received protobuf
76 const ConnectionHandler::ProtoReceivedCallback& read_callback,
84 // the handshake, |read_callback| will be invoked with a valid
H A Dconnection_handler_impl.h21 // |read_callback| will be invoked with the contents of any received protobuf
30 const ProtoReceivedCallback& read_callback,
H A Dconnection_factory_impl.cc84 const ConnectionHandler::ProtoReceivedCallback& read_callback,
96 read_callback,
320 const ConnectionHandler::ProtoReceivedCallback& read_callback,
325 read_callback,
82 Initialize( const BuildLoginRequestCallback& request_builder, const ConnectionHandler::ProtoReceivedCallback& read_callback, const ConnectionHandler::ProtoSentCallback& write_callback) argument
318 CreateConnectionHandler( base::TimeDelta read_timeout, const ConnectionHandler::ProtoReceivedCallback& read_callback, const ConnectionHandler::ProtoSentCallback& write_callback, const ConnectionHandler::ConnectionChangedCallback& connection_callback) argument
/external/nanopb-c/examples/network_server/
H A Dcommon.c17 static bool read_callback(pb_istream_t *stream, uint8_t *buf, size_t count) function
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX};
/external/flac/libFLAC/include/private/
H A Dogg_helper.h40 FLAC__bool simple_ogg_page__get_at(FLAC__StreamEncoder *encoder, FLAC__uint64 position, ogg_page *page, FLAC__StreamEncoderSeekCallback seek_callback, FLAC__StreamEncoderReadCallback read_callback, void *client_data);
H A Dogg_decoder_aspect.h77 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data);
/external/flac/libFLAC/
H A Dogg_helper.c44 static FLAC__bool full_read_(FLAC__StreamEncoder *encoder, FLAC__byte *buffer, size_t bytes, FLAC__StreamEncoderReadCallback read_callback, void *client_data) argument
48 switch(read_callback(encoder, buffer, &bytes_read, client_data)) {
94 FLAC__bool simple_ogg_page__get_at(FLAC__StreamEncoder *encoder, FLAC__uint64 position, ogg_page *page, FLAC__StreamEncoderSeekCallback seek_callback, FLAC__StreamEncoderReadCallback read_callback, void *client_data) argument
123 if(!full_read_(encoder, page->header, OGG_HEADER_FIXED_PORTION_LEN, read_callback, client_data))
140 if(!full_read_(encoder, page->header + OGG_HEADER_FIXED_PORTION_LEN, page->header[26], read_callback, client_data))
164 if(!full_read_(encoder, page->body, page->body_len, read_callback, client_data))
H A Dogg_decoder_aspect.c105 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data) argument
222 switch(read_callback(decoder, (FLAC__byte*)oggbuf, &ogg_bytes_read, client_data)) {
/external/chromium_org/net/socket/
H A Dunix_domain_client_socket_posix_unittest.cc59 TestCompletionCallback read_callback; local
68 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback());
78 rv = read_callback.WaitForResult();
193 TestCompletionCallback read_callback; local
196 read_buffer.get(), kReadDataSize, read_callback.callback()));
271 TestCompletionCallback read_callback; local
274 read_buffer.get(), kReadDataSize, read_callback.callback()));
282 EXPECT_EQ(0 /* EOF */, read_callback.WaitForResult());
304 TestCompletionCallback read_callback; local
307 read_buffer.get(), kReadDataSize, read_callback
409 TestCompletionCallback read_callback; local
[all...]
H A Dunix_domain_server_socket_posix_unittest.cc108 TestCompletionCallback read_callback; local
109 rv = read_callback.GetResult(client_socket.Read(
110 read_buffer.get(), read_buffer_size, read_callback.callback()));
H A Dssl_server_socket_unittest.cc431 TestCompletionCallback read_callback; local
436 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback());
441 client_ret = read_callback.GetResult(client_ret);
447 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback());
449 client_ret = read_callback.GetResult(client_ret);
460 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback());
466 server_ret = read_callback.GetResult(server_ret);
474 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback());
476 server_ret = read_callback.GetResult(server_ret);
H A Dtcp_server_socket_unittest.cc235 TestCompletionCallback read_callback; local
237 read_buffer.get(), read_buffer->size(), read_callback.callback());
238 read_result = read_callback.GetResult(read_result);
H A Dtcp_socket_unittest.cc271 TestCompletionCallback read_callback; local
273 read_buffer.get(), read_buffer->size(), read_callback.callback());
274 read_result = read_callback.GetResult(read_result);
H A Dtcp_client_socket.cc251 CompletionCallback read_callback = base::Bind( local
253 int result = socket_->Read(buf, buf_len, read_callback);
/external/chromium_org/net/base/
H A Dupload_file_element_reader_unittest.cc85 TestCompletionCallback read_callback; local
88 wrapped_buffer.get(), buf.size(), read_callback.callback()));
89 EXPECT_EQ(static_cast<int>(buf.size()), read_callback.WaitForResult());
95 wrapped_buffer.get(), buf.size(), read_callback.callback()));
102 TestCompletionCallback read_callback; local
105 wrapped_buffer.get(), buf.size(), read_callback.callback()));
106 EXPECT_EQ(static_cast<int>(bytes_.size()), read_callback.WaitForResult());
196 TestCompletionCallback read_callback; local
199 reader_->Read(wrapped_buffer.get(), kLength, read_callback.callback()));
200 EXPECT_EQ(static_cast<int>(kLength), read_callback
[all...]
H A Dupload_data_stream_unittest.cc196 TestCompletionCallback read_callback; local
199 stream.Read(buf.get(), kTestBufferSize, read_callback.callback()));
200 ASSERT_LE(0, read_callback.WaitForResult()); // Not an error.
235 TestCompletionCallback read_callback; local
238 stream.Read(buf.get(), kTestBufferSize, read_callback.callback()));
239 int bytes_read = read_callback.WaitForResult();
312 TestCompletionCallback read_callback; local
314 stream.Read(buf.get(), kTestBufferSize, read_callback.callback()));
315 EXPECT_EQ(static_cast<int>(kTestDataSize * 2), read_callback.WaitForResult());
354 TestCompletionCallback read_callback; local
[all...]
/external/chromium_org/sync/api/attachments/
H A Dfake_attachment_store_unittest.cc29 AttachmentStore::ReadCallback read_callback; member in class:syncer::FakeAttachmentStoreTest
41 read_callback = base::Bind(&FakeAttachmentStoreTest::CopyResultAttachments,
112 store->Read(some_attachment_ids, read_callback);
137 store->Read(some_attachment_ids, read_callback);
168 store->Read(ids, read_callback);
198 store->Read(ids, read_callback);
216 store->Read(ids, read_callback);
242 store->Read(ids, read_callback);
/external/chromium_org/content/browser/fileapi/
H A Dupload_file_system_file_element_reader_unittest.cc129 net::TestCompletionCallback read_callback; local
131 reader_->Read(buf.get(), buf->size(), read_callback.callback()));
132 EXPECT_EQ(buf->size(), read_callback.WaitForResult());
136 EXPECT_EQ(0, reader_->Read(buf.get(), buf->size(), read_callback.callback()));
167 net::TestCompletionCallback read_callback; local
169 reader_->Read(buf.get(), buf->size(), read_callback.callback()));
170 EXPECT_EQ(static_cast<int>(file_data_.size()), read_callback.WaitForResult());
250 net::TestCompletionCallback read_callback; local
252 reader_->Read(buf.get(), buf->size(), read_callback.callback()));
253 EXPECT_EQ(kLength, read_callback
[all...]
/external/flac/include/FLAC/
H A Dstream_decoder.h1023 * \param read_callback See FLAC__StreamDecoderReadCallback. This
1074 FLAC__StreamDecoderReadCallback read_callback,
1104 * \param read_callback See FLAC__StreamDecoderReadCallback. This
1155 FLAC__StreamDecoderReadCallback read_callback,

Completed in 480 milliseconds

12