/art/runtime/base/ |
D | time_utils.h | 69 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs() argument 70 return ns / 1000 / 1000; in NsToMs() 86 void NanoSleep(uint64_t ns); 90 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
D | time_utils.cc | 184 void NanoSleep(uint64_t ns) { in NanoSleep() argument 186 tm.tv_sec = ns / MsToNs(1000); in NanoSleep() 187 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); in NanoSleep() 191 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument 220 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
|
D | mutex.cc | 684 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument 689 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout() 724 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout() 967 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument 975 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait() 1008 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
|
D | mutex.h | 333 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 463 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
/art/runtime/native/ |
D | java_lang_Object.cc | 49 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument 51 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
|
D | java_lang_Thread.cc | 179 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument 182 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|
/art/test/964-default-iface-init-gen/util-src/ |
D | generate_java.py | 371 ns = clone_all(supers) 372 selected = sorted(set(dump_tree(ns)) - set(ns))[i] 373 yield TestClass(tuple([selected] + list(ns)))
|
/art/runtime/ |
D | monitor.cc | 639 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument 655 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait() 660 if (ms < 0 || ns < 0 || ns > 999999) { in Wait() 663 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait() 721 self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait() 1097 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, in Wait() argument 1131 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
|
D | monitor.h | 87 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 628 … android::native_bridge_namespace_t* ns ATTRIBUTE_UNUSED) { in native_bridge_loadLibraryExt()
|
/art/runtime/mirror/ |
D | object-inl.h | 120 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { in Wait() argument 121 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
|
/art/runtime/openjdkjvmti/ |
D | ti_redefine.cc | 543 art::ScopedAssertNoThreadSuspension ns("No thread suspension during thread stack walking"); in FindAndAllocateObsoleteMethods() local
|