Searched defs:ms (Results 1 - 12 of 12) sorted by relevance

/art/test/030-bad-finalizer/src/
H A DMain.java37 public static void snooze(int ms) { argument
39 Thread.sleep(ms);
/art/runtime/base/
H A Dtime_utils.h37 // e.g. "1ms", "1.000000001s", "1.001us"
71 static constexpr inline uint64_t MsToNs(uint64_t ms) { argument
72 return ms * 1000 * 1000;
83 // Initialize a timespec to either a relative time (ms,ns), or to the absolute
85 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
H A Dtime_utils.cc83 unit = "ms";
177 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument
193 int64_t end_sec = ts->tv_sec + ms / 1000;
196 // Either ms was intended to denote an infinite timeout, or we have a
200 if (ms != int64_max && ms != int64_max / (1000 * 1000)) {
206 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns;
H A Dmutex.cc618 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { argument
623 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts);
655 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts);
884 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { argument
892 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts);
925 InitTimeSpec(true, clock, ms, ns, &ts);
/art/runtime/native/
H A Djava_lang_Object.cc50 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument
53 o->Wait(soa.Self(), ms, ns);
H A Djava_lang_Thread.cc173 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { argument
176 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
/art/test/079-phantom/src/
H A DMain.java20 public static void sleep(int ms) { argument
22 Thread.sleep(ms);
/art/test/036-finalizer/src/
H A DMain.java28 private static void snooze(int ms) { argument
30 Thread.sleep(ms);
/art/test/074-gc-thrash/src/
H A DMain.java135 * Sleeps for the "ms" milliseconds.
137 public static void sleep(int ms) { argument
139 Thread.sleep(ms);
/art/test/109-suspend-check/src/
H A DMain.java54 public static void sleep(int ms) { argument
56 Thread.sleep(ms);
/art/runtime/mirror/
H A Dobject-inl.h128 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument
129 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
/art/runtime/
H A Dmonitor.cc563 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, argument
579 if (why == kTimedWaiting && (ms == 0 && ns == 0)) {
584 if (ms < 0 || ns < 0 || ns > 999999) {
587 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns);
645 self->GetWaitConditionVariable()->TimedWait(self, ms, ns);
993 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, argument
1027 mon->Wait(self, ms, ns, interruptShouldThrow, why);

Completed in 1424 milliseconds