/external/libchrome/base/time/ |
default_clock.cc | 5 #include "base/time/default_clock.h" 11 Time DefaultClock::Now() { 12 return Time::Now();
|
clock.h | 9 #include "base/time/time.h" 15 // time. 17 // See DefaultClock (base/time/default_clock.h) for the default 18 // implementation that simply uses Time::Now(). 20 // (An implementation that uses Time::SystemTime() should be added as 26 // See TickClock (base/time/tick_clock.h) for the equivalent interface for 33 // make any ordering assumptions about the returned Time. For 34 // example, the system clock may change to an earlier time. 35 virtual Time Now() = 0 [all...] |
time.cc | 5 #include "base/time/time.h" 34 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay); 42 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); 50 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); 58 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; 66 return delta_ / Time::kMicrosecondsPerSecond; 74 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; 82 return delta_ / Time::kMicrosecondsPerMillisecond; 90 return (delta_ + Time::kMicrosecondsPerMillisecond - 1) 230 Time time; local [all...] |
default_clock.h | 10 #include "base/time/clock.h" 14 // DefaultClock is a Clock implementation that uses Time::Now(). 19 // Simply returns Time::Now(). 20 Time Now() override;
|
/external/libweave/third_party/chromium/base/time/ |
default_clock.cc | 5 #include "base/time/default_clock.h" 11 Time DefaultClock::Now() { 12 return Time::Now();
|
clock.h | 9 #include "base/time/time.h" 15 // time. 17 // See DefaultClock (base/time/default_clock.h) for the default 18 // implementation that simply uses Time::Now(). 20 // (An implementation that uses Time::SystemTime() should be added as 26 // See TickClock (base/time/tick_clock.h) for the equivalent interface for 33 // make any ordering assumptions about the returned Time. For 34 // example, the system clock may change to an earlier time. 35 virtual Time Now() = 0 [all...] |
default_clock.h | 10 #include "base/time/clock.h" 14 // DefaultClock is a Clock implementation that uses Time::Now(). 19 // Simply returns Time::Now(). 20 Time Now() override;
|
time.cc | 5 #include "base/time/time.h" 31 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay); 39 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); 47 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); 55 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; 63 return delta_ / Time::kMicrosecondsPerSecond; 71 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; 79 return delta_ / Time::kMicrosecondsPerMillisecond; 87 return (delta_ + Time::kMicrosecondsPerMillisecond - 1) 227 Time time; local [all...] |
/system/update_engine/common/ |
fake_clock.h | 24 // Implements a clock that can be made to tell any time you want. 29 base::Time GetWallclockTime() override { 33 base::Time GetMonotonicTime() override { 37 base::Time GetBootTime() override { 41 void SetWallclockTime(const base::Time &time) { 42 wallclock_time_ = time; 45 void SetMonotonicTime(const base::Time &time) { 46 monotonic_time_ = time; [all...] |
clock.h | 29 base::Time GetWallclockTime() override; 31 base::Time GetMonotonicTime() override; 33 base::Time GetBootTime() override;
|
clock_interface.h | 22 #include <base/time/time.h> 34 // Gets the current time e.g. similar to base::Time::Now(). 35 virtual base::Time GetWallclockTime() = 0; 37 // Returns monotonic time since some unspecified starting point. It 39 // by NTP or the user changing the time. 42 virtual base::Time GetMonotonicTime() = 0; 44 // Returns monotonic time since some unspecified starting point. It 46 // by NTP or the user changing the time [all...] |
clock.cc | 19 #include <time.h> 23 base::Time Clock::GetWallclockTime() { 24 return base::Time::Now(); 27 base::Time Clock::GetMonotonicTime() { 35 return base::Time(); 39 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; 40 return base::Time::FromTimeVal(now_tv); 43 base::Time Clock::GetBootTime() { 50 return base::Time(); 54 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond [all...] |
/external/libchrome/base/ |
build_time.h | 9 #include "base/time/time.h" 13 // GetBuildTime returns the time at which the current binary was built. 24 Time BASE_EXPORT GetBuildTime();
|
build_time.cc | 8 #include "base/time/time.h" 16 Time GetBuildTime() { 17 Time integral_build_time; 31 bool result = Time::FromString(kDateTime, &integral_build_time);
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TimeTest.java | 20 import java.sql.Time; 26 * JUnit Testcase for the java.sql.Time class 76 Time theTime = new Time(10, 45, 20); 83 Time theTime = new Time(TIME_TEST1); 103 // Create the Time object 104 Time theTime = new Time(theTimes[i]); 105 // Convert to a time string ... and compar [all...] |
/development/ndk/sources/android/ndk_helper/ |
perfMonitor.cpp | 48 struct timeval Time; 49 gettimeofday( &Time, NULL ); 51 double time = Time.tv_sec + Time.tv_usec * 1.0 / 1000000.0; local 52 double tick = time - last_tick_; 54 last_tick_ = time; 56 if( Time.tv_sec - tv_last_sec_ >= 1 ) 58 double time = Time.tv_sec + Time.tv_usec * 1.0 / 1000000.0 local [all...] |
/external/libchrome/base/process/ |
process_info.h | 13 class Time; 18 // Returns the time at which the process was launched. May be empty if an 20 static const Time CreationTime();
|
/external/libchrome/base/test/ |
simple_test_clock.h | 10 #include "base/time/clock.h" 11 #include "base/time/time.h" 16 // the returned Time objects. All methods may be called from any 20 // Starts off with a clock set to Time(). 24 Time Now() override; 29 // Sets the clock to the given time. 30 void SetNow(Time now); 36 Time now_;
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TimeTest.java | 3 import android.text.format.Time; 17 Time t = new Time(); 24 Time t = new Time(); 30 Time t = new Time(); 32 Time t2 = new Time(t); 44 Time t = new Time() 197 Time time = new Time(); local 221 Time time = new Time(); local [all...] |
/external/v8/test/unittests/base/platform/ |
time-unittest.cc | 5 #include "src/base/platform/time.h" 11 #include <sys/time.h> 58 TEST(Time, JsTime) { 59 Time t = Time::FromJsTime(700000.3); 65 TEST(Time, Timespec) { 66 Time null; 68 EXPECT_EQ(null, Time::FromTimespec(null.ToTimespec())); 69 Time now = Time::Now() [all...] |
/system/update_engine/update_manager/ |
real_time_provider_unittest.cc | 22 #include <base/time/time.h> 28 using base::Time; 43 // Generates a fixed timestamp for use in faking the current time. 44 Time CurrTime() { 45 Time::Exploded now_exp; 54 return Time::FromLocalExploded(now_exp); 62 const Time now = CurrTime(); 63 Time::Exploded exploded; 69 const Time expected = Time::FromLocalExploded(exploded) [all...] |
/external/libchrome/base/timer/ |
hi_res_timer_manager_unittest.cc | 13 #include "base/time/time.h" 38 // But the Time class has it off, because it hasn't been activated. 39 EXPECT_FALSE(base::Time::IsHighResolutionTimerInUse()); 42 base::Time::ActivateHighResolutionTimer(true); 43 EXPECT_TRUE(base::Time::IsHighResolutionTimerInUse()); 48 EXPECT_FALSE(base::Time::IsHighResolutionTimerInUse()); 53 EXPECT_TRUE(base::Time::IsHighResolutionTimerInUse()); 56 base::Time::ActivateHighResolutionTimer(false);
|
/system/connectivity/shill/net/ |
shill_time.h | 20 #include <sys/time.h> 21 #include <time.h> 33 // |wall_clock| time that can be used for presenting the time in human-readable 35 // suspend, while boottime clock does include any time that the system is 51 // A "sys/time.h" abstraction allowing mocking in tests. 52 class SHILL_EXPORT Time { 54 virtual ~Time(); 56 static Time* GetInstance(); 58 // Returns CLOCK_MONOTONIC time, or 0 if a failure occurred [all...] |
shill_time.cc | 20 #include <time.h> 31 // As Time may be instantiated by MemoryLogMessage during a callback of 34 // callback of AtExitManager, which will lead to a crash. Making Time leaky is 36 base::LazyInstance<Time>::Leaky g_time = LAZY_INSTANCE_INITIALIZER; 40 Time::Time() { } 42 Time::~Time() { } 44 Time* Time::GetInstance() [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
Utils.java | 19 import android.text.format.Time; 24 Time t = new Time(timezone);
|