/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" 29 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay); 37 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); 45 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); 53 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; 61 return delta_ / Time::kMicrosecondsPerSecond; 69 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; 77 return delta_ / Time::kMicrosecondsPerMillisecond; 85 return (delta_ + Time::kMicrosecondsPerMillisecond - 1) 221 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/process/ |
process_info_linux.cc | 12 #include "base/time/time.h" 17 const Time CurrentProcessInfo::CreationTime() { 21 return Time(); 23 Time boot_time = internal::GetBootTime(); 25 return Time(); 26 return Time(boot_time + start_offset);
|
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();
|
/device/linaro/bootloader/OpenPlatformPkg/Library/EfiTimeBaseLib/ |
EfiTimeBaseLib.c | 27 IN EFI_TIME *Time
30 if (Time->Year % 4 == 0) {
31 if (Time->Year % 100 == 0) {
32 if (Time->Year % 400 == 0) {
48 IN EFI_TIME *Time
53 if (Time->Day < 1 ||
54 Time->Day > DayOfMonth[Time->Month - 1] ||
55 (Time->Month == 2 && (!IsLeapYear (Time) && Time->Day > 28)) [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...] |
/prebuilts/ndk/r16/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...] |
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
DateUtils.java | 19 import android.text.format.Time; 28 * @param time Instance of time object to use for calculations. 33 public static int getDayDifference(Time time, long date1, long date2) { 34 time.set(date1); 35 int startDay = Time.getJulianDay(date1, time.gmtoff); 37 time.set(date2); 38 int currentDay = Time.getJulianDay(date2, time.gmtoff) [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_;
|
/device/linaro/bootloader/OpenPlatformPkg/Include/Library/ |
EfiTimeBaseLib.h | 29 IN EFI_TIME *Time
35 IN EFI_TIME *Time
41 IN EFI_TIME *Time
51 OUT EFI_TIME *Time
59 IN EFI_TIME *Time
|
/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 Time time; local 55 ignore_result(Time::FromLocalExploded(now_exp, &time)); [all...] |
/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/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/ |
PcRtc.c | 28 Compare the Hour, Minute and Second of the From time and the To time.
32 @param From the first time
33 @param To the second time
35 @return >0 The H/M/S of the From time is later than those of To time
36 @return ==0 The H/M/S of the From time is same as those of To time
37 @return <0 The H/M/S of the From time is earlier than those of To time
[all...] |