/external/pdfium/xfa/fxfa/parser/ |
D | cxfa_resolveprocessor.cpp | 23 int32_t CXFA_ResolveProcessor::Resolve(CXFA_ResolveNodesData& rnd) { in Resolve() argument 24 if (!rnd.m_CurNode) { in Resolve() 27 if (!rnd.m_CurNode->IsNode()) { in Resolve() 28 if (rnd.m_dwStyles & XFA_RESOLVENODE_Attributes) { in Resolve() 29 return ResolveForAttributeRs(rnd.m_CurNode, rnd, in Resolve() 30 rnd.m_wsName.AsStringC()); in Resolve() 34 if (rnd.m_dwStyles & XFA_RESOLVENODE_AnyChild) { in Resolve() 35 return ResolveAnyChild(rnd); in Resolve() 37 FX_WCHAR wch = rnd.m_wsName.GetAt(0); in Resolve() 40 return ResolveDollar(rnd); in Resolve() [all …]
|
D | cxfa_resolveprocessor.h | 40 int32_t Resolve(CXFA_ResolveNodesData& rnd); 43 CXFA_ResolveNodesData& rnd); 55 CXFA_ResolveNodesData& rnd, 57 int32_t ResolveAnyChild(CXFA_ResolveNodesData& rnd); 58 int32_t ResolveDollar(CXFA_ResolveNodesData& rnd); 59 int32_t ResolveExcalmatory(CXFA_ResolveNodesData& rnd); 60 int32_t ResolveNumberSign(CXFA_ResolveNodesData& rnd); 61 int32_t ResolveAsterisk(CXFA_ResolveNodesData& rnd); 62 int32_t ResolveNormal(CXFA_ResolveNodesData& rnd); 64 void SetStylesForChild(uint32_t dwParentStyles, CXFA_ResolveNodesData& rnd); [all …]
|
/external/deqp/framework/delibs/debase/ |
D | deRandom.c | 36 void deRandom_init (deRandom* rnd, deUint32 seed) in deRandom_init() argument 38 rnd->x = (deUint32)(-(int)seed ^ 123456789); in deRandom_init() 39 rnd->y = (deUint32)(362436069 * seed); in deRandom_init() 40 rnd->z = (deUint32)(521288629 ^ (seed >> 7)); in deRandom_init() 41 rnd->w = (deUint32)(88675123 ^ (seed << 3)); in deRandom_init() 49 deUint32 deRandom_getUint32 (deRandom* rnd) in deRandom_getUint32() argument 51 deUint32 w = rnd->w; in deRandom_getUint32() 54 t = rnd->x ^ (rnd->x << 11); in deRandom_getUint32() 55 rnd->x = rnd->y; in deRandom_getUint32() 56 rnd->y = rnd->z; in deRandom_getUint32() [all …]
|
D | deRandom.h | 47 void deRandom_init (deRandom* rnd, deUint32 seed); 48 deUint32 deRandom_getUint32 (deRandom* rnd); 49 deUint64 deRandom_getUint64 (deRandom* rnd); 50 float deRandom_getFloat (deRandom* rnd); 51 double deRandom_getDouble (deRandom* rnd); 52 deBool deRandom_getBool (deRandom* rnd);
|
/external/deqp/modules/glshared/ |
D | glsInteractionTestUtil.cpp | 44 static Vec4 getRandomColor (de::Random& rnd) in getRandomColor() argument 47 float r = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor() 48 float g = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor() 49 float b = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor() 50 float a = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor() 54 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targe… in computeRandomRenderState() argument 149 state.scissorTestEnabled = rnd.getFloat() < scissorTestProbability; in computeRandomRenderState() 150 state.stencilTestEnabled = rnd.getFloat() < stencilTestProbability; in computeRandomRenderState() 151 state.depthTestEnabled = rnd.getFloat() < depthTestProbability; in computeRandomRenderState() 152 state.blendEnabled = rnd.getFloat() < blendProbability; in computeRandomRenderState() [all …]
|
D | glsRandomUniformBlockCase.cpp | 66 de::Random rnd(m_seed); in init() local 68 int numShared = m_maxSharedBlocks > 0 ? rnd.getInt(1, m_maxSharedBlocks) : 0; in init() 69 …int numVtxBlocks = m_maxVertexBlocks-numShared > 0 ? rnd.getInt(1, m_maxVertexBlocks-numShared) : … in init() 70 …int numFragBlocks = m_maxFragmentBlocks-numShared > 0 ? rnd.getInt(1, m_maxFragmentBlocks-numShare… in init() 73 generateBlock(rnd, DECLARE_VERTEX|DECLARE_FRAGMENT); in init() 76 generateBlock(rnd, DECLARE_VERTEX); in init() 79 generateBlock(rnd, DECLARE_FRAGMENT); in init() 82 void RandomUniformBlockCase::generateBlock (de::Random& rnd, deUint32 layoutFlags) in generateBlock() argument 88 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() 89 int numUniforms = rnd.getInt(1, m_maxBlockMembers); in generateBlock() [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deRandom.cpp | 55 Random rnd(4789); in Random_selfTest() local 57 DE_TEST_ASSERT(expected[i] == rnd.getBool()); in Random_selfTest() 64 Random rnd(4789); in Random_selfTest() local 66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000)); in Random_selfTest() 73 Random rnd(4789); in Random_selfTest() local 75 DE_TEST_ASSERT(expected[i] == rnd.getUint32()); in Random_selfTest() 82 Random rnd(4789); in Random_selfTest() local 84 DE_TEST_ASSERT(expected[i] == rnd.getUint64()); in Random_selfTest() 92 Random rnd(4789); in Random_selfTest() local 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); in Random_selfTest() [all …]
|
D | deBlockBuffer.cpp | 71 Random rnd ((deUint32)m_lastPayload.size()); in run() local 77 int numToRead = rnd.getInt(1, DE_LENGTH_OF_ARRAY(tmpBuf)); in run() 137 Random rnd (m_threadId); in run() local 143 int writeSize = rnd.getInt(1, de::min(m_numMessages-msgNdx, DE_LENGTH_OF_ARRAY(tmpBuf))); in run() 148 if (rnd.getBool()) in run() 164 Random rnd (iterNdx); in runTest() local 165 int numBlocks = rnd.getInt(2, 128); in runTest() 166 int blockSize = rnd.getInt(1, 16); in runTest() 167 int numProducers = rnd.getInt(1, 16); in runTest() 168 int numConsumers = rnd.getInt(1, 16); in runTest() [all …]
|
D | deRingBuffer.cpp | 40 Random rnd (iterNdx); in RingBuffer_selfTest() local 41 int bufSize = rnd.getInt(1, 2048); in RingBuffer_selfTest() 42 int dataSize = rnd.getInt(100, 10000); in RingBuffer_selfTest() 56 bool doRead = canRead && (!canWrite || rnd.getBool()); in RingBuffer_selfTest() 63 int numBytes = rnd.getInt(1, buffer.getNumElements()); in RingBuffer_selfTest() 77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); in RingBuffer_selfTest()
|
/external/deqp/external/vulkancts/modules/vulkan/ubo/ |
D | vktRandomUniformBlockCase.cpp | 76 de::Random rnd(m_seed); in RandomUniformBlockCase() local 78 int numShared = m_maxSharedBlocks > 0 ? rnd.getInt(1, m_maxSharedBlocks) : 0; in RandomUniformBlockCase() 79 …int numVtxBlocks = m_maxVertexBlocks-numShared > 0 ? rnd.getInt(1, m_maxVertexBlocks - numShared) … in RandomUniformBlockCase() 80 …int numFragBlocks = m_maxFragmentBlocks-numShared > 0 ? rnd.getInt(1, m_maxFragmentBlocks - numSha… in RandomUniformBlockCase() 83 generateBlock(rnd, DECLARE_VERTEX | DECLARE_FRAGMENT); in RandomUniformBlockCase() 86 generateBlock(rnd, DECLARE_VERTEX); in RandomUniformBlockCase() 89 generateBlock(rnd, DECLARE_FRAGMENT); in RandomUniformBlockCase() 94 void RandomUniformBlockCase::generateBlock (de::Random& rnd, deUint32 layoutFlags) in generateBlock() argument 100 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock() 101 int numUniforms = rnd.getInt(1, m_maxBlockMembers); in generateBlock() [all …]
|
/external/deqp/framework/common/ |
D | tcuRandomValueIterator.hpp | 33 T getRandomValue (de::Random& rnd) in getRandomValue() argument 40 deUint32 rval = rnd.getUint32(); in getRandomValue() 48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint… in getRandomValue() argument 49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue() argument 50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); … in getRandomValue() argument 51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); … in getRandomValue() argument 52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(… in getRandomValue() argument 53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint… in getRandomValue() argument 54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint… in getRandomValue() argument 55 template <> inline deInt64 getRandomValue<deInt64> (de::Random& rnd) { return (deInt64)rnd.getUint… in getRandomValue() argument
|
/external/libvpx/libvpx/test/ |
D | vp9_quantize_test.cc | 83 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 105 *eob_ptr = rnd.Rand16(); in TEST_P() 108 coeff_ptr[j] = rnd.Rand16() & mask_; in TEST_P() 111 zbin_ptr[j] = rnd.Rand16() & mask_; in TEST_P() 112 round_ptr[j] = rnd.Rand16(); in TEST_P() 113 quant_ptr[j] = rnd.Rand16(); in TEST_P() 114 quant_shift_ptr[j] = rnd.Rand16(); in TEST_P() 115 dequant_ptr[j] = rnd.Rand16(); in TEST_P() 141 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 163 *eob_ptr = rnd.Rand16(); in TEST_P() [all …]
|
D | sum_squares_test.cc | 49 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 55 const int size = 4 << rnd(6); // Up to 128x128 in TEST_P() 56 int stride = 4 << rnd(7); // Up to 256 stride in TEST_P() 58 stride = 4 << rnd(7); in TEST_P() 63 src[i * stride + j] = rnd(2) ? rnd(limit) : -rnd(limit); in TEST_P() 77 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 83 const int size = 4 << rnd(6); // Up to 128x128 in TEST_P() 84 int stride = 4 << rnd(7); // Up to 256 stride in TEST_P() 86 stride = 4 << rnd(7); in TEST_P() 89 const int val = rnd(2) ? limit - 1 : -(limit - 1); in TEST_P()
|
D | vp9_block_error_test.cc | 71 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 88 if (rnd(2)) { in TEST_P() 90 coeff[j] = rnd(1 << msb); in TEST_P() 91 dqcoeff[j] = rnd(1 << msb); in TEST_P() 94 coeff[j] = -rnd(1 << msb); in TEST_P() 95 dqcoeff[j] = -rnd(1 << msb); in TEST_P() 114 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 145 if (rnd(2)) { in TEST_P() 147 coeff[j] = rnd(1 << 14); in TEST_P() 148 dqcoeff[j] = rnd(1 << 14); in TEST_P() [all …]
|
D | vp9_boolcoder_test.cc | 29 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST() local 41 (method == 3) ? rnd.Rand8() : in TEST() 44 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : in TEST() 46 (parity ? rnd(64) : 255 - rnd(64)) : in TEST() 47 (parity ? rnd(32) : 255 - rnd(32)); in TEST()
|
D | vp8_boolcoder_test.cc | 56 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST() local 68 (method == 3) ? rnd.Rand8() : in TEST() 71 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : in TEST() 73 (parity ? rnd(64) : 255 - rnd(64)) : in TEST() 74 (parity ? rnd(32) : 255 - rnd(32)); in TEST()
|
D | lpf_test.cc | 62 void InitInput(Pixel *s, Pixel *ref_s, ACMRandom *rnd, const uint8_t limit, in InitInput() argument 67 const uint8_t val = rnd->Rand8(); in InitInput() 69 tmp_s[j] = rnd->Rand16(); in InitInput() 75 tmp_s[j] = rnd->Rand16(); in InitInput() 87 const uint8_t val = rnd->Rand8(); in InitInput() 94 tmp_s[j] = rnd->Rand16(); in InitInput() 156 ACMRandom rnd(ACMRandom::DeterministicSeed()); in TEST_P() local 165 uint8_t tmp = static_cast<uint8_t>(rnd(3 * MAX_LOOP_FILTER + 4)); in TEST_P() 169 tmp = static_cast<uint8_t>(rnd(MAX_LOOP_FILTER)); in TEST_P() 173 tmp = rnd.Rand8(); in TEST_P() [all …]
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | HtmlPolicyBuilderFuzzerTest.java | 97 int r = rnd.nextInt(3); in testFuzzedOutput() 101 if (rnd.nextBoolean()) { in testFuzzedOutput() 102 for (int k = rnd.nextInt(4); --k >= 0;) { in testFuzzedOutput() 103 attributes.add(pick(rnd, ATTR_NAMES)); in testFuzzedOutput() 104 attributes.add(pickChunk(rnd)); in testFuzzedOutput() 107 policy.openTag(pick(rnd, ELEMENT_NAMES), attributes); in testFuzzedOutput() 110 policy.closeTag(pick(rnd, ELEMENT_NAMES)); in testFuzzedOutput() 113 policy.text(pickChunk(rnd)); in testFuzzedOutput() 162 private static String pick(Random rnd, String[] choices) { in pick() argument 163 return choices[rnd.nextInt(choices.length)]; in pick() [all …]
|
D | HtmlSanitizerFuzzerTest.java | 80 for (int fuzz = 1 + rnd.nextInt(25); --fuzz >= 0;) { in testFuzzHtmlParser() 81 if (rnd.nextBoolean()) { in testFuzzHtmlParser() 82 fuzzyHtml0[rnd.nextInt(length)] = (char) rnd.nextInt(0x10000); in testFuzzHtmlParser() 85 int s0 = rnd.nextInt(length - 1); in testFuzzHtmlParser() 86 double d = Math.abs(rnd.nextGaussian()) / 3.0d; in testFuzzHtmlParser() 87 int e0 = s0 + (int) (rnd.nextInt(length - s0) * d); in testFuzzHtmlParser() 90 int s1 = rnd.nextInt(length - 1); in testFuzzHtmlParser() 91 d = Math.abs(rnd.nextGaussian()) / 3.0d; in testFuzzHtmlParser() 92 int e1 = s1 + (int) (rnd.nextInt(length - s1) * d); in testFuzzHtmlParser()
|
/external/deqp/modules/gles2/functional/ |
D | es2fDebugMarkerTests.cpp | 75 void getSimpleRndString (vector<char>& dst, de::Random& rnd, int maxLen) in getSimpleRndString() argument 79 dst.resize(rnd.getInt(0, (int)maxLen)); in getSimpleRndString() 82 dst[ndx] = rnd.choose<char>(DE_ARRAY_BEGIN(s_chars), DE_ARRAY_END(s_chars)); in getSimpleRndString() 85 void getComplexRndString (vector<char>& dst, de::Random& rnd, int maxLen) in getComplexRndString() argument 87 dst.resize(rnd.getInt(0, (int)maxLen)); in getComplexRndString() 90 dst[ndx] = (char)rnd.getUint8(); in getComplexRndString() 120 de::Random rnd (0xaf829c0); in iterate() local 124 const CallType callType = CallType(rnd.getInt(0, CALL_TYPE_LAST-1)); in iterate() 128 const bool nullTerminate = rnd.getBool(); in iterate() 129 const bool passLength = rnd.getBool(); in iterate() [all …]
|
D | es2fPrerequisiteTests.cpp | 131 deRandom rnd; in iterate() 132 deRandom_init(&rnd, deInt32Hash(m_curIter)); in iterate() 133 r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 134 g = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 135 b = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 136 a = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 185 deRandom rnd; in iterate() local 186 deRandom_init(&rnd, deInt32Hash(m_curIter)); in iterate() 212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate() 213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fPrerequisiteTests.cpp | 131 deRandom rnd; in iterate() 132 deRandom_init(&rnd, deInt32Hash(m_curIter)); in iterate() 133 r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 134 g = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 135 b = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 136 a = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate() 185 deRandom rnd; in iterate() local 186 deRandom_init(&rnd, deInt32Hash(m_curIter)); in iterate() 212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate() 213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate() [all …]
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | prime.c | 344 static int probable_prime(BIGNUM *rnd, int bits); 345 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, 347 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add, 679 static int probable_prime(BIGNUM *rnd, int bits) { in probable_prime() argument 687 if (!BN_rand(rnd, bits, BN_RAND_TOP_TWO, BN_RAND_BOTTOM_ODD)) { in probable_prime() 693 BN_ULONG mod = BN_mod_word(rnd, (BN_ULONG)primes[i]); in probable_prime() 705 size_limit = ~((BN_ULONG)0) - BN_get_word(rnd); in probable_prime() 707 size_limit = (((BN_ULONG)1) << bits) - BN_get_word(rnd) - 1; in probable_prime() 717 BN_ULONG rnd_word = BN_get_word(rnd); in probable_prime() 751 if (!BN_add_word(rnd, delta)) { in probable_prime() [all …]
|
/external/openssh/openbsd-compat/ |
D | arc4random.c | 109 u_char rnd[KEYSZ + IVSZ]; in _rs_stir() local 112 if (RAND_bytes(rnd, sizeof(rnd)) <= 0) in _rs_stir() 116 getrnd(rnd, sizeof(rnd)); in _rs_stir() 121 _rs_init(rnd, sizeof(rnd)); in _rs_stir() 123 _rs_rekey(rnd, sizeof(rnd)); in _rs_stir() 124 explicit_bzero(rnd, sizeof(rnd)); in _rs_stir()
|
/external/deqp/modules/egl/ |
D | teglChooseConfigTests.cpp | 294 de::Random rnd(0); in getValue() local 296 …return eglu::getConfigID(m_eglTestCtx.getLibrary(), m_display, configs[rnd.getInt(0, (int)configs.… in getValue() 357 de::Random rnd(m_iterNdx); in iterate() local 358 const int numAttribs = rnd.getInt(0, (int)m_attribSet.size()*2); in iterate() 360 …vector<std::pair<EGLenum, EGLint> > attributes = genRandomAttributes(m_attribSet, numAttribs, rnd); in iterate() 368 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd) in getInt() argument 370 return rnd.getInt(MinVal, MaxVal); in getInt() 373 static EGLint getBool (de::Random& rnd) in getBool() argument 375 return rnd.getBool() ? EGL_TRUE : EGL_FALSE; in getBool() 378 static EGLint getBufferType (de::Random& rnd) in getBufferType() argument [all …]
|