Home
last modified time | relevance | path

Searched refs:MessageLoop (Results 1 – 25 of 46) sorted by relevance

12

/system/update_engine/common/
Dproxy_resolver.cc22 using brillo::MessageLoop;
29 const ProxyRequestId kProxyRequestIdNull = brillo::MessageLoop::kTaskIdNull;
32 if (idle_callback_id_ != MessageLoop::kTaskIdNull) { in ~DirectProxyResolver()
38 MessageLoop::current()->CancelTask(idle_callback_id_); in ~DirectProxyResolver()
39 idle_callback_id_ = MessageLoop::kTaskIdNull; in ~DirectProxyResolver()
45 idle_callback_id_ = MessageLoop::current()->PostTask( in GetProxiesForUrl()
54 return MessageLoop::current()->CancelTask(request); in CancelProxyRequest()
58 idle_callback_id_ = MessageLoop::kTaskIdNull; in ReturnCallback()
Dscoped_task_id.h31 using MessageLoop = brillo::MessageLoop; variable
68 if (task_id_ != MessageLoop::kTaskIdNull) { in Cancel()
69 if (MessageLoop::current()->CancelTask(task_id_)) { in Cancel()
71 task_id_ = MessageLoop::kTaskIdNull; in Cancel()
79 return task_id_ != MessageLoop::kTaskIdNull; in IsScheduled()
97 if (task_id_ != MessageLoop::kTaskIdNull) { in PostTask()
102 task_id_ = MessageLoop::current()->PostDelayedTask( in PostTask()
108 return task_id_ != MessageLoop::kTaskIdNull; in PostTask()
112 task_id_ = MessageLoop::kTaskIdNull; in ExecuteTask()
119 MessageLoop::TaskId task_id_{MessageLoop::kTaskIdNull};
Dmock_http_fetcher.cc30 using brillo::MessageLoop;
36 CHECK(timeout_id_ == MessageLoop::kTaskIdNull) in ~MockHttpFetcher()
64 if (timeout_id_ == MessageLoop::kTaskIdNull && delay_) { in SendData()
65 CHECK(MessageLoop::current()); in SendData()
66 timeout_id_ = MessageLoop::current()->PostDelayedTask( in SendData()
87 timeout_id_ = MessageLoop::kTaskIdNull; in TimeoutCallback()
99 if (timeout_id_ != MessageLoop::kTaskIdNull) { in TerminateTransfer()
100 MessageLoop::current()->CancelTask(timeout_id_); in TerminateTransfer()
101 timeout_id_ = MessageLoop::kTaskIdNull; in TerminateTransfer()
123 MessageLoop::current()->CancelTask(timeout_id_); in Pause()
[all …]
Dcpu_limiter.cc44 if (manage_shares_id_ != brillo::MessageLoop::kTaskIdNull) { in StartLimiter()
48 manage_shares_id_ = brillo::MessageLoop::current()->PostDelayedTask( in StartLimiter()
56 if (manage_shares_id_ != brillo::MessageLoop::kTaskIdNull) { in StopLimiter()
59 brillo::MessageLoop::current()->CancelTask(manage_shares_id_); in StopLimiter()
60 manage_shares_id_ = brillo::MessageLoop::kTaskIdNull; in StopLimiter()
85 manage_shares_id_ = brillo::MessageLoop::kTaskIdNull; in StopLimiterCallback()
Dhttp_fetcher.cc22 using brillo::MessageLoop;
54 no_resolver_idle_id_ = MessageLoop::current()->PostTask( in ResolveProxiesForUrl()
65 no_resolver_idle_id_ = MessageLoop::kTaskIdNull; in NoProxyResolverCallback()
82 if (no_resolver_idle_id_ != MessageLoop::kTaskIdNull) { in CancelProxyResolution()
83 ret = MessageLoop::current()->CancelTask(no_resolver_idle_id_); in CancelProxyResolution()
84 no_resolver_idle_id_ = MessageLoop::kTaskIdNull; in CancelProxyResolution()
Dproxy_resolver.h43 typedef brillo::MessageLoop::TaskId ProxyRequestId;
84 brillo::MessageLoop::TaskId idle_callback_id_{
85 brillo::MessageLoop::kTaskIdNull};
Dcpu_limiter.h57 brillo::MessageLoop::TaskId manage_shares_id_{
58 brillo::MessageLoop::kTaskIdNull};
Dhttp_fetcher_unittest.cc65 using brillo::MessageLoop;
464 MessageLoop::current()->BreakLoop(); in TransferComplete()
472 MessageLoop::current()->BreakLoop(); in TransferTerminated()
607 MessageLoop::current()->BreakLoop(); in TransferComplete()
620 MessageLoop::TaskId* my_id) { in UnpausingTimeoutCallback()
624 *my_id = MessageLoop::current()->PostDelayedTask( in UnpausingTimeoutCallback()
641 MessageLoop::TaskId callback_id; in TYPED_TEST()
686 MessageLoop::current()->BreakLoop(); in TransferComplete()
702 void EndLoop() { MessageLoop::current()->BreakLoop(); } in EndLoop()
709 MessageLoop::TaskId* my_id) { in AbortingTimeoutCallback()
[all …]
Dmock_http_fetcher.h50 timeout_id_(brillo::MessageLoop::kTaskIdNull), in MockHttpFetcher()
145 brillo::MessageLoop::TaskId timeout_id_;
/system/update_engine/cros/
Ddbus_test_utils.h46 if (callback_connected_task_ != brillo::MessageLoop::kTaskIdNull) in ~MockSignalHandler()
47 brillo::MessageLoop::current()->CancelTask(callback_connected_task_); in ~MockSignalHandler()
62 callback_connected_task_ = brillo::MessageLoop::current()->PostTask( in GrabCallbacks()
70 callback_connected_task_ = brillo::MessageLoop::kTaskIdNull; in OnCallbackConnected()
74 brillo::MessageLoop::TaskId callback_connected_task_{
75 brillo::MessageLoop::kTaskIdNull};
/system/update_engine/update_manager/
Dupdate_time_restrictions_monitor_unittest.cc32 using brillo::MessageLoop;
134 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in BuildMonitorAndVerify()
174 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
198 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
207 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
222 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
233 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
249 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
258 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
275 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
Dupdate_time_restrictions_monitor.h71 return timeout_event_ != brillo::MessageLoop::kTaskIdNull; in IsMonitoringInterval()
98 brillo::MessageLoop::TaskId timeout_event_{brillo::MessageLoop::kTaskIdNull};
Dupdate_time_restrictions_monitor.cc25 using brillo::MessageLoop;
106 timeout_event_ = MessageLoop::current()->PostDelayedTask( in WaitForRestrictedIntervalStarts()
114 timeout_event_ = MessageLoop::kTaskIdNull; in HandleRestrictedIntervalStarts()
120 MessageLoop::current()->CancelTask(timeout_event_); in StopMonitoring()
121 timeout_event_ = MessageLoop::kTaskIdNull; in StopMonitoring()
Dgeneric_variables_unittest.cc29 using brillo::MessageLoop;
167 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
175 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
193 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
198 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
203 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
208 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
Devaluation_context_unittest.cc39 using brillo::MessageLoop;
228 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
235 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
250 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
262 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
264 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
279 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
281 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
306 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
325 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
[all …]
Dupdate_manager_unittest.cc47 using brillo::MessageLoop;
263 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
280 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
287 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
310 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
319 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
327 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
Dreal_device_policy_provider.cc33 using brillo::MessageLoop;
49 MessageLoop::current()->CancelTask(scheduled_refresh_); in ~RealDevicePolicyProvider()
78 MessageLoop::current()->CancelTask(scheduled_refresh_); in OnPropertyChangedCompletedSignal()
79 scheduled_refresh_ = MessageLoop::kTaskIdNull; in OnPropertyChangedCompletedSignal()
99 scheduled_refresh_ = MessageLoop::current()->PostDelayedTask( in RefreshDevicePolicyAndReschedule()
Devaluation_context.cc37 using brillo::MessageLoop;
91 MessageLoop::current()->CancelTask(timeout_event_); in RemoveObserversAndTimeout()
92 timeout_event_ = MessageLoop::kTaskIdNull; in RemoveObserversAndTimeout()
119 timeout_event_ = MessageLoop::kTaskIdNull; in OnTimeout()
221 timeout_event_ = MessageLoop::current()->PostDelayedTask( in RunOnValueChangeOrTimeout()
Dvariable_unittest.cc27 using brillo::MessageLoop;
113 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
122 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
171 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
Devaluation_context.h162 brillo::MessageLoop::TaskId timeout_event_ = brillo::MessageLoop::kTaskIdNull;
/system/bt/include/
Dabstract_message_loop.h68 class AbstractMessageLoop : public base::MessageLoop {
71 return base::MessageLoop::current()->task_runner();
80 options.message_loop_type = base::MessageLoop::TYPE_IO;
/system/update_engine/aosp/
Dcleanup_previous_update_action.cc38 using brillo::MessageLoop;
111 if (scheduled_task_ != MessageLoop::kTaskIdNull) { in AcknowledgeTaskExecuted()
114 scheduled_task_ = MessageLoop::kTaskIdNull; in AcknowledgeTaskExecuted()
120 if (scheduled_task_ == MessageLoop::kTaskIdNull) { in CheckTaskScheduled()
133 if (scheduled_task_ != MessageLoop::kTaskIdNull) { in StopActionInternal()
134 if (MessageLoop::current()->CancelTask(scheduled_task_)) { in StopActionInternal()
142 scheduled_task_ = MessageLoop::kTaskIdNull; in StopActionInternal()
167 scheduled_task_ = MessageLoop::current()->PostDelayedTask( in ScheduleWaitBootCompleted()
195 scheduled_task_ = MessageLoop::current()->PostDelayedTask( in ScheduleWaitMarkBootSuccessful()
268 scheduled_task_ = MessageLoop::current()->PostDelayedTask( in ScheduleWaitForMerge()
Dcleanup_previous_update_action.h79 brillo::MessageLoop::TaskId scheduled_task_{brillo::MessageLoop::kTaskIdNull};
/system/update_engine/
Dlibcurl_http_fetcher.cc46 using brillo::MessageLoop;
466 MessageLoop::current()->PostDelayedTask( in CurlPerformOnce()
520 retry_task_id_ = MessageLoop::current()->PostDelayedTask( in CurlPerformOnce()
546 retry_task_id_ = MessageLoop::current()->PostTask( in CurlPerformOnce()
573 retry_task_id_ = MessageLoop::current()->PostDelayedTask( in CurlPerformOnce()
750 if (timeout_id_ == MessageLoop::kTaskIdNull) { in SetupMessageLoopSources()
752 timeout_id_ = MessageLoop::current()->PostDelayedTask( in SetupMessageLoopSources()
761 retry_task_id_ = MessageLoop::kTaskIdNull; in RetryTimeoutCallback()
774 timeout_id_ = MessageLoop::current()->PostDelayedTask( in TimeoutCallback()
786 MessageLoop::current()->CancelTask(retry_task_id_); in CleanUp()
[all …]
Dlibcurl_http_fetcher.h263 brillo::MessageLoop::TaskId timeout_id_{brillo::MessageLoop::kTaskIdNull};
301 brillo::MessageLoop::TaskId retry_task_id_{brillo::MessageLoop::kTaskIdNull};

12