/external/protobuf/src/google/protobuf/util/ |
D | time_util.cc | 59 T CreateNormalized(int64 seconds, int64 nanos); 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument 65 seconds += nanos / kNanosPerSecond; in CreateNormalized() 70 seconds -= 1; in CreateNormalized() 73 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized() 74 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized() 76 result.set_seconds(seconds); in CreateNormalized() 82 Duration CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument 85 seconds += nanos / kNanosPerSecond; in CreateNormalized() 89 if (seconds < 0 && nanos > 0) { in CreateNormalized() [all …]
|
D | time_util.h | 104 static Duration SecondsToDuration(int64 seconds); 126 static Timestamp SecondsToTimestamp(int64 seconds); 182 if (d1.seconds() == d2.seconds()) { 185 return d1.seconds() < d2.seconds(); 197 return d1.seconds() == d2.seconds() && d1.nanos() == d2.nanos(); 205 result.set_seconds(-d.seconds()); 249 if (t1.seconds() == t2.seconds()) { 252 return t1.seconds() < t2.seconds(); 264 return t1.seconds() == t2.seconds() && t1.nanos() == t2.nanos();
|
/external/protobuf/src/google/protobuf/stubs/ |
D | time.cc | 211 bool SecondsToDateTime(int64 seconds, DateTime* time) { in SecondsToDateTime() argument 212 if (seconds < kMinTime || seconds > kMaxTime) { in SecondsToDateTime() 216 seconds = seconds + kSecondsFromEraToEpoch; in SecondsToDateTime() 218 if (seconds >= kSecondsPer400Years) { in SecondsToDateTime() 219 int count_400years = seconds / kSecondsPer400Years; in SecondsToDateTime() 221 seconds %= kSecondsPer400Years; in SecondsToDateTime() 223 while (seconds >= SecondsPer100Years(year)) { in SecondsToDateTime() 224 seconds -= SecondsPer100Years(year); in SecondsToDateTime() 227 while (seconds >= SecondsPer4Years(year)) { in SecondsToDateTime() 228 seconds -= SecondsPer4Years(year); in SecondsToDateTime() [all …]
|
D | time_test.cc | 68 int64 seconds; in TEST() local 69 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST() 70 EXPECT_EQ(1, seconds); in TEST() 79 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST() 80 EXPECT_EQ(-1, seconds); in TEST() 100 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST() 101 EXPECT_EQ(start_time, seconds); in TEST() 103 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST() 104 EXPECT_EQ(end_time, seconds); in TEST() 180 int64 seconds; in TEST() local [all …]
|
D | time.h | 52 bool LIBPROTOBUF_EXPORT SecondsToDateTime(int64 seconds, DateTime* time); 55 bool LIBPROTOBUF_EXPORT DateTimeToSeconds(const DateTime& time, int64* seconds); 57 void LIBPROTOBUF_EXPORT GetCurrentTime(int64* seconds, int32* nanos); 66 string LIBPROTOBUF_EXPORT FormatTime(int64 seconds, int32 nanos); 69 bool LIBPROTOBUF_EXPORT ParseTime(const string& vaule, int64* seconds, int32* nanos);
|
/external/squashfs-tools/RELEASE-READMEs/ |
D | PERFORMANCE.README | 35 Zisofs 49.88 seconds (User 2.60 secs, Sys 11.19 secs) 36 Cloop 20.80 seconds (User 2.71 secs, Sys 13.50 secs) 37 Squashfs2.0 16.56 seconds (User 2.42 secs, Sys 10.37 secs) 38 Squashfs2.1 10.14 seconds (User 2.48 secs, Sys 4.44 secs) 45 Zisofs 27 minutes 28.54 seconds (User 3.00 secs, Sys 1 min 4.80 secs) 46 Cloop 5 minutes 55.72 seconds (User 2.90 secs, Sys 3 min 37.90 secs) 47 Squashfs2.0 5 minutes 20.87 seconds (User 2.33 secs, Sys 56.98 secs) 48 Squashfs2.1 5 minutes 15.46 seconds (user 2.28 secs, Sys 51.12 secs) 58 Zisofs 101 minutes 29.65 seconds (User 5.33 secs, Sys 1 min 17.20 secs) 59 Cloop 35 minutes 27.51 seconds (user 5.93 secs, Sys 4 mins 30.23 secs) [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 65 internal static bool IsNormalized(long seconds, int nanoseconds) in IsNormalized() argument 68 if (seconds < MinSeconds || seconds > MaxSeconds || in IsNormalized() 75 return Math.Sign(seconds) * Math.Sign(nanoseconds) != -1; in IsNormalized() 108 long seconds = ticks / TimeSpan.TicksPerSecond; in FromTimeSpan() 110 return new Duration { Seconds = seconds, Nanos = nanos }; in FromTimeSpan() 164 internal static Duration Normalize(long seconds, int nanoseconds) in Normalize() argument 168 seconds += extraSeconds; in Normalize() 172 if (seconds < 0 && nanoseconds > 0) in Normalize() 174 seconds += 1; in Normalize() 177 else if (seconds > 0 && nanoseconds < 0) in Normalize() [all …]
|
D | TimestampPartial.cs | 48 private static bool IsNormalized(long seconds, int nanoseconds) => in IsNormalized() argument 51 seconds >= UnixSecondsAtBclMinValue && in IsNormalized() 52 seconds <= UnixSecondsAtBclMaxValue; in IsNormalized() 173 internal static Timestamp Normalize(long seconds, int nanoseconds) in Normalize() argument 176 seconds += extraSeconds; in Normalize() 182 seconds--; in Normalize() 184 return new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in Normalize() 199 internal static string ToJson(long seconds, int nanoseconds, bool diagnosticOnly) in ToJson() argument 201 if (IsNormalized(seconds, nanoseconds)) in ToJson() 204 DateTime dateTime = UnixEpoch.AddSeconds(seconds); in ToJson() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/ |
D | testdata_en.txt | 115 3 seconds ago 116 2 seconds ago 118 0 seconds 120 2 seconds from now 121 3 seconds from now 122 5 seconds from now 123 10 seconds from now 124 11 seconds from now 125 12 seconds from now 126 20 seconds from now [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/ |
D | testdata_en.txt | 115 3 seconds ago 116 2 seconds ago 118 0 seconds 120 2 seconds from now 121 3 seconds from now 122 5 seconds from now 123 10 seconds from now 124 11 seconds from now 125 12 seconds from now 126 20 seconds from now [all …]
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 155 long seconds = date.getTime() / MILLIS_PER_SECOND; in parseTimestamp() local 168 seconds -= offset; in parseTimestamp() 170 seconds += offset; in parseTimestamp() 174 return normalizedTimestamp(seconds, nanos); in parseTimestamp() 199 long seconds = duration.getSeconds(); in toString() local 201 if (seconds < 0 || nanos < 0) { in toString() 202 if (seconds > 0 || nanos > 0) { in toString() 208 seconds = -seconds; in toString() 211 result.append(seconds); in toString() 243 long seconds = Long.parseLong(secondValue); in parseDuration() local [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | well_known_types.py | 107 total_sec = self.seconds + (self.nanos - nanos) // _NANOS_PER_SECOND 108 seconds = total_sec % _SECONDS_PER_DAY 109 days = (total_sec - seconds) // _SECONDS_PER_DAY 110 dt = datetime(1970, 1, 1) + timedelta(days, seconds) 156 seconds = td.seconds + td.days * _SECONDS_PER_DAY 177 seconds -= (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60 179 seconds += (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60 181 self.seconds = int(seconds) 190 return self.seconds * _NANOS_PER_SECOND + self.nanos 194 return (self.seconds * _MICROS_PER_SECOND + [all …]
|
/external/protobuf/objectivec/ |
D | GPBWellKnownTypes.m | 39 static NSTimeInterval TimeIntervalSince1970FromSecondsAndNanos(int64_t seconds, 41 return seconds + (NSTimeInterval)nanos / 1e9; 46 NSTimeInterval seconds; 47 NSTimeInterval nanos = modf(time, &seconds); 49 *outSeconds = (int64_t)seconds; 61 int64_t seconds; 63 timeIntervalSince1970, &seconds); 64 self.seconds = seconds; 79 return TimeIntervalSince1970FromSecondsAndNanos(self.seconds, self.nanos); 83 int64_t seconds; [all …]
|
/external/protobuf/src/google/protobuf/ |
D | duration.proto | 44 // as a count of seconds and fractions of seconds at nanosecond 56 // duration.seconds = end.seconds - start.seconds; 59 // if (duration.seconds < 0 && duration.nanos > 0) { 60 // duration.seconds += 1; 62 // } else if (durations.seconds > 0 && duration.nanos < 0) { 63 // duration.seconds -= 1; 73 // end.seconds = start.seconds + duration.seconds; 77 // end.seconds -= 1; 80 // end.seconds += 1; 87 // Signed seconds of the span of time. Must be from -315,576,000,000 [all …]
|
/external/autotest/client/cros/ |
D | sys_power.py | 97 def prepare_wakeup(seconds): argument 106 assert seconds >= 2 108 alarm = int(rtc.get_seconds() + seconds) 109 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm) 167 def kernel_suspend(seconds, state='mem'): argument 177 alarm, wakeup_count = prepare_wakeup(seconds) 200 def idle_suspend(seconds): argument 209 alarm, _ = prepare_wakeup(seconds) 224 def memory_suspend(seconds, size=0): argument 237 alarm, wakeup_count = prepare_wakeup(seconds)
|
/external/libchrome/base/time/ |
D | time_posix.cc | 115 time_t seconds = 0; in ToTimeSpec() local 117 seconds = InSeconds(); in ToTimeSpec() 118 microseconds -= seconds * Time::kMicrosecondsPerSecond; in ToTimeSpec() 121 {seconds, in ToTimeSpec() 181 SysTime seconds; // Seconds since epoch. in Explode() local 186 seconds = milliseconds / kMillisecondsPerSecond; in Explode() 192 seconds = (milliseconds - kMillisecondsPerSecond + 1) / in Explode() 201 SysTimeToTimeStruct(seconds, ×truct, is_local); in Explode() 231 SysTime seconds; in FromExploded() local 242 seconds = SysTimeFromTimeStruct(×truct, is_local); in FromExploded() [all …]
|
/external/webrtc/webrtc/system_wrappers/include/ |
D | ntp_time.h | 24 NtpTime(uint32_t seconds, uint32_t fractions) in NtpTime() argument 25 : seconds_(seconds), fractions_(fractions) {} in NtpTime() 33 void Set(uint32_t seconds, uint32_t fractions) { in Set() argument 34 seconds_ = seconds; in Set() 47 uint32_t seconds() const { return seconds_; } in seconds() function 56 return n1.seconds() == n2.seconds() && n1.fractions() == n2.fractions();
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
D | op_+.pass.cpp | 24 std::chrono::seconds s1(3); in main() 25 std::chrono::seconds s2(5); in main() 26 std::chrono::seconds r = s1 + s2; in main() 30 std::chrono::seconds s1(3); in main() 49 constexpr std::chrono::seconds s1(3); in main() 50 constexpr std::chrono::seconds s2(5); in main() 51 constexpr std::chrono::seconds r = s1 + s2; in main() 55 constexpr std::chrono::seconds s1(3); in main()
|
D | op_-.pass.cpp | 25 std::chrono::seconds s1(3); in main() 26 std::chrono::seconds s2(5); in main() 27 std::chrono::seconds r = s1 - s2; in main() 31 std::chrono::seconds s1(3); in main() 50 constexpr std::chrono::seconds s1(3); in main() 51 constexpr std::chrono::seconds s2(5); in main() 52 constexpr std::chrono::seconds r = s1 - s2; in main() 56 constexpr std::chrono::seconds s1(3); in main()
|
/external/autotest/client/site_tests/power_Draw/ |
D | control | 15 This test will run for 200 seconds. 22 seconds = 200 26 job.run_test('power_Draw', seconds=seconds, tag=tag) 30 job.run_test('hardware_SAT', seconds=seconds, tag=tag) 35 options='-tests fill:triangle -duration %d' % seconds,
|
/external/autotest/client/site_tests/suite_HWQual/ |
D | control.max_power_draw | 15 This test will run for 200 seconds. 22 seconds = 200 26 job.run_test('power_Draw', seconds=seconds, tag=tag) 30 job.run_test('hardware_SAT', seconds=seconds, tag=tag) 35 options='-tests fill:triangle -duration %d' % seconds,
|
/external/autotest/client/site_tests/power_LoadTest/extension/ |
D | urls.js | 39 start: seconds(1), 41 delay: seconds(60), // A minute on each page 42 timeout: seconds(30), 50 start: minutes(36) + seconds(1), 51 duration: minutes(12) - seconds(1), 53 timeout: seconds(30), 68 timeout: seconds(30), 82 timeout: seconds(30),
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.comparisons/ |
D | op_equal.pass.cpp | 30 std::chrono::seconds s1(3); in main() 31 std::chrono::seconds s2(3); in main() 36 std::chrono::seconds s1(3); in main() 37 std::chrono::seconds s2(4); in main() 73 constexpr std::chrono::seconds s1(3); in main() 74 constexpr std::chrono::seconds s2(3); in main() 79 constexpr std::chrono::seconds s1(3); in main() 80 constexpr std::chrono::seconds s2(4); in main()
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/utils/ |
D | Util.java | 422 int seconds = (int) (time / 1000); in timeChrono() local 423 if (seconds < 60) { in timeChrono() 425 if (seconds < 10) buffer.append('0'); in timeChrono() 426 buffer.append(seconds); in timeChrono() 428 int minutes = seconds / 60; in timeChrono() 434 seconds = seconds % 60; in timeChrono() 435 if (seconds < 10) buffer.append('0'); in timeChrono() 436 buffer.append(seconds); in timeChrono() 446 seconds = seconds % 60; in timeChrono() 447 if (seconds < 10) buffer.append('0'); in timeChrono() [all …]
|
/external/openssh/ |
D | progressmeter.c | 129 int hours, minutes, seconds; in refresh_progress_meter() local 204 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 206 seconds = elapsed; in refresh_progress_meter() 208 hours = seconds / 3600; in refresh_progress_meter() 209 seconds -= hours * 3600; in refresh_progress_meter() 210 minutes = seconds / 60; in refresh_progress_meter() 211 seconds -= minutes * 60; in refresh_progress_meter() 215 "%d:%02d:%02d", hours, minutes, seconds); in refresh_progress_meter() 218 " %02d:%02d", minutes, seconds); in refresh_progress_meter()
|