HomeSort by relevance Sort by last modified time
    Searched refs:Random (Results 1 - 25 of 250) sorted by null

1 2 3 4 5 6 7 8 910

  /external/guava/guava-tests/test/com/google/common/io/
RandomAmountInputStream.java 22 import java.util.Random;
24 /** Returns a random portion of the requested bytes on each call. */
26 private final Random random; field in class:RandomAmountInputStream
28 public RandomAmountInputStream(InputStream in, Random random) {
30 this.random = random;
34 return super.read(b, off, random.nextInt(len) + 1);
  /frameworks/av/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...]
  /frameworks/base/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...]
  /frameworks/support/volley/tests/src/com/android/volley/utils/
CacheTestUtils.java 7 import java.util.Random;
12 * Makes a random cache entry.
13 * @param data Data to use, or null to use random data
19 Random random = new Random(); local
24 entry.data = new byte[random.nextInt(1024)];
26 entry.etag = String.valueOf(random.nextLong());
27 entry.serverDate = random.nextLong();
  /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 26 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;
205 Random random = new Random(42); local
208 int r = random.nextInt(100000);
238 Random random = new Random(42); local
241 int r = random.nextInt(100000);
273 Random random = new Random(42) local
313 Random random = new Random(42); local
351 Random random = new Random(42); local
390 Random random = new Random(42); local
428 Random random = new Random(42); local
468 Random random = new Random(42); local
510 Random random = new Random(42); local
562 Random random = new Random(42); local
601 Random random = new Random(42); local
635 Random random = new Random(42); local
667 Random random = new Random(42); local
700 Random random = new Random(42); local
734 Random random = new Random(42); local
774 Random random = new Random(42); local
807 Random random = new Random(42); local
839 Random random = new Random(42); local
876 Random random = new Random(42); local
915 Random random = new Random(42); local
959 Random random = new Random(42); local
1000 Random random = new Random(42); local
1032 Random random = new Random(42); local
1065 Random random = new Random(42); local
1097 Random random = new Random(42); local
1132 Random random = new Random(42); local
1170 Random random = new Random(42); local
1209 Random random = new Random(42); local
1243 Random random = new Random(42); local
1281 Random random = new Random(42); local
1318 Random random = new Random(42); local
    [all...]
NewDatabasePerformanceTests.java 26 import java.util.Random;
114 Random random = new Random(42); local
117 int r = random.nextInt(100000);
146 Random random = new Random(42); local
149 int r = random.nextInt(100000);
180 Random random = new Random(42) local
219 Random random = new Random(42); local
256 Random random = new Random(42); local
294 Random random = new Random(42); local
331 Random random = new Random(42); local
370 Random random = new Random(42); local
411 Random random = new Random(42); local
462 Random random = new Random(42); local
498 Random random = new Random(42); local
529 Random random = new Random(42); local
560 Random random = new Random(42); local
592 Random random = new Random(42); local
625 Random random = new Random(42); local
663 Random random = new Random(42); local
694 Random random = new Random(42); local
725 Random random = new Random(42); local
761 Random random = new Random(42); local
799 Random random = new Random(42); local
842 Random random = new Random(42); local
882 Random random = new Random(42); local
913 Random random = new Random(42); local
945 Random random = new Random(42); local
976 Random random = new Random(42); local
1010 Random random = new Random(42); local
1048 Random random = new Random(42); local
1086 Random random = new Random(42); local
1119 Random random = new Random(42); local
1156 Random random = new Random(42); local
1193 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...]
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
HillHeightMap.java 34 import java.util.Random;
39 * Algorithm. Terrain is generatd by growing hills of random size and height at
40 * random points in the heightmap. The terrain is then normalized and valleys
52 private long seed; // the seed for the random number generator
96 * height map by using a random seed.
113 this(size, iterations, minRadius, maxRadius, new Random().nextLong());
127 Random random = new Random(seed); local
131 addHill(tempBuffer, random);
    [all...]
  /external/guava/guava-tests/test/com/google/common/hash/
HashTestUtils.java 12 import java.util.Random;
86 @Override void performAction(Random random, Iterable<? extends Sink> sinks) {
87 boolean value = random.nextBoolean();
94 @Override void performAction(Random random, Iterable<? extends Sink> sinks) {
95 int value = random.nextInt();
102 @Override void performAction(Random random, Iterable<? extends Sink> sinks) {
103 short value = (short) random.nextInt()
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/zip/
GZIPOutputStreamTest.java 25 import java.util.Random;
39 new Random().nextBytes(data);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
UserHistoryDictionaryTests.java 28 import java.util.Random;
49 * Generates a random word.
62 private List<String> generateWords(final int number, final Random random) {
65 wordSet.add(generateWord(random.nextInt()));
82 final Random random = new Random(123456); local
83 List<String> words = generateWords(numberOfWords, random);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
MifareUltralightTagTester.java 24 import java.util.Random;
27 * {@link TagTester} for MIFARE Ultralight tags. It writes random bytes to the
50 Random random = new Random(); local
57 random.nextBytes(onePage);
  /cts/tests/tests/media/src/android/media/cts/
MediaPlayerFlakyNetworkTest.java 36 import java.util.Random;
96 Random random = new Random(seed); local
99 String video = getRandomTestVideo(random);
104 doPlayMp4Stream(getRandomTestVideo(random), 30000, 20000);
108 private String getRandomTestVideo(Random random) {
109 return TEST_VIDEOS[random.nextInt(TEST_VIDEOS.length)];
129 Random random = new Random(1) local
139 Random random = new Random(1); local
210 final Random random = new Random(seed); local
310 float random = mRandom.nextFloat(); local
    [all...]
  /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/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
FakeView.java 19 import java.util.Random;
50 final Random mRandom = new Random();
  /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...]

Completed in 556 milliseconds

1 2 3 4 5 6 7 8 910