Home
last modified time | relevance | path

Searched refs:success_callback (Results 1 – 25 of 26) 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.cc79 const base::Closure& success_callback,
109 void DoHandshake(const base::Closure& success_callback,
111 void RetryHandshake(const base::Closure& success_callback,
341 const base::Closure& success_callback, in Init() argument
392 success_callback, in Init()
395 DoHandshake(success_callback, error_callback); in Init()
401 const base::Closure& success_callback, in RetryHandshake() argument
405 DoHandshake(success_callback, error_callback); in RetryHandshake()
409 const base::Closure& success_callback, in DoHandshake() argument
415 success_callback.Run(); in DoHandshake()
[all …]
Dstream_utils.cc25 CopyDataSuccessCallback success_callback; member
43 state->success_callback.Run(std::move(state->in_stream), in PerformWrite()
190 const CopyDataSuccessCallback& success_callback, in CopyData() argument
193 std::numeric_limits<uint64_t>::max(), 4096, success_callback, in CopyData()
201 const CopyDataSuccessCallback& success_callback, in CopyData() argument
209 state->success_callback = success_callback; in CopyData()
Dstream_unittest.cc103 auto success_callback = [](size_t* read_size, bool* succeeded,size_t size) { in TEST() local
125 base::Bind(success_callback, in TEST()
140 base::Bind(success_callback, in TEST()
164 auto success_callback = [](bool* succeeded, size_t /* size */) { in TEST() local
183 base::Bind(success_callback, base::Unretained(&succeeded)), in TEST()
198 base::Bind(success_callback, base::Unretained(&succeeded)), in TEST()
214 auto success_callback = [](bool* succeeded) { *succeeded = true; }; in TEST() local
233 base::Bind(success_callback, base::Unretained(&succeeded)), in TEST()
268 auto success_callback = [](bool* succeeded) { *succeeded = true; }; in TEST() local
287 base::Bind(success_callback, base::Unretained(&succeeded)), 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,
Dfile_stream_unittest.cc374 auto success_callback = [](size_t* read_size, size_t size) { in TEST_F() local
389 base::Bind(success_callback, base::Unretained(&read_size)), in TEST_F()
519 auto success_callback = [](size_t* write_size, size_t size) { in TEST_F() local
534 base::Bind(success_callback, base::Unretained(&write_size)), in TEST_F()
1048 auto success_callback = [](bool* succeeded, char* buffer, size_t size) { in TEST_F() local
1076 base::Bind(success_callback, in TEST_F()
1109 auto success_callback = [](bool* succeeded, in TEST_F() local
1128 base::Bind(success_callback, base::Unretained(&succeeded), data, fds[0]), in TEST_F()
/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.h87 const SuccessCallback& success_callback,
103 const SuccessCallback& success_callback,
114 const SuccessCallback& success_callback,
133 const SuccessCallback& success_callback,
150 const SuccessCallback& success_callback,
174 const SuccessCallback& success_callback,
189 const SuccessCallback& success_callback,
212 const SuccessCallback& success_callback,
234 const SuccessCallback& success_callback,
256 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_request_unittest.cc159 auto success_callback = [](decltype(this) test, in TEST_F() local
181 [this, &read_data](const SuccessCallback& success_callback) { in TEST_F() argument
190 success_callback.Run(23, std::move(resp)); in TEST_F()
204 base::Bind(success_callback, base::Unretained(this), resp_data), {})); in TEST_F()
Dhttp_connection_fake.h34 RequestID FinishRequestAsync(const SuccessCallback& success_callback,
45 void FinishRequestAsyncHelper(const SuccessCallback& success_callback,
Dhttp_transport_curl.cc91 SuccessCallback success_callback; member
210 const SuccessCallback& success_callback, in StartAsyncTransfer() argument
226 request_data->success_callback = success_callback; in StartAsyncTransfer()
464 base::Bind(request_data->success_callback, in OnTransferComplete()
Dhttp_utils_unittest.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_connection.h70 virtual RequestID FinishRequestAsync(const SuccessCallback& success_callback,
Dhttp_connection_curl.cc170 const SuccessCallback& success_callback, in FinishRequestAsync() argument
173 return transport_->StartAsyncTransfer(this, success_callback, error_callback); in FinishRequestAsync()
Dhttp_transport.h70 const SuccessCallback& success_callback,
Dhttp_connection_curl.h38 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()
Dhttp_transport_curl.h55 const SuccessCallback& success_callback,
Dhttp_transport_curl_unittest.cc208 auto success_callback = [](int* success_call_count, in TEST_F() local
241 base::Bind(success_callback, in TEST_F()
Dhttp_transport_fake.h98 const SuccessCallback& success_callback,
/external/libbrillo/brillo/dbus/
Ddbus_method_invoker.h256 const base::Callback<void(OutArgs...)>& success_callback, in TranslateSuccessResponse() argument
259 auto callback = [&success_callback](const OutArgs&... params) { in TranslateSuccessResponse()
260 if (!success_callback.is_null()) { in TranslateSuccessResponse()
261 success_callback.Run(params...); in TranslateSuccessResponse()
288 const base::Callback<void(OutArgs...)>& success_callback, in CallMethodWithTimeout() argument
298 &TranslateSuccessResponse<OutArgs...>, success_callback, error_callback); in CallMethodWithTimeout()
309 const base::Callback<void(OutArgs...)>& success_callback, in CallMethod() argument
316 success_callback, in CallMethod()
Ddbus_method_invoker_unittest.cc221 dbus::ObjectProxy::ResponseCallback success_callback, in HandleCall() argument
233 success_callback.Run(response.get()); in HandleCall()

12