/art/libartbase/base/ |
H A D | time_utils.h | 38 // 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 D | time_utils.cc | 86 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 D | run-libjdwp-tests.sh | 38 elif [[ $1 == --test-timeout-ms ]]; then 70 args+=(--test-timeout-ms)
|
H A D | run-jdwp-tests.sh | 58 # 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 D | Main.java | 43 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 D | Main.java | 71 public static void snooze(int ms) { argument 73 Thread.sleep(ms);
|
/art/test/079-phantom/src/ |
H A D | Main.java | 23 public static void sleep(int ms) { argument 25 Thread.sleep(ms);
|
/art/runtime/native/ |
H A D | java_lang_Object.cc | 49 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 D | java_lang_Thread.cc | 181 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 D | Main.java | 54 public static void sleep(int ms) { argument 56 Thread.sleep(ms);
|
/art/test/036-finalizer/src/ |
H A D | Main.java | 31 private static void snooze(int ms) { argument 33 Thread.sleep(ms);
|
/art/test/444-checker-nce/src/ |
H A D | Main.java | 56 Main[] ms = new Main[1]; 57 return ms[0];
|
/art/test/074-gc-thrash/src/ |
H A D | Main.java | 134 * Sleeps for the "ms" milliseconds. 136 public static void sleep(int ms) { argument 138 Thread.sleep(ms);
|
/art/test/130-hprof/src/ |
H A D | Main.java | 177 public static void sleep(long ms) { argument 179 Thread.sleep(ms);
|
/art/runtime/ |
H A D | monitor.cc | 727 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 D | monitor.h | 93 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
|
/art/runtime/base/ |
H A D | mutex.cc | 706 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 D | mutex.h | 351 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 D | object-inl.h | 121 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { argument 122 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|