/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deRandom.hpp | 23 * \brief Random number generator utilities. 35 //! Random self-test - compare returned values against hard-coded values. 38 class Random class 41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random 42 ~Random (void) {} in ~Random() 72 bool operator== (const Random& other) const; 73 bool operator!= (const Random& other) const; 81 inline float Random::getFloat (float min, float max) in getFloat() 87 inline double Random::getDouble (double min, double max) in getDouble() 93 inline int Random [all...] |
H A D | deRandom.cpp | 21 * \brief Random number generator utilities. 39 bool Random::operator== (const Random& other) const in operator ==() 44 bool Random::operator!= (const Random& other) const in operator !=() 55 Random rnd(4789); in Random_selfTest() 64 Random rnd(4789); in Random_selfTest() 73 Random rnd(4789); in Random_selfTest() 82 Random rnd(4789); in Random_selfTest() 92 Random rn in Random_selfTest() [all...] |
H A D | deBlockBuffer.cpp | 72 Random rnd ((deUint32)m_lastPayload.size()); in run() 138 Random rnd (m_threadId); in run() 165 Random rnd (iterNdx); in runTest() 241 Random rnd(m_seed); in run() 280 Random rnd(m_seed); in run() 309 Random rnd (deInt32Hash(iterNdx)); in runTest()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuRandomValueIterator.hpp | 23 * \brief Random value iterator. 33 T getRandomValue (de::Random& rnd) in getRandomValue() 48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint32(); } in getRandomValue() 49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUint32(); } in getRandomValue() 50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); } in getRandomValue() 51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); } in getRandomValue() 52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(); } in getRandomValue() 53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint32(); } in getRandomValue() 54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint32(); } in getRandomValue() 55 template <> inline deInt64 getRandomValue<deInt64> (de::Random in getRandomValue() [all...] |
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
H A D | CollationThreadTest.java | 14 import java.util.Random; 141 private static void scramble(String[] data, Random r) { in scramble() 192 private Random r; 194 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() 256 final Random r = new Random(); in testThreads() 281 final Random r = new Random(); in testFrozen()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
H A D | CollationThreadTest.java | 15 import java.util.Random; 144 private static void scramble(String[] data, Random r) { in scramble() 195 private Random r; 197 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() 259 final Random r = new Random(); in testThreads() 284 final Random r = new Random(); in testFrozen()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | raw_hash_set_probe_benchmark.cc | 360 struct Random { struct 365 struct Random<Ptr<Align>*, Dist> { struct 367 return MakePtr<Align>(Random<uintptr_t, Dist>{}() * Align); in operator ()() 372 struct Random<IntIdentity, Dist> { struct 374 return IntIdentity{Random<uint64_t, Dist>{}()}; in operator ()() 379 struct Random<PtrIdentity<Align>, Dist> { struct 381 return PtrIdentity<Align>{Random<uintptr_t, Dist>{}() * Align}; in operator ()() 386 struct Random<String<small>, Dist> { struct 388 return String<small>::Make(Random<uint32_t, Dist>{}()); in operator ()() 393 struct Random<st struct [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | Utf8Utils.java | 37 import java.util.Random; 119 final Random rnd = new Random(seed); in randomStrings() 134 static String randomString(Random rnd, int charCount, MaxCodePoint maxCodePoint) { in randomString() 164 final Random rnd = new Random(seed); in randomStringsWithDistribution()
|
H A D | ExperimentalTestDataProvider.java | 33 import java.util.Random; 37 private static final Random RANDOM = new Random(100);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/ |
H A D | vktTransformFeedbackRandomLayoutCase.hpp | 25 * \brief Vulkan Transform Feedback Fuzz Random Layout Tests 32 class Random; 66 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 67 void generateBlockMember (de::Random& rnd, InterfaceBlock& block, const int numBlockMembers, int& numMissing); 68 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/ |
H A D | vktRandomUniformBlockCase.hpp | 24 * \brief Random uniform block layout case. 31 class Random; 75 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 76 void generateUniform (de::Random& rnd, UniformBlock& block, deUint32 complexity); 77 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk, deUint32 complexity);
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsRandomUniformBlockCase.hpp | 23 * \brief Random uniform block layout case. 32 class Random; 80 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 81 void generateUniform (de::Random& rnd, ub::UniformBlock& block); 82 ub::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
|
H A D | glsInteractionTestUtil.hpp | 33 class Random; 121 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight); 122 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight); 123 void computeRandomRenderCommands (de::Random& rnd, glu::ApiType apiType, int numCommands, int targetW, int targetH, std::vector<RenderCommand>& dst);
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/ |
H A D | vktTransformFeedbackRandomLayoutCase.hpp | 25 * \brief Vulkan Transform Feedback Fuzz Random Layout Tests 32 class Random; 67 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 68 void generateBlockMember (de::Random& rnd, InterfaceBlock& block, const int numBlockMembers, int& numMissing); 69 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ubo/ |
H A D | vktRandomUniformBlockCase.hpp | 24 * \brief Random uniform block layout case. 31 class Random; 76 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 77 void generateUniform (de::Random& rnd, UniformBlock& block, deUint32 complexity); 78 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk, deUint32 complexity);
|
/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgBinaryOps.hpp | 4 * drawElements Quality Program Random Shader Generator 80 void operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const; 81 void operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bMax) const; 82 void operator() (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const { DE_ASSERT(DE_FALSE); } in operator ()() 104 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 126 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 164 void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 188 void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 212 void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const in operator ()() 239 void operator() (de::Random [all...] |
H A D | rsgBinaryOps.cpp | 2 * drawElements Quality Program Random Shader Generator 463 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const in operator ()() 522 void ComputeMulRange::operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bMax) const in operator ()() 547 void ComputeAddRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const in operator ()() 551 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } in operator ()() 552 float operator() (de::Random& rnd, float min, float max) const { return getQuantizedFloat(rnd, min, max, 0.5f); } in operator ()() 576 void ComputeAddRange::operator()<bool> (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const in operator() 597 void ComputeSubRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const in operator ()() 601 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } in operator ()() 602 float operator() (de::Random in operator ()() [all...] |
H A D | rsgGeneratorState.hpp | 4 * drawElements Quality Program Random Shader Generator 55 GeneratorState (const ProgramParameters& programParams, de::Random& random); 59 de::Random& getRandom (void) { return m_random; } in getRandom() 90 de::Random& m_random;
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmUtils.hpp | 294 std::vector<deInt64> getInt64s (de::Random& rnd, const deUint32 count); 299 std::vector<deInt32> getInt32s (de::Random& rnd, const deUint32 count); 304 std::vector<deInt16> getInt16s (de::Random& rnd, const deUint32 count); 309 std::vector<deInt8> getInt8s (de::Random& rnd, const deUint32 count); 318 std::vector<double> getFloat64s (de::Random& rnd, deUint32 count, deBool includeSpecialFloat16Values = DE_TRUE); 327 std::vector<float> getFloat32s (de::Random& rnd, deUint32 count, deBool includeSpecialFloat16Values = DE_TRUE); 335 std::vector<deFloat16> getFloat16s (de::Random& rnd, deUint32 count, deBool includeSpecialFloat16Values = DE_TRUE);
|
H A D | vktSpvAsmIntegerDotProductTests.cpp | 59 static void fillRandomScalars(de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, int offset = 0) in fillRandomScalars() 539 void addOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, in addOpSDotKHRComputeTests() 578 void add32bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add32bitOpSDotKHRComputeTests() 585 void add16bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add16bitOpSDotKHRComputeTests() 592 void add8bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add8bitOpSDotKHRComputeTests() 627 void addOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, in addOpUDotKHRComputeTests() 666 void add32bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add32bitOpUDotKHRComputeTests() 673 void add16bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add16bitOpUDotKHRComputeTests() 680 void add8bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add8bitOpUDotKHRComputeTests() 714 void addOpSUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmUtils.hpp | 294 std::vector<deInt64> getInt64s (de::Random& rnd, const deUint32 count); 299 std::vector<deInt32> getInt32s (de::Random& rnd, const deUint32 count); 304 std::vector<deInt16> getInt16s (de::Random& rnd, const deUint32 count); 309 std::vector<deInt8> getInt8s (de::Random& rnd, const deUint32 count); 315 std::vector<double> getFloat64s (de::Random& rnd, deUint32 count); 321 std::vector<float> getFloat32s (de::Random& rnd, deUint32 count); 327 std::vector<deFloat16> getFloat16s (de::Random& rnd, deUint32 count);
|
H A D | vktSpvAsmIntegerDotProductTests.cpp | 59 static void fillRandomScalars(de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, int offset = 0) in fillRandomScalars() 539 void addOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, in addOpSDotKHRComputeTests() 578 void add32bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add32bitOpSDotKHRComputeTests() 585 void add16bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add16bitOpSDotKHRComputeTests() 592 void add8bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add8bitOpSDotKHRComputeTests() 627 void addOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, in addOpUDotKHRComputeTests() 666 void add32bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add32bitOpUDotKHRComputeTests() 673 void add16bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add16bitOpUDotKHRComputeTests() 680 void add8bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd, string name, T vecMin, T vecMax) in add8bitOpUDotKHRComputeTests() 714 void addOpSUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random [all...] |
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglChooseConfigTests.cpp | 295 de::Random rnd(0); in getValue() 368 de::Random rnd(m_iterNdx); in iterate() 379 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd) in getInt() 384 static EGLint getBool (de::Random& rnd) in getBool() 389 static EGLint getBufferType (de::Random& rnd) in getBufferType() 395 static EGLint getConfigCaveat (de::Random& rnd) in getConfigCaveat() 401 static EGLint getApiBits (de::Random& rnd) in getApiBits() 411 static EGLint getSurfaceType (de::Random& rnd) in getSurfaceType() 423 EGLint (*getValue)(de::Random& rnd); 426 std::vector<std::pair<EGLenum, EGLint> > genRandomAttributes (const std::set<EGLenum>& attribSet, int numAttribs, de::Random [all...] |
/third_party/python/Lib/test/ |
H A D | test_random.py | 18 # Subclasses must arrange for self.gen to retrieve the Random instance 66 # Random.seed() uses time.time() when an operating system specific 581 # _random.Random should not be allowed to serialization 584 r = _random.Random() 589 # _random.Random should call seed with first element of arg tuple 591 r1 = _random.Random() 593 r2 = _random.Random(8675309) 598 gen = random.Random() 630 # There shouldn't be an assertion failure in _random.Random.seed() in 834 # Random [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
H A D | UnicodeMapTest.java | 18 import java.util.Random; 124 Random rand = new Random(0); in TestAMonkey() 174 private SortedMap<String, Integer> fillRandomMap(Random rand, int max, SortedMap<String, Integer> test) { in fillRandomMap() 248 private String getRandomKey(Random rand) { in getRandomKey() 264 Random random = new Random(0); in TestModify() 324 static Random random = new Random(12345);
|