Home
last modified time | relevance | path

Searched refs:timer_ (Results 1 – 25 of 87) sorted by relevance

1234

/external/libchrome/base/timer/
Dtimer.cc27 : timer_(timer) { in BaseTimerTaskInternal()
34 if (timer_) in ~BaseTimerTaskInternal()
35 timer_->AbandonAndStop(); in ~BaseTimerTaskInternal()
40 if (!timer_) in Run()
44 timer_->scheduled_task_ = nullptr; in Run()
48 Timer* timer = timer_; in Run()
49 timer_ = nullptr; in Run()
54 void Abandon() { timer_ = nullptr; } in Abandon()
57 Timer* timer_; member in base::BaseTimerTaskInternal
Dtimer_unittest.cc71 timer_->Start(FROM_HERE, delay_, this, &OneShotTimerTesterBase::Run); in Start()
74 bool IsRunning() { return timer_->IsRunning(); } in IsRunning()
87 std::unique_ptr<OneShotTimer> timer_ = std::make_unique<OneShotTimer>(); member in base::__anon30b8a4280111::OneShotTimerTesterBase
111 timer_->SetTaskRunner(std::move(task_runner)); in SetTaskRunner()
149 void OnRun() override { timer_.reset(); } in OnRun()
164 timer_.Start(FROM_HERE, delay_, this, &RepeatingTimerTester::Run); in Start()
181 timer_.Stop(); in Run()
186 RepeatingTimer timer_; member in base::__anon30b8a4280111::RepeatingTimerTester
325 : timer_(timer), target_(target) {} in ResetHelper()
329 timer_->Reset(); in Reset()
[all …]
/external/tensorflow/tensorflow/compiler/xla/stream_executor/tpu/
Dtpu_timer.h28 explicit TpuTimer(SE_Timer* timer) : timer_(timer) {} in TpuTimer()
30 tensorflow::tpu::ExecutorApiFn()->TpuTimer_FreeFn(timer_); in ~TpuTimer()
33 return tensorflow::tpu::ExecutorApiFn()->TpuTimer_MicrosecondsFn(timer_); in Microseconds()
36 return tensorflow::tpu::ExecutorApiFn()->TpuTimer_NanosecondsFn(timer_); in Nanoseconds()
40 SE_Timer* timer_;
/external/webrtc/net/dcsctp/rx/
Ddata_tracker_test.cc43 timer_(timer_manager_.CreateTimer(
48 std::make_unique<DataTracker>("log: ", timer_.get(), kInitialTSN)) {
70 std::make_unique<DataTracker>("log: ", timer_.get(), kInitialTSN); in HandoverTracker()
77 std::unique_ptr<Timer> timer_; member in dcsctp::__anon58bc42630111::DataTrackerTest
332 EXPECT_FALSE(timer_->is_running()); in TEST_F()
339 EXPECT_FALSE(timer_->is_running()); in TEST_F()
343 EXPECT_TRUE(timer_->is_running()); in TEST_F()
347 EXPECT_FALSE(timer_->is_running()); in TEST_F()
351 EXPECT_TRUE(timer_->is_running()); in TEST_F()
355 EXPECT_FALSE(timer_->is_running()); in TEST_F()
[all …]
/external/cronet/base/timer/
Dwall_clock_timer.cc19 : timer_(tick_clock), clock_(clock ? clock : DefaultClock::GetInstance()) {} in WallClockTimer()
32 timer_.Start(posted_from_, desired_run_time_ - Now(), this, in Start()
37 timer_.Stop(); in Stop()
43 return timer_.IsRunning(); in IsRunning()
48 timer_.Start(posted_from_, desired_run_time_ - Now(), this, in OnResume()
Dhi_res_timer_manager_win.cc51 timer_.Start(FROM_HERE, kUsageSampleInterval, in HighResolutionTimerManager()
72 timer_.Stop(); in OnSuspend()
79 timer_.Reset(); in OnResume()
/external/icing/icing/util/
Dclock.h83 : timer_(std::move(timer)), callback_(std::move(callback)), unit_(unit) {} in timer_() function
87 callback_(timer_->GetElapsedMilliseconds()); in ~ScopedTimer()
89 callback_(timer_->GetElapsedNanoseconds()); in ~ScopedTimer()
93 const Timer& timer() const { return *timer_; } in timer()
96 std::unique_ptr<Timer> timer_;
/external/pigweed/pw_rpc/fuzz/public/pw_rpc/fuzz/
Dalarm_timer.h27 : timer_(std::move(on_timeout)) {} in AlarmTimer()
44 timer_.InvokeAfter(timeout_); in Restart()
49 void Cancel() { timer_.Cancel(); } in Cancel()
52 chrono::SystemTimer timer_;
/external/cronet/components/metrics/
Dmetrics_scheduler.cc40 if (timer_.IsRunning()) in Stop()
41 timer_.Stop(); in Stop()
68 if (timer_.IsRunning() || callback_pending_) in ScheduleNextTask()
71 timer_.Start(FROM_HERE, interval_, this, &MetricsScheduler::TriggerTask); in ScheduleNextTask()
/external/cronet/net/reporting/
Dreporting_garbage_collector.cc30 : context_(context), timer_(std::make_unique<base::OneShotTimer>()) { in ReportingGarbageCollectorImpl()
41 timer_ = std::move(timer); in SetTimerForTesting()
86 if (timer_->IsRunning()) in EnsureTimerIsRunning()
89 timer_->Start(FROM_HERE, context_->policy().garbage_collection_interval, in EnsureTimerIsRunning()
95 std::unique_ptr<base::OneShotTimer> timer_; member in net::__anon75e0b44b0111::ReportingGarbageCollectorImpl
/external/cronet/net/quic/
Dquic_chromium_alarm_factory.cc32 timer_(std::make_unique<base::OneShotTimer>(this)) { in QuicChromeAlarm()
33 timer_->SetTaskRunner(task_runner); in QuicChromeAlarm()
40 timer_->Start(FROM_HERE, base::Microseconds(delay_us), on_alarm_callback_); in SetImpl()
45 timer_->Stop(); in CancelImpl()
72 const std::unique_ptr<base::OneShotTimer> timer_; member in net::__anond6f29b530111::QuicChromeAlarm
/external/grpc-grpc/src/cpp/common/
Dalarm.cc41 grpc_timer_init_unset(&timer_); in AlarmImpl()
71 grpc_timer_init(&timer_, grpc_timespec_to_millis_round_up(deadline), in Set()
86 grpc_timer_init(&timer_, grpc_timespec_to_millis_round_up(deadline), in Set()
91 grpc_timer_cancel(&timer_); in Cancel()
106 grpc_timer timer_; member in grpc::internal::AlarmImpl
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/
Dalarm.cc42 grpc_timer_init_unset(&timer_); in AlarmImpl()
74 grpc_timer_init(&timer_, grpc_timespec_to_millis_round_up(deadline), in Set()
97 grpc_timer_init(&timer_, grpc_timespec_to_millis_round_up(deadline), in Set()
103 grpc_timer_cancel(&timer_); in Cancel()
118 grpc_timer timer_; member in grpc::internal::AlarmImpl
/external/webrtc/modules/audio_coding/neteq/
Dexpand_uma_logger.cc32 timer_(GetNewCountdown(tick_timer_, logging_period_s_)) { in ExpandUmaLogger()
53 if (!timer_->Finished()) { in UpdateSampleCounter()
68 timer_ = GetNewCountdown(tick_timer_, logging_period_s_); in UpdateSampleCounter()
/external/grpc-grpc/test/cpp/qps/
Dserver.h43 : timer_(new UsageTimer), last_reset_poll_count_(0) { in Server()
59 timer.swap(timer_); in Mark()
63 timer_result = timer_->Mark(); in Mark()
148 std::unique_ptr<UsageTimer> timer_; variable
/external/libchrome/components/timers/
Dalarm_timer_unittest.cc38 timer_(new timers::SimpleAlarmTimer()) {} in AlarmTimerTester()
40 timer_->Start( in Start()
55 std::unique_ptr<timers::SimpleAlarmTimer> timer_; member in timers::__anonc81db9b20111::AlarmTimerTester
68 timer_(new timers::SimpleAlarmTimer()) {} in SelfDeletingAlarmTimerTester()
70 timer_->Start(FROM_HERE, delay_, in Start()
78 timer_.reset(); in Run()
87 std::unique_ptr<timers::SimpleAlarmTimer> timer_; member in timers::__anonc81db9b20111::SelfDeletingAlarmTimerTester
/external/libchrome/base/files/
Dimportant_file_writer.h122 : timer_; in timer()
124 Timer& timer() { return timer_override_ ? *timer_override_ : timer_; } in timer()
139 OneShotTimer timer_; variable
/external/cronet/net/spdy/
Dbidirectional_stream_spdy_impl.cc53 timer_ = std::move(timer); in Start()
88 DCHECK(!timer_->IsRunning()) << "There should be only one ReadData in flight"; in ReadData()
269 timer_->Stop(); in OnClose()
348 if (timer_->IsRunning()) { in ScheduleBufferedRead()
354 timer_->Start(FROM_HERE, base::Milliseconds(kBufferTimeMs), in ScheduleBufferedRead()
360 DCHECK(!timer_->IsRunning()); in DoBufferedRead()
/external/webrtc/rtc_base/
Dtask_queue_win.cc177 MultimediaTimer timer_; member in webrtc::__anon5bbcb3360111::TaskQueueWin
265 HANDLE handles[2] = {*timer_.event_for_wait(), in_queue_}; in RunThreadMain()
281 ::WaitForSingleObject(*timer_.event_for_wait(), 0) == WAIT_OBJECT_0)) { in RunThreadMain()
283 timer_.Cancel(); in RunThreadMain()
363 if (!timer_.StartOneShotTimer(milliseconds)) in ScheduleNextTimer()
368 timer_.Cancel(); in CancelTimers()
/external/cronet/components/cronet/
Dhost_cache_persistence_manager.cc47 timer_.Stop(); in ~HostCachePersistenceManager()
69 if (timer_.IsRunning()) in ScheduleWrite()
73 timer_.Start(FROM_HERE, delay_, in ScheduleWrite()
/external/cronet/net/websockets/
Dwebsocket_stream.cc175 timer_ = std::move(timer); in Start()
176 timer_->Start(FROM_HERE, timeout, in Start()
183 DCHECK(timer_); in PerformUpgrade()
186 timer_->Stop(); in PerformUpgrade()
225 DCHECK(timer_); in ReportFailure()
226 timer_->Stop(); in ReportFailure()
295 std::unique_ptr<base::OneShotTimer> timer_; member in net::__anon7399aef50111::WebSocketStreamRequestImpl
/external/cronet/net/socket/
Dconnect_job.cc112 timer_.Start(FROM_HERE, timeout_duration_, this, &ConnectJob::OnTimeout); in Connect()
178 timer_.Stop(); in ResetTimer()
180 timer_.Start(FROM_HERE, remaining_time, this, &ConnectJob::OnTimeout); in ResetTimer()
184 return timer_.IsRunning(); in TimerIsRunning()
/external/libcxx/utils/google-benchmark/src/
Dbenchmark.cc138 timer_(timer), in State()
171 timer_->StopTimer(); in PauseTiming()
176 timer_->StartTimer(); in ResumeTiming()
190 if (timer_->running()) timer_->StopTimer(); in SkipWithError()
194 timer_->SetIterationTime(seconds); in SetIterationTime()
/external/google-benchmark/src/
Dbenchmark.cc132 timer_(timer), in State()
165 timer_->StopTimer(); in PauseTiming()
170 timer_->StartTimer(); in ResumeTiming()
184 if (timer_->running()) timer_->StopTimer(); in SkipWithError()
188 timer_->SetIterationTime(seconds); in SetIterationTime()
/external/cronet/base/files/
Dimportant_file_writer.h158 return timer_override_ ? *timer_override_ : timer_; in timer()
160 OneShotTimer& timer() { return timer_override_ ? *timer_override_ : timer_; } in timer()
199 OneShotTimer timer_; variable

1234