Home
last modified time | relevance | path

Searched refs:message_loop_ (Results 1 – 25 of 27) sorted by relevance

12

/external/libchrome/base/threading/
Dthread.cc80 DCHECK(!message_loop_); in StartWithOptions()
102 message_loop_ = message_loop_owned.get(); in StartWithOptions()
118 message_loop_ = nullptr; in StartWithOptions()
129 DCHECK(message_loop_); in StartWithOptions()
144 if (!message_loop_) in WaitUntilThreadStarted()
153 if (!message_loop_) in FlushForTesting()
188 DCHECK(!message_loop_); in Stop()
198 if (stopping_ || !message_loop_) in StopSoon()
208 message_loop_ = nullptr; in StopSoon()
242 if (message_loop_ && !stopping_) in IsRunning()
[all …]
Dthread.h120 DCHECK(!message_loop_); in init_com_with_mta()
217 return message_loop_; in message_loop()
232 message_loop_); in task_runner()
233 return message_loop_ ? message_loop_->task_runner() : nullptr; in task_runner()
327 MessageLoop* message_loop_ = nullptr; variable
/external/libchrome/base/task/sequence_manager/test/
Dlazy_thread_controller_for_test.cc18 if (message_loop_) in LazyThreadControllerForTest()
19 task_runner_ = message_loop_->task_runner(); in LazyThreadControllerForTest()
25 if (message_loop_) in EnsureMessageLoop()
28 message_loop_ = MessageLoop::current(); in EnsureMessageLoop()
29 DCHECK(message_loop_); in EnsureMessageLoop()
30 task_runner_ = message_loop_->task_runner(); in EnsureMessageLoop()
42 return !!message_loop_; in HasMessageLoop()
87 if (MessageLoop::current() != message_loop_) in RemoveNestingObserver()
118 if (HasMessageLoop() && MessageLoop::current() == message_loop_) in RestoreDefaultTaskRunner()
Dsequence_manager_for_test.cc24 if (!message_loop_) in AddNestingObserver()
30 if (!message_loop_) in RemoveNestingObserver()
/external/libbrillo/brillo/
Dbinder_watcher.cc37 : message_loop_(message_loop) {} in BinderWatcher()
39 BinderWatcher::BinderWatcher() : message_loop_(nullptr) {} in BinderWatcher()
43 message_loop_->CancelTask(task_id_); in ~BinderWatcher()
47 if (!message_loop_) in Init()
48 message_loop_ = MessageLoop::current(); in Init()
49 if (!message_loop_) { in Init()
69 task_id_ = message_loop_->WatchFileDescriptor( in Init()
Dbinder_watcher.h40 MessageLoop* message_loop_; variable
/external/libbrillo/brillo/daemons/
Ddaemon.cc18 message_loop_.SetAsCurrent();
29 message_loop_.PostTask( in Run()
31 message_loop_.Run(); in Run()
40 while (message_loop_.RunOnce(false /* may_block */)) {} in Run()
49 message_loop_.PostTask(FROM_HERE, QuitClosure()); in QuitWithExitCode()
Ddaemon.h95 return message_loop_.QuitClosure(); in QuitClosure()
111 BaseMessageLoop message_loop_; variable
/external/libchrome/base/test/
Dscoped_task_environment.cc98 message_loop_(CreateMessageLoopForMainThreadType(main_thread_type)), in ScopedTaskEnvironment()
118 static_cast<MessageLoopForIO*>(message_loop_.get())) in ScopedTaskEnvironment()
167 if (message_loop_) in GetMainThreadTaskRunner()
168 return message_loop_->task_runner(); in GetMainThreadTaskRunner()
174 if (message_loop_) in MainThreadHasPendingTask()
175 return !message_loop_->IsIdleForTesting(); in MainThreadHasPendingTask()
Dscoped_task_environment.h146 const std::unique_ptr<MessageLoop> message_loop_; variable
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix_unittest.cc50 : message_loop_(GetParam() == FileDescriptorWatcherTestType:: in FileDescriptorWatcherTest()
68 message_loop_for_io = message_loop_.get(); in SetUp()
79 message_loop_) { in TearDown()
147 std::unique_ptr<MessageLoop> message_loop_; member in base::__anon7ab4a7fa0111::FileDescriptorWatcherTest
297 message_loop_ = nullptr; in TEST_P()
/external/libchrome/base/task/sequence_manager/
Dthread_controller_impl.cc23 : message_loop_(message_loop), in ThreadControllerImpl()
130 if (!message_loop_) in SetDefaultTaskRunner()
132 message_loop_->SetTaskRunner(task_runner); in SetDefaultTaskRunner()
136 if (!message_loop_) in RestoreDefaultTaskRunner()
138 message_loop_->SetTaskRunner(message_loop_task_runner_); in RestoreDefaultTaskRunner()
Dsequence_manager_perftest.cc77 message_loop_.reset(new MessageLoop()); in Initialize()
78 manager_ = SequenceManagerForTest::Create(message_loop_.get(), in Initialize()
79 message_loop_->task_runner(), in Initialize()
198 std::unique_ptr<MessageLoop> message_loop_; member in base::sequence_manager::SequenceManagerPerfTest
Dthread_controller_impl.h60 MessageLoop* message_loop_; variable
Dsequence_manager_impl_unittest.cc167 message_loop_.reset(new MessageLoop()); in SetUpWithMessageLoop()
173 message_loop_.get(), ThreadTaskRunnerHandle::Get(), &mock_clock_); in SetUpWithMessageLoop()
189 std::unique_ptr<MessageLoop> message_loop_; member in base::sequence_manager::internal::sequence_manager_impl_unittest::SequenceManagerTestWithMessageLoop
247 message_loop_.reset(new MessageLoop()); in TEST_P()
/external/libchrome/base/message_loop/
Dmessage_loop.cc110 MessageLoop* message_loop_; member in base::MessageLoop::Controller
123 : message_loop_(message_loop) {} in Controller()
126 DCHECK(!message_loop_) in ~Controller()
141 if (message_loop_ && is_ready_for_scheduling_) in DidQueueTask()
142 message_loop_->ScheduleWork(); in DidQueueTask()
149 DCHECK(message_loop_); in StartScheduling()
153 message_loop_->ScheduleWork(); in StartScheduling()
158 message_loop_ = nullptr; in DisconnectFromParent()
Dmessage_loop_perftest.cc216 MessageLoop message_loop_; member in base::__anon97d2d4d30111::MessageLoopPerfTest
/external/libchrome/ipc/
Dipc_test_base.cc28 message_loop_ = std::move(message_loop); in InitWithCustomMessageLoop()
36 if (message_loop_) in TearDown()
Dipc_test_base.h54 std::unique_ptr<base::MessageLoop> message_loop_;
/external/libchrome/mojo/public/cpp/bindings/tests/
De2e_perftest.cc135 base::MessageLoop message_loop_; member in mojo::__anonbc74313d0111::MojoE2EPerftest
180 message_loop_.task_runner(), FROM_HERE, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
190 RunTestOnTaskRunner(message_loop_.task_runner().get(), client_mp, in TEST_F()
Ddata_view_unittest.cc24 base::MessageLoop message_loop_; member in mojo::test::data_view::__anon4ea740080111::DataViewTest
/external/libchrome/mojo/public/cpp/system/tests/
Ddata_pipe_drainer_unittest.cc39 base::MessageLoop message_loop_; member in mojo::test::DataPipeDrainerTest
Dsimple_watcher_unittest.cc43 base::MessageLoop message_loop_; member in mojo::__anonebb0db820111::SimpleWatcherTest
/external/libchrome/base/task/
Dcancelable_task_tracker_unittest.cc40 MessageLoop message_loop_; member in base::__anon420444740111::CancelableTaskTrackerTest
/external/libchrome/base/metrics/
Dfield_trial_unittest.cc103 MessageLoop message_loop_; member in base::FieldTrialTest

12