/external/chromium_org/cc/scheduler/ |
rolling_time_delta_history_unittest.cc | 14 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(0.0)); 15 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(50.0)); 16 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(100.0)); 18 empty_history.InsertSample(base::TimeDelta::FromMilliseconds(10)); 19 empty_history.InsertSample(base::TimeDelta::FromMilliseconds(15)); 20 empty_history.InsertSample(base::TimeDelta::FromMilliseconds(20)); 22 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(0.0)); 23 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(50.0)); 24 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(100.0)); 27 EXPECT_EQ(base::TimeDelta(), empty_history.Percentile(0.0)) [all...] |
/external/chromium_org/media/base/ |
clock_unittest.cc | 18 // Provide a stream output operator so we can use EXPECT_EQ(...) with TimeDelta. 21 static std::ostream& operator<<(std::ostream& stream, const TimeDelta& time) { 39 const base::TimeDelta kDuration = 40 base::TimeDelta::FromSeconds(kDurationInSeconds); 45 void AdvanceSystemTime(base::TimeDelta delta) { 51 base::TimeDelta time_elapsed_; 55 const base::TimeDelta kExpected = base::TimeDelta::FromSeconds(0); 60 const base::TimeDelta kZero; 61 const base::TimeDelta kTimeToAdvance = base::TimeDelta::FromSeconds(2) [all...] |
ranges.cc | 10 void Ranges<base::TimeDelta>::DCheckLT(const base::TimeDelta& lhs, 11 const base::TimeDelta& rhs) const {
|
clock.cc | 26 base::TimeDelta Clock::Play() { 33 base::TimeDelta Clock::Pause() { 45 void Clock::SetTime(base::TimeDelta current_time, base::TimeDelta max_time) { 54 base::TimeDelta Clock::Elapsed() { 56 return base::TimeDelta(); 62 base::TimeDelta elapsed = EstimatedElapsedTime(); 72 void Clock::SetMaxTime(base::TimeDelta max_time) { 83 void Clock::SetDuration(base::TimeDelta duration) { 84 DCHECK(duration > base::TimeDelta()); [all...] |
audio_timestamp_helper.cc | 20 void AudioTimestampHelper::SetBaseTimestamp(base::TimeDelta base_timestamp) { 25 base::TimeDelta AudioTimestampHelper::base_timestamp() const { 35 base::TimeDelta AudioTimestampHelper::GetTimestamp() const { 39 base::TimeDelta AudioTimestampHelper::GetFrameDuration(int frame_count) const { 41 base::TimeDelta end_timestamp = ComputeTimestamp(frame_count_ + frame_count); 45 int64 AudioTimestampHelper::GetFramesToTarget(base::TimeDelta target) const { 57 base::TimeDelta delta_from_base = target - base_timestamp_; 67 base::TimeDelta AudioTimestampHelper::ComputeTimestamp( 72 return base_timestamp_ + base::TimeDelta::FromMicroseconds(frames_us);
|
/external/chromium/chrome/common/ |
time_format_unittest.cc | 15 using base::TimeDelta; 22 Time yesterday = now - TimeDelta::FromDays(1); 26 Time two_days_ago = now - TimeDelta::FromDays(2); 30 Time a_week_ago = now - TimeDelta::FromDays(7); 36 void TestTimeFormats(const TimeDelta delta, const char* expected_ascii) { 48 const TimeDelta one_day = TimeDelta::FromDays(1); 49 const TimeDelta three_days = TimeDelta::FromDays(3); 50 const TimeDelta one_hour = TimeDelta::FromHours(1) [all...] |
/external/chromium_org/ui/base/l10n/ |
time_format_unittest.cc | 16 using base::TimeDelta; 18 void TestTimeFormats(const TimeDelta& delta, const char* expected_ascii) { 28 const TimeDelta one_day = TimeDelta::FromDays(1); 29 const TimeDelta three_days = TimeDelta::FromDays(3); 30 const TimeDelta one_hour = TimeDelta::FromHours(1); 31 const TimeDelta four_hours = TimeDelta::FromHours(4) [all...] |
/external/chromium_org/chrome/browser/chromeos/kiosk_mode/ |
mock_kiosk_mode_settings.cc | 23 base::TimeDelta MockKioskModeSettings::GetIdleLogoutTimeout() const { 25 return base::TimeDelta::FromSeconds(-1); 27 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutTimeoutMs); 30 base::TimeDelta MockKioskModeSettings::GetIdleLogoutWarningDuration() const { 32 return base::TimeDelta::FromSeconds(-1); 34 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutWarningDurationMs);
|
/external/chromium_org/webkit/browser/appcache/ |
appcache_histograms.h | 11 class TimeDelta; 32 static void AddTaskQueueTimeSample(const base::TimeDelta& duration); 33 static void AddTaskRunTimeSample(const base::TimeDelta& duration); 34 static void AddCompletionQueueTimeSample(const base::TimeDelta& duration); 35 static void AddCompletionRunTimeSample(const base::TimeDelta& duration); 36 static void AddNetworkJobStartDelaySample(const base::TimeDelta& duration); 37 static void AddErrorJobStartDelaySample(const base::TimeDelta& duration); 38 static void AddAppCacheJobStartDelaySample(const base::TimeDelta& duration);
|
appcache_histograms.cc | 29 const base::TimeDelta& duration) { 34 const base::TimeDelta& duration) { 39 const base::TimeDelta& duration) { 44 const base::TimeDelta& duration) { 49 const base::TimeDelta& duration) { 54 const base::TimeDelta& duration) { 59 const base::TimeDelta& duration) {
|
/external/chromium_org/base/test/ |
test_timeouts.h | 21 static base::TimeDelta tiny_timeout() { 23 return base::TimeDelta::FromMilliseconds(tiny_timeout_ms_); 28 static base::TimeDelta action_timeout() { 30 return base::TimeDelta::FromMilliseconds(action_timeout_ms_); 36 static base::TimeDelta action_max_timeout() { 38 return base::TimeDelta::FromMilliseconds(action_max_timeout_ms_); 42 static base::TimeDelta large_test_timeout() { 44 return base::TimeDelta::FromMilliseconds(large_test_timeout_ms_); 49 static base::TimeDelta test_launcher_timeout() { 51 return base::TimeDelta::FromMilliseconds(test_launcher_timeout_ms_) [all...] |
/external/chromium_org/net/base/ |
backoff_entry_unittest.cc | 10 using base::TimeDelta; 45 EXPECT_EQ(TimeDelta(), entry.GetTimeUntilRelease()); 49 EXPECT_EQ(TimeDelta::FromMilliseconds(1000), entry.GetTimeUntilRelease()); 57 never_expires.set_now(TimeTicks() + TimeDelta::FromDays(100)); 72 entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1)); 74 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( 79 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( 83 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds( 96 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(2000)); 104 entry.set_now(entry.GetReleaseTime() + TimeDelta::FromMilliseconds(1000)) [all...] |
/external/chromium_org/sync/test/engine/ |
fake_sync_scheduler.cc | 20 const base::TimeDelta& desired_delay, 26 const base::TimeDelta& desired_delay, 32 const base::TimeDelta& desired_delay, 45 base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const { 46 return base::TimeDelta(); 58 const base::TimeDelta& throttle_duration) { 63 const base::TimeDelta& throttle_duration) { 71 const base::TimeDelta& new_interval) { 75 const base::TimeDelta& new_interval) { 79 const base::TimeDelta& new_delay) [all...] |
fake_sync_scheduler.h | 25 const base::TimeDelta& desired_delay, 29 const base::TimeDelta& desired_delay, 33 const base::TimeDelta& desired_delay, 40 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; 46 const base::TimeDelta& throttle_duration) OVERRIDE; 49 const base::TimeDelta& throttle_duration) OVERRIDE; 52 const base::TimeDelta& new_interval) OVERRIDE; 54 const base::TimeDelta& new_interval) OVERRIDE; 56 const base::TimeDelta& new_delay) OVERRIDE;
|
/external/chromium/net/socket/ |
client_socket_pool_histograms.cc | 29 base::TimeDelta::FromMilliseconds(1), 30 base::TimeDelta::FromMinutes(10), 35 base::TimeDelta::FromMilliseconds(1), 36 base::TimeDelta::FromMinutes(6), 41 base::TimeDelta::FromMilliseconds(1), 42 base::TimeDelta::FromMinutes(6), 58 void ClientSocketPoolHistograms::AddRequestTime(base::TimeDelta time) const { 70 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 78 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10) [all...] |
/external/chromium_org/v8/test/cctest/ |
test-time.cc | 41 CHECK(TimeDelta::FromDays(2) == TimeDelta::FromHours(48)); 42 CHECK(TimeDelta::FromHours(3) == TimeDelta::FromMinutes(180)); 43 CHECK(TimeDelta::FromMinutes(2) == TimeDelta::FromSeconds(120)); 44 CHECK(TimeDelta::FromSeconds(2) == TimeDelta::FromMilliseconds(2000)); 45 CHECK(TimeDelta::FromMilliseconds(2) == TimeDelta::FromMicroseconds(2000)) [all...] |
/external/chromium_org/cc/animation/ |
scrollbar_animation_controller_linear_fade_unittest.cc | 31 base::TimeDelta::FromSeconds(2), 32 base::TimeDelta::FromSeconds(3)); 55 time += base::TimeDelta::FromSeconds(100); 60 time += base::TimeDelta::FromSeconds(100); 68 time += base::TimeDelta::FromSeconds(1); 78 time += base::TimeDelta::FromSeconds(100); 87 time += base::TimeDelta::FromSeconds(1); 91 time += base::TimeDelta::FromSeconds(1); 95 time += base::TimeDelta::FromSeconds(1); 99 time += base::TimeDelta::FromSeconds(1) [all...] |
scrollbar_animation_controller_linear_fade.h | 20 base::TimeDelta fadeout_delay, 21 base::TimeDelta fadeout_length); 27 virtual base::TimeDelta DelayBeforeStart(base::TimeTicks now) const OVERRIDE; 38 base::TimeDelta fadeout_delay, 39 base::TimeDelta fadeout_length); 51 base::TimeDelta fadeout_delay_; 52 base::TimeDelta fadeout_length_;
|
/external/chromium_org/cc/debug/ |
paint_time_counter.cc | 18 void PaintTimeCounter::SavePaintTime(const base::TimeDelta& total_paint_time) { 20 base::TimeDelta paint_time = total_paint_time - last_total_paint_time_; 28 void PaintTimeCounter::GetMinAndMaxPaintTime(base::TimeDelta* min, 29 base::TimeDelta* max) const { 30 *min = base::TimeDelta::FromDays(1); 31 *max = base::TimeDelta(); 34 const base::TimeDelta paint_time = **it;
|
/external/chromium_org/cc/output/ |
begin_frame_args.h | 21 base::TimeDelta interval); 28 static base::TimeDelta DefaultDeadlineAdjustment(); 32 static base::TimeDelta DefaultInterval(); 38 static base::TimeDelta DefaultRetroactiveBeginFramePeriod(); 40 bool IsValid() const { return interval >= base::TimeDelta(); } 44 base::TimeDelta interval; 49 base::TimeDelta interval);
|
/external/chromium_org/sync/engine/ |
backoff_delay_provider.h | 36 virtual base::TimeDelta GetDelay(const base::TimeDelta& last_delay); 40 virtual base::TimeDelta GetInitialDelay( 44 BackoffDelayProvider(const base::TimeDelta& default_initial_backoff, 45 const base::TimeDelta& short_initial_backoff); 48 const base::TimeDelta default_initial_backoff_; 49 const base::TimeDelta short_initial_backoff_;
|
/external/chromium_org/chrome/browser/network_time/ |
navigation_time_helper_unittest.cc | 12 void SetDelta(base::TimeDelta delta) { 20 base::TimeDelta delta_; 25 time_helper.SetDelta(base::TimeDelta::FromHours(1)); 31 EXPECT_EQ(entry1->GetTimestamp() + base::TimeDelta::FromHours(1), 35 time_helper.SetDelta(base::TimeDelta::FromHours(2)); 36 EXPECT_EQ(entry1->GetTimestamp() + base::TimeDelta::FromHours(1), 42 EXPECT_EQ(entry2->GetTimestamp() + base::TimeDelta::FromHours(2), 47 entry1->GetTimestamp() + base::TimeDelta::FromSeconds(1)); 48 EXPECT_EQ(entry1->GetTimestamp() + base::TimeDelta::FromHours(2),
|
/external/chromium_org/base/ |
value_conversions.h | 16 class TimeDelta; 24 BASE_EXPORT StringValue* CreateTimeDeltaValue(const TimeDelta& time); 25 BASE_EXPORT bool GetValueAsTimeDelta(const Value& value, TimeDelta* time);
|
/external/chromium_org/chrome/browser/prerender/ |
prerender_config.cc | 13 max_wait_to_launch(base::TimeDelta::FromMinutes(4)), 14 time_to_live(base::TimeDelta::FromMinutes(5)), 15 abandon_time_to_live(base::TimeDelta::FromSeconds(30)),
|
/external/chromium_org/media/cast/congestion_control/ |
congestion_control_unittest.cc | 29 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 35 const base::TimeDelta rtt = base::TimeDelta::FromMilliseconds(rtt_ms); 36 const base::TimeDelta ack_rate = 37 base::TimeDelta::FromMilliseconds(GG_INT64_C(1000) / fps); 57 const base::TimeDelta rtt = base::TimeDelta::FromMilliseconds(kRttMs); 58 const base::TimeDelta ack_rate = 59 base::TimeDelta::FromMilliseconds(kAckRateMs); 78 const base::TimeDelta rtt = base::TimeDelta::FromMilliseconds(kRttMs) [all...] |