Home
last modified time | relevance | path

Searched refs:myTid (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowProcessTest.java33 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()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowProcess.java44 protected static final int myTid() { in myTid() method in ShadowProcess
55 threadPriorities.put(ShadowProcess.myTid(), priority); in setThreadPriority()
75 tid = ShadowProcess.myTid(); in setThreadPriority()
91 tid = ShadowProcess.myTid(); in getThreadPriority()