/sdk/testapps/basicJar/src/com/android/tests/basicjar/ |
Foo.java | 3 import java.util.Random; 13 Random r = new Random(System.currentTimeMillis());
|
/sdk/testapps/basicJavaProject/src/com/android/tests/basicJavaProject/ |
Foo.java | 3 import java.util.Random; 13 Random r = new Random(System.currentTimeMillis());
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
random.c | 18 * File: random.c * 20 * Description: Signed 16 bits random generator * 27 Word16 Random(Word16 * seed)
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyEventQueue.java | 20 import java.util.Random; 28 private Random mRandom; 32 public MonkeyEventQueue(Random random, long throttle, boolean randomizeThrottle) { 34 mRandom = random;
|
MonkeySourceRandomScript.java | 20 import java.util.Random; 32 /** The list of MonkeySourceScript instances to be played in random order */ 35 /** The current source, set to the setup source and then a random script */ 38 /** The random number generator */ 39 private Random mRandom; 52 * @param random The random number generator. 55 long throttle, boolean randomizeThrottle, Random random, long profileWaitTime, 58 mSetupSource = new MonkeySourceScript(random, setupFileName, throttle [all...] |
/system/media/mca/filterfw/java/android/filterfw/core/ |
RandomScheduler.java | 20 import java.util.Random; 31 private Random mRand = new Random();
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
RandomTest.java | 20 import java.util.Random; 24 Random r; 27 * @tests java.util.Random#Random() 30 // Test for method java.util.Random() 35 * @tests java.util.Random#Random(long) 38 Random r = new Random(8409238L); 39 Random r2 = new Random(8409238L) [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
RandomTest.java | 19 import java.util.Random; 24 // Ensure that Random's constructors call setSeed by emulating the active ingredient 27 class MyRandom extends Random {
|
/external/skia/src/animator/ |
SkDisplayRandom.h | 34 DECLARE_DISPLAY_MEMBER_INFO(Random);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
SSLUtilsTest.java | 23 import java.util.Random; 56 private String randomString(Random r) { 76 Random random = new Random(314159 /* seed */); local 79 String s1 = randomString(random); 80 String s2 = randomString(random);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabasePerformanceTests.java | 31 import java.util.Random; 204 Random random = new Random(42); local 207 int r = random.nextInt(100000); 237 Random random = new Random(42); local 240 int r = random.nextInt(100000); 272 Random random = new Random(42) local 312 Random random = new Random(42); local 350 Random random = new Random(42); local 389 Random random = new Random(42); local 427 Random random = new Random(42); local 467 Random random = new Random(42); local 509 Random random = new Random(42); local 561 Random random = new Random(42); local 600 Random random = new Random(42); local 634 Random random = new Random(42); local 666 Random random = new Random(42); local 699 Random random = new Random(42); local 733 Random random = new Random(42); local 773 Random random = new Random(42); local 806 Random random = new Random(42); local 838 Random random = new Random(42); local 875 Random random = new Random(42); local 914 Random random = new Random(42); local 958 Random random = new Random(42); local 999 Random random = new Random(42); local 1031 Random random = new Random(42); local 1064 Random random = new Random(42); local 1096 Random random = new Random(42); local 1131 Random random = new Random(42); local 1169 Random random = new Random(42); local 1208 Random random = new Random(42); local 1242 Random random = new Random(42); local 1280 Random random = new Random(42); local 1317 Random random = new Random(42); local [all...] |
NewDatabasePerformanceTests.java | 27 import java.util.Random; 115 Random random = new Random(42); local 118 int r = random.nextInt(100000); 147 Random random = new Random(42); local 150 int r = random.nextInt(100000); 181 Random random = new Random(42) local 220 Random random = new Random(42); local 257 Random random = new Random(42); local 295 Random random = new Random(42); local 332 Random random = new Random(42); local 371 Random random = new Random(42); local 412 Random random = new Random(42); local 463 Random random = new Random(42); local 501 Random random = new Random(42); local 534 Random random = new Random(42); local 565 Random random = new Random(42); local 597 Random random = new Random(42); local 630 Random random = new Random(42); local 669 Random random = new Random(42); local 701 Random random = new Random(42); local 732 Random random = new Random(42); local 768 Random random = new Random(42); local 806 Random random = new Random(42); local 849 Random random = new Random(42); local 889 Random random = new Random(42); local 920 Random random = new Random(42); local 952 Random random = new Random(42); local 983 Random random = new Random(42); local 1017 Random random = new Random(42); local 1055 Random random = new Random(42); local 1093 Random random = new Random(42); local 1126 Random random = new Random(42); local 1163 Random random = new Random(42); local 1200 Random random = new Random(42); local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
RandomTest.java | 20 import java.util.Random; 24 Random r; 27 * java.util.Random#Random() 30 // Test for method java.util.Random() 35 * java.util.Random#Random(long) 38 Random r = new Random(8409238L); 39 Random r2 = new Random(8409238L) [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPOutputStreamTest.java | 25 import java.util.Random; 39 new Random().nextBytes(data);
|
ZipFileTest.java | 25 import java.util.Random; 64 * Compresses a single random file into a .zip archive. 71 ZipEntry entry = new ZipEntry("random"); 75 Random random = new Random(); local 77 random.nextBytes(writeBuffer);
|
GZIPInputStreamTest.java | 25 import java.util.Random; 41 new Random().nextBytes(data);
|
ZipInputStreamTest.java | 25 import java.util.Random; 40 new Random().nextBytes(data);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
TextToSpeechActivity.java | 29 import java.util.Random; 117 private static final Random RANDOM = new Random(); 128 // Select a random hello. 130 String hello = HELLOS[RANDOM.nextInt(helloLength)];
|
/external/astl/tests/ |
test_iterator.cpp | 62 struct Random { 71 enum Category {UNKNOWN, INPUT, FORWARD, BIDIRECTIONAL, RANDOM}; 99 return RANDOM; 108 EXPECT_TRUE(category(android::iterator_category(Random())) == RANDOM); 117 EXPECT_FALSE(android::is_wrapper_iterator<android::Random>::value);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaPlayerInvokeTest.java | 32 import java.util.Random; 38 private Random rnd; 42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); 57 // Generate a random number, sends it to the ping test player.
|
/frameworks/base/tests/CoreTests/android/core/ |
InetAddrTest.java | 23 import java.util.Random; 84 Random random = new Random(); local 87 int index = random.nextInt(HOSTS.length);
|
/libcore/luni/src/main/java/java/util/ |
Random.java | 24 * This class provides methods that return pseudo-random values. 26 * <p>It is dangerous to seed {@code Random} with the current time because 33 public class Random implements Serializable { 59 * Constructs a random generator with an initial state that is 65 public Random() { 71 * Construct a random generator with the given {@code seed} as the 72 * initial state. Equivalent to {@code Random r = new Random(); r.setSeed(seed);}. 77 public Random(long seed) { 82 * Returns a pseudo-random uniformly distributed {@code int} value o [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
IncludeOverlayTest.java | 24 import java.util.Random; 46 // Do some Monte Carlo testing - pick random coordinates and check that if they 48 Random random = new Random(42L); local 50 int x = random.nextInt(rectangle.width); 51 int y = random.nextInt(rectangle.height);
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
NotificationStressTest.java | 28 import java.util.Random; 51 private final Random mRandom = new Random(); 80 // Create "typical" notification with random icon
|
/external/webkit/Source/JavaScriptCore/wtf/ |
OSRandomSource.cpp | 52 TInt random; local 53 while (length > sizeof(random)) { 54 random = Math::Random(); 55 memcpy(buffer, &random, sizeof(random)); 56 length -= sizeof(random); 57 buffer += sizeof(random); 60 random = Math::Random(); [all...] |