/external/libchrome/base/task_scheduler/ |
D | sequence_sort_key_unittest.cc | 16 TimeTicks::FromInternalValue(1000)); in TEST() 18 TimeTicks::FromInternalValue(2000)); in TEST() 20 TimeTicks::FromInternalValue(1000)); in TEST() 22 TimeTicks::FromInternalValue(2000)); in TEST() 24 TimeTicks::FromInternalValue(1000)); in TEST() 26 TimeTicks::FromInternalValue(2000)); in TEST() 73 TimeTicks::FromInternalValue(1000)); in TEST() 75 TimeTicks::FromInternalValue(2000)); in TEST() 77 TimeTicks::FromInternalValue(1000)); in TEST() 79 TimeTicks::FromInternalValue(2000)); in TEST() [all …]
|
/external/libchrome/base/task/sequence_manager/ |
D | time_domain_unittest.cc | 36 TestTimeDomain() : now_(TimeTicks() + TimeDelta::FromSeconds(1)) {} in TestTimeDomain() 46 TimeTicks Now() const override { return now_; } in Now() 62 void(LazyNow* lazy_now, TimeTicks run_time)); 64 void SetNow(TimeTicks now) { now_ = now; } in SetNow() 67 TimeTicks now_; 95 TimeTicks delayed_runtime = time_domain_->Now() + delay; in TEST_F() 97 TimeTicks now = time_domain_->Now(); in TEST_F() 107 EXPECT_CALL(*time_domain_.get(), SetNextDelayedDoWork(_, TimeTicks::Max())) in TEST_F() 114 TimeTicks delayed_runtime1 = time_domain_->Now() + delay1; in TEST_F() 115 TimeTicks delayed_runtime2 = time_domain_->Now() + delay2; in TEST_F() [all …]
|
D | task_queue_impl.h | 83 TimeTicks time; 110 TimeTicks desired_run_time, 114 TimeTicks desired_run_time, 174 using OnNextWakeUpChangedCallback = RepeatingCallback<void(TimeTicks)>; 193 Optional<TimeTicks> GetNextScheduledWakeUp(); 203 void InsertFenceAt(TimeTicks time); 220 void AsValueInto(TimeTicks now, trace_event::TracedValue* state) const; 291 void SweepCanceledDelayedTasks(TimeTicks now); 360 Optional<TimeTicks> delayed_fence; 376 TimeTicks now); [all …]
|
/external/libbrillo/brillo/ |
D | backoff_entry_test.cc | 9 using base::TimeTicks; 19 now_(TimeTicks()) { in TestBackoffEntry() 22 SetCustomReleaseTime(TimeTicks()); in TestBackoffEntry() 27 TimeTicks ImplGetTimeNow() const override { return now_; } in ImplGetTimeNow() 29 void set_now(const TimeTicks& now) { in set_now() 34 TimeTicks now_; 54 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); in TEST() 132 TimeTicks result = entry.GetReleaseTime(); in TEST() 170 TimeTicks result = entry.GetReleaseTime(); in TEST() 208 TimeTicks result = entry.GetReleaseTime(); in TEST() [all …]
|
D | backoff_entry_unittest.cc | 9 using base::TimeTicks; 19 now_(TimeTicks()) { in TestBackoffEntry() 22 SetCustomReleaseTime(TimeTicks()); in TestBackoffEntry() 27 TimeTicks ImplGetTimeNow() const override { return now_; } in ImplGetTimeNow() 29 void set_now(const TimeTicks& now) { in set_now() 34 TimeTicks now_; 54 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); in TEST() 132 TimeTicks result = entry.GetReleaseTime(); in TEST() 170 TimeTicks result = entry.GetReleaseTime(); in TEST() 208 TimeTicks result = entry.GetReleaseTime(); in TEST() [all …]
|
D | backoff_entry.cc | 58 base::TimeTicks now = ImplGetTimeNow(); in GetTimeUntilRelease() 64 base::TimeTicks BackoffEntry::GetReleaseTime() const { in GetReleaseTime() 68 void BackoffEntry::SetCustomReleaseTime(const base::TimeTicks& release_time) { in SetCustomReleaseTime() 76 base::TimeTicks now = ImplGetTimeNow(); in CanDiscard() 105 exponential_backoff_release_time_ = base::TimeTicks(); in Reset() 108 base::TimeTicks BackoffEntry::ImplGetTimeNow() const { in ImplGetTimeNow() 109 return base::TimeTicks::Now(); in ImplGetTimeNow() 112 base::TimeTicks BackoffEntry::CalculateReleaseTime() const { in CalculateReleaseTime() 140 (ImplGetTimeNow() - base::TimeTicks()).InMicroseconds(); in CalculateReleaseTime() 163 base::TimeTicks() + base::TimeDelta::FromMicroseconds(release_time_us), in CalculateReleaseTime()
|
D | backoff_entry.h | 73 base::TimeTicks GetReleaseTime() const; 80 void SetCustomReleaseTime(const base::TimeTicks& release_time); 95 virtual base::TimeTicks ImplGetTimeNow() const; 99 base::TimeTicks CalculateReleaseTime() const; 103 base::TimeTicks exponential_backoff_release_time_;
|
/external/libchrome/base/synchronization/ |
D | waitable_event_perftest.cc | 30 TimeTicks start = TimeTicks::Now(); in Signal() 32 signal_times_.push_back(TimeTicks::Now() - start); in Signal() 36 TimeTicks start = TimeTicks::Now(); in Wait() 38 wait_times_.push_back(TimeTicks::Now() - start); in Wait() 41 bool TimedWaitUntil(const TimeTicks& end_time) { in TimedWaitUntil() 42 TimeTicks start = TimeTicks::Now(); in TimedWaitUntil() 44 wait_times_.push_back(TimeTicks::Now() - start); in TimedWaitUntil() 161 TimeTicks end_time = TimeTicks::Now() + TimeDelta::FromSeconds(1); in TEST()
|
D | waitable_event_unittest.cc | 217 TimeTicks start = TimeTicks::Now(); in TEST() 221 EXPECT_GE(TimeTicks::Now() - start, thread_delay); in TEST() 233 TimeTicks start_time = TimeTicks::Now(); in TEST() 235 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 244 TimeTicks start_time(TimeTicks::Now()); in TEST() 253 EXPECT_FALSE(ev.TimedWaitUntil(TimeTicks())); in TEST() 258 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST() 265 start_time = TimeTicks::Now(); in TEST() 268 EXPECT_TRUE(ev.TimedWaitUntil(TimeTicks::Max())); in TEST() 269 EXPECT_GE(TimeTicks::Now() - start_time, delay); in TEST()
|
D | spin_wait.h | 38 base::TimeTicks start = base::TimeTicks::Now(); \ 41 if (kTimeout < base::TimeTicks::Now() - start) { \ 42 EXPECT_LE((base::TimeTicks::Now() - start).InMilliseconds(), \
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 821 TEST(TimeTicks, Deltas) { in TEST() argument 823 TimeTicks ticks_start = TimeTicks::Now(); in TEST() 825 TimeTicks ticks_stop = TimeTicks::Now(); in TEST() 848 static void HighResClockTest(TimeTicks (*GetTicks)()) { in HighResClockTest() 851 if (!TimeTicks::IsHighResolution()) in HighResClockTest() 868 TimeTicks ticks_start = GetTicks(); in HighResClockTest() 885 TEST(TimeTicks, HighRes) { in TEST() argument 886 HighResClockTest(&TimeTicks::Now); in TEST() 891 static TimeTicks Now() { in Now() 896 static TimeTicks now_ticks_; [all …]
|
D | time_now_posix.cc | 88 TimeTicks TimeTicksNowIgnoringOverride() { in TimeTicksNowIgnoringOverride() 89 return TimeTicks() + TimeDelta::FromMicroseconds(ClockNow(CLOCK_MONOTONIC)); in TimeTicksNowIgnoringOverride() 94 TimeTicks::Clock TimeTicks::GetClock() { in GetClock() 99 bool TimeTicks::IsHighResolution() { in IsHighResolution() 104 bool TimeTicks::IsConsistentAcrossProcesses() { in IsConsistentAcrossProcesses()
|
/external/libchrome/base/json/ |
D | json_perftest.cc | 60 TimeTicks start_write = TimeTicks::Now(); in TestWriteAndRead() 62 TimeTicks end_write = TimeTicks::Now(); in TestWriteAndRead() 67 TimeTicks start_read = TimeTicks::Now(); in TestWriteAndRead() 69 TimeTicks end_read = TimeTicks::Now(); in TestWriteAndRead()
|
/external/libchrome/base/threading/ |
D | watchdog.cc | 28 TimeTicks last_debugged_alarm_time; 85 ArmAtStartTime(TimeTicks::Now()); in Arm() 89 ArmAtStartTime(TimeTicks::Now() - time_delta); in ArmSomeTimeDeltaAgo() 93 void Watchdog::ArmAtStartTime(const TimeTicks start_time) { in ArmAtStartTime() 131 (TimeTicks::Now() - watchdog_->start_time_); in ThreadMain() 152 TimeTicks last_alarm_time = TimeTicks::Now(); in ThreadMain() 157 TimeDelta last_alarm_delay = TimeTicks::Now() - last_alarm_time; in ThreadMain() 179 static_data->last_debugged_alarm_time = TimeTicks::Min(); in ResetStaticData()
|
/external/libchrome/libchrome_tools/patches/ |
D | Fix-TimeDelta.patch | 70 @@ -903,8 +893,8 @@ class BASE_EXPORT TimeTicks : public time_internal::TimeBase<TimeTicks> { 71 return TimeTicks(us); 80 @@ -926,8 +916,7 @@ BASE_EXPORT std::ostream& operator<<(std::ostream& os, TimeTicks time_ticks); 98 +constexpr TimeTicks TestTimeTicksConstexprCopyAssignment() { 99 + TimeTicks a = TimeTicks::FromInternalValue(12345); 100 + TimeTicks b; 105 +TEST(TimeTicks, ConstexprAndTriviallyCopiable) { 106 + // "Trivially copyable" is necessary for use in std::atomic<TimeTicks>. 107 + static_assert(std::is_trivially_copyable<TimeTicks>(), ""); 110 + constexpr TimeTicks a = TimeTicks::FromInternalValue(12345); [all …]
|
/external/libchrome/base/task/sequence_manager/test/ |
D | mock_time_domain.h | 17 explicit MockTimeDomain(TimeTicks initial_now_ticks); 20 void SetNowTicks(TimeTicks now_ticks); 24 TimeTicks Now() const override; 26 void SetNextDelayedDoWork(LazyNow* lazy_now, TimeTicks run_time) override; 30 TimeTicks now_ticks_;
|
D | fake_task.cc | 12 TimeTicks()) {} in FakeTask() 17 FakeTaskTiming::FakeTaskTiming(TimeTicks start, TimeTicks end) in FakeTaskTiming() 24 FakeTaskTiming::FakeTaskTiming(TimeTicks start, in FakeTaskTiming() 25 TimeTicks end, in FakeTaskTiming()
|
D | fake_task.h | 21 FakeTaskTiming(TimeTicks start, TimeTicks end); 22 FakeTaskTiming(TimeTicks start, 23 TimeTicks end,
|
D | mock_time_domain.cc | 10 MockTimeDomain::MockTimeDomain(TimeTicks initial_now_ticks) in MockTimeDomain() 19 TimeTicks MockTimeDomain::Now() const { in Now() 23 void MockTimeDomain::SetNowTicks(TimeTicks now_ticks) { in SetNowTicks() 32 TimeTicks run_time) {} in SetNextDelayedDoWork()
|
/external/libchrome/base/message_loop/ |
D | message_loop_task_runner_perftest.cc | 51 base::TimeTicks start = base::TimeTicks::Now(); in Run() 52 base::TimeTicks now; in Run() 75 now = base::TimeTicks::Now(); in Run() 106 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override {} in ScheduleDelayedWork() 156 base::TimeTicks start = base::TimeTicks::Now(); in Run() 157 base::TimeTicks now; in Run() 169 now = base::TimeTicks::Now(); in Run()
|
D | message_pump_android.cc | 84 DCHECK_EQ(TimeTicks::GetClock(), TimeTicks::Clock::LINUX_CLOCK_MONOTONIC); in MessagePumpForUI() 122 delayed_scheduled_time_ = base::TimeTicks(); in OnDelayedLooperCallback() 124 base::TimeTicks next_delayed_work_time; in OnDelayedLooperCallback() 136 base::TimeTicks next_delayed_work_time; in OnNonDelayedLooperCallback() 278 void MessagePumpForUI::ScheduleDelayedWork(const TimeTicks& delayed_work_time) { in ScheduleDelayedWork() 293 ts.it_value.tv_sec = nanos / TimeTicks::kNanosecondsPerSecond; in ScheduleDelayedWork() 294 ts.it_value.tv_nsec = nanos % TimeTicks::kNanosecondsPerSecond; in ScheduleDelayedWork()
|
/external/libchrome/mojo/public/cpp/base/ |
D | time_unittest.cc | 29 TEST(TimeTest, TimeTicks) { in TEST() argument 30 base::TimeTicks in = base::TimeTicks::Now(); in TEST() 31 base::TimeTicks out; in TEST() 33 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::TimeTicks>(&in, &out)); in TEST()
|
D | time_mojom_traits.cc | 37 base::TimeTicks>::internal_value(const base::TimeTicks& time) { in internal_value() 41 bool StructTraits<mojo_base::mojom::TimeTicksDataView, base::TimeTicks>::Read( in Read() 43 base::TimeTicks* time) { in Read() 44 *time = base::TimeTicks() + in Read()
|
/external/libchrome/base/trace_event/ |
D | memory_dump_scheduler_unittest.cc | 69 const TimeTicks tstart = TimeTicks::Now(); in TEST_F() 72 const double time_ms = (TimeTicks::Now() - tstart).InMillisecondsF(); in TEST_F() 92 TimeTicks t1, t2, t3; in TEST_F() 97 Invoke([&t1](MemoryDumpLevelOfDetail) { t1 = TimeTicks::Now(); })); in TEST_F() 102 Invoke([&t2](MemoryDumpLevelOfDetail) { t2 = TimeTicks::Now(); })); in TEST_F() 105 Invoke([&t3](MemoryDumpLevelOfDetail) { t3 = TimeTicks::Now(); })); in TEST_F() 145 const TimeTicks tstart = TimeTicks::Now(); in TEST_F() 154 const double time_ms = (TimeTicks::Now() - tstart).InMillisecondsF(); in TEST_F()
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner.h | 136 TimeTicks start_ticks, 162 TimeTicks NowTicks() const; 219 TimeTicks NowTicks() const override; 252 void ForwardClocksUntilTickTime(TimeTicks later_ticks); 257 bool DequeueNextTask(const TimeTicks& reference, 271 TimeTicks now_ticks_;
|