Home
last modified time | relevance | path

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

/frameworks/base/native/graphics/jni/fuzz/
Dpng_mutator.h111 std::minstd_rand rnd(Seed); in Mutate()
114 v->resize(v->size() + 1 + rnd() % 256); in Mutate()
117 switch (rnd() % 6) { in Mutate()
124 if (!chunks_.empty()) M(&chunks_[rnd() % chunks_.size()].v); in Mutate()
128 std::shuffle(chunks_.begin(), chunks_.end(), rnd); in Mutate()
133 chunks_.erase(chunks_.begin() + rnd() % chunks_.size()); in Mutate()
147 (rnd() % 10 <= 8) ? Type(types[rnd() % n_types]) : (uint32_t)rnd(); in Mutate()
148 size_t len = rnd() % 256; in Mutate()
152 for (auto &b : v) b = rnd(); in Mutate()
153 size_t pos = rnd() % (chunks_.size() + 1); in Mutate()
[all …]
/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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/
DRandomInputStream.java64 for (int rnd = mRandom.nextInt(), n = Math.min(end - i, Integer.SIZE / Byte.SIZE); in read()
66 rnd >>= Byte.SIZE) { in read()
67 b[i++] = (byte) rnd; in read()
/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/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.java197 int rnd = Math.floorMod(++mRandom, size - (i + 1)); in set() local
198 if (valueArray.get(i + 1 + rnd).get() == null) { in set()
199 remove(myHash, i + 1 + rnd); in set()
/frameworks/av/media/codecs/m4v_h263/enc/src/
Dmotion_comp.cpp354 Int rnd /* i */ in GetPredAdvBy0x0() argument
361 OSCL_UNUSED_ARG(rnd); in GetPredAdvBy0x0()