/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | abseil-duration-unnecessary-conversion.cpp | 18 d2 = absl::Milliseconds(absl::ToDoubleMilliseconds(d1)); in f() 38 d2 = absl::Milliseconds(absl::ToInt64Milliseconds(d1)); in f() 57 d2 = absl::Milliseconds(d1 / absl::Milliseconds(1)); in f() 76 d2 = absl::Milliseconds(absl::FDivDuration(d1, absl::Milliseconds(1))); in f() 110 d2 = absl::Milliseconds(absl::ToDoubleMilliseconds(d1) * 2); in f() 128 d2 = absl::Milliseconds(2 * absl::ToDoubleMilliseconds(d1)); in f() 148 d2 = absl::Milliseconds(absl::FDivDuration(d1, absl::Milliseconds(20))); in f() 150 d2 = absl::Milliseconds(absl::ToDoubleSeconds(d1) * 2); in f()
|
D | abseil-duration-factory-scale.cpp | 21 d = absl::Milliseconds(0); in ScaleTest() 61 d = absl::Milliseconds(30 * 1000); in ScaleTest() 64 d = absl::Milliseconds(30 * 0.001); in ScaleTest() 89 d = absl::Milliseconds(30 / 1e3); in ScaleTest()
|
D | abseil-upgrade-duration-conversions.cpp | 255 (void)absl::Milliseconds(ConvertibleTo<int64_t>()); in factoryFunctionPositive() 275 (void)absl::Milliseconds(ConvertibleTo<char>()); in factoryFunctionPositive() 295 (void)absl::Milliseconds(ConvertibleTo<float>()); in factoryFunctionPositive() 318 (void)absl::Milliseconds(char{1}); in factoryFunctionNegative() 319 (void)absl::Milliseconds(1); in factoryFunctionNegative() 320 (void)absl::Milliseconds(int64_t{1}); in factoryFunctionNegative() 321 (void)absl::Milliseconds(1.0f); in factoryFunctionNegative() 337 (void)absl::Milliseconds(static_cast<int>(ConvertibleTo<int>())); in factoryFunctionNegative()
|
/external/angle/third_party/abseil-cpp/absl/time/ |
D | duration_test.cc | 89 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 99 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 146 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 170 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 219 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 284 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 370 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 377 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 384 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 390 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 26 absl::Milliseconds(1), 56 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 110 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 149 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 158 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 166 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 177 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 212 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 249 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 250 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/abseil-cpp/absl/time/ |
D | duration_test.cc | 88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 145 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 51 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 105 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 144 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 153 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 161 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 172 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 244 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 245 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/ |
D | duration_test.cc | 88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 145 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 51 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 105 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 144 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 153 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 161 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 172 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 244 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 245 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/webrtc/third_party/abseil-cpp/absl/time/ |
D | duration_test.cc | 88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 145 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 51 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 105 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 144 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 153 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 161 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 172 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 244 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 245 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/libtextclassifier/abseil-cpp/absl/time/ |
D | duration_test.cc | 88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 145 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 51 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 105 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 144 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 153 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 161 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 172 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 244 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 245 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/openscreen/third_party/abseil/src/absl/time/ |
D | duration_test.cc | 88 constexpr absl::Duration milli = absl::Milliseconds(1); in TEST() 98 EXPECT_EQ(sec, absl::Milliseconds(1000)); in TEST() 145 TEST_DURATION_CONVERSION(Milliseconds); in TEST() 169 const absl::Duration milli = absl::Milliseconds(N); in TestToConversion() 218 static_assert(absl::Milliseconds(N) == absl::FromChrono(milliseconds(N)), ""); in TestFromChronoBasicEquality() 283 EXPECT_EQ(milliseconds(N), absl::ToChronoMilliseconds(absl::Milliseconds(N))); in TestToChrono() 369 TEST_FACTORY_OVERLOADS(absl::Milliseconds); in TEST() 376 EXPECT_EQ(absl::Milliseconds(1500), absl::Seconds(1.5)); in TEST() 383 EXPECT_EQ(absl::InfiniteDuration(), absl::Milliseconds(dbl_inf)); in TEST() 389 EXPECT_EQ(-absl::InfiniteDuration(), absl::Milliseconds(-dbl_inf)); in TEST() [all …]
|
D | duration_benchmark.cc | 51 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds() 105 benchmark::DoNotOptimize(absl::Milliseconds(d)); in BM_Duration_Factory_DoubleMilliseconds() 144 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Addition() 153 absl::Duration step = absl::Milliseconds(1); in BM_Duration_Subtraction() 161 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Fixed() 172 absl::Duration d = absl::Milliseconds(1); in BM_Duration_Multiplication_Double() 207 d += absl::FDivDuration(absl::Milliseconds(i), absl::Nanoseconds(1))); in BM_Duration_FDivDuration_Nanoseconds() 244 benchmark::DoNotOptimize(a += absl::IDivDuration(absl::Milliseconds(i), in BM_Duration_IDivDuration_Milliseconds() 245 absl::Milliseconds(1), in BM_Duration_IDivDuration_Milliseconds()
|
D | clock_test.cc | 106 const absl::Duration d = absl::Milliseconds(2500); in TEST() 107 const absl::Duration early = absl::Milliseconds(100); in TEST() 108 const absl::Duration late = absl::Milliseconds(300); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | DurationRewriter.cpp | 56 InverseMap[DurationScale::Milliseconds] = std::make_pair( in getDurationInverseForScale() 112 case DurationScale::Milliseconds: in getDurationFactoryForScale() 130 case DurationScale::Milliseconds: in getTimeFactoryForScale() 149 case DurationScale::Milliseconds: in getTimeInverseForScale() 239 {"ToDoubleMilliseconds", DurationScale::Milliseconds}, in getScaleForDurationInverse() 240 {"ToInt64Milliseconds", DurationScale::Milliseconds}, in getScaleForDurationInverse() 258 {"ToUnixMillis", DurationScale::Milliseconds}, in getScaleForTimeInverse()
|
/external/angle/third_party/abseil-cpp/absl/synchronization/internal/ |
D | per_thread_sem_test.cc | 111 absl::SleepFor(absl::Milliseconds(20)); in TestTiming() 156 const absl::Duration delay = absl::Milliseconds(50); in TEST_F() 162 const absl::Duration slop = absl::Milliseconds(1); in TEST_F() 167 absl::Time negative_timeout = absl::UnixEpoch() - absl::Milliseconds(100); in TEST_F()
|
/external/tensorflow/tensorflow/core/profiler/rpc/client/ |
D | profiler_client_test.cc | 38 absl::Duration duration = absl::Milliseconds(10); in TEST() 63 absl::Duration duration = absl::Milliseconds(10); in TEST() 80 absl::Duration duration = absl::Milliseconds(10); in TEST() 98 absl::Duration duration = absl::Milliseconds(10); in TEST()
|
/external/tensorflow/tensorflow/compiler/xla/pjrt/distributed/ |
D | client_server_test.cc | 190 service_options.heartbeat_interval = absl::Milliseconds(500); in TEST() 239 service_options.heartbeat_interval = absl::Milliseconds(500); in TEST() 288 service_options.heartbeat_interval = absl::Milliseconds(500); in TEST() 361 client_options.init_timeout = absl::Milliseconds(20000); in TEST() 362 client_options.rpc_timeout = absl::Milliseconds(200); in TEST() 368 absl::SleepFor(absl::Milliseconds(200) * node_id); in TEST() 400 client_options.init_timeout = absl::Milliseconds(500); in TEST() 401 client_options.rpc_timeout = absl::Milliseconds(200); in TEST()
|