Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 13 of 13) sorted by relevance

/test/vts/drivers/hal/libdatatype/
Dvts_datatype.cpp27 uint32_t RandomUint32() { return (unsigned int)rand(); } in RandomUint32()
29 int32_t RandomInt32() { return rand(); } in RandomInt32()
32 uint64_t num = (unsigned int)rand(); in RandomUint64()
33 return (num << 32) | (unsigned int)rand(); in RandomUint64()
37 int64_t num = rand(); in RandomInt64()
38 return (num << 32) | rand(); in RandomInt64()
41 float RandomFloat() { return (float)rand() / (float)(RAND_MAX / 1000000000.0); } in RandomFloat()
44 return (double)rand() / (double)(RAND_MAX / 1000000000.0); in RandomDouble()
47 bool RandomBool() { return (abs(rand()) % 2) == 1; } in RandomBool()
/test/vti/dashboard/src/test/java/com/android/vts/util/
DStatSummaryTest.java52 Random rand = new Random(); in testMin() local
54 double value = rand.nextInt(1000); in testMin()
67 Random rand = new Random(); in testMax() local
69 double value = rand.nextInt(1000); in testMax()
81 Random rand = new Random(); in testStd() local
84 values[i] = rand.nextInt(1000); in testStd()
106 Random rand = new Random(); in testMerge() local
108 int value = rand.nextInt(1000); in testMerge()
113 int value = rand.nextInt(1000); in testMerge()
/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMain.cpp70 [](Random &rand) { in __anon605a8dbd0102()
71 size_t dice_roll = rand(10); in __anon605a8dbd0102()
74 return rand(10); in __anon605a8dbd0102()
77 return rand(100); in __anon605a8dbd0102()
80 return rand(1000); in __anon605a8dbd0102()
82 if (rand(10) == 0) { in __anon605a8dbd0102()
87 return rand.Rand(); in __anon605a8dbd0102()
173 int dice = rand() % 2; in LLVMFuzzerCustomCrossOver()
DProtoFuzzerMutator.cpp32 Random &rand, unordered_map<string, TypeSpec> predefined_types, in ProtoFuzzerMutator() argument
34 : rand_(rand), in ProtoFuzzerMutator()
/test/vts/testcases/vts_selftest/manual_tests/flaky_test/
Dvts_selftest_flaky_test.cpp53 int number = abs(rand()); in TEST_F()
59 int number = abs(rand()); in TEST_F()
65 int number = abs(rand()); in TEST_F()
71 int number = abs(rand()); in TEST_F()
77 int number = abs(rand()); in TEST_F()
/test/vti/dashboard/src/main/java/com/android/vts/api/
DTestDataForDevServlet.java222 Random rand = new Random(); in generateSuiteTestData() local
244 rand.nextInt(12)); in generateSuiteTestData()
248 rand.nextInt(30)); in generateSuiteTestData()
252 rand.nextInt(23) + 1, in generateSuiteTestData()
253 rand.nextInt(59) + 1, in generateSuiteTestData()
254 rand.nextInt(59) + 1); in generateSuiteTestData()
296rand in generateSuiteTestData()
304rand in generateSuiteTestData()
327 rand.nextInt(), in generateSuiteTestData()
328 rand.nextInt(), in generateSuiteTestData()
[all …]
/test/vts-testcase/fuzz/iface_fuzzer/include/
DProtoFuzzerMutator.h32 using BiasedRandomScalarGen = std::function<uint64_t(Random &rand)>;
42 BiasedRandomScalarGen scalar_bias_ = [](Random &rand) { return rand.Rand(); };
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/
Dtypes.driver.cpp18 uint32_t choice = (uint32_t) rand() / 7; in Random__android__hardware__nfc__V1_0__NfcEvent()
43 uint32_t choice = (uint32_t) rand() / 5; in Random__android__hardware__nfc__V1_0__NfcStatus()
DTestMsgQ.driver.cpp18 uint32_t choice = (uint32_t) rand() / 2; in Random__android__hardware__tests__msgq__V1_0__ITestMsgQ__EventFlagBits()
/test/vts-testcase/kernel/api/qtaguid/
DSocketTagUserSpace.cpp223 fake_uid = rand() & 0x7FFFFFFF; in SetUp()
224 fake_uid2 = rand() & 0x7FFFFFFF; in SetUp()
226 valid_tag1 = (my_pid << 12) | (rand()); in SetUp()
227 valid_tag2 = (my_pid << 12) | (rand()); in SetUp()
/test/vts/drivers/resource/hidl_memory_driver/
DVtsHidlMemoryDriverTest.cpp48 data[i] = rand() % 100 + 1; in InitData()
/test/vts/drivers/resource/fmq_driver/
DVtsFmqDriverTest.cpp169 data[i] = rand() % 100 + 1; // a random value between 1 and 100 in InitData()
/test/vts-testcase/kernel/encryption/
Dutils.cpp80 bytes[i] = rand(); in RandomBytesForTesting()