Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 12 of 12) sorted by relevance

/art/runtime/base/
Dtime_utils.h69 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);
Dtime_utils.cc184 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()
Dmutex.cc684 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()
Dmutex.h333 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/
Djava_lang_Object.cc49 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()
Djava_lang_Thread.cc179 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/
Dgenerate_java.py371 ns = clone_all(supers)
372 selected = sorted(set(dump_tree(ns)) - set(ns))[i]
373 yield TestClass(tuple([selected] + list(ns)))
/art/runtime/
Dmonitor.cc639 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()
Dmonitor.h87 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns,
/art/test/115-native-bridge/
Dnativebridge.cc628 … android::native_bridge_namespace_t* ns ATTRIBUTE_UNUSED) { in native_bridge_loadLibraryExt()
/art/runtime/mirror/
Dobject-inl.h120 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/
Dti_redefine.cc543 art::ScopedAssertNoThreadSuspension ns("No thread suspension during thread stack walking"); in FindAndAllocateObsoleteMethods() local