Home
last modified time | relevance | path

Searched refs:Closure (Results 1 – 25 of 270) sorted by relevance

1234567891011

/external/webrtc/rtc_base/task_utils/
Dto_queued_task.h24 template <typename Closure>
27 explicit ClosureTask(Closure&& closure) in ClosureTask()
28 : closure_(std::forward<Closure>(closure)) {} in ClosureTask()
36 typename std::decay<Closure>::type closure_;
39 template <typename Closure>
43 Closure&& closure) in SafetyClosureTask()
44 : closure_(std::forward<Closure>(closure)), in SafetyClosureTask()
54 typename std::decay<Closure>::type closure_;
61 template <typename Closure, typename Cleanup>
62 class ClosureTaskWithCleanup : public ClosureTask<Closure> {
[all …]
Drepeating_task.h51 template <class Closure>
56 Closure&& closure, in RepeatingTaskImpl()
59 closure_(std::forward<Closure>(closure)) { in RepeatingTaskImpl()
62 typename std::result_of<decltype (&Closure::operator())( in RepeatingTaskImpl()
63 Closure)>::type>::value, in RepeatingTaskImpl()
71 typename std::remove_reference<Closure>::type>::type closure_;
96 template <class Closure>
98 Closure&& closure,
101 webrtc_repeating_task_impl::RepeatingTaskImpl<Closure>>(
102 task_queue, TimeDelta::Zero(), std::forward<Closure>(closure), clock);
[all …]
/external/libchrome/base/
Dbarrier_closure_unittest.cc16 base::Closure done_closure(base::Bind(&Increment, base::Unretained(&count))); in TEST()
18 base::Closure barrier_closure = base::BarrierClosure(0, done_closure); in TEST()
24 base::Closure done_closure(base::Bind(&Increment, base::Unretained(&count))); in TEST()
26 base::Closure barrier_closure = base::BarrierClosure(2, done_closure); in TEST()
53 base::Closure barrier_closure = base::BarrierClosure( in TEST()
62 void ResetBarrierClosure(base::Closure* closure) { in ResetBarrierClosure()
63 *closure = base::Closure(); in ResetBarrierClosure()
74 base::Closure barrier_closure; in TEST()
75 base::Closure done_closure = in TEST()
Dcancelable_callback_unittest.cc46 base::Closure callback = cancelable.callback(); in TEST()
67 base::Closure callback1 = cancelable.callback(); in TEST()
68 base::Closure callback2 = cancelable.callback(); in TEST()
81 base::Closure callback3 = cancelable.callback(); in TEST()
89 base::Closure callback; in TEST()
130 base::Closure callback = cancelable.callback(); in TEST()
148 base::Closure callback2 = cancelable.callback(); in TEST()
/external/webrtc/rtc_base/
Dtask_queue.h108 template <class Closure,
110 Closure,
112 void PostTask(Closure&& closure) { in PostTask()
113 PostTask(webrtc::ToQueuedTask(std::forward<Closure>(closure))); in PostTask()
117 template <class Closure,
119 Closure,
121 void PostDelayedTask(Closure&& closure, uint32_t milliseconds) { in PostDelayedTask()
122 PostDelayedTask(webrtc::ToQueuedTask(std::forward<Closure>(closure)), in PostDelayedTask()
/external/libchrome/mojo/public/cpp/bindings/tests/
Drouter_test_util.h29 const base::Closure& closure = base::Closure());
36 base::Closure closure_;
57 const base::Closure& closure = base::Closure());
69 void set_closure(const base::Closure& closure) { closure_ = closure; } in set_closure()
86 base::Closure closure_;
Dinterface_ptr_unittest.cc73 void set_connection_error_handler(const base::Closure& closure) { in set_connection_error_handler()
77 void Add(double value, const base::Closure& closure) { in Add()
83 void Multiply(double value, const base::Closure& closure) { in Multiply()
94 void Output(const base::Closure& closure, double output) { in Output()
102 base::Closure closure_;
112 void BeginTest(bool nested, const base::Closure& closure) { in BeginTest()
122 void Output(const base::Closure& closure, double value) { in Output()
184 void set_closure(const base::Closure& closure) { closure_ = closure; } in set_closure()
200 base::Closure closure_;
211 void SetFlagAndRunClosure(bool* flag, const base::Closure& closure) { in SetFlagAndRunClosure()
[all …]
Dbinding_callback_unittest.cc36 void SaveValue(int32_t* storage, const base::Closure& closure, int32_t value) { in SaveValue()
43 const base::Closure& closure) { in BindValueSaver()
115 void set_closure(const base::Closure& closure) { closure_ = closure; } in set_closure()
120 base::Closure closure_;
215 BindValueSaver(&last_client_callback_value_seen_, base::Closure())); in TEST_F()
236 BindValueSaver(&last_client_callback_value_seen_, base::Closure())); in TEST_F()
260 BindValueSaver(&last_client_callback_value_seen_, base::Closure())); in TEST_F()
291 BindValueSaver(&last_client_callback_value_seen_, base::Closure())); in TEST_F()
326 BindValueSaver(&last_client_callback_value_seen_, base::Closure())); in TEST_F()
Dbinding_set_unittest.cc31 base::Closure ExpectContext(BindingSetType* binding_set, in ExpectContext()
45 base::Closure ExpectBindingId(BindingSetType* binding_set, in ExpectBindingId()
58 base::Closure ReportBadMessage(BindingSetType* binding_set, in ReportBadMessage()
71 base::Closure SaveBadMessageCallback(BindingSetType* binding_set, in SaveBadMessageCallback()
77 base::Closure Sequence(const base::Closure& first, in Sequence()
78 const base::Closure& second) { in Sequence()
80 [] (const base::Closure& first, const base::Closure& second) { in Sequence()
91 void set_ping_handler(const base::Closure& handler) { in set_ping_handler()
103 base::Closure ping_handler_;
196 [](const base::Closure& quit_closure, uint32_t custom_reason, in TEST_P()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc196 Closure* permanent_closure_;
204 Closure* closure = NewCallback(&SetA123Function); in TEST_F()
211 Closure* closure = NewCallback(current_instance_, in TEST_F()
219 Closure* closure = NewCallback(&SetAFunction, 456); in TEST_F()
226 Closure* closure = NewCallback(current_instance_, in TEST_F()
234 Closure* closure = NewCallback(&SetCFunction, string("test")); in TEST_F()
241 Closure* closure = NewCallback(current_instance_, in TEST_F()
250 Closure* closure = NewCallback(&SetABFunction, 789, cstr); in TEST_F()
260 Closure* closure = NewCallback(current_instance_, in TEST_F()
272 Closure* closure = NewPermanentCallback(&SetA123Function); in TEST_F()
[all …]
Dcallback.h73 class PROTOBUF_EXPORT Closure {
75 Closure() {} in Closure() function
76 virtual ~Closure();
81 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Closure);
122 class PROTOBUF_EXPORT FunctionClosure0 : public Closure {
142 class MethodClosure0 : public Closure {
163 class FunctionClosure1 : public Closure {
186 class MethodClosure1 : public Closure {
210 class FunctionClosure2 : public Closure {
234 class MethodClosure2 : public Closure {
[all …]
/external/webrtc/test/
Drun_loop.h35 template <typename Closure>
36 void PostTask(Closure&& task) { in PostTask()
37 task_queue()->PostTask(ToQueuedTask(std::forward<Closure>(task))); in PostTask()
40 template <typename Closure>
41 void PostDelayedTask(Closure&& task, uint32_t milliseconds) { in PostDelayedTask()
42 task_queue()->PostDelayedTask(ToQueuedTask(std::forward<Closure>(task)), in PostDelayedTask()
/external/libchrome/base/test/
Dtask_runner_test_template.h85 Closure WrapTask(const Closure& task, int i);
97 void RunTask(const Closure& task, int i);
132 const Closure& ith_task = this->task_tracker_->WrapTask(Closure(), i); in TYPED_TEST_P()
154 const Closure& ith_task = this->task_tracker_->WrapTask(Closure(), i); in TYPED_TEST_P()
202 const Closure& ith_task_runner_task = this->task_tracker_->WrapTask( in TYPED_TEST_P()
206 const Closure& ith_non_task_runner_task = this->task_tracker_->WrapTask( in TYPED_TEST_P()
Dsequenced_task_runner_test_template.h45 const Closure& task);
49 const Closure& task);
53 const Closure& task,
70 void RunTask(const Closure& task, int task_i);
143 Closure()); in TYPED_TEST_P()
166 this->task_tracker_->PostWrappedNestableTask(task_runner.get(), Closure()); in TYPED_TEST_P()
188 task_runner.get(), Closure(), in TYPED_TEST_P()
211 Closure task = Bind( in TYPED_TEST_P()
242 Closure(), kDelay); in TYPED_TEST_P()
244 Closure(), kDelay); in TYPED_TEST_P()
[all …]
Dsequenced_task_runner_test_template.cc27 const Closure& task) { in PostWrappedNonNestableTask()
30 Closure wrapped_task = Bind(&SequencedTaskTracker::RunTask, this, in PostWrappedNonNestableTask()
38 const Closure& task) { in PostWrappedNestableTask()
41 Closure wrapped_task = Bind(&SequencedTaskTracker::RunTask, this, in PostWrappedNestableTask()
49 const Closure& task, in PostWrappedDelayedNonNestableTask()
53 Closure wrapped_task = Bind(&SequencedTaskTracker::RunTask, this, in PostWrappedDelayedNonNestableTask()
63 PostWrappedNonNestableTask(task_runner, Closure()); in PostNonNestableTasks()
67 void SequencedTaskTracker::RunTask(const Closure& task, int task_i) { in RunTask()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/webrtc/third_party/abseil-cpp/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/angle/third_party/abseil-cpp/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/openscreen/third_party/abseil/src/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/abseil-cpp/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/libtextclassifier/abseil-cpp/absl/random/internal/
Dnanobenchmark.h151 template <class Closure>
153 return (*reinterpret_cast<const Closure*>(f))(input); in CallClosure()
158 template <class Closure>
159 static inline size_t MeasureClosure(const Closure& closure,
163 return Measure(reinterpret_cast<Func>(&CallClosure<Closure>),
/external/angle/src/libANGLE/
DWorkerThread.cpp59 std::shared_ptr<WaitableEvent> postWorkerTask(std::shared_ptr<Closure> task) override;
66 std::shared_ptr<Closure> task) in postWorkerTask()
137 std::shared_ptr<WaitableEvent> postWorkerTask(std::shared_ptr<Closure> task) override;
150 std::queue<std::pair<std::shared_ptr<AsyncWaitableEvent>, std::shared_ptr<Closure>>> mTaskQueue;
154 std::shared_ptr<WaitableEvent> AsyncWorkerPool::postWorkerTask(std::shared_ptr<Closure> task) in postWorkerTask()
262 std::shared_ptr<WaitableEvent> postWorkerTask(std::shared_ptr<Closure> task) override;
273 DelegateWorkerTask(std::shared_ptr<Closure> task, in DelegateWorkerTask()
293 std::shared_ptr<Closure> mTask;
297 std::shared_ptr<WaitableEvent> DelegateWorkerPool::postWorkerTask(std::shared_ptr<Closure> task) in postWorkerTask()
346 std::shared_ptr<Closure> task) in PostWorkerTask()
DWorkerThread.h27 class Closure
30 virtual ~Closure() = default;
80 std::shared_ptr<Closure> task);
89 virtual std::shared_ptr<WaitableEvent> postWorkerTask(std::shared_ptr<Closure> task) = 0;
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix.h50 Controller(MessagePumpForIO::Mode mode, int fd, const Closure& callback);
60 Closure callback_;
100 const Closure& callback);
102 const Closure& callback);
/external/libchrome/base/timer/
Dtimer.h98 const base::Closure& user_task,
102 const base::Closure& user_task,
125 const base::Closure& user_task);
155 const base::Closure& user_task() const { return user_task_; } in user_task()
162 void set_user_task(const Closure& task) { user_task_ = task; } in set_user_task()
206 base::Closure user_task_;

1234567891011