/hardware/interfaces/wifi/aidl/default/tests/ |
D | aidl_struct_util_unit_tests.cpp | 142 link.stat.beacon_rx = rand(); in TEST_F() 144 link.stat.link_id = rand() % 16; in TEST_F() 145 link.stat.state = states[rand() % sizeof(states)]; in TEST_F() 147 link.stat.radio = rand() % 4; in TEST_F() 148 link.stat.frequency = rand(); in TEST_F() 150 link.stat.rssi_mgmt = (rand() % 128) * -1; in TEST_F() 151 link.stat.ac[legacy_hal::WIFI_AC_BE].rx_mpdu = rand(); in TEST_F() 152 link.stat.ac[legacy_hal::WIFI_AC_BE].tx_mpdu = rand(); in TEST_F() 153 link.stat.ac[legacy_hal::WIFI_AC_BE].mpdu_lost = rand(); in TEST_F() 154 link.stat.ac[legacy_hal::WIFI_AC_BE].retries = rand(); in TEST_F() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | fast_urem_by_const_test.cpp | 38 int k = rand() % 64; in rand_uint() 40 return min + (rand() % 16); in rand_uint() 42 return UINT32_MAX - (rand() % 16); in rand_uint() 46 r = 1ull << (rand() % 32); in rand_uint() 54 r |= ((uint32_t)rand() & 0xf) << i * 8; in rand_uint() 55 return r >> (31 - (rand() % 32)); in rand_uint()
|
D | fast_idiv_by_const_test.cpp | 197 int k = rand() % 64; in rand_uint() 199 return min + (rand() % 16); in rand_uint() 201 return u_uintN_max(bits) - (rand() % 16); in rand_uint() 205 r = 1ull << (rand() % bits); in rand_uint() 214 r |= ((uint64_t)rand() & 0xf) << i * 8; in rand_uint() 215 return r >> (63 - (rand() % bits)); in rand_uint() 229 if (rand() % 64 == 37) in rand_sint() 233 return rand() & 1 ? s : -s; in rand_sint()
|
D | sparse_array_test.cpp | 38 uint32_t idx = rand() % MAX_ARR_SIZE; in test_thread()
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-hwcal.cpp | 82 uint32_t expect = std::rand(); in TEST_F() 147 uint32_t expect = std::rand(); in TEST_F() 173 uint32_t expect = std::rand(); in TEST_F() 199 uint32_t expect = std::rand(); in TEST_F() 225 uint32_t expect = std::rand(); in TEST_F() 251 uint32_t expect = std::rand(); in TEST_F() 288 uint32_t expect = std::rand(); in TEST_F() 313 std::string expect = std::to_string(std::rand()) + " " + std::to_string(std::rand()) + " " + in TEST_F() 314 std::to_string(std::rand()); in TEST_F() 334 uint32_t expect = std::rand(); in TEST_F() [all …]
|
D | test-vibrator.cpp | 99 mCloseLoopThreshold = std::rand(); in SetUp() 105 mShortLraPeriod = std::rand(); in SetUp() 107 mLongFrequencyShift = std::rand(); in SetUp() 110 mShortVoltageMax = std::rand(); in SetUp() 111 mLongVoltageMax = std::rand(); in SetUp() 114 mEffectDurations[Effect::CLICK] = std::rand(); in SetUp() 115 mEffectDurations[Effect::TICK] = std::rand(); in SetUp() 116 mEffectDurations[Effect::DOUBLE_CLICK] = std::rand(); in SetUp() 117 mEffectDurations[Effect::HEAVY_CLICK] = std::rand(); in SetUp() 254 std::string autocalVal = std::to_string(std::rand()) + " " + std::to_string(std::rand()) + " " + in TEST_P() [all …]
|
D | test-hwapi.cpp | 267 int8_t value = std::rand(); in TEST_P() 278 int8_t value = std::rand(); in TEST_P() 300 uint8_t value = std::rand(); in TEST_P() 311 uint8_t value = std::rand(); in TEST_P() 334 uint32_t value = std::rand(); in TEST_P() 345 uint32_t value = std::rand(); in TEST_P()
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-hwcal.cpp | 73 uint32_t expect = std::rand(); in TEST_F() 93 uint32_t expect = std::rand(); in TEST_F() 113 uint32_t expect = std::rand(); in TEST_F() 125 uint8_t value = std::rand(); in TEST_F() 165 e = std::rand(); in TEST_F() 233 uint32_t f0Expect = std::rand(); in TEST_F() 235 uint32_t redcExpect = std::rand(); in TEST_F() 237 uint32_t qExpect = std::rand(); in TEST_F() 243 e = std::rand(); in TEST_F() 265 uint32_t f0Expect = std::rand(); in TEST_F() [all …]
|
/hardware/google/pixel/vibrator/cs40l26/tests/ |
D | test-hwcal.cpp | 74 uint32_t randInput = std::rand(); in TEST_F() 95 uint32_t randInput = std::rand(); in TEST_F() 116 uint32_t randInput = std::rand(); in TEST_F() 142 e = std::rand(); in TEST_F() 155 e = std::rand(); in TEST_F() 168 e = std::rand(); in TEST_F() 284 uint32_t randInput = std::rand(); in TEST_F() 287 randInput = std::rand(); in TEST_F() 290 randInput = std::rand(); in TEST_F() 297 e = std::rand(); in TEST_F() [all …]
|
D | test-hwapi.cpp | 160 uint32_t expect = std::rand(); in TEST_P() 231 uint32_t value = std::rand(); in TEST_P() 241 uint32_t value = std::rand(); in TEST_P()
|
/hardware/interfaces/usb/aidl/vts/ |
D | VtsAidlUsbTargetTest.cpp | 283 int64_t transactionId = rand() % 10000; in TEST_P() 308 int64_t transactionId = rand() % 10000; in TEST_P() 339 int64_t transactionId = rand() % 10000; in TEST_P() 361 int64_t transactionId = rand() % 10000; in TEST_P() 372 transactionId = rand() % 10000; in TEST_P() 400 int64_t transactionId = rand() % 10000; in TEST_P() 411 transactionId = rand() % 10000; in TEST_P() 437 int64_t transactionId = rand() % 10000; in TEST_P() 447 transactionId = rand() % 10000; in TEST_P() 474 int64_t transactionId = rand() % 10000; in TEST_P() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/vma/ |
D | vma_random_test.cpp | 76 : heap_holes{allocation{MEM_START_PAGE, MEM_PAGES}}, rand{seed} in random_test() 90 int action = one_to_thousand(rand); in test() 103 align_order = std::min(dist(rand), 51); in alloc() 108 size_order = std::min(dist(rand), 51); in alloc() 156 int to_dealloc = dist(rand); in dealloc() 225 std::default_random_engine rand; member
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | stress_iio.c | 452 i = rand(); in random_delay() 511 g = rand()%2; in run_enable_sequence() 512 a = rand()%2; in run_enable_sequence() 524 if (rand()%2) { in run_enable_sequence() 525 out = rand()%2; in run_enable_sequence() 548 if(rand()%2) in run_enable_sequence() 556 if(rand()%2) in run_enable_sequence() 615 if(rand()%2) in run_disable_sequence() 629 g = rand()%2; in run_dmp_off() 630 a = rand()%2; in run_dmp_off() [all …]
|
/hardware/google/pixel/vibrator/cs40l25/bench/ |
D | benchmark.cpp | 56 {"duration", std::to_string((uint32_t)std::rand() ?: 1)}, in SetUp() 105 uint32_t duration = std::rand() ?: 1; 119 uint8_t amplitude = std::rand() ?: 1;
|
/hardware/interfaces/security/sharedsecret/aidl/vts/functional/ |
D | SharedSecretAidlTest.cpp | 220 size_t param_to_tweak = rand() % params.size(); in TEST_F() 221 uint8_t byte_to_tweak = rand() % sizeof(params[param_to_tweak].nonce); in TEST_F() 222 uint8_t bit_to_tweak = rand() % 8; in TEST_F() 259 size_t param_to_tweak = rand() % params.size(); in TEST_F() 304 auto param_to_tweak = rand() % params.size(); in TEST_F() 345 auto param_to_tweak = rand() % params.size(); in TEST_F()
|
/hardware/interfaces/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/3/android/hardware/wifi/supplicant/ |
D | NetworkRequestEapSimUmtsAuthParams.aidl | 37 byte[] rand;
|
/hardware/interfaces/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/2/android/hardware/wifi/supplicant/ |
D | NetworkRequestEapSimUmtsAuthParams.aidl | 37 byte[] rand;
|
/hardware/interfaces/wifi/supplicant/aidl/android/hardware/wifi/supplicant/ |
D | NetworkRequestEapSimUmtsAuthParams.aidl | 24 byte[/* 16 */] rand;
|
/hardware/interfaces/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/1/android/hardware/wifi/supplicant/ |
D | NetworkRequestEapSimUmtsAuthParams.aidl | 37 byte[] rand;
|
/hardware/interfaces/wifi/supplicant/aidl/aidl_api/android.hardware.wifi.supplicant/current/android/hardware/wifi/supplicant/ |
D | NetworkRequestEapSimUmtsAuthParams.aidl | 37 byte[] rand;
|
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/ |
D | random.inl | 25 std::rand() % std::numeric_limits<uint8>::max()); 35 std::rand() % std::numeric_limits<uint8>::max(), 36 std::rand() % std::numeric_limits<uint8>::max()); 46 std::rand() % std::numeric_limits<uint8>::max(), 47 std::rand() % std::numeric_limits<uint8>::max(), 48 std::rand() % std::numeric_limits<uint8>::max()); 58 std::rand() % std::numeric_limits<uint8>::max(), 59 std::rand() % std::numeric_limits<uint8>::max(), 60 std::rand() % std::numeric_limits<uint8>::max(), 61 std::rand() % std::numeric_limits<uint8>::max());
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | HmacKeySharingTest.cpp | 195 size_t param_to_tweak = rand() % params.size(); in TEST_P() 196 uint8_t byte_to_tweak = rand() % sizeof(params[param_to_tweak].nonce); in TEST_P() 197 uint8_t bit_to_tweak = rand() % 8; in TEST_P() 235 auto param_to_tweak = rand() % params.size(); in TEST_P()
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_mathlib.cpp | 39 uint64_t astc::rand(uint64_t state[2]) in rand() function in astc
|
/hardware/libhardware_legacy/ |
D | power_test.cpp | 52 std::string id = std::to_string(rand()); in TEST() 121 auto name = std::to_string(rand()); in TEST_F()
|
/hardware/google/pixel/vibrator/drv2624/bench/ |
D | benchmark.cpp | 104 uint32_t duration = std::rand() ?: 1; 118 uint8_t amplitude = std::rand() ?: 1;
|