HomeSort by relevance Sort by last modified time
    Searched refs:Clock (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /packages/apps/Email/src/com/android/email/
Clock.java 23 public class Clock {
24 public static final Clock INSTANCE = new Clock();
26 protected Clock() {
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
Clock.java 19 public class Clock {
20 private static final Clock INSTANCE = new Clock();
22 private static Clock sInstance = INSTANCE;
24 public static final Clock getInstance() {
29 static void injectInstance(Clock clock) {
30 sInstance = clock;
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/futures/futures.async/
async.pass.cpp 24 typedef std::chrono::high_resolution_clock Clock;
63 Clock::time_point t0 = Clock::now();
65 Clock::time_point t1 = Clock::now();
71 Clock::time_point t0 = Clock::now();
73 Clock::time_point t1 = Clock::now();
79 Clock::time_point t0 = Clock::now()
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.point/time.point.cons/
duration.fail.cpp 22 typedef std::chrono::system_clock Clock;
24 std::chrono::time_point<Clock, Duration> t = Duration(3);
convert.fail.cpp 15 // time_point(const time_point<clock, Duration2>& t);
23 typedef std::chrono::system_clock Clock;
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3));
28 std::chrono::time_point<Clock, Duration1> t1 = t2;
convert.pass.cpp 15 // time_point(const time_point<clock, Duration2>& t);
22 typedef std::chrono::system_clock Clock;
26 std::chrono::time_point<Clock, Duration2> t2(Duration2(3));
27 std::chrono::time_point<Clock, Duration1> t1 = t2;
duration.pass.cpp 21 typedef std::chrono::system_clock Clock;
24 std::chrono::time_point<Clock, Duration> t(Duration(3));
28 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3));
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.point/time.point.cast/
toduration.fail.cpp 14 // template <class ToDuration, class Clock, class Duration>
15 // time_point<Clock, ToDuration>
16 // time_point_cast(const time_point<Clock, Duration>& t);
24 typedef std::chrono::system_clock Clock;
25 typedef std::chrono::time_point<Clock, std::chrono::milliseconds> FromTimePoint;
26 typedef std::chrono::time_point<Clock, std::chrono::minutes> ToTimePoint;
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
MockClock.java 19 public class MockClock extends Clock {
24 Clock.injectInstance(this);
30 Clock.resetInstance();
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.threads/thread.thread.this/
sleep_for.pass.cpp 21 typedef std::chrono::system_clock Clock;
22 typedef Clock::time_point time_point;
23 typedef Clock::duration duration;
25 time_point t0 = Clock::now();
27 time_point t1 = Clock::now();
sleep_until.pass.cpp 12 // template <class Clock, class Duration>
13 // void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
21 typedef std::chrono::system_clock Clock;
22 typedef Clock::time_point time_point;
23 typedef Clock::duration duration;
25 time_point t0 = Clock::now();
27 time_point t1 = Clock::now();
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.point/time.point.nonmember/
op_+.pass.cpp 14 // template <class Clock, class Duration1, class Rep2, class Period2>
15 // time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
16 // operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
18 // template <class Rep1, class Period1, class Clock, class Duration2>
19 // time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
20 // operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
27 typedef std::chrono::system_clock Clock;
30 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
31 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5);
op_-duration.pass.cpp 14 // template <class Clock, class Duration1, class Rep2, class Period2>
15 // time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
16 // operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
23 typedef std::chrono::system_clock Clock;
26 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
27 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5);
op_-time_point.pass.cpp 14 // template <class Clock, class Duration1, class Duration2>
16 // operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
23 typedef std::chrono::system_clock Clock;
26 std::chrono::time_point<Clock, Duration1> t1(Duration1(3));
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(5));
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex_time_point.pass.cpp 14 // template <class Clock, class Duration>
15 // unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
24 typedef std::chrono::steady_clock Clock;
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now();
33 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(300));
35 time_point t1 = Clock::now();
42 time_point t0 = Clock::now();
43 std::unique_lock<std::timed_mutex> lk(m, Clock::now() + ms(250))
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
try_lock_until.pass.cpp 14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 typedef std::chrono::steady_clock Clock;
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now();
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
34 time_point t1 = Clock::now();
42 time_point t0 = Clock::now();
43 assert(m.try_lock_until(Clock::now() + ms(250)) == false)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
try_lock_until.pass.cpp 14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 typedef std::chrono::steady_clock Clock;
25 typedef Clock::time_point time_point;
26 typedef Clock::duration duration;
32 time_point t0 = Clock::now();
33 assert(m.try_lock_until(Clock::now() + ms(300)) == true);
34 time_point t1 = Clock::now();
44 time_point t0 = Clock::now();
45 assert(m.try_lock_until(Clock::now() + ms(250)) == false)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.condition/thread.condition.condvar/
wait_until.pass.cpp 14 // template <class Clock, class Duration>
17 // const chrono::time_point<Clock, Duration>& abs_time);
25 struct Clock
30 typedef std::chrono::time_point<Clock> time_point;
56 Clock::time_point t0 = Clock::now();
57 Clock::time_point t = t0 + Clock::duration(250);
60 Clock::time_point t1 = Clock::now()
    [all...]
wait_until_pred.pass.cpp 14 // template <class Clock, class Duration, class Predicate>
17 // const chrono::time_point<Clock, Duration>& abs_time,
26 struct Clock
31 typedef std::chrono::time_point<Clock> time_point;
66 Clock::time_point t0 = Clock::now();
67 Clock::time_point t = t0 + Clock::duration(250);
69 Clock::time_point t1 = Clock::now()
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.condition/thread.condition.condvarany/
wait_until.pass.cpp 14 // template <class Lock, class Clock, class Duration>
16 // wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& abs_time);
24 struct Clock
29 typedef std::chrono::time_point<Clock> time_point;
59 Clock::time_point t0 = Clock::now();
60 Clock::time_point t = t0 + Clock::duration(250);
63 Clock::time_point t1 = Clock::now()
    [all...]
wait_until_pred.pass.cpp 17 // const chrono::time_point<Clock, Duration>& abs_time,
26 struct Clock
31 typedef std::chrono::time_point<Clock> time_point;
70 Clock::time_point t0 = Clock::now();
71 Clock::time_point t = t0 + Clock::duration(250);
73 Clock::time_point t1 = Clock::now();
76 assert(t1 - t0 < Clock::duration(250))
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
try_lock_until.pass.cpp 14 // template <class Clock, class Duration>
15 // bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
24 template <class Clock, class Duration>
25 bool try_lock_until(const std::chrono::time_point<Clock, Duration>& abs_time)
28 assert(Clock::now() - abs_time < ms(5));
39 typedef std::chrono::steady_clock Clock;
41 assert(lk.try_lock_until(Clock::now()) == true);
46 lk.try_lock_until(Clock::now());
54 assert(lk.try_lock_until(Clock::now()) == false);
60 lk.try_lock_until(Clock::now())
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/
clock.h 6 class Clock
11 typedef std::chrono::time_point<Clock, duration> time_point;
  /ndk/sources/cxx-stl/llvm-libc++/test/utilities/time/time.point/time.point.arithmetic/
op_+=.pass.cpp 21 typedef std::chrono::system_clock Clock;
23 std::chrono::time_point<Clock, Duration> t(Duration(3));
op_-=.pass.cpp 21 typedef std::chrono::system_clock Clock;
23 std::chrono::time_point<Clock, Duration> t(Duration(3));

Completed in 114 milliseconds

1 2 3 4