Searched defs:now (Results 1 - 25 of 760) sorted by relevance

1234567891011>>

/external/chromium_org/components/history/core/common/
H A Dthumbnail_score_unittest.cc10 base::Time now = base::Time::Now(); local
12 ThumbnailScore nothing_good(0.5, false, false, now);
13 ThumbnailScore not_at_top(0.5, false, true, now);
14 ThumbnailScore bad_clipping(0.5, true, false, now);
15 ThumbnailScore life_is_awesome(0.5, true, true, now);
29 base::Time now = base::Time::Now(); local
30 base::Time last_year = now - base::TimeDelta::FromDays(365);
33 ThumbnailScore newie_but_crappie(0.9, true, true, now);
40 base::Time now = base::Time::Now(); local
42 ThumbnailScore no_redirects(0.5, true, true, now);
[all...]
/external/chromium_org/content/browser/download/
H A Drate_estimator_unittest.cc14 base::TimeTicks now; local
15 RateEstimator estimator(TimeDelta::FromSeconds(1), 10u, now);
16 EXPECT_EQ(0u, estimator.GetCountPerSecond(now));
18 estimator.Increment(50u, now);
19 EXPECT_EQ(50u, estimator.GetCountPerSecond(now));
21 now += TimeDelta::FromMilliseconds(800);
22 estimator.Increment(50, now);
23 EXPECT_EQ(100u, estimator.GetCountPerSecond(now));
26 now += TimeDelta::FromSeconds(3);
27 EXPECT_EQ(25u, estimator.GetCountPerSecond(now));
[all...]
/external/chromium_org/ui/events/gestures/
H A Dfling_curve_unittest.cc14 base::TimeTicks now = gfx::FrameTime::Now(); local
15 FlingCurve curve(velocity, now);
18 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromMilliseconds(20));
23 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromMilliseconds(250));
28 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromSeconds(10));
33 now + base::TimeDelta::FromSeconds(20)).IsZero());
/external/chromium_org/net/quic/
H A Dquic_clock_test.cc16 QuicTime now = clock.ApproximateNow(); local
19 EXPECT_LE(start, now);
20 EXPECT_LE(now, end);
27 QuicWallTime now = clock.WallNow(); local
30 // If end > start, then we can check now is between start and end.
32 EXPECT_LE(static_cast<uint64>(start.ToTimeT()), now.ToUNIXSeconds());
33 EXPECT_LE(now.ToUNIXSeconds(), static_cast<uint64>(end.ToTimeT()));
/external/chromium_org/remoting/base/
H A Drate_counter_unittest.cc17 base::Time now = base::Time::Now(); local
19 now += base::TimeDelta::FromSeconds(1);
20 rate_counter.SetCurrentTimeForTest(now);
49 base::Time now = base::Time::Now(); local
51 now += base::TimeDelta::FromSeconds(1);
52 rate_counter.SetCurrentTimeForTest(now);
71 base::Time now = base::Time::Now(); local
73 now += base::TimeDelta::FromSeconds(1);
74 rate_counter.SetCurrentTimeForTest(now);
/external/chromium_org/third_party/WebKit/Source/modules/performance/
H A DWorkerPerformance.cpp45 double WorkerPerformance::now(ExecutionContext* context) const function in class:blink::WorkerPerformance
/external/llvm/unittests/Support/
H A DTimeValueTest.cpp18 sys::TimeValue now = sys::TimeValue::now(); local
20 EXPECT_TRUE(std::abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
/external/qemu/telephony/
H A Dtest1.c23 SysTime now = sys_time_ms(); local
26 printf( "tick %d/%d a %.2fs\n", counter, MAX_COUNTER, now/1000. );
28 sys_timer_set( timer, now + 2000, timer_func, timer );
/external/blktrace/btt/
H A Dtrace.c25 time_t now = time(NULL); local
30 if (verbose && ((now - last_vtrace) > 0)) {
34 last_vtrace = now;
/external/chromium_org/base/test/
H A Dsimple_test_clock.cc23 void SimpleTestClock::SetNow(Time now) { argument
25 now_ = now;
/external/chromium_org/cc/output/
H A Dbegin_frame_args_unittest.cc71 base::TimeTicks now = base::TimeTicks::FromInternalValue(1); local
73 BeginFrameArgs::CreateForSynchronousCompositor(now));
/external/chromium_org/chrome/browser/net/
H A Dtimed_cache.cc22 base::TimeTicks now = base::TimeTicks::Now(); local
26 if (now - eldest->second < max_duration_)
/external/chromium_org/net/tools/quic/
H A Dquic_epoll_clock_test.cc45 QuicWallTime now = clock.WallNow(); local
48 // If end > start, then we can check now is between start and end.
50 EXPECT_LE(static_cast<uint64>(start.ToTimeT()), now.ToUNIXSeconds());
51 EXPECT_LE(now.ToUNIXSeconds(), static_cast<uint64>(end.ToTimeT()));
/external/chromium_org/ui/chromeos/
H A Duser_activity_power_manager_notifier.cc55 base::TimeTicks now = base::TimeTicks::Now(); local
59 (now - last_notify_time_).InSeconds() >= kNotifyIntervalSec) {
62 last_notify_time_ = now;
/external/ipsec-tools/src/racoon/
H A Dthrottle.c99 time_t now; local
104 now = time(NULL);
111 if (te->penalty < now) {
146 remaining = te->penalty - now;
152 te->penalty = now + new;
/external/jmdns/src/javax/jmdns/impl/
H A DDNSListener.java22 * @param now
27 void updateRecord(DNSCache dnsCache, long now, DNSEntry record); argument
/external/lldb/test/expression_command/timeout/
H A Dwait-a-while.c22 struct timeval now; local
23 gettimeofday(&now, NULL);
24 interval = target - now.tv_sec * 1000000 + now.tv_usec;
/external/qemu/distrib/sdl-1.2.15/src/timer/nds/
H A DSDL_systimer.c49 Uint32 now; local
50 now=timers2ms(TIMER0_DATA, TIMER1_DATA);
51 while((Uint32)timers2ms(TIMER0_DATA, TIMER1_DATA)<now+ms);
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DTimestampTest.java39 private Date now = new Date(); field in class:TimestampTest
53 new Timestamp(now, null);
64 Timestamp one = new Timestamp(now, cpath);
65 Timestamp two = new Timestamp(now, cpath);
79 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath);
83 Timestamp t = new Timestamp(now, cpath);
84 assertEquals(now, t.getTimestamp());
85 assertNotSame(now, t.getTimestamp());
92 new Timestamp(now, cpath).toString();
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
H A DCodeSigner_ImplTest.java39 private Date now = new Date(); field in class:CodeSigner_ImplTest
41 private Timestamp ts = new Timestamp(now, cpath);
H A DTimestamp_ImplTest.java39 private Date now = new Date(); field in class:Timestamp_ImplTest
46 assertTrue(new Timestamp(now, cpath).hashCode() == (now.hashCode() ^ cpath
/external/chromium_org/athena/system/
H A Dtime_view.cc42 void TimeView::SetTimer(base::Time now) { argument
47 now.LocalExplode(&exploded);
50 // 60 seconds from now.
66 base::Time now = base::Time::Now(); local
68 now, base::k12HourClock, base::kKeepAmPm));
69 SetTimer(now);
/external/chromium_org/base/profiler/
H A Dtracked_time_unittest.cc57 TrackedTime now = TrackedTime::Now(); local
64 Duration before = now - TrackedTime(ticks_before);
66 Duration after = now - TrackedTime(ticks_after);
93 TrackedTime now = ThreadData::Now(); local
100 Duration before = now - TrackedTime(ticks_before);
102 Duration after = now - TrackedTime(ticks_after);
/external/chromium_org/base/synchronization/
H A Dcondition_variable_posix.cc81 struct timeval now; local
82 gettimeofday(&now, NULL);
83 absolute_time.tv_sec = now.tv_sec;
84 absolute_time.tv_nsec = now.tv_usec * Time::kNanosecondsPerMicrosecond;
86 struct timespec now; local
87 clock_gettime(CLOCK_MONOTONIC, &now);
88 absolute_time.tv_sec = now.tv_sec;
89 absolute_time.tv_nsec = now.tv_nsec;
96 DCHECK_GE(absolute_time.tv_sec, now.tv_sec); // Overflow paranoia
/external/chromium_org/cc/base/
H A Ddelayed_unique_notifier.cc63 base::TimeTicks now = Now(); local
64 if (next_notification_time_ > now) {
69 next_notification_time_ - now);

Completed in 647 milliseconds

1234567891011>>