Home
last modified time | relevance | path

Searched refs:success_callback (Results 1 – 25 of 31) sorted by relevance

12

/external/libbrillo/brillo/streams/
Dstream.cc29 const base::Callback<void(size_t)>& success_callback, in ReadAsync() argument
39 auto callback = base::Bind(&Stream::IgnoreEOSCallback, success_callback); in ReadAsync()
48 const base::Closure& success_callback, in ReadAllAsync() argument
60 size_to_read, success_callback, error_callback); in ReadAllAsync()
104 const base::Callback<void(size_t)>& success_callback, in WriteAsync() argument
115 return WriteAsyncImpl(buffer, size_to_write, success_callback, error_callback, in WriteAsync()
121 const base::Closure& success_callback, in WriteAllAsync() argument
133 size_to_write, success_callback, error_callback); in WriteAllAsync()
177 bool Stream::FlushAsync(const base::Closure& success_callback, in FlushAsync() argument
182 success_callback, error_callback); in FlushAsync()
[all …]
Dstream.h206 const base::Callback<void(size_t)>& success_callback,
218 const base::Closure& success_callback,
292 const base::Callback<void(size_t)>& success_callback,
304 const base::Closure& success_callback,
356 virtual bool FlushAsync(const base::Closure& success_callback,
400 const base::Callback<void(size_t)>& success_callback,
415 const base::Callback<void(size_t, bool)>& success_callback,
425 const base::Callback<void(size_t, bool)>& success_callback,
434 const base::Callback<void(size_t, bool)>& success_callback,
449 const base::Callback<void(size_t)>& success_callback,
[all …]
Dtls_stream.cc85 const base::Closure& success_callback,
115 void DoHandshake(const base::Closure& success_callback,
117 void RetryHandshake(const base::Closure& success_callback,
347 const base::Closure& success_callback, in Init() argument
398 success_callback, in Init()
401 DoHandshake(success_callback, error_callback); in Init()
407 const base::Closure& success_callback, in RetryHandshake() argument
411 DoHandshake(success_callback, error_callback); in RetryHandshake()
415 const base::Closure& success_callback, in DoHandshake() argument
421 success_callback.Run(); in DoHandshake()
[all …]
Dstream_utils.cc29 CopyDataSuccessCallback success_callback; member
47 state->success_callback.Run(std::move(state->in_stream), in PerformWrite()
194 const CopyDataSuccessCallback& success_callback, in CopyData() argument
197 std::numeric_limits<uint64_t>::max(), 4096, success_callback, in CopyData()
205 const CopyDataSuccessCallback& success_callback, in CopyData() argument
213 state->success_callback = success_callback; in CopyData()
Dstream_test.cc121 auto success_callback = base::Bind( in TEST() local
139 EXPECT_TRUE(stream_mock.ReadAsync(buf, sizeof(buf), success_callback, in TEST()
148 EXPECT_FALSE(stream_mock.ReadAsync(buf, sizeof(buf), success_callback, in TEST()
169 auto success_callback = base::Bind([](bool* succeeded, size_t /* size */) { in TEST() local
183 EXPECT_TRUE(stream_mock.ReadAsync(buf, sizeof(buf), success_callback, in TEST()
194 EXPECT_FALSE(stream_mock.ReadAsync(buf, sizeof(buf), success_callback, in TEST()
209 auto success_callback = base::Bind([](bool* succeeded) { *succeeded = true; }, in TEST() local
224 EXPECT_TRUE(stream_mock.ReadAllAsync(buf, sizeof(buf), success_callback, in TEST()
258 auto success_callback = base::Bind([](bool* succeeded) { *succeeded = true; }, in TEST() local
275 EXPECT_TRUE(stream_mock.ReadAllAsync(buf, sizeof(buf), success_callback, in TEST()
[all …]
Dstream_utils.h94 const CopyDataSuccessCallback& success_callback,
108 const CopyDataSuccessCallback& success_callback,
Dtls_stream.h35 const base::Callback<void(StreamPtr)>& success_callback,
/external/libbrillo/brillo/http/
Dhttp_utils.cc35 const SuccessCallback& success_callback, in Get() argument
41 success_callback, in Get()
54 const SuccessCallback& success_callback, in Head() argument
60 success_callback, in Head()
79 const SuccessCallback& success_callback, in PostText() argument
87 success_callback, in PostText()
128 const SuccessCallback& success_callback, in SendRequest() argument
144 return request.GetResponse(success_callback, error_callback); in SendRequest()
154 const SuccessCallback& success_callback, in SendRequest() argument
162 success_callback, in SendRequest()
[all …]
Dhttp_utils.h88 const SuccessCallback& success_callback,
104 const SuccessCallback& success_callback,
115 const SuccessCallback& success_callback,
134 const SuccessCallback& success_callback,
151 const SuccessCallback& success_callback,
175 const SuccessCallback& success_callback,
190 const SuccessCallback& success_callback,
213 const SuccessCallback& success_callback,
235 const SuccessCallback& success_callback,
257 const SuccessCallback& success_callback,
[all …]
Dhttp_connection_fake.cc61 const SuccessCallback& success_callback, in FinishRequestAsync() argument
67 const SuccessCallback& success_callback, in FinishRequestAsync()
69 connection->FinishRequestAsyncHelper(success_callback, error_callback); in FinishRequestAsync()
74 success_callback, in FinishRequestAsync()
80 const SuccessCallback& success_callback, in FinishRequestAsyncHelper() argument
87 success_callback.Run(1, std::move(response)); in FinishRequestAsyncHelper()
Dhttp_connection_fake.h36 RequestID FinishRequestAsync(const SuccessCallback& success_callback,
47 void FinishRequestAsyncHelper(const SuccessCallback& success_callback,
Dhttp_request_test.cc159 auto success_callback = base::Bind( in TEST_F() local
179 [this, &read_data](const SuccessCallback& success_callback) { in TEST_F() argument
188 success_callback.Run(23, std::move(resp)); in TEST_F()
199 EXPECT_EQ(23, request.GetResponse(success_callback, {})); in TEST_F()
Dhttp_utils_test.cc71 auto success_callback = [](const std::vector<uint8_t>& custom_data, in TEST() local
89 base::Bind(success_callback, custom_data), in TEST()
161 auto success_callback = in TEST() local
174 base::Bind(success_callback), in TEST()
470 auto success_callback = in TEST() local
484 base::Bind(success_callback), in TEST()
Dhttp_transport_curl.cc93 SuccessCallback success_callback; member
229 const SuccessCallback& success_callback, in StartAsyncTransfer() argument
245 request_data->success_callback = success_callback; in StartAsyncTransfer()
493 base::Bind(request_data->success_callback, in OnTransferComplete()
Dhttp_connection.h70 virtual RequestID FinishRequestAsync(const SuccessCallback& success_callback,
Dhttp_connection_curl.cc172 const SuccessCallback& success_callback, in FinishRequestAsync() argument
175 return transport_->StartAsyncTransfer(this, success_callback, error_callback); in FinishRequestAsync()
Dhttp_connection_curl.h39 const SuccessCallback& success_callback,
Dhttp_transport.h89 const SuccessCallback& success_callback,
Dhttp_request.cc144 RequestID Request::GetResponse(const SuccessCallback& success_callback, in GetResponse() argument
153 connection_->FinishRequestAsync(success_callback, error_callback); in GetResponse()
/external/libbrillo/brillo/dbus/
Ddbus_method_invoker.h258 const base::Callback<void(OutArgs...)>& success_callback, in TranslateSuccessResponse() argument
261 auto callback = [&success_callback](const OutArgs&... params) { in TranslateSuccessResponse()
262 if (!success_callback.is_null()) { in TranslateSuccessResponse()
263 success_callback.Run(params...); in TranslateSuccessResponse()
290 const base::Callback<void(OutArgs...)>& success_callback, in CallMethodWithTimeout() argument
300 &TranslateSuccessResponse<OutArgs...>, success_callback, error_callback); in CallMethodWithTimeout()
312 const base::Callback<void(OutArgs...)>& success_callback, in CallMethod() argument
316 interface_name, method_name, success_callback, in CallMethod()
/external/zlib/google/
Dzip_reader.cc289 SuccessCallback success_callback, in ExtractCurrentEntryToFilePathAsync() argument
299 FROM_HERE, std::move(success_callback)); in ExtractCurrentEntryToFilePathAsync()
337 std::move(output_file), std::move(success_callback), in ExtractCurrentEntryToFilePathAsync()
408 SuccessCallback success_callback, in ExtractChunk() argument
420 std::move(success_callback).Run(); in ExtractChunk()
439 std::move(output_file), std::move(success_callback), in ExtractChunk()
Dzip_reader.h178 SuccessCallback success_callback,
217 SuccessCallback success_callback,
/external/angle/third_party/zlib/google/
Dzip_reader.cc289 SuccessCallback success_callback, in ExtractCurrentEntryToFilePathAsync() argument
299 FROM_HERE, std::move(success_callback)); in ExtractCurrentEntryToFilePathAsync()
337 std::move(output_file), std::move(success_callback), in ExtractCurrentEntryToFilePathAsync()
408 SuccessCallback success_callback, in ExtractChunk() argument
420 std::move(success_callback).Run(); in ExtractChunk()
439 std::move(output_file), std::move(success_callback), in ExtractChunk()
Dzip_reader.h178 SuccessCallback success_callback,
217 SuccessCallback success_callback,
/external/libchrome/device/bluetooth/
Dbluetooth_advertisement.h133 virtual void Unregister(const SuccessCallback& success_callback,

12