HomeSort by relevance Sort by last modified time
    Searched refs:nextInt (Results 26 - 50 of 231) sorted by null

12 3 4 5 6 7 8 910

  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
IncludeOverlayTest.java 50 int x = random.nextInt(rectangle.width);
51 int y = random.nextInt(rectangle.height);
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeySourceRandom.java 276 int count = random.nextInt(10);
296 int count = random.nextInt(10);
324 return new PointF(random.nextInt(display.getWidth()), random.nextInt(display.getHeight()));
355 int dX = random.nextInt(10) - 5;
356 int dY = random.nextInt(10) - 5;
364 if (0 == random.nextInt(10)) {
386 SCREEN_ROTATION_DEGREES[random.nextInt(
418 lastKey = NAV_KEYS[mRandom.nextInt(NAV_KEYS.length)];
420 lastKey = MAJOR_NAV_KEYS[mRandom.nextInt(MAJOR_NAV_KEYS.length)]
    [all...]
  /cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
RootProcessScanner.java 108 if (scanner.nextInt() != 0) {
205 int realUid = scanner.nextInt();
206 int effectiveUid = scanner.nextInt();
207 int savedSetUid = scanner.nextInt();
208 int fileSystemUid = scanner.nextInt();
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
PathsCacheActivity.java 114 for (int i = 0; i < mRandom.nextInt(20); i++) {
116 int r = mRandom.nextInt(10);
125 canvas.translate(450.0f + mRandom.nextInt(200), mRandom.nextInt(200));
130 int r = mRandom.nextInt(100);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
FilterChanSatRepresentation.java 191 setValue(MODE_MASTER, sreader.nextInt());
193 setValue(MODE_RED, sreader.nextInt());
195 setValue(MODE_YELLOW, sreader.nextInt());
197 setValue(MODE_GREEN, sreader.nextInt());
199 setValue(MODE_CYAN, sreader.nextInt());
201 setValue(MODE_BLUE, sreader.nextInt());
203 setValue(MODE_MAGENTA, sreader.nextInt());
FilterVignetteRepresentation.java 229 mParamVignette.setValue(sreader.nextInt());
231 mParamExposure.setValue(sreader.nextInt());
233 mParamSaturation.setValue(sreader.nextInt());
235 mParamContrast.setValue(sreader.nextInt());
237 mParamFalloff.setValue(sreader.nextInt());
FilterColorBorderRepresentation.java 191 mParamSize.setValue(reader.nextInt());
193 mParamRadius.setValue(reader.nextInt());
195 mParamColor.setValue(reader.nextInt());
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
RSUtils.java 53 array[i] = (r.nextInt(max) * factor + offset);
65 array[i * stride + j] = r.nextInt() * factor + offset;
78 array[i * stride + j] = r.nextInt(max) * factor + offset;
SendToClient.java 54 inArray[i] = random.nextInt(1000);
79 int Id = random.nextInt(100);
  /cts/tests/tests/rscpp/src/android/cts/rscpp/
RSUtils.java 53 array[i] = (r.nextInt(max) * factor + offset);
65 array[i * stride + j] = r.nextInt() * factor + offset;
78 array[i * stride + j] = r.nextInt(max) * factor + offset;
  /developers/samples/android/common/src/java/com/example/android/common/dummydata/
Cheeses.java 181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
ISO10126d2Padding.java 55 in[inOff] = (byte)random.nextInt();
X923Padding.java 55 in[inOff] = (byte)random.nextInt();
  /frameworks/volley/tests/src/com/android/volley/utils/
CacheTestUtils.java 24 entry.data = new byte[random.nextInt(1024)];
  /cts/tests/tests/media/src/android/media/cts/
MediaPlayerFlakyNetworkTest.java 109 return TEST_VIDEOS[random.nextInt(TEST_VIDEOS.length)];
133 Thread.sleep(random.nextInt(500));
146 Thread.sleep(random.nextInt(100));
147 switch (random.nextInt(3)) {
157 mMediaPlayer.seekTo(random.nextInt(10000));
312 int sleepTimeMs = 1000 + mRandom.nextInt(5000);
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
FaultHeightMap.java 171 int x1 = random.nextInt(size);
172 int x2 = random.nextInt(size);
173 int y1 = random.nextInt(size);
174 int y2 = random.nextInt(size);
192 int x = random.nextInt(size + 2 * intRadius) - intRadius;
193 int y = random.nextInt(size + 2 * intRadius) - intRadius;
  /libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/
ScannerTest.java 284 s.nextInt();
933 * @tests java.util.Scanner#nextInt(int)
937 assertEquals(123, s.nextInt(10));
938 assertEquals(456, s.nextInt(10));
940 s.nextInt(10);
947 assertEquals(38, s.nextInt(5));
949 s.nextInt(5);
957 s.nextInt(10);
969 s.nextInt(10);
975 assertEquals(23456, s.nextInt(10))
    [all...]
  /frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
WapPushTest.java 888 type = rd.nextInt(3);
895 add = 1 + rd.nextInt(29);
898 add = 2 + rd.nextInt(10);
908 arr[index] = (byte) (0x80 | rd.nextInt(128));
921 tmpVal = rd.nextInt(255);
930 tmpVal = rd.nextInt(127);
    [all...]
  /development/apps/Development/src/com/android/development/
MediaScannerActivity.java 173 int baseYear = 1969 + mRandom.nextInt(30);
190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10));
225 mBuilder.append(elements[mRandom.nextInt(max)]);
234 boolean longfirst = mRandom.nextInt(5) < 3;
237 switch (mRandom.nextInt(6)) {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 148 probabilityMap.put(word, random.nextInt(0xFF));
250 final int unigramProbability = random.nextInt(0xFF);
256 final String word0 = words.get(random.nextInt(wordCount));
257 final String word1 = words.get(random.nextInt(wordCount));
263 final int bigramProbability = random.nextInt(0xF);
447 final int unigramProbability = random.nextInt(0xFF);
453 final String word0 = words.get(random.nextInt(wordCount));
454 final String word1 = words.get(random.nextInt(wordCount));
460 final int bigramProbability = random.nextInt(0xF);
514 final int unigramProbability = random.nextInt(0xFF)
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorIntegrationTests.java 242 switch(mGenerator.nextInt(5)) {
260 rate = maxSamplingRate * mGenerator.nextInt(10);
267 mGenerator.nextInt(5) + 1);
  /frameworks/base/core/java/android/net/http/
RequestHandle.java 430 int nextInt = rand.nextInt();
431 nextInt = (nextInt == Integer.MIN_VALUE) ?
432 Integer.MAX_VALUE : Math.abs(nextInt);
433 return Integer.toString(nextInt, 16);
  /external/nist-sip/java/gov/nist/javax/sip/
Utils.java 73 signature = toHexString(Integer.toString(Math.abs( rand.nextInt() % 1000 )).getBytes());
158 return Integer.toHexString(rand.nextInt());
  /external/smack/src/org/xbill/DNS/
UDPClient.java 38 int n = prng.nextInt();
68 int port = prng.nextInt(EPHEMERAL_RANGE) +
  /frameworks/base/core/java/com/android/internal/http/multipart/
MultipartEntity.java 110 byte[] bytes = new byte[rand.nextInt(11) + 30]; // a random size from 30 to 40
112 bytes[i] = MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)];

Completed in 930 milliseconds

12 3 4 5 6 7 8 910