/libcore/jsr166-tests/src/test/java/jsr166/ |
ThreadLocalRandomTest.java | 11 import java.util.concurrent.ThreadLocalRandom; 40 ThreadLocalRandom.current().setSeed(17); 49 int f = ThreadLocalRandom.current().nextInt(); 51 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) 60 long f = ThreadLocalRandom.current().nextLong(); 62 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f) 71 boolean f = ThreadLocalRandom.current().nextBoolean(); 73 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f) 82 float f = ThreadLocalRandom.current().nextFloat(); 84 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f [all...] |
RecursiveActionTest.java | 17 import java.util.concurrent.ThreadLocalRandom; [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
ThreadLocalRandom.java | 14 * java.lang.Math} class, a {@code ThreadLocalRandom} is initialized 16 * modified. When applicable, use of {@code ThreadLocalRandom} rather 19 * {@code ThreadLocalRandom} is particularly appropriate when multiple 24 * {@code ThreadLocalRandom.current().nextX(...)} (where 27 * accidently share a {@code ThreadLocalRandom} across multiple threads. 35 public class ThreadLocalRandom extends Random { 62 private static final ThreadLocal<ThreadLocalRandom> localRandom = 63 new ThreadLocal<ThreadLocalRandom>() { 64 protected ThreadLocalRandom initialValue() { 65 return new ThreadLocalRandom(); [all...] |
LinkedTransferQueue.java | 227 * per-thread one available, but even ThreadLocalRandom is too 672 ThreadLocalRandom randomYields = null; // bound if needed [all...] |
ForkJoinPool.java | 21 import java.util.concurrent.ThreadLocalRandom; [all...] |
/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
Conversations.java | 23 import java.util.concurrent.ThreadLocalRandom; 108 ThreadLocalRandom.current().nextInt(), 118 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]); 124 return PARTICIPANTS[ThreadLocalRandom.current().nextInt(0, PARTICIPANTS.length)];
|
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
Conversations.java | 23 import java.util.concurrent.ThreadLocalRandom; 108 ThreadLocalRandom.current().nextInt(), 118 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]); 124 return PARTICIPANTS[ThreadLocalRandom.current().nextInt(0, PARTICIPANTS.length)];
|
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/ |
Conversations.java | 23 import java.util.concurrent.ThreadLocalRandom; 108 ThreadLocalRandom.current().nextInt(), 118 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]); 124 return PARTICIPANTS[ThreadLocalRandom.current().nextInt(0, PARTICIPANTS.length)];
|
/frameworks/base/docs/html/sdk/api_diff/21/changes/ |
pkg_java.util.concurrent.html | 154 <A NAME="ThreadLocalRandom"></A> 155 <nobr><A HREF="../../../../reference/java/util/concurrent/ThreadLocalRandom.html" target="_top"><code>ThreadLocalRandom</code></A></nobr>
|
classes_index_additions.html | 475 <A HREF="pkg_java.util.concurrent.html#ThreadLocalRandom" class="hiddenlink" target="rightframe"><b>ThreadLocalRandom</b></A><br> [all...] |
classes_index_all.html | [all...] |
/frameworks/base/docs/html/sdk/api_diff/preview-21/changes/ |
pkg_java.util.concurrent.html | 154 <A NAME="ThreadLocalRandom"></A> 155 <nobr><A HREF="../../../../reference/java/util/concurrent/ThreadLocalRandom.html" target="_top"><code>ThreadLocalRandom</code></A></nobr>
|
classes_index_additions.html | 286 <A HREF="pkg_java.util.concurrent.html#ThreadLocalRandom" class="hiddenlink" target="rightframe"><b>ThreadLocalRandom</b></A><br>
|
classes_index_all.html | [all...] |
alldiffs_index_additions.html | [all...] |
/frameworks/base/docs/html/sdk/api_diff/preview-21/ |
missingSinces.txt | 61 NO DOC BLOCK: java.util.concurrent.ThreadLocalRandom Class [all...] |
user_comments_for_l-preview_to_21.xml | [all...] |
/frameworks/base/docs/html/sdk/api_diff/21/ |
missingSinces.txt | 111 NO DOC BLOCK: java.util.concurrent.ThreadLocalRandom Class [all...] |
user_comments_for_20_to_21.xml | [all...] |