Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabasePerfTest.java81 Random rnd = new Random(0); in testSelect() local
83 int index = rnd.nextInt(DEFAULT_DATASET_SIZE); in testSelect()
100 Random rnd = new Random(0); in testSelectMultipleRows() local
103 int index = rnd.nextInt(DEFAULT_DATASET_SIZE - querySize - 1); in testSelectMultipleRows()
178 Random rnd = new Random(0); in testInnerJoin() local
180 int index = rnd.nextInt(1000); in testInnerJoin()
235 Random rnd = new Random(0); in testUpdate() local
240 int id = rnd.nextInt(DEFAULT_DATASET_SIZE); in testUpdate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaPlayerInvokeTest.java38 private Random rnd; field in MediaPlayerInvokeTest
42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest()
66 int val = rnd.nextInt(); in testPing()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java70 Random rnd = new Random(); in calibrateMethod() local
72 for (int i = 0; i < 5 + rnd.nextInt(5); i++) { in calibrateMethod()
74 int bytes = 30000 + rnd.nextInt(60000); in calibrateMethod()
77 rnd.nextBytes(buffer); in calibrateMethod()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java646 byte[] rnd = sixRandomDigits.getBytes(StandardCharsets.US_ASCII); in getDnsQueryPacket()
654 17, rnd[0], rnd[1], rnd[2], rnd[3], rnd[4], rnd[5], in getDnsQueryPacket()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DRedirectListener.java75 Random rnd = new Random(System.currentTimeMillis()); in RedirectListener() local
77 mPath = "rnd" + Integer.toString(Math.abs(rnd.nextInt()), Character.MAX_RADIX); in RedirectListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java355 final float rnd = frand();
363 if (rnd < PROB_4X) {
367 } else if (rnd < PROB_3X) {
371 } else if (rnd < PROB_2X) {
/frameworks/base/core/java/android/os/
DBinderProxy.java192 int rnd = Math.floorMod(++mRandom, size - (i + 1)); in set() local
193 if (valueArray.get(i + 1 + rnd).get() == null) { in set()
194 remove(myHash, i + 1 + rnd); in set()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmotion_comp.cpp354 Int rnd /* i */ in GetPredAdvBy0x0() argument
361 OSCL_UNUSED_ARG(rnd); in GetPredAdvBy0x0()