Home
last modified time | relevance | path

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

/art/libartbase/base/
Dtime_utils.h71 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs() argument
72 return ns / 1000 / 1000; in NsToMs()
97 void NanoSleep(uint64_t ns);
101 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
Dstats.h37 void AddNanoSeconds(double ns, size_t count = 1) { Add(ns / 1000000000.0, count); }
Dtime_utils.cc210 void NanoSleep(uint64_t ns) { in NanoSleep() argument
212 tm.tv_sec = ns / MsToNs(1000); in NanoSleep()
213 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); in NanoSleep()
217 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument
246 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
/art/test/1919-vminit-thread-start-timing/src/art/
DTest1919.java52 String[] ns = getEventNames(); in getEvents() local
54 Event[] es = new Event[Math.min(ns.length, ts.length)]; in getEvents()
56 es[i] = new Event(ns[i], ts[i]); in getEvents()
/art/runtime/native/
Djava_lang_Object.cc44 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument
46 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
Djava_lang_Thread.cc181 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument
184 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/build/apex/
Dcom.android.runtime.pem24 TIKBIdV5zkr2rvjor/WvPnoWUOBCmxh8zaAZhReE3RitNjtEVz/ns/x8vyyMRdPA
/art/runtime/base/
Dmutex.cc644 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument
649 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout()
684 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout()
924 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument
932 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait()
965 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
Dmutex.h291 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns)
424 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
/art/runtime/
Dmonitor.cc779 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument
795 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait()
800 if (ms < 0 || ns < 0 || ns > 999999) { in Wait()
803 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait()
864 timed_out = self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait()
1253 int32_t ns, in Wait() argument
1297 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
Dmonitor.h101 int32_t ns,
/art/runtime/mirror/
Dobject-inl.h102 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { in Wait() argument
103 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
/art/test/115-native-bridge/
Dnativebridge.cc646 … android::native_bridge_namespace_t* ns ATTRIBUTE_UNUSED) { in native_bridge_loadLibraryExt()
/art/openjdkjvmti/
Dti_redefine.cc613 art::ScopedAssertNoThreadSuspension ns("No thread suspension during thread stack walking"); in FindAndAllocateObsoleteMethods() local