Searched refs:getFloat (Results 1 - 25 of 159) sorted by relevance

1234567

/external/deqp/framework/delibs/decpp/
H A DdeRandom.hpp44 float getFloat (void) { return deRandom_getFloat(&m_rnd); } function in class:de::Random
48 float getFloat (float min, float max);
79 inline float Random::getFloat (float min, float max) function in class:de::Random
82 return min + (max-min)*getFloat();
144 float p = getFloat(0.0f, weightSum);
H A DdeRandom.cpp87 // getFloat()
94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon);
97 // getFloat(a, b)
104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon);
/external/deqp/modules/gles3/functional/
H A Des3fFboMultisampleTests.cpp151 float r = rnd.getFloat();
152 float g = rnd.getFloat();
153 float b = rnd.getFloat();
154 float a = rnd.getFloat();
155 float x0 = rnd.getFloat(-1.0f, 1.0f);
156 float y0 = rnd.getFloat(-1.0f, 1.0f);
157 float z0 = rnd.getFloat(-1.0f, 1.0f);
158 float x1 = rnd.getFloat(-1.0f, 1.0f);
159 float y1 = rnd.getFloat(-1.0f, 1.0f);
160 float z1 = rnd.getFloat(
[all...]
H A Des3fPixelBufferObjectTests.cpp433 float clearRed = m_colorScale * m_random.getFloat();
434 float clearGreen = m_colorScale * m_random.getFloat();
435 float clearBlue = m_colorScale * m_random.getFloat();
436 float clearAlpha = m_colorScale * (0.5f + 0.5f * m_random.getFloat());
456 float x1 = 2.0f * m_random.getFloat() - 1.0f;
457 float y1 = 2.0f * m_random.getFloat() - 1.0f;
458 float z1 = 2.0f * m_random.getFloat() - 1.0f;
460 float x2 = 2.0f * m_random.getFloat() - 1.0f;
461 float y2 = 2.0f * m_random.getFloat() - 1.0f;
462 float z2 = 2.0f * m_random.getFloat()
[all...]
H A Des3fSyncTests.cpp116 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/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowTypedArray.java23 public float getFloat(int index, float defValue) { method in class:ShadowTypedArray
H A DShadowCursorWrapper.java134 public float getFloat(int i) { method in class:ShadowCursorWrapper
135 return wrappedCursor.getFloat(i);
H A DShadowSettings.java94 public static float getFloat(ContentResolver cr, String name, float def) { method in class:ShadowSettings.SettingsImpl
103 public static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException { method in class:ShadowSettings.SettingsImpl
H A DShadowMatrixCursor.java55 public float getFloat(int column) { method in class:ShadowMatrixCursor
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/content/
H A DTestSharedPreferencesTest.java46 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f));
74 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f));
95 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f));
117 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(666f));
/external/deqp/modules/glshared/
H A DglsInteractionTestUtil.cpp149 state.scissorTestEnabled = rnd.getFloat() < scissorTestProbability;
150 state.stencilTestEnabled = rnd.getFloat() < stencilTestProbability;
151 state.depthTestEnabled = rnd.getFloat() < depthTestProbability;
152 state.blendEnabled = rnd.getFloat() < blendProbability;
153 state.ditherEnabled = rnd.getFloat() < ditherProbability;
187 state.depthWriteMask = rnd.getFloat() < depthWriteProbability;
217 state.colorMask[ndx] = rnd.getFloat() < colorWriteProbability;
H A DglsRandomUniformBlockCase.cpp88 int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_maxInstances) : 0;
148 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0;
149 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0;
161 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight)
181 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0;
182 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0;
189 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight)
H A DglsLongStressCase.cpp779 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]);
794 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]);
1011 data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValue.f[compNdx]);
1260 const bool useClientMemoryIndexData = m_rnd.getFloat() < m_probabilities.clientMemoryIndexData;
1261 const bool useDrawArrays = m_rnd.getFloat() < m_probabilities.useDrawArrays;
1262 const bool separateAttributeBuffers = m_rnd.getFloat() < m_probabilities.separateAttributeBuffers;
1284 if (!hadProgram || m_rnd.getFloat() < m_probabilities.rebuildProgram)
1310 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadTexture)
1316 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadWithTexImage)
1353 if (!hadIndexBuffer || m_rnd.getFloat() < m_probabilitie
[all...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DSettingsTest.java85 assertThat(Settings.System.getFloat(contentResolver, "property", 23.23f), equalTo(23.23f));
87 assertThat(Settings.System.getFloat(contentResolver, "property", 10L), equalTo(42.42f));
102 Settings.System.getFloat(contentResolver, "property");
H A DMatrixCursorTest.java41 assertThat(cursor.getFloat(2), equalTo(0.1f));
89 assertThat(cursor.getFloat(0), equalTo(42.0F));
96 assertThat(cursor.getFloat(1), equalTo(3.3F));
150 assertThat(singleColumnSingleNullValueMatrixCursor.getFloat(0), is(equalTo(0.0f)));
H A DTypedArrayTest.java44 assertThat(typedArray.getFloat(0, 0.5f), equalTo(0.5f));
/external/deqp/modules/egl/
H A DteglMemoryStressTests.cpp212 const float red = m_rnd.getFloat();
213 const float green = m_rnd.getFloat();
214 const float blue = m_rnd.getFloat();
215 const float alpha = m_rnd.getFloat();
274 const float red = m_rnd.getFloat();
275 const float green = m_rnd.getFloat();
276 const float blue = m_rnd.getFloat();
277 const float alpha = m_rnd.getFloat();
H A DteglPreservingSwapTests.cpp449 const float clearRed = rnd.getFloat();
450 const float clearGreen = rnd.getFloat();
451 const float clearBlue = rnd.getFloat();
454 const float preSwapX1 = -0.9f * rnd.getFloat();
455 const float preSwapY1 = -0.9f * rnd.getFloat();
456 const float preSwapX2 = 0.9f * rnd.getFloat();
457 const float preSwapY2 = 0.9f * rnd.getFloat();
459 const float postSwapX1 = -0.9f * rnd.getFloat();
460 const float postSwapY1 = -0.9f * rnd.getFloat();
461 const float postSwapX2 = 0.9f * rnd.getFloat();
[all...]
/external/chromium_org/cc/base/
H A Dmath_util.cc124 gfx::Vector2d offset(static_cast<int>(transform.matrix().getFloat(0, 3)),
125 static_cast<int>(transform.matrix().getFloat(1, 3)));
134 gfx::Vector2dF offset(transform.matrix().getFloat(0, 3),
135 transform.matrix().getFloat(1, 3));
164 gfx::Vector2d offset(static_cast<int>(transform.matrix().getFloat(0, 3)),
165 static_cast<int>(transform.matrix().getFloat(1, 3)));
175 gfx::Vector2dF offset(transform.matrix().getFloat(0, 3),
176 transform.matrix().getFloat(1, 3));
196 gfx::Vector2d offset(static_cast<int>(transform.matrix().getFloat(0, 3)),
197 static_cast<int>(transform.matrix().getFloat(
[all...]
/external/deqp/framework/randomshaders/
H A DrsgPrettyPrinter.cpp154 std::string f = de::toString(token.getFloat());
H A DrsgToken.hpp148 float getFloat (void) const;
205 inline float Token::getFloat (void) const function in class:rsg::Token
/external/nist-sip/java/gov/nist/javax/sip/address/
H A DNetObject.java125 if (f.getFloat(this) != g.getFloat(that))
215 if (f.getFloat(this) != g.getFloat(that))
326 float floatField = f.getFloat(this);
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DSIPObject.java131 if (f.getFloat(this) != g.getFloat(that))
221 if (f.getFloat(this) != g.getFloat(that))
337 float floatField = f.getFloat(this);
/external/deqp/modules/gles31/functional/
H A Des31fShaderPackingFunctionTests.cpp180 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;
371 const float x = rnd.getFloat()*1.25f;
372 const float y = rnd.getFloat()*1.25f;
379 const float x = rnd.getFloat()*1e6f - 1e5f;
380 const float y = rnd.getFloat()*1e6f - 1e5f;
778 const float x = rnd.getFloat()*2.5f - 1.25f;
779 const float y = rnd.getFloat()*2.
[all...]
/external/deqp/modules/gles3/stress/
H A Des3sOcclusionQueryTests.cpp176 vertices[4*i ] = m_rnd.getFloat(-1.0f, 1.0f);
177 vertices[4*i + 1] = m_rnd.getFloat(-1.0f, 1.0f);
178 vertices[4*i + 2] = m_rnd.getFloat(0.0f, 1.0f);

Completed in 419 milliseconds

1234567