/external/libbrillo/brillo/ |
D | backoff_entry_unittest.cc | 46 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease()); in TEST() 69 entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1)); in TEST() 71 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST() 76 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST() 80 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( in TEST() 93 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000)); in TEST() 101 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1000)); in TEST() 138 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(1000), result); in TEST() 139 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease()); in TEST() 144 EXPECT_EQ(entry.ImplGetTimeNow() + TimeDelta::FromMilliseconds(2000), result); in TEST() [all …]
|
/external/libchrome/base/time/ |
D | time_unittest.cc | 452 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000); in TEST_F() 464 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F() 513 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F() 525 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1001); in TEST_F() 627 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST() 707 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST() 783 static_assert(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000), in TEST() 786 TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000), ""); in TEST() 788 TimeDelta::FromSecondsD(2.3) == TimeDelta::FromMilliseconds(2300), ""); in TEST() 797 EXPECT_EQ(13, TimeDelta::FromMilliseconds(13).InMilliseconds()); in TEST() [all …]
|
/external/libchrome/base/synchronization/ |
D | waitable_event_unittest.cc | 29 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST() 33 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST() 48 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST() 52 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST() 55 EXPECT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST() 105 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev); in TEST() 124 WaitableEventSignaler signaler(TimeDelta::FromMilliseconds(10), ev[2]); in TEST() 150 TimeDelta thread_delay = TimeDelta::FromMilliseconds(10); in TEST()
|
D | condition_variable_unittest.cc | 46 : kZeroMs(TimeDelta::FromMilliseconds(0)), in ConditionVariableTest() 47 kTenMs(TimeDelta::FromMilliseconds(10)), in ConditionVariableTest() 48 kThirtyMs(TimeDelta::FromMilliseconds(30)), in ConditionVariableTest() 49 kFortyFiveMs(TimeDelta::FromMilliseconds(45)), in ConditionVariableTest() 50 kSixtyMs(TimeDelta::FromMilliseconds(60)), in ConditionVariableTest() 51 kOneHundredMs(TimeDelta::FromMilliseconds(100)) { in ConditionVariableTest() 184 const TimeDelta WAIT_TIME = TimeDelta::FromMilliseconds(300); in TEST_F() 186 const TimeDelta FUDGE_TIME = TimeDelta::FromMilliseconds(50); in TEST_F() 231 const TimeDelta kWaitTime = TimeDelta::FromMilliseconds(300); in TEST_F() 233 const TimeDelta kFudgeTime = TimeDelta::FromMilliseconds(50); in TEST_F() [all …]
|
D | lock_unittest.cc | 31 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 37 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 68 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 74 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 81 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 160 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10)); in DoStuff()
|
D | spin_wait.h | 46 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
|
/external/libchrome/base/timer/ |
D | timer_unittest.cc | 44 timer_.Start(FROM_HERE, TimeDelta::FromMilliseconds(delay_ms_), this, in Start() 73 timer_->Start(FROM_HERE, TimeDelta::FromMilliseconds(10), this, in Start() 214 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_NoCall() 229 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(1), &target, in RunTest_DelayTimer_OneCall() 260 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Reset() 268 timers[i].Start(FROM_HERE, TimeDelta::FromMilliseconds(i * 10), in RunTest_DelayTimer_Reset() 294 base::DelayTimer timer(FROM_HERE, TimeDelta::FromMilliseconds(50), &target, in RunTest_DelayTimer_Deleted() 301 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); in RunTest_DelayTimer_Deleted() 347 TimeDelta::FromMilliseconds(10)); in TEST() 354 TimeDelta::FromMilliseconds(10)); in TEST() [all …]
|
/external/libchrome/base/test/ |
D | test_timeouts.h | 23 return base::TimeDelta::FromMilliseconds(tiny_timeout_ms_); in tiny_timeout() 30 return base::TimeDelta::FromMilliseconds(action_timeout_ms_); in action_timeout() 38 return base::TimeDelta::FromMilliseconds(action_max_timeout_ms_); in action_max_timeout() 45 return base::TimeDelta::FromMilliseconds(test_launcher_timeout_ms_); in test_launcher_timeout()
|
/external/libchrome/base/profiler/ |
D | tracked_time_unittest.cc | 23 Duration::FromMilliseconds(kSomeMilliseconds); in TEST() 29 base::TimeDelta::FromMilliseconds(kReallyBigMilliseconds); in TEST() 41 Duration first = Duration::FromMilliseconds(kFirstMilliseconds); in TEST() 42 Duration second = Duration::FromMilliseconds(kSecondMilliseconds); in TEST()
|
D | tracked_time.h | 37 static Duration FromMilliseconds(int ms); 59 static TrackedTime FromMilliseconds(int32_t ms) { return TrackedTime(ms); } in FromMilliseconds() function
|
/external/libchrome/base/files/ |
D | important_file_writer_unittest.cc | 152 TimeDelta::FromMilliseconds(25)); in TEST_F() 159 TimeDelta::FromMilliseconds(100)); in TEST_F() 175 TimeDelta::FromMilliseconds(100)); in TEST_F() 185 TimeDelta::FromMilliseconds(25)); in TEST_F() 192 TimeDelta::FromMilliseconds(100)); in TEST_F()
|
/external/libchrome/base/trace_event/ |
D | trace_event_synthetic_delay_unittest.cc | 31 AdvanceTime(base::TimeDelta::FromMilliseconds(kShortDurationMs / 10)); in Now() 39 base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in ConfigureDelay() 82 base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in TEST_F() 104 AdvanceTime(base::TimeDelta::FromMilliseconds(kTargetDurationMs)); in TEST_F()
|
/external/libchrome/base/metrics/ |
D | histogram_macros.h | 123 name, sample, base::TimeDelta::FromMilliseconds(1), \ 191 name, sample, base::TimeDelta::FromMilliseconds(1), \ 195 name, sample, base::TimeDelta::FromMilliseconds(10), \ 200 name, sample, base::TimeDelta::FromMilliseconds(1), \ 206 name, sample, base::TimeDelta::FromMilliseconds(1), \
|
/external/libchrome/base/message_loop/ |
D | message_pump_glib_unittest.cc | 108 Time future = last_time + TimeDelta::FromMilliseconds(delay_ms); in AddEventHelper() 255 TimeDelta::FromMilliseconds(10*i)); in TEST_F() 265 TimeDelta::FromMilliseconds(150)); in TEST_F() 461 TimeDelta::FromMilliseconds(30)); in TestGLibLoopInternal() 465 TimeDelta::FromMilliseconds(40)); in TestGLibLoopInternal() 496 TimeDelta::FromMilliseconds(30)); in TestGtkLoopInternal() 500 TimeDelta::FromMilliseconds(40)); in TestGtkLoopInternal()
|
D | message_loop_test.cc | 89 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc() 130 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in RunTest_PostDelayedTask_Basic() 156 TimeDelta::FromMilliseconds(200)); in RunTest_PostDelayedTask_InDelayOrder() 161 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_InDelayOrder() 181 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in RunTest_PostDelayedTask_InPostOrder() 204 const TimeDelta kPause = TimeDelta::FromMilliseconds(50); in RunTest_PostDelayedTask_InPostOrder_2() 212 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_InPostOrder_2() 243 TimeDelta::FromMilliseconds(1)); in RunTest_PostDelayedTask_InPostOrder_3() 268 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer() 282 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer() [all …]
|
D | message_loop_unittest.cc | 96 SlowFunc(TimeDelta::FromMilliseconds(10), quit_counter); in RecordRunTimeFunc() 132 TimeDelta::FromMilliseconds(10)); in RunTest_PostDelayedTask_SharedTimer_SubPump() 146 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_PostDelayedTask_SharedTimer_SubPump() 501 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in RunTest_IOHandler() 544 TimeDelta delay = TimeDelta::FromMilliseconds(100); in RunTest_WaitForIO() 663 const TimeDelta kFastTimer = TimeDelta::FromMilliseconds(5); in TEST() 664 const TimeDelta kSlowTimer = TimeDelta::FromMilliseconds(100); in TEST() 811 const TimeDelta kDelay = TimeDelta::FromMilliseconds(100); in TEST()
|
/external/libchrome/base/task_scheduler/ |
D | scheduler_lock_unittest.cc | 43 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in Run() 103 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST() 109 PlatformThread::Sleep(TimeDelta::FromMilliseconds(base::RandInt(0, 19))); in TEST()
|
/external/libmojo/base/android/library_loader/ |
D | library_loader_hooks.cc | 75 base::TimeDelta::FromMilliseconds(g_renderer_library_load_time_ms)); in RecordChromiumAndroidLinkerRendererHistogram() 132 base::TimeDelta::FromMilliseconds(library_load_time_ms)); in RecordChromiumAndroidLinkerBrowserHistogram()
|
/external/libchrome/base/ |
D | tracked_objects_unittest.cc | 190 base::TimeDelta::FromMilliseconds(start_time); in TEST_F() 452 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 481 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 501 const TrackedTime kTimePosted1 = TrackedTime::FromMilliseconds(9); in TEST_F() 721 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 786 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 845 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 880 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 917 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() 958 const TrackedTime kTimePosted = TrackedTime::FromMilliseconds(1); in TEST_F() [all …]
|
/external/libchrome/base/threading/ |
D | thread_unittest.cc | 37 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(500)); in Init() 162 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10)); in TEST_F() 180 base::TimeDelta::FromMilliseconds(20))); in TEST_F()
|
/external/libchrome/base/process/ |
D | kill_posix.cc | 117 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit() 183 PlatformThread::Sleep(TimeDelta::FromMilliseconds(500)); in WaitForChildToDie()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 45 … Assert.AreEqual(TimeSpan.FromMilliseconds(1), new Duration { Nanos = 1000000 }.ToTimeSpan()); in ToTimeSpan() 46 … Assert.AreEqual(TimeSpan.FromMilliseconds(-1), new Duration { Nanos = -1000000 }.ToTimeSpan()); in ToTimeSpan()
|
/external/libchrome/base/debug/ |
D | debugger.cc | 28 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForDebugger()
|
/external/libmojo/base/android/ |
D | animation_frame_time_histogram.cc | 23 base::TimeDelta::FromMilliseconds(frame_times_ms[i])); in SaveHistogram()
|
/external/protobuf/python/google/protobuf/internal/ |
D | well_known_types_test.py | 158 message.FromMilliseconds(1) 163 message.FromMilliseconds(-1) 209 message.FromMilliseconds(1) 214 message.FromMilliseconds(-1) 242 message.FromMilliseconds(1999)
|