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

1 2 3 4 5

  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
RandomGenerator.java 102 long nextLong();
RandomData.java 83 long nextLong(long lower, long upper);
132 * <code>nextLong</code> should be used instead of this method.</p>
RandomAdaptor.java 172 public long nextLong() {
173 return randomGenerator.nextLong();
AbstractRandomGenerator.java 178 public long nextLong() {
  /frameworks/volley/src/test/java/com/android/volley/utils/
CacheTestUtils.java 26 entry.etag = String.valueOf(random.nextLong());
27 entry.lastModified = random.nextLong();
  /frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java 111 entry.rxBytes = reader.nextLong();
112 entry.rxPackets = reader.nextLong();
113 entry.txBytes = reader.nextLong();
114 entry.txPackets = reader.nextLong();
118 entry.rxBytes += reader.nextLong();
119 entry.rxPackets += reader.nextLong();
120 entry.txBytes += reader.nextLong();
121 entry.txPackets += reader.nextLong();
166 entry.rxBytes = reader.nextLong();
167 entry.rxPackets = reader.nextLong();
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
ThreadLocalRandom.java 129 public long nextLong(long n) {
159 public long nextLong(long least, long bound) {
162 return nextLong(bound - least) + least;
  /frameworks/base/core/tests/coretests/src/com/android/internal/util/
ProcFileReaderTest.java 121 assertEquals(1, reader.nextLong());
122 assertEquals(-1024, reader.nextLong());
123 assertEquals(Long.MAX_VALUE, reader.nextLong());
124 assertEquals(Long.MIN_VALUE, reader.nextLong());
145 assertEquals(1, reader.nextLong());
158 assertEquals(123L, reader.nextLong());
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyEventQueue.java 45 throttle = mRandom.nextLong();
  /libcore/jsr166-tests/src/test/java/jsr166/
ThreadLocalRandomTest.java 71 * Repeated calls to nextLong produce at least two distinct results
74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
198 * nextLong(non-positive) throws IllegalArgumentException
204 rnd.nextLong(bound);
211 * nextLong(least >= bound) throws IllegalArgumentException
222 rnd.nextLong(badBounds[0], badBounds[1]);
229 * nextLong(bound) returns 0 <= value < bound;
234 long f = ThreadLocalRandom.current().nextLong(bound);
239 (j = ThreadLocalRandom.current().nextLong(bound)) == f)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
RandomTest.java 197 * java.util.Random#nextLong()
200 // Test for method long java.util.Random.nextLong()
201 long lastNum = r.nextLong();
205 nextNum = r.nextLong();
210 assertTrue("Calling nextLong 100 times resulted in same number",
229 aLong = aRandom.nextLong();
230 anotherLong = anotherRandom.nextLong();
232 "Two randoms with same seeds gave differing nextLong values",
234 yetAnotherLong = yetAnotherRandom.nextLong();
246 aRandom.nextLong() == randomArray[counter])
    [all...]
ScannerTest.java     [all...]
  /external/jetty/src/java/org/eclipse/jetty/server/session/
AbstractSessionIdManager.java 144 :_random.nextLong();
159 _random.setSeed(_random.nextLong()^System.currentTimeMillis()^request.hashCode()^Runtime.getRuntime().freeMemory());
165 :_random.nextLong();
216 _random.setSeed(_random.nextLong()^System.currentTimeMillis()^hashCode()^Runtime.getRuntime().freeMemory());
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
TimeScaleMonkeyTest.java 63 value = ran.nextLong() % ranInt;
72 value = ran.nextLong();
  /frameworks/base/core/tests/coretests/src/android/content/pm/
VerifierDeviceIdentityTest.java 141 public void setNextLong(long nextLong) {
142 mNextLong = nextLong;
146 public long nextLong() {
  /external/guava/guava-tests/benchmark/com/google/common/primitives/
UnsignedLongsBenchmark.java 118 return RANDOM_SOURCE.nextLong();
127 long r = RANDOM_SOURCE.nextLong();
  /external/nist-sip/java/gov/nist/javax/sip/
Utils.java 138 + rand.nextLong());
173 long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();
  /frameworks/base/core/java/com/android/internal/util/
ProcFileReader.java 161 public long nextLong() throws IOException {
222 final long value = nextLong();
  /frameworks/base/core/tests/coretests/src/android/util/
LongSparseLongArrayTest.java 82 final long key = r.nextLong();
83 final long value = r.nextLong();
  /cts/tests/tests/keystore/src/android/keystore/cts/
CountingSecureRandom.java 102 public long nextLong() {
  /libcore/luni/src/main/java/java/util/
Random.java 198 public long nextLong() {
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
SecureRandom2Test.java 315 assertTrue(sr1.nextLong() == sr2.nextLong());
335 assertEquals(6180693691264871500l, sr1.nextLong());
351 assertTrue(6180693691264871500l != sr1.nextLong());
  /cts/tests/tests/util/src/android/util/cts/
JsonReaderTest.java 207 assertEquals(1L, reader.nextLong());
345 assertEquals(0L, reader.nextLong());
348 assertEquals(1L, reader.nextLong());
351 assertEquals(-1L, reader.nextLong());
359 assertEquals(Long.MIN_VALUE, reader.nextLong());
365 assertEquals(Long.MAX_VALUE, reader.nextLong());
366 assertEquals(5, reader.nextLong());
367 assertEquals(100, reader.nextLong());
368 assertEquals(11, reader.nextLong());
369 assertEquals(5, reader.nextLong());
    [all...]
  /external/guava/guava-tests/benchmark/com/google/common/math/
LessThanBenchmark.java 58 xLongs[i] = random.nextLong() & NONNEGATIVE_LONG_MASK;
59 yLongs[i] = random.nextLong() & NONNEGATIVE_LONG_MASK;
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
SimpleTempStorage.java 64 long n = Math.abs(random.nextLong());
93 long n = Math.abs(random.nextLong());

Completed in 963 milliseconds

1 2 3 4 5