Searched refs:getRandomInt (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | CompilationCachingTests.cpp | 1224 T getRandomInt(T lower, T upper) { in getRandomInt() function in android::hardware::neuralnetworks::V1_3::vts::functional::CompilationCachingSecurityTest 1239 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache() 1243 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache() 1251 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache() 1253 ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF); in appendBytesToCache() 1346 getRandomInt(0u, static_cast<uint32_t>(Constant::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P() 1347 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | CompilationCachingTests.cpp | 1233 T getRandomInt(T lower, T upper) { in getRandomInt() function in android::hardware::neuralnetworks::V1_2::vts::functional::CompilationCachingSecurityTest 1248 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache() 1252 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache() 1260 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache() 1262 ASSERT_NE(fputc(getRandomInt<uint8_t>(0, 255), pFile), EOF); in appendBytesToCache() 1355 getRandomInt(0u, static_cast<uint32_t>(Constant::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P() 1356 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()
|