Home
last modified time | relevance | path

Searched refs:getRandomInt (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp1042 T getRandomInt(T lower, T upper) { in getRandomInt() function in aidl::android::hardware::neuralnetworks::vts::functional::CompilationCachingSecurityTest
1057 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache()
1061 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache()
1069 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache()
1071 ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF); in appendBytesToCache()
1164 getRandomInt(0u, static_cast<uint32_t>(IDevice::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P()
1165 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DCompilationCachingTests.cpp1236 T getRandomInt(T lower, T upper) { in getRandomInt() function in android::hardware::neuralnetworks::V1_2::vts::functional::CompilationCachingSecurityTest
1251 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache()
1255 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache()
1263 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache()
1265 ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF); in appendBytesToCache()
1358 getRandomInt(0u, static_cast<uint32_t>(Constant::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P()
1359 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DCompilationCachingTests.cpp1227 T getRandomInt(T lower, T upper) { in getRandomInt() function in android::hardware::neuralnetworks::V1_3::vts::functional::CompilationCachingSecurityTest
1242 ASSERT_EQ(fseek(pFile, getRandomInt(0l, fileSize - 1), SEEK_SET), 0); in flipOneBitOfCache()
1246 ASSERT_NE(fputc(static_cast<uint8_t>(readByte) ^ (1U << getRandomInt(0, 7)), pFile), EOF); in flipOneBitOfCache()
1254 uint32_t appendLength = getRandomInt(1, 256); in appendBytesToCache()
1256 ASSERT_NE(fputc(getRandomInt<uint16_t>(0, 255), pFile), EOF); in appendBytesToCache()
1349 getRandomInt(0u, static_cast<uint32_t>(Constant::BYTE_SIZE_OF_CACHE_TOKEN) - 1); in TEST_P()
1350 mToken[ind] ^= (1U << getRandomInt(0, 7)); in TEST_P()