Searched refs:myTid (Results 1 – 2 of 2) sorted by relevance
33 assertThat(android.os.Process.myTid()).isEqualTo(Thread.currentThread().getId()); in myTid_mainThread_returnsCurrentThreadId()43 ok.set(android.os.Process.myTid() == Thread.currentThread().getId()); in myTid_backgroundThread_returnsCurrentThreadId()59 tid1.set(android.os.Process.myTid()); in myTid_returnsDifferentValuesForDifferentThreads()64 tid2.set(android.os.Process.myTid()); in myTid_returnsDifferentValuesForDifferentThreads()99 assertThat(android.os.Process.getThreadPriority(android.os.Process.myTid())) in setThreadPriorityOneArgument_setsCurrentThreadPriority()
44 protected static final int myTid() { in myTid() method in ShadowProcess55 threadPriorities.put(ShadowProcess.myTid(), priority); in setThreadPriority()75 tid = ShadowProcess.myTid(); in setThreadPriority()91 tid = ShadowProcess.myTid(); in getThreadPriority()