HomeSort by relevance Sort by last modified time
    Searched refs:rnd (Results 126 - 150 of 473) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/deqp/external/vulkancts/modules/vulkan/protected_memory/
vktProtectedMemCopyImageToBufferTests.cpp 393 de::Random rnd (testCtx.getCommandLine().getBaseSeed());
398 rnd.getFloat(0.0, 1.0f),
399 rnd.getFloat(0.0, 1.0f),
400 rnd.getFloat(0.0, 1.0f),
401 rnd.getFloat(0.0, 1.0f));
406 { tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
407 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
408 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
409 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)) },
vktProtectedMemFillUpdateCopyBufferTests.cpp 438 de::Random rnd (testCtx.getCommandLine().getBaseSeed());
445 } fillValue = { rnd.getFloat(std::numeric_limits<float>::min(), std::numeric_limits<float>::max() - 1) };
450 { tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
451 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
452 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
453 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)) },
547 de::Random rnd (testCtx.getCommandLine().getBaseSeed());
554 } fillValue = { rnd.getInt(std::numeric_limits<deInt32>::min(), std::numeric_limits<deInt32>::max() - 1) };
559 { tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1)),
560 tcu::IVec4(rnd.getInt(0, MAX_POSITION - 1))
    [all...]
  /external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
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);
461 de::Random rnd (deStringHash(m_name) ^ 0x235facu);
510 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases));
511 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases));
571 de::Random rnd (deStringHash(m_name) ^ 0x235facu);
618 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases));
619 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases));
679 de::Random rnd (deStringHash(m_name) ^ 0x235facu)
    [all...]
  /external/deqp/modules/gles31/functional/
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...]
es31fShaderHelperInvocationTests.cpp 101 static void genVertices (PrimitiveType primType, int numPrimitives, de::Random* rnd, vector<Vec2>* dst)
113 (*dst)[ndx][0] = rnd->getFloat(minCoord, maxCoord);
114 (*dst)[ndx][1] = rnd->getFloat(minCoord, maxCoord);
162 static void drawRandomPrimitives (const glu::RenderContext& renderCtx, deUint32 program, PrimitiveType primType, int numPrimitives, de::Random* rnd)
172 genVertices(primType, numPrimitives, rnd, &vertices);
183 const float pointSize = isWidePoint ? de::min(rnd->getFloat(minPointSize, maxPointSize), range.y()) : 1.0f;
191 const float lineWidth = de::min(rnd->getFloat(minLineWidth, maxLineWidth), range.y());
430 de::Random rnd (deStringHash(getName()) ^ deInt32Hash(m_iterNdx));
437 drawRandomPrimitives(renderCtx, m_program->getProgram(), m_primitiveType, m_numPrimitivesPerIter, &rnd);
629 de::Random rnd (deStringHash(getName()) ^ deInt32Hash(m_iterNdx))
    [all...]
  /external/deqp/modules/egl/
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...]
teglRenderTests.cpp 144 void randomizeDrawOp (de::Random& rnd, DrawPrimitiveOp& drawOp)
160 drawOp.type = (PrimitiveType)rnd.getInt(0, PRIMITIVETYPE_LAST-1);
161 drawOp.count = rnd.getInt(minPrimitives, maxPrimitives);
162 drawOp.blend = (BlendMode)rnd.getInt(0, BLENDMODE_LAST-1);
163 drawOp.depth = (DepthMode)rnd.getInt(0, DEPTHMODE_LAST-1);
164 drawOp.stencil = (StencilMode)rnd.getInt(0, STENCILMODE_LAST-1);
165 drawOp.stencilRef = rnd.getInt(minStencilRef, maxStencilRef);
174 const float cx = rnd.getFloat(-1.0f, 1.0f);
175 const float cy = rnd.getFloat(-1.0f, 1.0f);
182 position.x() = cx + rnd.getFloat(-maxTriOffset, maxTriOffset)
    [all...]
teglPreservingSwapTests.cpp 422 de::Random rnd(m_seed);
427 const float clearRed = rnd.getFloat();
428 const float clearGreen = rnd.getFloat();
429 const float clearBlue = rnd.getFloat();
432 const float preSwapX1 = -0.9f * rnd.getFloat();
433 const float preSwapY1 = -0.9f * rnd.getFloat();
434 const float preSwapX2 = 0.9f * rnd.getFloat();
435 const float preSwapY2 = 0.9f * rnd.getFloat();
437 const float postSwapX1 = -0.9f * rnd.getFloat();
438 const float postSwapY1 = -0.9f * rnd.getFloat()
    [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...]
TreeSetTest.java 666 Random rnd = new Random(666); field in class:TreeSetTest
711 int element = rnd.nextInt(limit);
722 remove(set, min - 5 + rnd.nextInt(rangeSize + 10));
727 if (rnd.nextBoolean()) {
735 int element = min + rnd.nextInt(rangeSize);
747 remove(set, min - 5 + rnd.nextInt(rangeSize + 10));
752 if (rnd.nextBoolean()) {
760 int element = min - 5 + rnd.nextInt(rangeSize + 10);
797 boolean incl = rnd.nextBoolean();
800 if (rnd.nextBoolean()
    [all...]
  /external/tensorflow/tensorflow/core/lib/strings/
ordered_code_test.cc 34 string RandomString(random::SimplePhilox* rnd, size_t len) {
37 x += rnd->Uniform(256);
148 random::SimplePhilox rnd(&philox);
153 T x = rnd.Rand64() & mask;
155 T y = rnd.Rand64() & mask;
218 random::SimplePhilox rnd(&philox);
221 char c = 1 + rnd.Uniform(254);
237 if (rnd.OneIn(3)) {
238 y[rest] = rnd.OneIn(2) ? 0 : 255;
330 random::SimplePhilox rnd(&philox)
    [all...]
  /external/deqp/modules/gles3/functional/
es3fShaderCommonFunctionTests.cpp 68 template<typename T> T randomScalar (de::Random& rnd, T minValue, T maxValue);
69 template<> inline float randomScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValue); }
70 template<> inline deInt32 randomScalar (de::Random& rnd, deInt32 minValue, deInt32 maxValue) { return rnd.getInt(minValue, maxValue); }
71 template<> inline deUint32 randomScalar (de::Random& rnd, deUint32 minValue, deUint32 maxValue) { return minValue + rnd.getUint32() % (maxValue - minValue + 1); }
74 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue)
78 res[ndx] = randomScalar<T>(rnd, minValue[ndx], maxValue[ndx]);
83 static void fillRandomVectors (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue, void* dst, int numVal (…)
    [all...]
es3fShaderInvarianceTests.cpp 51 static tcu::Vec4 genRandomVector (de::Random& rnd)
55 retVal.x() = rnd.getFloat(-1.0f, 1.0f);
56 retVal.y() = rnd.getFloat(-1.0f, 1.0f);
57 retVal.z() = rnd.getFloat(-1.0f, 1.0f);
58 retVal.w() = rnd.getFloat( 0.2f, 1.0f);
207 de::Random rnd (123);
214 const tcu::Vec4 vertex1 = genRandomVector(rnd);
215 const tcu::Vec4 vertex2 = genRandomVector(rnd);
216 const tcu::Vec4 vertex3 = vertex2 + genRandomVector(rnd) * 0.01f; // generate narrow triangles
226 triangles[(numTriangles + triNdx)*3 + 0] = genRandomVector(rnd);
    [all...]
es3fTextureSpecificationTests.cpp 98 static tcu::Vector<float, Size> randomVector (de::Random& rnd, const tcu::Vector<float, Size>& minVal = tcu::Vector<float, Size>(0.0f), const tcu::Vector<float, Size>& maxVal = tcu::Vector<float, Size>(1.0f))
102 res[ndx] = rnd.getFloat(minVal[ndx], maxVal[ndx]);
190 de::Random rnd (deStringHash(getName()));
193 int x = rnd.getInt(0, renderTarget.getWidth() - width);
194 int y = rnd.getInt(0, renderTarget.getHeight() - height);
662 de::Random rnd (deStringHash(getName()));
672 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax);
673 Vec4 gMax = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax);
717 de::Random rnd (deStringHash(getName()));
731 Vec4 gMin = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax)
    [all...]
es3fTextureUnitTests.cpp 402 de::Random rnd(randSeed);
415 float rotAngle = rnd.getFloat(0.0f, 2.0f*DE_PI);
416 float xScaleFactor = rnd.getFloat(0.7f, 1.5f);
417 float yScaleFactor = rnd.getFloat(0.7f, 1.5f);
418 float xShearAmount = rnd.getFloat(0.0f, 0.5f);
419 float yShearAmount = rnd.getFloat(0.0f, 0.5f);
420 float xTranslationAmount = rnd.getFloat(-0.5f, 0.5f);
421 float yTranslationAmount = rnd.getFloat(-0.5f, 0.5f);
482 planarTransData[i] = rnd.getFloat(0.1f, 0.9f); // Two first diagonal cells control the scaling.
489 int faceNdx = rnd.getInt(0, (int)tcu::CUBEFACE_LAST - 1)
    [all...]
es3fSyncTests.cpp 109 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd)
116 dst[i*4 ] = rnd.getFloat(-1.0f, 1.0f); // x
117 dst[i*4 + 1] = rnd.getFloat(-1.0f, 1.0f); // y
118 dst[i*4 + 2] = rnd.getFloat( 0.0f, 1.0f); // z
  /external/deqp/modules/glshared/
glsFragOpInteractionCase.cpp 182 static Quad getRandomQuad (de::Random& rnd, int targetW, int targetH)
194 const int width = rnd.getInt(minW, maxW);
195 const int height = rnd.getInt(minH, maxH);
196 const int x = rnd.getInt(-maxOutOfBounds, targetW+maxOutOfBounds-width);
197 const int y = rnd.getInt(-maxOutOfBounds, targetH+maxOutOfBounds-height);
199 const bool flipX = rnd.getBool();
200 const bool flipY = rnd.getBool();
210 static float getRandomDepth (de::Random& rnd)
214 return rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues));
217 static void computeRandomRenderCommand (de::Random& rnd, RenderCommand& command, glu::ApiType apiType, int targetW, int targetH
    [all...]
glsLifetimeTests.cpp 205 Random rnd (seed);
206 const GLsizei width = rnd.getInt(0, FRAMEBUFFER_SIZE);
207 const GLsizei height = rnd.getInt(0, FRAMEBUFFER_SIZE);
208 const GLint x = rnd.getInt(0, FRAMEBUFFER_SIZE - width);
209 const GLint y = rnd.getInt(0, FRAMEBUFFER_SIZE - height);
210 const GLfloat r1 = rnd.getFloat();
211 const GLfloat g1 = rnd.getFloat();
212 const GLfloat b1 = rnd.getFloat();
213 const GLfloat a1 = rnd.getFloat();
214 const GLfloat r2 = rnd.getFloat()
    [all...]
  /external/libvpx/libvpx/test/
dct16x16_test.cc 320 ACMRandom rnd(ACMRandom::DeterministicSeed());
337 src[j] = rnd.Rand8();
338 dst[j] = rnd.Rand8();
342 src16[j] = rnd.Rand16() & mask_;
343 dst16[j] = rnd.Rand16() & mask_;
381 ACMRandom rnd(ACMRandom::DeterministicSeed());
390 input_block[j] = (rnd.Rand16() & mask_) - (rnd.Rand16() & mask_);
403 ACMRandom rnd(ACMRandom::DeterministicSeed());
412 input_extreme_block[j] = rnd.Rand8() % 2 ? mask_ : -mask_
    [all...]
  /external/deqp/modules/gles2/functional/
es2fShaderInvarianceTests.cpp 51 static tcu::Vec4 genRandomVector (de::Random& rnd)
55 retVal.x() = rnd.getFloat(-1.0f, 1.0f);
56 retVal.y() = rnd.getFloat(-1.0f, 1.0f);
57 retVal.z() = rnd.getFloat(-1.0f, 1.0f);
58 retVal.w() = rnd.getFloat( 0.2f, 1.0f);
207 de::Random rnd (123);
214 const tcu::Vec4 vertex1 = genRandomVector(rnd);
215 const tcu::Vec4 vertex2 = genRandomVector(rnd);
216 const tcu::Vec4 vertex3 = vertex2 + genRandomVector(rnd) * 0.01f; // generate narrow triangles
226 triangles[(numTriangles + triNdx)*3 + 0] = genRandomVector(rnd);
    [all...]
  /external/dhcpcd-6.8.2/compat/
arc4random.c 106 unsigned int rnd[(128 - sizeof(struct timeval)) / member in struct:__anon18912
114 (void)read(fd, rdat.rnd, sizeof(rdat.rnd));
  /external/tensorflow/tensorflow/core/graph/
mkl_tfconversion_pass_test.cc 275 random::SimplePhilox rnd(&philox);
280 op, rnd.Uniform(10), rnd.Uniform(10));
  /external/guava/guava-tests/benchmark/com/google/common/base/
Utf8Benchmark.java 99 final Random rnd = new Random(seed); local
109 codePoint = rnd.nextInt(maxCodePoint.value);
  /external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
vktSpvAsmComputeShaderTestUtil.hpp 67 static void fillRandomScalars (de::Random& rnd, deInt32 minValue, deInt32 maxValue, deInt32* dst, deInt32 numValues)
70 dst[i] = rnd.getInt(minValue, maxValue);
106 de::Random rnd (m_opAtomic);
108 fillRandomScalars(rnd, 1, 100, &inputInts.front(), m_numInputElements);
  /external/deqp/modules/gles3/stress/
es3sSyncTests.cpp 97 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd)
104 dst[i*4 ] = rnd.getFloat(-1.0f, 1.0f); // x
105 dst[i*4 + 1] = rnd.getFloat(-1.0f, 1.0f); // y
106 dst[i*4 + 2] = rnd.getFloat( 0.0f, 1.0f); // z

Completed in 992 milliseconds

1 2 3 4 56 7 8 91011>>