/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
subtract_test.cc | 35 ACMRandom rnd(ACMRandom::DeterministicSeed()); 71 base_src[c] = rnd.Rand8(); 80 predictor[c] = rnd.Rand8();
|
vp9_subtract_test.cc | 37 ACMRandom rnd(ACMRandom::DeterministicSeed()); 54 src[r * block_width * 2 + c] = rnd.Rand8(); 55 pred[r * block_width * 2 + c] = rnd.Rand8();
|
dct16x16_test.cc | 289 ACMRandom rnd(ACMRandom::DeterministicSeed()); 301 src[j] = rnd.Rand8(); 302 dst[j] = rnd.Rand8(); 327 ACMRandom rnd(ACMRandom::DeterministicSeed()); 336 input_block[j] = rnd.Rand8() - rnd.Rand8(); 348 ACMRandom rnd(ACMRandom::DeterministicSeed()); 358 input_block[j] = rnd.Rand8() - rnd.Rand8(); 359 input_extreme_block[j] = rnd.Rand8() % 2 ? 255 : -255 [all...] |
/external/skia/tests/ |
RandomTest.cpp | 116 unsigned int rnd = rand.nextU(); local 117 value |= ((rnd >> shift) & 0x1); 123 unsigned int rnd = rand.nextU(); local 124 value |= ((rnd >> shift) & 0x1);
|
/external/valgrind/coregrind/ |
vg_preloaded.c | 169 static int rnd = -1; local 172 if (rnd < 0) rnd = open("/dev/random", O_RDONLY); 174 read(rnd, &result, sizeof(result));
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
vktShaderPackingFunctionTests.cpp | 177 de::Random rnd (deStringHash(m_name) ^ 0x776002); 194 const float x = rnd.getFloat()*2.5f - 1.25f; 195 const float y = rnd.getFloat()*2.5f - 1.25f; 202 const float x = rnd.getFloat()*1e6f - 0.5e6f; 203 const float y = rnd.getFloat()*1e6f - 0.5e6f; 300 de::Random rnd (deStringHash(m_name) ^ 0x776002); 312 inputs.push_back(rnd.getUint32()); 402 de::Random rnd (deStringHash(m_name) ^ 0x776002); 419 const float x = rnd.getFloat()*1.25f; 420 const float y = rnd.getFloat()*1.25f [all...] |
vktShaderIntegerFunctionTests.cpp | 139 static void generateRandomInputData (de::Random& rnd, glu::ShaderType shaderType, glu::DataType dataType, glu::Precision precision, deUint32* dst, int numValues) 150 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; 156 dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); 473 de::Random rnd (deStringHash(m_name) ^ 0x235facu); 522 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 523 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 584 de::Random rnd (deStringHash(m_name) ^ 0x235facu); 631 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 632 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 693 de::Random rnd (deStringHash(m_name) ^ 0x235facu) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fShaderPackingFunctionTests.cpp | 163 de::Random rnd (deStringHash(getName()) ^ 0x776002); 180 const float x = rnd.getFloat()*2.5f - 1.25f; 181 const float y = rnd.getFloat()*2.5f - 1.25f; 188 const float x = rnd.getFloat()*1e6f - 0.5e6f; 189 const float y = rnd.getFloat()*1e6f - 0.5e6f; 267 de::Random rnd (deStringHash(getName()) ^ 0x776002); 279 inputs.push_back(rnd.getUint32()); 354 de::Random rnd (deStringHash(getName()) ^ 0x776002); 371 const float x = rnd.getFloat()*1.25f; 372 const float y = rnd.getFloat()*1.25f [all...] |
es31fShaderCommonFunctionTests.cpp | 72 template<typename T> T randomScalar (de::Random& rnd, T minValue, T maxValue); 73 template<> inline float randomScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValue); } 74 template<> inline deInt32 randomScalar (de::Random& rnd, deInt32 minValue, deInt32 maxValue) { return rnd.getInt(minValue, maxValue); } 75 template<> inline deUint32 randomScalar (de::Random& rnd, deUint32 minValue, deUint32 maxValue) { return minValue + rnd.getUint32() % (maxValue - minValue + 1); } 78 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue) 82 res[ndx] = randomScalar<T>(rnd, minValue[ndx], maxValue[ndx]); 87 static void fillRandomVectors (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue, void* dst, int numVal (…) [all...] |
es31fSSBOLayoutTests.cpp | 76 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 77 void generateBufferVar (de::Random& rnd, BufferBlock& block, bool isLastMember); 78 glu::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk, bool unusedArrayOk); 112 de::Random rnd(m_seed); 114 const int numBlocks = rnd.getInt(1, m_maxBlocks); 117 generateBlock(rnd, 0); 120 void RandomSSBOLayoutCase::generateBlock (de::Random& rnd, deUint32 layoutFlags) 126 int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_maxInstances) : 0; 127 int numVars = rnd.getInt(1, m_maxBlockMembers) [all...] |
es31fShaderIntegerFunctionTests.cpp | 137 static void generateRandomInputData (de::Random& rnd, glu::ShaderType shaderType, glu::DataType dataType, glu::Precision precision, deUint32* dst, int numValues) 148 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; 154 dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); 370 de::Random rnd (deStringHash(getName()) ^ 0x235facu); 419 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 420 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 466 de::Random rnd (deStringHash(getName()) ^ 0x235facu); 513 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 514 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases)); 560 de::Random rnd (deStringHash(getName()) ^ 0x235facu) [all...] |
/external/caliper/examples/src/main/java/examples/ |
Utf8Benchmark.java | 100 final Random rnd = new Random(seed); local 108 codePoint = rnd.nextInt(maxCodePoint.value);
|
/external/libvpx/libvpx/test/ |
vp10_inv_txfm_test.cc | 60 ACMRandom rnd(ACMRandom::DeterministicSeed()); 64 input[ni] = rnd.Rand8() - rnd.Rand8(); 147 ACMRandom rnd(ACMRandom::DeterministicSeed()); 185 ACMRandom rnd(ACMRandom::DeterministicSeed()); 197 input_extreme_block[j] = rnd.Rand8() % 2 ? 255 : -255; 226 ACMRandom rnd(ACMRandom::DeterministicSeed()); 262 (rnd.Rand16() - 32768) / 65536);
|
fdct4x4_test.cc | 102 ACMRandom rnd(ACMRandom::DeterministicSeed()); 119 src[j] = rnd.Rand8(); 120 dst[j] = rnd.Rand8(); 124 src16[j] = rnd.Rand16() & mask_; 125 dst16[j] = rnd.Rand16() & mask_; 167 ACMRandom rnd(ACMRandom::DeterministicSeed()); 176 input_block[j] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_); 188 ACMRandom rnd(ACMRandom::DeterministicSeed()); 197 input_extreme_block[j] = rnd.Rand8() % 2 ? mask_ : -mask_ [all...] |
fdct8x8_test.cc | 146 ACMRandom rnd(ACMRandom::DeterministicSeed()); 157 test_input_block[j] = ((rnd.Rand16() >> (16 - bit_depth_)) & mask_) - 158 ((rnd.Rand16() >> (16 - bit_depth_)) & mask_); 187 test_input_block[j] = ((rnd.Rand16() & mask_) >> 4) - 188 ((rnd.Rand16() & mask_) >> 4); 214 ACMRandom rnd(ACMRandom::DeterministicSeed()); 231 src[j] = rnd.Rand8(); 232 dst[j] = rnd.Rand8(); 236 src16[j] = rnd.Rand16() & mask_; 237 dst16[j] = rnd.Rand16() & mask_ [all...] |
partial_idct_test.cc | 59 ACMRandom rnd(ACMRandom::DeterministicSeed()); 97 ACMRandom rnd(ACMRandom::DeterministicSeed()); 109 input_extreme_block[j] = rnd.Rand8() % 2 ? 255 : -255; 138 ACMRandom rnd(ACMRandom::DeterministicSeed()); 174 (rnd.Rand16() - 32768) / 65536);
|
/external/deqp/modules/egl/ |
teglPartialUpdateTests.cpp | 162 void generateRandomFrame (Frame& dst, const vector<PartialUpdateTest::DrawType>& drawTypes, de::Random& rnd) 166 const int x1 = rnd.getInt(0, (dst.width-1)/8) * 4; 167 const int y1 = rnd.getInt(0, (dst.height-1)/8) * 4; 168 const int x2 = rnd.getInt((dst.width-1)/8, (dst.width-1)/4) * 4; 169 const int y2 = rnd.getInt((dst.height-1)/8, (dst.height-1)/4) * 4; 170 const GLubyte r = rnd.getUint8(); 171 const GLubyte g = rnd.getUint8(); 172 const GLubyte b = rnd.getUint8(); 485 de::Random rnd (m_seed); 490 const float clearRed = rnd.getFloat() [all...] |
teglSwapBuffersWithDamageTests.cpp | 394 FrameSequence generateFrameSequence (const vector<DrawType>& frameDrawType, de::Random& rnd, int numFrames, int width, int height); 399 de::Random rnd (m_seed); 403 const float clearRed = rnd.getFloat(); 404 const float clearGreen = rnd.getFloat(); 405 const float clearBlue = rnd.getFloat(); 408 const FrameSequence frameSequence = generateFrameSequence(m_frameDrawType, rnd, numFrames, width, height); 479 de::Random rnd (m_seed); 483 const float clearRed = rnd.getFloat(); 484 const float clearGreen = rnd.getFloat(); 485 const float clearBlue = rnd.getFloat() [all...] |
/external/skia/resources/ |
test.lua | 16 function rnd(range) function 20 rndX = function () return rnd(640) end 21 rndY = function () return rnd(480) end
|
/external/deqp/modules/gles2/functional/ |
es2fTextureUnitTests.cpp | 295 de::Random rnd(randSeed); 306 float rotAngle = rnd.getFloat(0.0f, 2.0f*DE_PI); 307 float xScaleFactor = rnd.getFloat(0.7f, 1.5f); 308 float yScaleFactor = rnd.getFloat(0.7f, 1.5f); 309 float xShearAmount = rnd.getFloat(0.0f, 0.5f); 310 float yShearAmount = rnd.getFloat(0.0f, 0.5f); 311 float xTranslationAmount = rnd.getFloat(-0.5f, 0.5f); 312 float yTranslationAmount = rnd.getFloat(-0.5f, 0.5f); 377 planarTransData[i] = rnd.getFloat(0.1f, 0.9f); // Two first diagonal cells control the scaling. 384 int faceNdx = rnd.getInt(0, (int)tcu::CUBEFACE_LAST - 1) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fShaderPackingFunctionTests.cpp | 159 de::Random rnd (deStringHash(getName()) ^ 0x776002); 176 const float x = rnd.getFloat()*2.5f - 1.25f; 177 const float y = rnd.getFloat()*2.5f - 1.25f; 184 const float x = rnd.getFloat()*1e6f - 0.5e6f; 185 const float y = rnd.getFloat()*1e6f - 0.5e6f; 263 de::Random rnd (deStringHash(getName()) ^ 0x776002); 275 inputs.push_back(rnd.getUint32()); 350 de::Random rnd (deStringHash(getName()) ^ 0x776002); 367 const float x = rnd.getFloat()*1.25f; 368 const float y = rnd.getFloat()*1.25f [all...] |
/external/deqp/modules/glshared/ |
glsVertexArrayTests.cpp | 220 inline T getRandom (deRandom& rnd, T min, T max); 223 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max) 228 return GLValue::Float::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())); 232 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max) 237 return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); 241 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max) 246 return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); 250 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max) 255 return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); 259 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max 1397 deRandom rnd; local 1502 deRandom rnd; local 1579 deRandom rnd; local 1721 deRandom rnd; local [all...] |
glsMemoryStressCase.cpp | 451 void allocateTexture (de::Random& rnd); 452 void allocateBuffer (de::Random& rnd); 496 de::Random rnd(m_seed); 510 allocateTexture(rnd); 514 allocateBuffer(rnd); 519 if (rnd.getBool()) 520 allocateBuffer(rnd); 522 allocateTexture(rnd); 580 void MemObjectAllocator::allocateTexture (de::Random& rnd) 585 int width = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
vktSSBOLayoutTests.cpp | 71 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 72 void generateBufferVar (de::Random& rnd, BufferBlock& block, bool isLastMember); 73 glu::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk, bool unusedArrayOk); 103 de::Random rnd(m_seed); 105 const int numBlocks = rnd.getInt(1, m_maxBlocks); 108 generateBlock(rnd, 0); 113 void RandomSSBOLayoutCase::generateBlock (de::Random& rnd, deUint32 layoutFlags) 119 int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_maxInstances) : 0; 120 int numVars = rnd.getInt(1, m_maxBlockMembers) [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ConcurrentSkipListSetTest.java | 663 Random rnd = new Random(666); field in class:ConcurrentSkipListSetTest 707 int element = rnd.nextInt(limit); 718 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); 723 if (rnd.nextBoolean()) { 731 int element = min + rnd.nextInt(rangeSize); 744 remove(set, min - 5 + rnd.nextInt(rangeSize + 10), bs); 749 if (rnd.nextBoolean()) { 757 int element = min - 5 + rnd.nextInt(rangeSize + 10); 795 boolean incl = rnd.nextBoolean(); 798 if (rnd.nextBoolean() [all...] |