/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) 225 Time time; local [all...] |
/device/linaro/bootloader/edk2/EmulatorPkg/RealTimeClockRuntimeDxe/ |
RealTimeClock.c | 29 IN EFI_TIME *Time
34 IN EFI_TIME *Time
39 IN EFI_TIME *Time
52 OUT EFI_TIME * Time,
62 Time - A pointer to storage that will receive a snapshot of the current time.
64 Capabilities - A pointer to storage that will receive the capabilities of the real time clock
65 in the platform. This includes the real time clock's resolution and accuracy.
80 if (Time == NULL) {
85 gEmuThunk->GetTime (Time, Capabilities); [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, 16 // This uses a generated file, which doesn't trigger a rebuild when the time 24 // this time will be set to 5:00:00am on the most recent first Sunday 26 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);
|
/prebuilts/go/darwin-x86/src/time/ |
zoneinfo_abbrs_windows.go | 8 package time package 16 "Egypt Standard Time": {"EET", "EET"}, // Africa/Cairo 17 "Morocco Standard Time": {"WET", "WEST"}, // Africa/Casablanca 18 "South Africa Standard Time": {"SAST", "SAST"}, // Africa/Johannesburg 19 "W. Central Africa Standard Time": {"WAT", "WAT"}, // Africa/Lagos 20 "E. Africa Standard Time": {"EAT", "EAT"}, // Africa/Nairobi 21 "Libya Standard Time": {"EET", "EET"}, // Africa/Tripoli 22 "Namibia Standard Time": {"WAT", "WAST"}, // Africa/Windhoek 23 "Aleutian Standard Time": {"HST", "HDT"}, // America/Adak 24 "Alaskan Standard Time": {"AKST", "AKDT"}, // America/Anchorag [all...] |
/prebuilts/go/linux-x86/src/time/ |
zoneinfo_abbrs_windows.go | 8 package time package 16 "Egypt Standard Time": {"EET", "EET"}, // Africa/Cairo 17 "Morocco Standard Time": {"WET", "WEST"}, // Africa/Casablanca 18 "South Africa Standard Time": {"SAST", "SAST"}, // Africa/Johannesburg 19 "W. Central Africa Standard Time": {"WAT", "WAT"}, // Africa/Lagos 20 "E. Africa Standard Time": {"EAT", "EAT"}, // Africa/Nairobi 21 "Libya Standard Time": {"EET", "EET"}, // Africa/Tripoli 22 "Namibia Standard Time": {"WAT", "WAST"}, // Africa/Windhoek 23 "Aleutian Standard Time": {"HST", "HDT"}, // America/Adak 24 "Alaskan Standard Time": {"AKST", "AKDT"}, // America/Anchorag [all...] |
/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...] |
/device/linaro/bootloader/edk2/Nt32Pkg/RealTimeClockRuntimeDxe/ |
RealTimeClock.c | 33 IN EFI_TIME *Time
38 IN EFI_TIME *Time
43 IN EFI_TIME *Time
56 OUT EFI_TIME *Time,
66 Time - A pointer to storage that will receive a snapshot of the current time.
68 Capabilities - A pointer to storage that will receive the capabilities of the real time clock
69 in the platform. This includes the real time clock's resolution and accuracy.
87 if (Time == NULL) {
95 Time->Year = (UINT16) SystemTime.wYear; [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/ |
Rtc.c | 31 // Dallas DS12C887 Real Time Clock
49 // Date and time initial values.
121 UINT8 VRT : 1; // Valid RAM and Time
135 IN EFI_TIME *Time
138 if (Time->Year % 4 == 0) {
139 if (Time->Year % 100 == 0) {
140 if (Time->Year % 400 == 0) {
158 IN EFI_TIME *Time
161 if (Time->Day < 1 ||
162 Time->Day > mDayOfMonth[Time->Month - 1] || [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();
|
/prebuilts/ndk/r11/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...] |
/prebuilts/ndk/r13/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/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...] |
/device/linaro/bootloader/OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/RealTimeClockLib/ |
RealTimeClockLib.c | 34 Returns the current time and date information, and the time-keeping capabilities
37 @param Time A pointer to storage to receive a snapshot of the current time.
38 @param Capabilities An optional pointer to a buffer to receive the real time clock
42 @retval EFI_INVALID_PARAMETER Time is NULL.
43 @retval EFI_DEVICE_ERROR The time could not be retrieved due to hardware error.
49 OUT EFI_TIME *Time,
57 if (Time == NULL) {
63 /* Get time and date */ [all...] |
/device/linaro/bootloader/edk2/Omap35xxPkg/Library/RealTimeClockLib/ |
RealTimeClockLib.c | 34 Returns the current time and date information, and the time-keeping capabilities
37 @param Time A pointer to storage to receive a snapshot of the current time.
38 @param Capabilities An optional pointer to a buffer to receive the real time clock
42 @retval EFI_INVALID_PARAMETER Time is NULL.
43 @retval EFI_DEVICE_ERROR The time could not be retrieved due to hardware error.
49 OUT EFI_TIME *Time,
57 if (Time == NULL) {
63 /* Get time and date */ [all...] |
/device/linaro/bootloader/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/ |
PcRtc.c | 18 Compare the Hour, Minute and Second of the From time and the To time.
22 @param From the first time
23 @param To the second time
25 @return >0 The H/M/S of the From time is later than those of To time
26 @return ==0 The H/M/S of the From time is same as those of To time
27 @return <0 The H/M/S of the From time is earlier than those of To time
[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...] |
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/PL031RealTimeClockLib/ |
PL031RealTimeClockLib.c | 64 // Check if this PrimeCell Peripheral is the PL031 Real Time Clock
119 OUT EFI_TIME *Time
153 Time->Year = y - 4800 + ((m + 2) / 12);
154 Time->Month = ((m + 2) % 12) + 1;
155 Time->Day = d + 1;
163 Time->Hour = hh;
164 Time->Minute = mm;
165 Time->Second = ss;
166 Time->Nanosecond = 0;
175 IN EFI_TIME *Time
[all...] |