/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 38 uint64_t seed = (unsigned long long)rand() | ((unsigned long long)rand() << 32); in fillPageJunk() 117 unsigned int targetPage = rand() % pagesTotal; in benchRandomRead() 127 unsigned int targetPage = rand() % pagesTotal; in benchRandomWrite()
|
/system/extras/multinetwork/ |
D | dnschk.cpp | 53 name = fmt::format("{}-{}-ds.metric.gstatic.com", rand(), rand()); in main()
|
D | httpurl.cpp | 50 parameters->host = StringPrintf("%d-%d-ipv6test.ds.metric.gstatic.com", rand(), rand()); in parseUrl()
|
/system/chre/util/tests/ |
D | heap_test.cc | 48 array[i] = std::rand(); in TEST() 89 array[i] = std::rand(); in TEST() 103 chre::remove_heap(v, std::rand() % s, comp); in TEST()
|
D | segmented_queue_test.cc | 480 std::rand() % chre::asBaseType(OperationType::OPERATION_TYPE_COUNT)); in TEST() 481 int temp = std::rand(); in TEST() 518 size_t index = std::rand() % (testSegmentedQueue.size() * 2); in TEST()
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 94 i = find_rand_index[rand() % rand_index_len]; in mmap_getnext_off_len() 96 iolength = ((rand() % 4) + 1) * 4096; in mmap_getnext_off_len() 130 if ((rand() % 2) == 1) { in mmap_do_io()
|
/system/logging/logd/ |
D | LogBufferTest.cpp | 230 auto rand_uint32 = [](int max) -> uint32_t { return rand() % max; }; in GenerateRandomLogMessage() 233 .pid = rand() % 5000, in GenerateRandomLogMessage() 251 char priority = ANDROID_LOG_INFO + rand() % 2; in GenerateRandomLogMessage() 254 int tag_length = 2 + rand() % 10; in GenerateRandomLogMessage() 256 message.push_back('a' + rand() % 26); in GenerateRandomLogMessage() 260 int msg_length = 2 + rand() % 1000; in GenerateRandomLogMessage() 262 message.push_back('a' + rand() % 26); in GenerateRandomLogMessage()
|
D | SerializedFlushToStateTest.cpp | 195 unsigned int num_messages = 1 + rand() % 15; in TEST_F() 198 bool compress = rand() % 2; in TEST_F() 199 int buf = rand() % LOG_ID_MAX; in TEST_F()
|
/system/authgraph/boringssl/src/ |
D | rng.rs | 26 openssl::rand::rand_bytes(nonce).unwrap(); // safe: BoringSSL's RAND_bytes() never fails in fill_bytes()
|
/system/extras/verity/ |
D | build_verity_tree_test.cpp | 138 std::min<size_t>(rand() % 10 * 4096, data.size() - offset); in TEST_F() 160 size_t data_length = std::min<size_t>(rand() % 40960, data.size() - offset); in TEST_F() 182 size_t data_length = std::min<size_t>(rand() % 40960, data.size() - offset); in TEST_F()
|
/system/keymint/boringssl/src/ |
D | rng.rs | 42 openssl::rand::rand_bytes(dest).unwrap(); // safe: BoringSSL's RAND_bytes() never fails in fill_bytes()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 20 uint32_t start = rand(); in fillPageRand() 26 uint32_t val = rand() & 0xfff; in fillPageCompressible()
|
/system/media/audio_utils/tests/ |
D | fifo_tests.cpp | 128 framesToWrite = rand() % (framesToWrite + 1); in main() 163 framesToRead = rand() % (framesToRead + 1); in main()
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in stats_test() 156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in perf_test()
|
/system/extras/profcollectd/libprofcollectd/ |
D | config.rs | 22 use rand::Rng; 150 let mut node_id = rand::thread_rng().gen::<[u8; 6]>(); in generate_random_node_id()
|
/system/security/keystore2/test_utils/ |
D | lib.rs | 49 let number: u16 = rand::random(); in new()
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 94 unique_fd rand(open("/dev/urandom", O_RDONLY)); in WriteRandomData() local 105 ssize_t n = TEMP_FAILURE_RETRY(read(rand.get(), buf, sizeof(buf))); in WriteRandomData()
|
/system/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 420 msg_len = rand() % params->msgsize; in echo_test() 480 msg_len = rand() % params->msgsize; in burst_write_test() 773 msg_len = rand() % params->msgsize; in writev_test() 851 msg_len = rand() % params->msgsize; in readv_test()
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 126 uint32_t key_slot = static_cast<uint32_t>(rand()); in TEST_P() 319 buf[i] = static_cast<uint8_t>(rand()); in TEST_P()
|
/system/tools/hidl/test/lazy_test/ |
D | hidl_lazy_test.cpp | 148 times[i] = (size_t)(rand() % (maxWait + 1)); in waitTimes()
|
/system/tools/aidl/tests/lazy_test/ |
D | main.cpp | 128 times.at(i) = (size_t)(rand() % (maxWait + 1)); in waitMs()
|
/system/core/storaged/tests/ |
D | storaged_test.cpp | 273 std::uniform_real_distribution<> rand(0.8, 1.2); in TEST() local 276 struct disk_perf perf = disk_perf_multiply(norm_perf, rand(gen)); in TEST()
|
/system/libhwbinder/vts/performance/ |
D | Benchmark_throughput.cpp | 233 int target = rand() % service_count; in worker_fx()
|
/system/gatekeeper/tests/ |
D | gatekeeper_messages_test.cpp | 42 buffer[i] = rand(); in make_buffer()
|
/system/media/tests/ |
D | systemaudio_tests.cpp | 575 portV7->audio_profiles[i].sample_rates[j] = rand(); in fillFakeAudioPortV7Info() 589 portV7->extra_audio_descriptors[i].descriptor[j] = rand() % 254 + 1; in fillFakeAudioPortV7Info()
|