/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
BigDecimalCompareTest.java | 267 int cScale = 41; 270 BigDecimal cNumber = new BigDecimal(new BigInteger(c), cScale); 283 int cScale = 24; 286 BigDecimal cNumber = new BigDecimal(new BigInteger(c), cScale); 299 int cScale = 41; 302 BigDecimal cNumber = new BigDecimal(new BigInteger(c), cScale); 315 int cScale = 41; 318 BigDecimal cNumber = new BigDecimal(new BigInteger(c), cScale); 331 int cScale = 41; 334 BigDecimal cNumber = new BigDecimal(new BigInteger(c), cScale); [all...] |
BigDecimalArithmeticTest.java | 41 int cScale = 10; 46 assertEquals("incorrect scale", cScale, result.scale()); 58 int cScale = -37; 64 assertEquals("incorrect scale", cScale, result.scale()); 76 int cScale = -10; 81 assertEquals("incorrect scale", cScale, result.scale()); 93 int cScale = -57; 99 assertEquals("incorrect scale", cScale, result.scale()); 111 int cScale = 15; 116 assertEquals("incorrect scale", cScale, result.scale()) [all...] |
BigDecimalScaleOperationsTest.java | 36 int cScale = 0; 38 assertTrue("incorrect scale", aNumber.scale() == cScale); 47 int cScale = -10; 49 assertTrue("incorrect scale", aNumber.scale() == cScale); 58 int cScale = 10; 60 assertTrue("incorrect scale", aNumber.scale() == cScale); 69 int cScale = 0; 71 assertTrue("incorrect scale", aNumber.scale() == cScale);
|
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpegdec_test.c | 208 void chromaScale(mm_jpeg_color_format format, double *cScale) 235 *cScale = scale; 242 double cScale; 255 chromaScale(p_input->format, &cScale); 256 p_obj->output.size = (size_t)((double)size * cScale); 281 (uint32_t)((double)size * (cScale - 1.0));
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpegdec_test.c | 208 void chromaScale(mm_jpeg_color_format format, double *cScale) 235 *cScale = scale; 242 double cScale; 255 chromaScale(p_input->format, &cScale); 256 p_obj->output.size = (size_t)((double)size * cScale); 281 (uint32_t)((double)size * (cScale - 1.0));
|
/external/deqp/modules/gles2/accuracy/ |
es2aTextureFilteringTests.cpp | 148 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 153 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 154 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 169 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 409 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 426 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 441 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
/external/deqp/modules/gles3/accuracy/ |
es3aTextureFilteringTests.cpp | 138 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 143 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 144 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 159 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 395 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 412 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 427 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureFilteringTests.cpp | 120 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 135 const tcu::Vec4 gMin = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias; 136 const tcu::Vec4 gMax = tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 149 tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 315 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 341 tcu::fillWithComponentGradients(m_textures[0]->getLevel(levelNdx, face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 355 tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
vktTextureShadowTests.cpp | 442 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 466 tcu::fillWithComponentGradients(m_textures[0]->getLevel(levelNdx, face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 480 tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 659 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 672 const tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 673 const tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 686 tcu::fillWithGrid(m_textures[1]->getTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
vktTextureFilteringExplicitLodTests.cpp | 1225 const Vec4 cScale = fmtInfo.valueMax - fmtInfo.valueMin; 1229 const Vec4 gMin = Vec4(0.0f, 0.0f, 0.0f, 1.0f) * cScale + cBias; 1230 const Vec4 gMax = Vec4(1.0f, 1.0f, 1.0f, 0.0f) * cScale + cBias; [all...] |
/external/deqp/modules/gles3/functional/ |
es3fTextureFilteringTests.cpp | 196 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 201 tcu::Vec4 gMin = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias; 202 tcu::Vec4 gMax = tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 217 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 476 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 493 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 508 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
es3fVertexTextureTests.cpp | 594 const Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 599 const Vec4 gMin = Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 600 const Vec4 gMax = Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 615 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 903 const Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; [all...] |
es3fTextureShadowTests.cpp | 490 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 511 tcu::fillWithComponentGradients(m_gradientTex->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 526 tcu::fillWithGrid(m_gridTex->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 781 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 792 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 793 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 808 tcu::fillWithGrid(m_gridTex->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
es3fFboInvalidateTests.cpp | 468 tcu::Vec4 cScale = colorFmtInfo.valueMax-colorFmtInfo.valueMin; 508 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(1.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias); 519 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias); 542 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, 0.0f, 1.0f, 1.0f)*cScale + cBias); 835 tcu::Vec4 cScale = colorFmtInfo.valueMax-colorFmtInfo.valueMin; 871 glClearBufferfv (GL_COLOR, 0, (Vec4(0.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias).getPtr()); [all...] |
es3fTextureSpecificationTests.cpp | [all...] |
es3fShaderTextureFunctionTests.cpp | 580 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 589 Vec4 colorA = cBias + cScale*Vec4(fA, fB, fA, fB); 590 Vec4 colorB = cBias + cScale*Vec4(fB, fA, fB, fA); 610 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 612 Vec4 cCorner = cBias + cScale*0.5f; [all...] |
es3fTextureUnitTests.cpp | 880 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 912 tcu::fillWithGrid(access, curCellSize, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); [all...] |
/external/deqp/modules/gles31/functional/ |
es31fTextureFilteringTests.cpp | 212 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 239 const tcu::Vec4 gMin = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias; 240 const tcu::Vec4 gMax = tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f).swizzle(swz[0],swz[1],swz[2],swz[3])*cScale + cBias; 261 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias);
|
es31fTextureSpecificationTests.cpp | 444 Vec4 cScale = m_texFormatInfo.valueMax-m_texFormatInfo.valueMin; 446 Vec4 colorA = Vec4(1.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias; 447 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; 550 Vec4 cScale = m_texFormatInfo.valueMax-m_texFormatInfo.valueMin; 552 Vec4 colorA = Vec4(1.0f, 0.0f, 0.0f, 1.0f)*cScale + cBias; 553 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureFilteringTests.cpp | 178 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 183 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 184 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 199 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 441 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 458 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 473 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
es2fVertexTextureTests.cpp | 494 const Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 499 const Vec4 gMin = Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 500 const Vec4 gMax = Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 515 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); 800 const Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 817 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias); 832 tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias) [all...] |
es2fShaderTextureFunctionTests.cpp | 334 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 343 Vec4 colorA = cBias + cScale*Vec4(fA, fB, fA, fB); 344 Vec4 colorB = cBias + cScale*Vec4(fB, fA, fB, fA); 364 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 380 Vec4 colorA = cBias + cScale*f.swizzle(swzA[0], swzA[1], swzA[2], swzA[3]); 381 Vec4 colorB = cBias + cScale*f.swizzle(swzB[0], swzB[1], swzB[2], swzB[3]);
|
es2fTextureUnitTests.cpp | 686 Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 717 tcu::fillWithGrid(access, curCellSize, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMathUtils.java | 351 float cScale = originalBounds.width() / rCrop.width(); 353 cScale = originalBounds.height() / rCrop.height(); 359 scale = scale * cScale;
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalArithmeticTest.java | 116 int cScale = -126; 121 assertEquals("incorrect scale", cScale, result.scale());
|