Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 220) sorted by relevance

123456789

/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemAttachmentLoadTests.cpp313 rnd.getFloat(0.0, 1.0f), in createAttachmentLoadTests()
314 rnd.getFloat(0.0, 1.0f), in createAttachmentLoadTests()
315 rnd.getFloat(0.0, 1.0f), in createAttachmentLoadTests()
316 rnd.getFloat(0.0, 1.0f)); in createAttachmentLoadTests()
320 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createAttachmentLoadTests()
321 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentLoadTests()
322 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentLoadTests()
323 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentLoadTests()
DvktProtectedMemClearColorImageTests.cpp320 rnd.getFloat(0.0, 1.0f), in createClearColorImageTests()
321 rnd.getFloat(0.0, 1.0f), in createClearColorImageTests()
322 rnd.getFloat(0.0, 1.0f), in createClearColorImageTests()
323 rnd.getFloat(0.0, 1.0f)); in createClearColorImageTests()
328 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createClearColorImageTests()
329 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createClearColorImageTests()
330 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createClearColorImageTests()
331 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createClearColorImageTests()
DvktProtectedMemCopyImageTests.cpp423 rnd.getFloat(0.0, 1.0f), in createCopyImageTests()
424 rnd.getFloat(0.0, 1.0f), in createCopyImageTests()
425 rnd.getFloat(0.0, 1.0f), in createCopyImageTests()
426 rnd.getFloat(0.0, 1.0f)); in createCopyImageTests()
431 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createCopyImageTests()
432 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyImageTests()
433 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyImageTests()
434 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyImageTests()
DvktProtectedMemBlitImageTests.cpp427 rnd.getFloat(0.0, 1.0f), in createBlitImageTests()
428 rnd.getFloat(0.0, 1.0f), in createBlitImageTests()
429 rnd.getFloat(0.0, 1.0f), in createBlitImageTests()
430 rnd.getFloat(0.0, 1.0f)); in createBlitImageTests()
435 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createBlitImageTests()
436 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createBlitImageTests()
437 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createBlitImageTests()
438 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createBlitImageTests()
DvktProtectedMemAttachmentClearTests.cpp383 rnd.getFloat(0.0, 1.0f), in createAttachmentClearTests()
384 rnd.getFloat(0.0, 1.0f), in createAttachmentClearTests()
385 rnd.getFloat(0.0, 1.0f), in createAttachmentClearTests()
386 rnd.getFloat(0.0, 1.0f)); in createAttachmentClearTests()
391 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createAttachmentClearTests()
392 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentClearTests()
393 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentClearTests()
394 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createAttachmentClearTests()
DvktProtectedMemCopyBufferToImageTests.cpp394 } fillValue = { rnd.getFloat(0.0, 1.0f) }; in createCopyBufferToImageTests()
399 …{ tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getF… in createCopyBufferToImageTests()
400 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyBufferToImageTests()
401 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyBufferToImageTests()
402 …tcu::Vec4(rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFloat(0.0f, 1.0f), rnd.getFlo… in createCopyBufferToImageTests()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmUboMatrixPaddingTests.cpp133 inputData.push_back(tcu::Vec4(rnd.getFloat(), rnd.getFloat(), rnd.getFloat(), rnd.getFloat())); in addComputeUboMatrixPaddingTest()
158 inputData.push_back(tcu::Vec4(rnd.getFloat(), rnd.getFloat(), rnd.getFloat(), rnd.getFloat())); in addGraphicsUboMatrixPaddingTest()
/external/skqp/src/core/
DSkICC.cpp294 ptr[2] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(0, col))); in write_xyz_tag()
295 ptr[3] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(1, col))); in write_xyz_tag()
296 ptr[4] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(2, col))); in write_xyz_tag()
342 return nearly_equal(toXYZD50.getFloat(0, 0), standard[0]) in nearly_equal()
343 && nearly_equal(toXYZD50.getFloat(0, 1), standard[1]) in nearly_equal()
344 && nearly_equal(toXYZD50.getFloat(0, 2), standard[2]) in nearly_equal()
345 && nearly_equal(toXYZD50.getFloat(1, 0), standard[3]) in nearly_equal()
346 && nearly_equal(toXYZD50.getFloat(1, 1), standard[4]) in nearly_equal()
347 && nearly_equal(toXYZD50.getFloat(1, 2), standard[5]) in nearly_equal()
348 && nearly_equal(toXYZD50.getFloat(2, 0), standard[6]) in nearly_equal()
[all …]
DSkColorSpace.cpp91 return color_space_almost_equal(toXYZD50.getFloat(0, 0), standard[0]) && in xyz_almost_equal()
92 color_space_almost_equal(toXYZD50.getFloat(0, 1), standard[1]) && in xyz_almost_equal()
93 color_space_almost_equal(toXYZD50.getFloat(0, 2), standard[2]) && in xyz_almost_equal()
94 color_space_almost_equal(toXYZD50.getFloat(1, 0), standard[3]) && in xyz_almost_equal()
95 color_space_almost_equal(toXYZD50.getFloat(1, 1), standard[4]) && in xyz_almost_equal()
96 color_space_almost_equal(toXYZD50.getFloat(1, 2), standard[5]) && in xyz_almost_equal()
97 color_space_almost_equal(toXYZD50.getFloat(2, 0), standard[6]) && in xyz_almost_equal()
98 color_space_almost_equal(toXYZD50.getFloat(2, 1), standard[7]) && in xyz_almost_equal()
99 color_space_almost_equal(toXYZD50.getFloat(2, 2), standard[8]) && in xyz_almost_equal()
100 color_space_almost_equal(toXYZD50.getFloat(0, 3), 0.0f) && in xyz_almost_equal()
[all …]
/external/skia/src/core/
DSkICC.cpp294 ptr[2] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(0, col))); in write_xyz_tag()
295 ptr[3] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(1, col))); in write_xyz_tag()
296 ptr[4] = SkEndian_SwapBE32(float_round_to_fixed(toXYZ.getFloat(2, col))); in write_xyz_tag()
342 return nearly_equal(toXYZD50.getFloat(0, 0), standard[0]) in nearly_equal()
343 && nearly_equal(toXYZD50.getFloat(0, 1), standard[1]) in nearly_equal()
344 && nearly_equal(toXYZD50.getFloat(0, 2), standard[2]) in nearly_equal()
345 && nearly_equal(toXYZD50.getFloat(1, 0), standard[3]) in nearly_equal()
346 && nearly_equal(toXYZD50.getFloat(1, 1), standard[4]) in nearly_equal()
347 && nearly_equal(toXYZD50.getFloat(1, 2), standard[5]) in nearly_equal()
348 && nearly_equal(toXYZD50.getFloat(2, 0), standard[6]) in nearly_equal()
[all …]
DSkColorSpace.cpp91 return color_space_almost_equal(toXYZD50.getFloat(0, 0), standard[0]) && in xyz_almost_equal()
92 color_space_almost_equal(toXYZD50.getFloat(0, 1), standard[1]) && in xyz_almost_equal()
93 color_space_almost_equal(toXYZD50.getFloat(0, 2), standard[2]) && in xyz_almost_equal()
94 color_space_almost_equal(toXYZD50.getFloat(1, 0), standard[3]) && in xyz_almost_equal()
95 color_space_almost_equal(toXYZD50.getFloat(1, 1), standard[4]) && in xyz_almost_equal()
96 color_space_almost_equal(toXYZD50.getFloat(1, 2), standard[5]) && in xyz_almost_equal()
97 color_space_almost_equal(toXYZD50.getFloat(2, 0), standard[6]) && in xyz_almost_equal()
98 color_space_almost_equal(toXYZD50.getFloat(2, 1), standard[7]) && in xyz_almost_equal()
99 color_space_almost_equal(toXYZD50.getFloat(2, 2), standard[8]) && in xyz_almost_equal()
100 color_space_almost_equal(toXYZD50.getFloat(0, 3), 0.0f) && in xyz_almost_equal()
[all …]
/external/deqp/modules/gles3/functional/
Des3fPixelBufferObjectTests.cpp433 float clearRed = m_colorScale * m_random.getFloat(); in iterate()
434 float clearGreen = m_colorScale * m_random.getFloat(); in iterate()
435 float clearBlue = m_colorScale * m_random.getFloat(); in iterate()
436 float clearAlpha = m_colorScale * (0.5f + 0.5f * m_random.getFloat()); in iterate()
456 float x1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
457 float y1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
458 float z1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
460 float x2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
461 float y2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
462 float z2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
[all …]
Des3fFboMultisampleTests.cpp152 float r = rnd.getFloat(); in render()
153 float g = rnd.getFloat(); in render()
154 float b = rnd.getFloat(); in render()
155 float a = rnd.getFloat(); in render()
156 float x0 = rnd.getFloat(-1.0f, 1.0f); in render()
157 float y0 = rnd.getFloat(-1.0f, 1.0f); in render()
158 float z0 = rnd.getFloat(-1.0f, 1.0f); in render()
159 float x1 = rnd.getFloat(-1.0f, 1.0f); in render()
160 float y1 = rnd.getFloat(-1.0f, 1.0f); in render()
161 float z1 = rnd.getFloat(-1.0f, 1.0f); in render()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DFloatArrayListTest.java124 assertEquals(1F, TERTIARY_LIST.getFloat(0)); in testGetFloat()
125 assertEquals(2F, TERTIARY_LIST.getFloat(1)); in testGetFloat()
126 assertEquals(3F, TERTIARY_LIST.getFloat(2)); in testGetFloat()
166 assertEquals(0F, list.getFloat(0)); in testSet()
169 assertEquals(0F, list.getFloat(1)); in testSet()
191 assertEquals(0F, list.getFloat(0)); in testSetFloat()
194 assertEquals(0F, list.getFloat(1)); in testSetFloat()
258 assertEquals(1F, list.getFloat(0)); in testAddAll()
/external/deqp/framework/delibs/decpp/
DdeRandom.hpp44 float getFloat (void) { return deRandom_getFloat(&m_rnd); } in getFloat() function in de::Random
48 float getFloat (float min, float max);
79 inline float Random::getFloat (float min, float max) in getFloat() function in de::Random
82 return min + (max-min)*getFloat(); in getFloat()
144 float p = getFloat(0.0f, weightSum); in chooseWeighted()
/external/deqp/external/vulkancts/modules/vulkan/ubo/
DvktRandomUniformBlockCase.cpp100 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock()
141 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateUniform()
142 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateUniform()
154 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
174 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateType()
175 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateType()
182 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
/external/deqp/modules/glshared/
DglsRandomUniformBlockCase.cpp88 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock()
148 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateUniform()
149 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateUniform()
161 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
181 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateType()
182 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateType()
189 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
DglsInteractionTestUtil.cpp149 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()
153 state.ditherEnabled = rnd.getFloat() < ditherProbability; in computeRandomRenderState()
187 state.depthWriteMask = rnd.getFloat() < depthWriteProbability; in computeRandomRenderState()
217 state.colorMask[ndx] = rnd.getFloat() < colorWriteProbability; in computeRandomRenderState()
DglsLongStressCase.cpp779 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]); in setRandomUniforms()
794 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]); in setRandomUniforms()
1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData()
1260 const bool useClientMemoryIndexData = m_rnd.getFloat() < m_probabilities.clientMemoryIndexData; in iterate()
1261 const bool useDrawArrays = m_rnd.getFloat() < m_probabilities.useDrawArrays; in iterate()
1262 …const bool separateAttributeBuffers = m_rnd.getFloat() < m_probabilities.separateAttributeBuff… in iterate()
1284 if (!hadProgram || m_rnd.getFloat() < m_probabilities.rebuildProgram) in iterate()
1310 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadTexture) in iterate()
1316 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadWithTexImage) in iterate()
1353 if (!hadIndexBuffer || m_rnd.getFloat() < m_probabilities.reuploadBuffer) in iterate()
[all …]
/external/deqp/modules/egl/
DteglPreservingSwapTests.cpp427 const float clearRed = rnd.getFloat(); in iterate()
428 const float clearGreen = rnd.getFloat(); in iterate()
429 const float clearBlue = rnd.getFloat(); in iterate()
432 const float preSwapX1 = -0.9f * rnd.getFloat(); in iterate()
433 const float preSwapY1 = -0.9f * rnd.getFloat(); in iterate()
434 const float preSwapX2 = 0.9f * rnd.getFloat(); in iterate()
435 const float preSwapY2 = 0.9f * rnd.getFloat(); in iterate()
437 const float postSwapX1 = -0.9f * rnd.getFloat(); in iterate()
438 const float postSwapY1 = -0.9f * rnd.getFloat(); in iterate()
439 const float postSwapX2 = 0.9f * rnd.getFloat(); in iterate()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowMatrixCursorTest.java38 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddObjectArraysAsRows()
60 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddIterablesAsRows()
108 assertThat(cursor.getFloat(0)).isEqualTo(42.0F); in shouldAllowTypeFlexibility()
115 assertThat(cursor.getFloat(1)).isEqualTo(3.3F); in shouldAllowTypeFlexibility()
171 assertThat(singleColumnSingleNullValueMatrixCursor.getFloat(0)).isEqualTo(0.0f); in returnsZeroWhenGettingFloatFromNullColumn()
/external/deqp/modules/gles31/functional/
Des31fShaderPackingFunctionTests.cpp180 const float x = rnd.getFloat()*2.5f - 1.25f; in iterate()
181 const float y = rnd.getFloat()*2.5f - 1.25f; in iterate()
188 const float x = rnd.getFloat()*1e6f - 0.5e6f; in iterate()
189 const float y = rnd.getFloat()*1e6f - 0.5e6f; in iterate()
371 const float x = rnd.getFloat()*1.25f; in iterate()
372 const float y = rnd.getFloat()*1.25f; in iterate()
379 const float x = rnd.getFloat()*1e6f - 1e5f; in iterate()
380 const float y = rnd.getFloat()*1e6f - 1e5f; in iterate()
778 const float x = rnd.getFloat()*2.5f - 1.25f; in iterate()
779 const float y = rnd.getFloat()*2.5f - 1.25f; in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktBasicDrawTests.cpp649 tcu::Vec4(rnd.getFloat(-1.0, 1.0), rnd.getFloat(-1.0, 1.0), 1.0, 1.0), // Coord in generateDrawData()
650 …tcu::Vec4(rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0… in generateDrawData()
742 positionAccess = tcu::Vec4(rnd.getFloat(-1.0, 1.0), rnd.getFloat(-1.0, 1.0), 1.0, 1.0); in generateDrawData()
745 …colorAccess = tcu::Vec4(rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rn… in generateDrawData()
869 positionAccess = tcu::Vec4(rnd.getFloat(-1.0, 1.0), rnd.getFloat(-1.0, 1.0), 1.0, 1.0); in generateDrawData()
872 …colorAccess = tcu::Vec4(rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rn… in generateDrawData()
1034 positionAccess = tcu::Vec4(rnd.getFloat(-1.0, 1.0), rnd.getFloat(-1.0, 1.0), 1.0, 1.0); in generateDrawData()
1037 …colorAccess = tcu::Vec4(rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rnd.getFloat(0.0, 1.0), rn… in generateDrawData()
/external/flatbuffers/tests/MyGame/Example/
DVec3.php30 return $this->bb->getFloat($this->bb_pos + 0);
38 return $this->bb->getFloat($this->bb_pos + 4);
46 return $this->bb->getFloat($this->bb_pos + 8);
DVec3.java15 public float x() { return bb.getFloat(bb_pos + 0); } in x()
17 public float y() { return bb.getFloat(bb_pos + 4); } in y()
19 public float z() { return bb.getFloat(bb_pos + 8); } in z()

123456789