Home
last modified time | relevance | path

Searched refs:Hours (Results 1 – 25 of 159) sorted by relevance

1234567

/external/cronet/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout_test.cc70 absl::Hours(1), in TEST()
71 absl::Hours(1000), in TEST()
77 -absl::Hours(1), in TEST()
78 -absl::Hours(1000), in TEST()
121 absl::Now() + absl::Hours(100000)); in TEST()
124 absl::Now() + absl::Hours(100000)); in TEST()
127 absl::Hours(100000)); in TEST()
129 absl::Now() + absl::Hours(100000)); in TEST()
146 absl::Now() + absl::Hours(100000)); in TEST()
149 absl::Now() + absl::Hours(100000)); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout_test.cc70 absl::Hours(1), in TEST()
71 absl::Hours(1000), in TEST()
77 -absl::Hours(1), in TEST()
78 -absl::Hours(1000), in TEST()
121 absl::Now() + absl::Hours(100000)); in TEST()
124 absl::Now() + absl::Hours(100000)); in TEST()
127 absl::Hours(100000)); in TEST()
129 absl::Now() + absl::Hours(100000)); in TEST()
146 absl::Now() + absl::Hours(100000)); in TEST()
149 absl::Now() + absl::Hours(100000)); in TEST()
[all …]
/external/cronet/base/time/
Dtime_delta_from_string_unittest.cc52 EXPECT_EQ(TimeDeltaFromString("2h"), Hours(2)); in TEST()
68 EXPECT_EQ(TimeDeltaFromString("1d2h3m"), Days(1) + Hours(2) + Minutes(3)); in TEST()
69 EXPECT_EQ(TimeDeltaFromString("2h3m4s"), Hours(2) + Minutes(3) + Seconds(4)); in TEST()
73 Hours(2) + Minutes(3) + Seconds(4) + Milliseconds(5) + in TEST()
78 Hours(5) + Minutes(3) + Seconds(4) + Microseconds(2)); in TEST()
86 EXPECT_EQ(TimeDeltaFromString("1.5h"), 1.5 * Hours(1)); in TEST()
98 EXPECT_EQ(TimeDeltaFromString("-1h"), Hours(-1)); in TEST()
101 EXPECT_EQ(TimeDeltaFromString("-1h2s"), -(Hours(1) + Seconds(2))); in TEST()
/external/cronet/components/metrics/
Ddate_changed_helper_unittest.cc48 []() { return TimeNowIgnoringOverride() + base::Hours(25); }, nullptr, in TEST_F()
61 []() { return TimeNowIgnoringOverride() - base::Hours(25); }, nullptr, in TEST_F()
73 return TimeNowIgnoringOverride().LocalMidnight() + base::Hours(2); in TEST_F()
81 return TimeNowIgnoringOverride().LocalMidnight() + base::Hours(22); in TEST_F()
94 return TimeNowIgnoringOverride().LocalMidnight() + base::Hours(22); in TEST_F()
102 return TimeNowIgnoringOverride().LocalMidnight() + base::Hours(2); in TEST_F()
Ddaily_event_unittest.cc68 base::Time last_time = base::Time::Now() - base::Hours(25); in TEST_F()
77 base::Time last_time = base::Time::Now() + base::Hours(25); in TEST_F()
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_rtc.c449 assert_param(IS_RTC_HOUR12(sTime->Hours)); in HAL_RTC_SetTime()
455 assert_param(IS_RTC_HOUR24(sTime->Hours)); in HAL_RTC_SetTime()
460 tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(sTime->Hours) << 16) | \ in HAL_RTC_SetTime()
469 tmpreg = RTC_Bcd2ToByte(sTime->Hours); in HAL_RTC_SetTime()
476 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sTime->Hours))); in HAL_RTC_SetTime()
480 tmpreg = (((uint32_t)(sTime->Hours) << 16) | \ in HAL_RTC_SetTime()
583 sTime->Hours = (uint8_t)((tmpreg & (RTC_TR_HT | RTC_TR_HU)) >> 16); in HAL_RTC_GetTime()
592 sTime->Hours = (uint8_t)RTC_Bcd2ToByte(sTime->Hours); in HAL_RTC_GetTime()
797 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
803 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_rtc.c449 assert_param(IS_RTC_HOUR12(sTime->Hours)); in HAL_RTC_SetTime()
455 assert_param(IS_RTC_HOUR24(sTime->Hours)); in HAL_RTC_SetTime()
460 tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(sTime->Hours) << 16) | \ in HAL_RTC_SetTime()
469 tmpreg = RTC_Bcd2ToByte(sTime->Hours); in HAL_RTC_SetTime()
476 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sTime->Hours))); in HAL_RTC_SetTime()
480 tmpreg = (((uint32_t)(sTime->Hours) << 16) | \ in HAL_RTC_SetTime()
583 sTime->Hours = (uint8_t)((tmpreg & (RTC_TR_HT | RTC_TR_HU)) >> 16); in HAL_RTC_GetTime()
592 sTime->Hours = (uint8_t)RTC_Bcd2ToByte(sTime->Hours); in HAL_RTC_GetTime()
797 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
803 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DFindPreferredHours.java82 static final class Hours implements Comparable<Hours> { class in FindPreferredHours
86 public Hours(DateTimePatternType type, String variable) { in Hours() method in FindPreferredHours.Hours
92 public int compareTo(Hours arg0) { in compareTo()
107 return obj instanceof Hours && compareTo((Hours) obj) == 0; in equals()
112 …final Relation<String, Hours> lang2Hours = Relation.of(new TreeMap<String, Set<Hours>>(), TreeSet.… in main()
139 lang2Hours.put(locale, new Hours(type, itemString)); in main()
156 for (Entry<String, Set<Hours>> localeAndHours : lang2Hours.keyValuesSet()) { in main()
172 for (Hours hours : localeAndHours.getValue()) { in main()
/external/cronet/base/task/sequence_manager/test/
Dmock_time_message_pump_unittest.cc41 mock_clock.Advance(Hours(42)); in TEST()
63 mock_clock.Advance(Hours(42)); in TEST()
83 mock_clock.Advance(Hours(42)); in TEST()
95 mock_clock.Advance(Hours(42)); in TEST()
148 mock_clock.Advance(Hours(42)); in TEST()
152 mock_clock.Advance(Hours(2)); in TEST()
168 mock_clock.Advance(Hours(42)); in TEST()
/external/abseil-cpp/absl/time/
Dduration_test.cc40 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
92 constexpr absl::Duration hour = absl::Hours(1); in TEST()
117 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
119 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
120 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
122 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
149 TEST_DURATION_CONVERSION(Hours); in TEST()
191 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/time/
Dduration_test.cc40 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
92 constexpr absl::Duration hour = absl::Hours(1); in TEST()
117 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
119 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
120 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
122 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
149 TEST_DURATION_CONVERSION(Hours); in TEST()
191 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
/external/angle/third_party/abseil-cpp/absl/time/
Dduration_test.cc42 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
94 constexpr absl::Duration hour = absl::Hours(1); in TEST()
119 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
120 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
121 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
122 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
123 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
124 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
151 TEST_DURATION_CONVERSION(Hours); in TEST()
193 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dduration_test.cc39 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
91 constexpr absl::Duration hour = absl::Hours(1); in TEST()
116 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
117 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
119 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
120 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
148 TEST_DURATION_CONVERSION(Hours); in TEST()
190 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
Dduration_benchmark.cc83 benchmark::DoNotOptimize(absl::Hours(i)); in BM_Duration_Factory_Hours()
137 benchmark::DoNotOptimize(absl::Hours(d)); in BM_Duration_Factory_DoubleHours()
287 a += absl::IDivDuration(absl::Hours(i), absl::Hours(1), &ignore)); in BM_Duration_IDivDuration_Hours()
/external/libtextclassifier/abseil-cpp/absl/time/
Dduration_test.cc39 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
91 constexpr absl::Duration hour = absl::Hours(1); in TEST()
116 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
117 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
119 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
120 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
148 TEST_DURATION_CONVERSION(Hours); in TEST()
190 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
Dduration_benchmark.cc78 benchmark::DoNotOptimize(absl::Hours(i)); in BM_Duration_Factory_Hours()
132 benchmark::DoNotOptimize(absl::Hours(d)); in BM_Duration_Factory_DoubleHours()
282 a += absl::IDivDuration(absl::Hours(i), absl::Hours(1), &ignore)); in BM_Duration_IDivDuration_Hours()
/external/openscreen/third_party/abseil/src/absl/time/
Dduration_test.cc39 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
91 constexpr absl::Duration hour = absl::Hours(1); in TEST()
116 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
117 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
119 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
120 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
148 TEST_DURATION_CONVERSION(Hours); in TEST()
190 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
Dduration_benchmark.cc78 benchmark::DoNotOptimize(absl::Hours(i)); in BM_Duration_Factory_Hours()
132 benchmark::DoNotOptimize(absl::Hours(d)); in BM_Duration_Factory_DoubleHours()
282 a += absl::IDivDuration(absl::Hours(i), absl::Hours(1), &ignore)); in BM_Duration_IDivDuration_Hours()
/external/cronet/third_party/abseil-cpp/absl/time/
Dduration_test.cc42 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
94 constexpr absl::Duration hour = absl::Hours(1); in TEST()
119 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
120 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
121 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
122 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
123 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
124 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
151 TEST_DURATION_CONVERSION(Hours); in TEST()
193 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
Dduration_benchmark.cc83 benchmark::DoNotOptimize(absl::Hours(i)); in BM_Duration_Factory_Hours()
137 benchmark::DoNotOptimize(absl::Hours(d)); in BM_Duration_Factory_DoubleHours()
287 a += absl::IDivDuration(absl::Hours(i), absl::Hours(1), &ignore)); in BM_Duration_IDivDuration_Hours()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dduration_test.cc40 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
92 constexpr absl::Duration hour = absl::Hours(1); in TEST()
117 EXPECT_EQ(inf, absl::Hours(kint64max)); in TEST()
118 EXPECT_EQ(-inf, absl::Hours(kint64min)); in TEST()
119 EXPECT_EQ(-inf, absl::Hours(-kint64max)); in TEST()
120 EXPECT_GT(inf, absl::Hours(kint64max / 3600)); in TEST()
121 EXPECT_LT(-inf, absl::Hours(kint64min / 3600)); in TEST()
122 EXPECT_LT(-inf, absl::Hours(-kint64max / 3600)); in TEST()
149 TEST_DURATION_CONVERSION(Hours); in TEST()
191 const absl::Duration hour = absl::Hours(N); in TestToConversion()
[all …]
/external/cronet/base/task/thread_pool/
Ddelayed_task_manager_unittest.cc30 constexpr TimeDelta kLongerDelay = Hours(3);
31 constexpr TimeDelta kLongDelay = Hours(1);
238 mock_callback_a, service_thread_task_runner_->NowTicks(), Hours(1)); in TEST_F()
242 mock_callback_b, service_thread_task_runner_->NowTicks(), Hours(2)); in TEST_F()
246 mock_callback_c, service_thread_task_runner_->NowTicks(), Hours(1)); in TEST_F()
264 service_thread_task_runner_->FastForwardBy(Hours(1)); in TEST_F()
270 service_thread_task_runner_->FastForwardBy(Hours(1)); in TEST_F()
/external/cronet/base/metrics/
Dhistogram_functions.cc166 UmaHistogramCustomTimes(name, sample, Milliseconds(1), Hours(1), 50); in UmaHistogramLongTimes()
170 UmaHistogramCustomTimes(name, sample, Milliseconds(1), Hours(1), 50); in UmaHistogramLongTimes()
174 UmaHistogramCustomTimes(name, sample, Milliseconds(1), Hours(1), 100); in UmaHistogramLongTimes100()
178 UmaHistogramCustomTimes(name, sample, Milliseconds(1), Hours(1), 100); in UmaHistogramLongTimes100()
Dhistogram_macros.h241 base::Hours(1), 50)
246 base::Hours(1), 100)
376 name, base::Milliseconds(1), base::Hours(1), 50, \
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/Shared/TPMDevice/src/
DStmUtil.c82 time.Hours, in GetLogStamp()
104 time.Hours = local->tm_hour; in SetRealTimeClock()

1234567