Searched refs:sRandom (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/tests/CoreTests/android/core/
H A DHashMapPerfTest.java31 private static final Random sRandom = new Random(1); field in class:HashMapPerfTest
38 int len = sRandom.nextInt(20) + 1;
42 chars[i] = (char) ('q' + sRandom.nextInt(4));
/frameworks/base/core/java/android/util/
H A DMathUtils.java27 private static final Random sRandom = new Random(); field in class:MathUtils
156 return (int) (sRandom.nextFloat() * howbig);
161 return (int) (sRandom.nextFloat() * (howbig - howsmall) + howsmall);
165 return sRandom.nextFloat() * howbig;
170 return sRandom.nextFloat() * (howbig - howsmall) + howsmall;
174 sRandom.setSeed(seed);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAdapter.java696 private static Random sRandom; field in class:BluetoothAdapter.RfcommChannelPicker
713 sRandom = new Random();
724 return mChannels.remove(sRandom.nextInt(mChannels.size()));
/frameworks/base/services/java/com/android/server/
H A DWifiWatchdogService.java1217 private static Random sRandom = new Random(); field in class:WifiWatchdogService.DnsPinger
1296 buf[0] = (byte) sRandom.nextInt(256);
1297 buf[1] = (byte) sRandom.nextInt(256);

Completed in 85 milliseconds