/packages/apps/Gallery2/src/com/android/photos/data/ |
H A D | AlbumSetLoader.java | 39 double random = Math.random(); 40 int id = (int) (500 * random); 44 (long) (System.currentTimeMillis() * random), 48 (random < .3 ? 1 : 0),
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionaryTest.java | 40 final Random random = new Random(seed); 42 generateWords(MAX_UNIGRAMS, random); 46 * Generates a random word. 48 private String generateWord(final Random random) { argument 50 int count = random.nextInt() % 30; 52 final long r = Math.abs(random.nextInt()); 60 if (builder.length() == 1) return generateWord(random); 64 private void generateWords(final int number, final Random random) { argument 66 sWords.add(generateWord(random));
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | SSLUtilsTest.java | 76 Random random = new Random(314159 /* seed */); 79 String s1 = randomString(random); 80 String s2 = randomString(random);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | UserHistoryDictionaryTests.java | 50 * Generates a random word. 63 private List<String> generateWords(final int number, final Random random) { argument 66 wordSet.add(generateWord(random.nextInt())); 85 final Random random = new Random(123456); 86 List<String> words = generateWords(numberOfWords, random);
|
/packages/experimental/Bummer/src/com/android/dreams/bummer/ |
H A D | BummerView.java | 52 final float newx = (float) (Math.random() * (framew - textw)); 53 final float newy = (float) (Math.random() * (frameh - texth));
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | BummerView.java | 52 final float newx = (float) (Math.random() * (framew - textw)); 53 final float newy = (float) (Math.random() * (frameh - texth));
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
H A D | GrassRS.java | 228 final float size = random(4.0f) + 4.0f; 229 final int xpos = random(-mWidth, mWidth); 236 blades.offset = random(0.2f) - 0.1f; 237 blades.scale = 4.0f / (size / TESSELATION) + (random(0.6f) + 0.2f) * TESSELATION; 238 blades.lengthX = (random(4.5f) + 3.0f) * TESSELATION * size; 239 blades.lengthY = (random(5.5f) + 2.0f) * TESSELATION * size; 240 blades.hardness = (random(1.0f) + 0.2f) * TESSELATION; 241 blades.h = random(0.02f) + 0.2f; 242 blades.s = random(0.22f) + 0.78f; 243 blades.b = random(0.6 [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
H A D | SimpleTempStorage.java | 45 private Random random = new Random();
field in class:SimpleTempStorage 64 long n = Math.abs(random.nextLong());
93 long n = Math.abs(random.nextLong());
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SlideshowView.java | 128 public SlideshowAnimation(int width, int height, Random random) { argument 132 MOVE_SPEED * mWidth * (random.nextFloat() - 0.5f), 133 MOVE_SPEED * mHeight * (random.nextFloat() - 0.5f));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DataExporter.java | 76 /** @return long random string for a file name */ 79 final byte[] random = new byte[256 / 8]; 80 rng.nextBytes(random); 82 return Hex.encodeHex(random, true);
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
H A D | StrictModeActivity.java | 164 // Now try a random hostname to evade libcore's 167 String random = "" + Math.random(); 168 random = random.substring(random.indexOf(".") + 1); 169 String domain = random + ".livejournal.com"; 171 Log.d(TAG, "for random domain " + domain + ": " + addr);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
H A D | MimeMultipart.java | 62 sb.append(Integer.toString((int)(Math.random() * 35), 36));
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | BinaryDictIOTests.java | 80 final Random random = new Random(time); 82 generateWords(MAX_UNIGRAMS, random); 130 * Generates a random word. 132 private String generateWord(final Random random) { argument 134 int count = random.nextInt() % 30; // Arbitrarily 30 chars max 136 final long r = Math.abs(random.nextInt()); 150 private void generateWords(final int number, final Random random) { argument 153 wordSet.add(generateWord(random)); 560 final Random random = new Random((int)System.currentTimeMillis()); 562 final String word = generateWord(random); [all...] |
H A D | BinaryDictIOUtilsTests.java | 61 final Random random = new Random(123456); 64 sWords.add(generateWord(random.nextInt()));
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
H A D | FallRS.java | 112 final int x = width / 4 + (int)(Math.random() * (width / 2)); 113 final int y = worldState.height / 4 + (int)(Math.random() * (worldState.height / 2)); 224 mWorldState.skySpeedX = random(-0.001f, 0.001f); 225 mWorldState.skySpeedY = random(0.00008f, 0.0002f);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | SSLSocketFactory.java | 182 final SecureRandom random, 199 sslcontext.init(keymanagers, trustmanagers, random); 177 SSLSocketFactory( String algorithm, final KeyStore keystore, final String keystorePassword, final KeyStore truststore, final SecureRandom random, final HostNameResolver nameResolver) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | LocalPhotoSource.java | 108 Random random = new Random(); 112 int row = (int)(-Math.log(random.nextDouble()) * total / 2);
|
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | FireflyRenderer.java | 382 mX = (float) (Math.random() * mDisplayWidth) * 4 - 2 * mDisplayWidth; 383 mY = (float) (Math.random() * mDisplayHeight) * 4 - 2 * mDisplayHeight; 384 mZ0 = mZ = (float) (Math.random()) * 2 - 1;
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | Stopwatches.java | 58 return mLabels[(int)(Math.random() * mLabels.length)];
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | SlideshowPage.java | 50 public static final String KEY_RANDOM_ORDER = "random-order"; 197 boolean random = data.getBoolean(KEY_RANDOM_ORDER, false); 204 if (random) {
|
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
H A D | ColorsGLRenderer.java | 357 cornerFrequencies[i] = 1f + (float)(Math.random() * 5); 359 cornerRotation = (int)(Math.random() * vertexCount);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | HandoverManager.java | 183 byte[] random = new byte[2]; 184 new Random().nextBytes(random); 185 return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, RTD_COLLISION_RESOLUTION, null, random);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | Utils.java | 252 final int nextx = (int) (Math.random() * xrange); 253 final int nexty = (int) (Math.random() * yrange);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | RemoteDevices.java | 346 // Generate a variable PIN. This is not truly random but good enough. 347 int pin = (int) Math.floor(Math.random() * 1000000);
|
/packages/apps/Calculator/ |
H A D | arity-2.1.2.jar | META-INF/ META-INF/MANIFEST.MF org/ org/javia/ org/javia/arity/ org/javia/arity/Compiler ... |