Searched refs:ms (Results 1 - 19 of 19) sorted by relevance

/art/libartbase/base/
H A Dtime_utils.h38 // e.g. "1ms", "1.000000001s", "1.001us"
75 static constexpr inline uint64_t MsToNs(uint64_t ms) { argument
76 return ms * 1000 * 1000;
80 static constexpr inline uint64_t MsToUs(uint64_t ms) { argument
81 return ms * 1000;
98 // Initialize a timespec to either a relative time (ms,ns), or to the absolute
100 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
H A Dtime_utils.cc86 unit = "ms";
191 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { argument
207 int64_t end_sec = ts->tv_sec + ms / 1000;
210 // Either ms was intended to denote an infinite timeout, or we have a
214 if (ms != int64_max && ms != int64_max / (1000 * 1000)) {
220 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns;
/art/tools/
H A Drun-libjdwp-tests.sh38 elif [[ $1 == --test-timeout-ms ]]; then
70 args+=(--test-timeout-ms)
H A Drun-jdwp-tests.sh58 # Timeout of JDWP test in ms.
98 elif [[ $1 == --test-timeout-ms ]]; then
99 # Remove the --test-timeout-ms from the arguments.
/art/test/155-java-set-resolved-type/src/
H A DMain.java43 Method[] ms = tpc.getDeclaredMethods();
44 if (ms == null || ms.length != 1) { throw new Error("Unexpected methods"); };
50 ms[0].getParameterTypes();
/art/test/030-bad-finalizer/src/
H A DMain.java71 public static void snooze(int ms) { argument
73 Thread.sleep(ms);
/art/test/079-phantom/src/
H A DMain.java23 public static void sleep(int ms) { argument
25 Thread.sleep(ms);
/art/runtime/native/
H A Djava_lang_Object.cc49 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { argument
51 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns);
H A Djava_lang_Thread.cc181 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { argument
184 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); local
/art/test/109-suspend-check/src/
H A DMain.java54 public static void sleep(int ms) { argument
56 Thread.sleep(ms);
/art/test/036-finalizer/src/
H A DMain.java31 private static void snooze(int ms) { argument
33 Thread.sleep(ms);
/art/test/444-checker-nce/src/
H A DMain.java56 Main[] ms = new Main[1];
57 return ms[0];
/art/test/074-gc-thrash/src/
H A DMain.java134 * Sleeps for the "ms" milliseconds.
136 public static void sleep(int ms) { argument
138 Thread.sleep(ms);
/art/test/130-hprof/src/
H A DMain.java177 public static void sleep(long ms) { argument
179 Thread.sleep(ms);
/art/runtime/
H A Dmonitor.cc727 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, argument
743 if (why == kTimedWaiting && (ms == 0 && ns == 0)) {
748 if (ms < 0 || ns < 0 || ns > 999999) {
751 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns);
810 timed_out = self->GetWaitConditionVariable()->TimedWait(self, ms, ns);
1189 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, argument
1196 Runtime::Current()->GetRuntimeCallbacks()->ObjectWaitStart(h_obj, ms);
1232 mon->Wait(self, ms, ns, interruptShouldThrow, why);
H A Dmonitor.h93 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
/art/runtime/base/
H A Dmutex.cc706 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { argument
711 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts);
746 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts);
989 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { argument
997 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts);
1030 InitTimeSpec(true, clock, ms, ns, &ts);
H A Dmutex.h351 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
482 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
/art/runtime/mirror/
H A Dobject-inl.h121 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument
122 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);

Completed in 3231 milliseconds