Home
last modified time | relevance | path

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

12345678

/external/libchrome/base/task/
Dcancelable_task_tracker.cc23 using base::Closure;
29 void RunIfNotCanceled(const CancellationFlag* flag, const Closure& task) { in RunIfNotCanceled()
35 const Closure& task, in RunIfNotCanceledThenUntrack()
36 const Closure& untrack) { in RunIfNotCanceledThenUntrack()
46 void RunAndDeleteFlag(const Closure& closure, const CancellationFlag* flag) { in RunAndDeleteFlag()
51 void RunOrPostToTaskRunner(TaskRunner* task_runner, const Closure& closure) { in RunOrPostToTaskRunner()
77 const Closure& task) { in PostTask()
86 const Closure& task, in PostTaskAndReply()
87 const Closure& reply) { in PostTaskAndReply()
99 const Closure& untrack_closure = in PostTaskAndReply()
[all …]
/external/libchrome/base/
Dcallback_helpers.cc14 ScopedClosureRunner::ScopedClosureRunner(const Closure& closure) in ScopedClosureRunner()
24 Closure old_closure = Release(); in Reset()
29 void ScopedClosureRunner::Reset(const Closure& closure) { in Reset()
30 Closure old_closure = Release(); in Reset()
36 Closure ScopedClosureRunner::Release() { in Release()
37 Closure result = closure_; in Release()
Dtask_runner.cc24 const Closure& task) override;
37 const Closure& task) { in PostTask()
44 const Closure& task) { in PostTask()
50 const Closure& task, in PostTaskAndReply()
51 const Closure& reply) { in PostTaskAndReply()
Dcallback_helpers.h35 explicit ScopedClosureRunner(const Closure& closure);
39 void Reset(const Closure& closure);
40 Closure Release() WARN_UNUSED_RESULT;
43 Closure closure_;
Dcancelable_callback_unittest.cc37 base::Closure callback = cancelable.callback(); in TEST()
58 base::Closure callback1 = cancelable.callback(); in TEST()
59 base::Closure callback2 = cancelable.callback(); in TEST()
72 base::Closure callback3 = cancelable.callback(); in TEST()
80 base::Closure callback; in TEST()
121 base::Closure callback = cancelable.callback(); in TEST()
139 base::Closure callback2 = cancelable.callback(); in TEST()
Dtask_runner.h68 const Closure& task);
76 const Closure& task,
129 const Closure& task,
130 const Closure& reply);
Dbind_unittest.cc225 void TakesACallback(const Closure& callback) { in TakesACallback()
315 Closure cb = base::Bind(&TakesACallback, base::Bind(&PtrArgSet, &n)); in TEST_F()
346 Closure normal_cb = Bind(&VoidFunc0); in TEST_F()
352 Closure method_cb = Bind(&HasRef::VoidMethod0, &has_ref_); in TEST_F()
353 Closure method_refptr_cb = Bind(&HasRef::VoidMethod0, in TEST_F()
355 Closure const_method_nonconst_obj_cb = Bind(&HasRef::VoidConstMethod0, in TEST_F()
357 Closure const_method_const_obj_cb = Bind(&HasRef::VoidConstMethod0, in TEST_F()
366 Closure virtual_set_cb = Bind(&Parent::VirtualSet, &child); in TEST_F()
371 Closure non_virtual_set_cb = Bind(&Parent::NonVirtualSet, &child); in TEST_F()
416 Closure normal_func_cb = Bind(IgnoreResult(&IntFunc0)); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc195 Closure* permanent_closure_;
203 Closure* closure = NewCallback(&SetA123Function); in TEST_F()
210 Closure* closure = NewCallback(current_instance_, in TEST_F()
218 Closure* closure = NewCallback(&SetAFunction, 456); in TEST_F()
225 Closure* closure = NewCallback(current_instance_, in TEST_F()
233 Closure* closure = NewCallback(&SetCFunction, string("test")); in TEST_F()
240 Closure* closure = NewCallback(current_instance_, in TEST_F()
249 Closure* closure = NewCallback(&SetABFunction, 789, cstr); in TEST_F()
259 Closure* closure = NewCallback(current_instance_, in TEST_F()
271 Closure* closure = NewPermanentCallback(&SetA123Function); in TEST_F()
[all …]
Dcommon.h853 class LIBPROTOBUF_EXPORT Closure {
855 Closure() {} in Closure() function
856 virtual ~Closure();
861 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Closure);
866 class LIBPROTOBUF_EXPORT FunctionClosure0 : public Closure {
886 class MethodClosure0 : public Closure {
907 class FunctionClosure1 : public Closure {
930 class MethodClosure1 : public Closure {
954 class FunctionClosure2 : public Closure {
978 class MethodClosure2 : public Closure {
[all …]
/external/libchrome/base/threading/
Dworker_pool.cc28 const Closure& task) override { in PostTask()
46 const Closure& task,
57 const Closure& task,
74 const Closure& task, in PostDelayedTask()
85 const Closure& task, in PostDelayedTaskAssertZeroDelay()
106 const Closure& task, in PostTaskAndReply()
107 const Closure& reply, in PostTaskAndReply()
Dpost_task_and_reply_impl.cc28 const Closure& task, in PostTaskAndReplyRelay()
29 const Closure& reply) in PostTaskAndReplyRelay()
66 Closure reply_;
67 Closure task_;
76 const Closure& task, in PostTaskAndReply()
77 const Closure& reply) { in PostTaskAndReply()
Dsequenced_worker_pool.h248 const Closure& task);
260 const Closure& task,
266 const Closure& task,
282 const Closure& task);
288 const Closure& task);
302 const Closure& task,
310 const Closure& task,
315 const Closure& task,
Dworker_pool_posix.cc39 const base::Closure& task,
55 const base::Closure& task, in PostTask()
110 const base::Closure& task, in PostTask()
145 const base::Closure& task) { in PostTask()
173 return PendingTask(FROM_HERE, base::Closure()); in WaitForTask()
187 return PendingTask(FROM_HERE, base::Closure()); in WaitForTask()
Dsequenced_worker_pool.cc72 Closure task;
106 const Closure& task,
132 const Closure& task, in PostDelayedTask()
159 const Closure& task,
165 const Closure& task,
195 const Closure& task, in PostDelayedTask()
210 const Closure& task, in PostNonNestableDelayedTask()
313 const Closure& task,
377 std::vector<Closure>* delete_these_outside_lock);
613 const Closure& task, in PostTask()
[all …]
/external/libbrillo/brillo/message_loops/
Dmessage_loop.h53 const base::Closure& task,
56 TaskId PostDelayedTask(const base::Closure& task, base::TimeDelta delay) { in PostDelayedTask()
62 TaskId PostTask(const base::Closure& task) { in PostTask()
66 const base::Closure& task) { in PostTask()
87 const base::Closure& task) = 0;
93 const base::Closure& task) { in WatchFileDescriptor()
Dbase_message_loop.h37 const base::Closure& task,
44 const base::Closure& task) override;
53 base::Closure QuitClosure() const;
86 base::Closure closure;
99 const base::Closure& task);
131 base::Closure closure_;
Dbase_message_loop.cc30 using base::Closure;
74 const Closure &task, in PostDelayedTask()
98 const Closure &task) { in WatchFileDescriptor()
180 delayed_task_it->second.closure = Closure(); in CancelTask()
217 Closure BaseMessageLoop::QuitClosure() const { in QuitClosure()
243 Closure closure = std::move(task_it->second.closure); in OnRanPostedTask()
244 task_it->second.closure = Closure(); in OnRanPostedTask()
305 const Closure& task) in IOTask()
396 Closure closure_copy = std::move(closure_); in OnFileReadyPostedTask()
425 closure_ = Closure(); in CancelTask()
/external/v8/test/mjsunit/
Ddebug-function-scopes.js49 Closure: 3, property
74 CheckScope(mirror.scope(0), { a: 4, b: 5 }, ScopeType.Closure);
76 CheckScope(mirror.scope(2), { y: 17, z: 22 }, ScopeType.Closure);
77 CheckScope(mirror.scope(3), { x: 5 }, ScopeType.Closure);
107 CheckScope(mirror.scope(0), { visible2: 20 }, ScopeType.Closure);
108 CheckScope(mirror.scope(1), { visible1: 10 }, ScopeType.Closure);
151 CheckScope(mirror.scope(0), { p4: 20, p6: 22 }, ScopeType.Closure);
152 CheckScope(mirror.scope(1), { p1: 1 }, ScopeType.Closure);
/external/libchrome/base/message_loop/
Dmessage_pump_glib_unittest.cc70 void AddEvent(int delay_ms, const Closure& callback) { in AddEvent()
71 AddEventHelper(delay_ms, callback, Closure()); in AddEvent()
75 AddEventHelper(delay_ms, Closure(), Closure()); in AddDummyEvent()
78 void AddEventAsTask(int delay_ms, const Closure& task) { in AddEventAsTask()
79 AddEventHelper(delay_ms, Closure(), task); in AddEventAsTask()
92 Closure callback;
93 Closure task;
101 int delay_ms, const Closure& callback, const Closure& task) { in AddEventHelper()
154 const Closure& task) { in PostMessageLoopTask()
209 Closure check_task = in TEST_F()
[all …]
/external/libchrome/components/timers/
Dalarm_timer_chromeos.cc51 base::Closure on_will_be_destroyed_callback) in MessageLoopObserver()
78 base::Closure on_will_be_destroyed_callback_;
99 explicit Delegate(base::Closure on_timer_fired_callback);
116 void SetTimerFiredCallbackForTest(base::Closure test_callback);
141 base::Closure on_timer_fired_callback_;
145 base::Closure on_timer_fired_callback_for_test_;
162 AlarmTimer::Delegate::Delegate(base::Closure on_timer_fired_callback) in Delegate()
262 base::Closure test_callback) { in SetTimerFiredCallbackForTest()
334 const base::Closure& user_task, in AlarmTimer()
347 void AlarmTimer::SetTimerFiredCallbackForTest(base::Closure test_callback) { in SetTimerFiredCallbackForTest()
[all …]
Dalarm_timer_chromeos.h36 void SetTimerFiredCallbackForTest(base::Closure test_callback);
48 const base::Closure& user_task,
119 const base::Closure& user_task);
139 const base::Closure& user_task);
/external/libchrome/base/timer/
Dtimer.h80 const base::Closure& user_task,
100 const base::Closure& user_task);
110 const base::Closure& user_task() const { return user_task_; } in user_task()
118 const base::Closure& user_task);
120 void set_user_task(const Closure& task) { user_task_ = task; } in set_user_task()
168 base::Closure user_task_;
/external/v8/test/mjsunit/es6/
Ddebug-function-scopes.js52 Closure: 3, property
79 CheckScope(mirror.scope(0), { a: 4, b: 5 }, ScopeType.Closure);
80 CheckScope(mirror.scope(1), { z: 22, w: 5, v: "Capybara" }, ScopeType.Closure);
81 CheckScope(mirror.scope(2), { x: 5 }, ScopeType.Closure);
114 CheckScope(mirror.scope(2), { v1:3, l0: 0, v3: 5, v6: 11 }, ScopeType.Closure);
/external/valgrind/drd/tests/
Dtsan_thread_wrappers_pthread.h434 struct Closure { struct
456 Closure *NewCallback(void (*f)()) { in NewCallback() argument
457 Closure *res = new Closure; in NewCallback()
466 Closure *NewCallback(void (*f)(P1), P1 p1) { in NewCallback()
468 Closure *res = new Closure; in NewCallback()
477 Closure *NewCallback(void (*f)(P1, P2), P1 p1, P2 p2) { in NewCallback()
479 Closure *res = new Closure; in NewCallback()
520 void Add(Closure *closure) { in Add()
543 Closure *closure = reinterpret_cast<Closure*>(pool->queue_.Get()); in Worker()
/external/libweave/third_party/chromium/base/
Dbind_unittest.cc226 void TakesACallback(const Closure& callback) { in TakesACallback()
316 Closure cb = base::Bind(&TakesACallback, base::Bind(&PtrArgSet, &n)); in TEST_F()
347 Closure normal_cb = Bind(&VoidFunc0); in TEST_F()
353 Closure method_cb = Bind(&HasRef::VoidMethod0, &has_ref_); in TEST_F()
354 Closure method_refptr_cb = Bind(&HasRef::VoidMethod0, in TEST_F()
356 Closure const_method_nonconst_obj_cb = Bind(&HasRef::VoidConstMethod0, in TEST_F()
358 Closure const_method_const_obj_cb = Bind(&HasRef::VoidConstMethod0, in TEST_F()
367 Closure virtual_set_cb = Bind(&Parent::VirtualSet, &child); in TEST_F()
372 Closure non_virtual_set_cb = Bind(&Parent::NonVirtualSet, &child); in TEST_F()
417 Closure normal_func_cb = Bind(IgnoreResult(&IntFunc0)); in TEST_F()
[all …]

12345678