/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | chrono | 25 duration_cast(const duration<Rep, Period>& fd); 38 // duration 41 class duration 43 static_assert(!__is_duration<Rep>::value, "A duration representation can not be a duration"); 44 …static_assert(__is_ratio<Period>::value, "Second template parameter of duration must be a std::rat… 45 static_assert(Period::num > 0, "duration period must be positive"); 50 constexpr duration() = default; 52 constexpr explicit duration(const Rep2& r, 62 constexpr duration(const duration<Rep2, Period2>& d, 75 constexpr duration operator+() const; [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.specializations/ |
D | duration.pass.cpp | 30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 31 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 34 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main() 37 std::chrono::duration<short, std::ratio<1, 1000> >, in main() 38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main() 39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main() [all …]
|
D | time_point.pass.cpp | 34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 38 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 40 test<std::chrono::duration<char, std::ratio<1, 30> >, in main() 41 std::chrono::duration<short, std::ratio<1, 1000> >, in main() 42 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main() 43 test<std::chrono::duration<double, std::ratio<21, 1> >, in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/ |
D | op_+.pass.cpp | 36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 43 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 44 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main() 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 62 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 63 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 67 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_-.pass.cpp | 37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 44 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 45 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main() 62 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 63 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 64 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 68 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_divide_duration.pass.cpp | 35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 36 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 41 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 56 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 57 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 62 constexpr std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
|
D | op_mod_duration.pass.cpp | 37 std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main() 38 std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main() 39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main() 56 constexpr std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main() 57 constexpr std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main() 58 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/ |
D | op_equal.pass.cpp | 54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 60 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 61 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() 66 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 67 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main() 97 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 98 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 103 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 104 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() [all …]
|
D | op_less.pass.cpp | 72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 80 std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 81 std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() 88 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 89 std::chrono::duration<double, std::ratio<3, 5> > s2(10); in main() 129 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 130 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() 137 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(10); in main() 138 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(9); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/ |
D | wait_until.pass.cpp | 27 typedef std::chrono::milliseconds duration; typedef 28 typedef duration::rep rep; 29 typedef duration::period period; 36 return time_point(duration_cast<duration>( in now() 57 Clock::time_point t = t0 + Clock::duration(250); in f() 63 assert(t1 - t0 < Clock::duration(250)); in f() 68 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
D | wait_until_pred.pass.cpp | 28 typedef std::chrono::milliseconds duration; typedef 29 typedef duration::rep rep; 30 typedef duration::period period; 37 return time_point(duration_cast<duration>( in now() 67 Clock::time_point t = t0 + Clock::duration(250); in f() 72 assert(t1 - t0 < Clock::duration(250)); in f() 78 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvarany/ |
D | wait_until.pass.cpp | 26 typedef std::chrono::milliseconds duration; typedef 27 typedef duration::rep rep; 28 typedef duration::period period; 35 return time_point(duration_cast<duration>( in now() 60 Clock::time_point t = t0 + Clock::duration(250); in f() 66 assert(t1 - t0 < Clock::duration(250)); in f() 71 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
D | wait_until_pred.pass.cpp | 28 typedef std::chrono::milliseconds duration; typedef 29 typedef duration::rep rep; 30 typedef duration::period period; 37 return time_point(duration_cast<duration>( in now() 71 Clock::time_point t = t0 + Clock::duration(250); in f() 76 assert(t1 - t0 < Clock::duration(250)); in f() 82 assert(t1 - t0 - Clock::duration(250) < Clock::duration(50)); in f()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/ |
D | clock.h | 17 typedef std::chrono::nanoseconds duration; typedef 18 typedef duration::rep rep; 19 typedef duration::period period; 20 typedef std::chrono::time_point<Clock, duration> time_point;
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/ |
D | convert_int_to_float.pass.cpp | 25 std::chrono::duration<int> i(3); in main() 26 std::chrono::duration<double, std::milli> d = i; in main() 31 constexpr std::chrono::duration<int> i(3); in main() 32 constexpr std::chrono::duration<double, std::milli> d = i; in main()
|
D | convert_inexact.pass.cpp | 25 std::chrono::duration<double, std::micro> us(1); in main() 26 std::chrono::duration<double, std::milli> ms = us; in main() 31 constexpr std::chrono::duration<double, std::micro> us(1); in main() 32 constexpr std::chrono::duration<double, std::milli> ms = us; in main()
|
D | rep.pass.cpp | 36 test<std::chrono::duration<int> >(5); in main() 37 test<std::chrono::duration<int, std::ratio<3, 2> > >(5); in main() 38 test<std::chrono::duration<Rep, std::ratio<3, 2> > >(Rep(3)); in main() 39 test<std::chrono::duration<double, std::ratio<2, 3> > >(5.5); in main()
|
D | convert_float_to_int.fail.cpp | 23 std::chrono::duration<double> d; in main() 24 std::chrono::duration<int> i = d; in main()
|
/ndk/sources/cxx-stl/llvm-libc++/patches.android/ |
D | 0010-Add-enough-symlink-to-rename-file-path-with-replace-.patch | 29 .../time/time.duration/time.duration.arithmetic/op_+EQ.pass.cpp | 1 + 30 .../time/time.duration/time.duration.arithmetic/op_-EQ.pass.cpp | 1 + 31 .../time/time.duration/time.duration.arithmetic/op_divideEQ.pass.cpp | 1 + 32 .../time.duration/time.duration.arithmetic/op_modEQduration.pass.cpp | 1 + 33 .../time/time.duration/time.duration.arithmetic/op_modEQrep.pass.cpp | 1 + 34 .../time/time.duration/time.duration.arithmetic/op_timesEQ.pass.cpp | 1 + 58 create mode 120000 test/utilities/time/time.duration/time.duration.arithmetic/op_+EQ.pass.cpp 59 create mode 120000 test/utilities/time/time.duration/time.duration.arithmetic/op_-EQ.pass.cpp 60 create mode 120000 test/utilities/time/time.duration/time.duration.arithmetic/op_divideEQ.pass.cpp 61 …create mode 120000 test/utilities/time/time.duration/time.duration.arithmetic/op_modEQduration.pas… [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.clock/time.clock.steady/ |
D | consistency.pass.cpp | 29 static_assert((std::is_same<C::rep, C::duration::rep>::value), ""); in main() 30 static_assert((std::is_same<C::period, C::duration::period>::value), ""); in main() 31 static_assert((std::is_same<C::duration, C::time_point::duration>::value), ""); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.clock/time.clock.hires/ |
D | consistency.pass.cpp | 29 static_assert((std::is_same<C::rep, C::duration::rep>::value), ""); in main() 30 static_assert((std::is_same<C::period, C::duration::period>::value), ""); in main() 31 static_assert((std::is_same<C::duration, C::time_point::duration>::value), ""); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.clock/time.clock.system/ |
D | consistency.pass.cpp | 29 static_assert((std::is_same<C::rep, C::duration::rep>::value), ""); in main() 30 static_assert((std::is_same<C::period, C::duration::period>::value), ""); in main() 31 static_assert((std::is_same<C::duration, C::time_point::duration>::value), ""); in main()
|
D | rep_signed.pass.cpp | 21 assert(std::chrono::system_clock::duration::min() < in main() 22 std::chrono::system_clock::duration::zero()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/ |
D | default_ratio.pass.cpp | 24 static_assert((std::is_same<std::chrono::duration<int, std::ratio<1> >, in main() 25 std::chrono::duration<int> >::value), ""); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/ |
D | default_duration.pass.cpp | 24 static_assert((std::is_same<std::chrono::system_clock::duration, in main() 25 std::chrono::time_point<std::chrono::system_clock>::duration>::value), ""); in main()
|