/frameworks/base/native/graphics/jni/fuzz/ |
D | png_mutator.h | 111 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/ |
D | SQLiteDatabasePerfTest.java | 97 Random rnd = new Random(0); in testSelect() local 99 int index = rnd.nextInt(DEFAULT_DATASET_SIZE); in testSelect() 130 Random rnd = new Random(0); in testSelectCacheMissRate() local 134 int queryIndex = rnd.nextInt(queryPool.size()); in testSelectCacheMissRate() 135 int index = rnd.nextInt(DEFAULT_DATASET_SIZE); in testSelectCacheMissRate() 161 Random rnd = new Random(0); 164 int index = rnd.nextInt(DEFAULT_DATASET_SIZE - querySize - 1); 239 Random rnd = new Random(0); 241 int index = rnd.nextInt(1000); 409 Random rnd = new Random(0); [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 35 private Random rnd; field in MediaPlayerInvokeTest 39 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest() 63 int val = rnd.nextInt(); in testPing()
|
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbMidiPacketConverterTest.java | 36 private byte[] generateRandomByteStream(Random rnd, int size) { in generateRandomByteStream() argument 38 rnd.nextBytes(output); in generateRandomByteStream() 177 Random rnd = new Random(seed); in testDecoderLargePacketDoesNotCrash() local 178 byte[] input = generateRandomByteStream(rnd, 1003 /* arbitrary large size */); in testDecoderLargePacketDoesNotCrash() 357 Random rnd = new Random(seed); in testEncoderLargePacketDoesNotCrash() local 361 byte[] input = generateRandomByteStream(rnd, 1003 /* arbitrary large size */); in testEncoderLargePacketDoesNotCrash() 375 Random rnd = new Random(seed); in testEncodeDecode() local 377 rawMidi[cableNumber] = generateRandomByteStream(rnd, bufferSize); in testEncodeDecode()
|
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | TimedStatement.java | 70 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/core/tests/coretests/src/android/app/usage/ |
D | UsageEventsQueryTest.java | 113 Random rnd = new Random(); in testQueryEventTypes() local 134 eventType = rnd.nextInt(Event.MAX_EVENT_TYPE + 1); in testQueryEventTypes()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | UserHandleTest.java | 139 final Random rnd = new Random(); in testExtraCache() local 141 final int userId = rnd.nextInt(100); in testExtraCache()
|
/frameworks/base/tests/MidiTests/src/com/android/server/midi/ |
D | MidiEventMultiSchedulerTest.java | 42 private byte[] generateRandomByteStream(Random rnd, int size) { in generateRandomByteStream() argument 44 rnd.nextBytes(output); in generateRandomByteStream() 104 Random rnd = new Random(42); in testSchedulerLargeData() local 107 byte[] expectedArray = generateRandomByteStream(rnd, arraySize); in testSchedulerLargeData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 357 final float rnd = frand(); 365 if (rnd < PROB_4X) { 369 } else if (rnd < PROB_3X) { 373 } else if (rnd < PROB_2X) {
|
/frameworks/base/core/java/android/os/ |
D | BinderProxy.java | 208 int rnd = Math.floorMod(++mRandom, size - (i + 1)); in set() local 209 if (valueArray.get(i + 1 + rnd).refersTo(null)) { in set() 210 remove(myHash, i + 1 + rnd); in set()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | motion_comp.cpp | 354 Int rnd /* i */ in GetPredAdvBy0x0() argument 361 OSCL_UNUSED_ARG(rnd); in GetPredAdvBy0x0()
|