Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestFloor.rscript24 return floor(inV);
28 return floor(inV);
32 return floor(inV);
36 return floor(inV);
40 return floor(inV);
44 return floor(inV);
48 return floor(inV);
52 return floor(inV);
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_resize.rscript49 int startx = (int) floor(xf - 1);
50 int starty = (int) floor(yf - 1);
51 xf = xf - floor(xf);
52 yf = yf - floor(yf);
99 int startx = (int) floor(xf - 1);
100 int starty = (int) floor(yf - 1);
101 xf = xf - floor(xf);
102 yf = yf - floor(yf);
149 int startx = (int) floor(xf - 1);
150 int starty = (int) floor(yf - 1);
[all …]
DCoreMathVerifier.java74 static native float floor(float x); in floor() method in CoreMathVerifier
644 static private Target.Floaty floor(double d, Target t) { in floor() method in CoreMathVerifier
647 Math.floor(in.mid()), in floor()
648 Math.floor(in.min()), in floor()
649 Math.floor(in.max())); in floor()
683 d - Math.floor(d), in fract()
1975 args.out = floor(args.inVDouble, t); in computeFloor()
1982 floor(args.inV), in computeFloor()
1983 floor(in.min32()), in computeFloor()
1984 floor(in.max32())); in computeFloor()
[all …]
Dintrinsic_3dlut.rscript34 int4 coord1 = convert_int4(floor(baseCoord));
/cts/tests/tests/libcorelegacy22/src/android/util/cts/
DFloatMathTest.java32 assertEquals(78, FloatMath.floor(78.89f), 0); in testFloor()
33 assertEquals(-79, FloatMath.floor(-78.89f), 0); in testFloor()
34 assertEquals(7.0f, FloatMath.floor(7.2f)); in testFloor()
35 assertEquals(-7.0f, FloatMath.floor(-6.3f)); in testFloor()
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java311 public void floor() { in floor() method in HalfTest
312 assertShortEquals(POSITIVE_INFINITY, Half.floor(POSITIVE_INFINITY)); in floor()
313 assertShortEquals(NEGATIVE_INFINITY, Half.floor(NEGATIVE_INFINITY)); in floor()
314 assertShortEquals(POSITIVE_ZERO, Half.floor(POSITIVE_ZERO)); in floor()
315 assertShortEquals(NEGATIVE_ZERO, Half.floor(NEGATIVE_ZERO)); in floor()
316 assertShortEquals(NaN, Half.floor(NaN)); in floor()
317 assertShortEquals(LOWEST_VALUE, Half.floor(LOWEST_VALUE)); in floor()
318 assertShortEquals(POSITIVE_ZERO, Half.floor(MIN_NORMAL)); in floor()
319 assertShortEquals(POSITIVE_ZERO, Half.floor((short) 0x3ff)); in floor()
320 assertShortEquals(POSITIVE_ZERO, Half.floor(toHalf(0.2f))); in floor()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCommon.java86 samplePrefixArray[i] = (1 - index + Math.floor(index)) * prefixArray[(int) Math.floor(index)] in prefix()
/cts/apps/CameraITS/pymodules/its/
Dobjects.py46 return [{"numerator":math.floor(val*denom+0.5), "denominator":denom}
49 return {"numerator":math.floor(f*denom+0.5), "denominator":denom}
Dimage.py36 [math.floor(65535 * math.pow(i/65535.0, 1/2.2) + 0.5)
40 [math.floor(65535 * math.pow(i/65535.0, 2.2) + 0.5)
665 wtile = int(math.floor(wnorm * wfull))
666 htile = int(math.floor(hnorm * hfull))
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java72 x = (int)Math.floor(a.getDouble(i+0) * width + 0.5f); in getJsonWeightedRectsFromArray()
73 y = (int)Math.floor(a.getDouble(i+1) * height + 0.5f); in getJsonWeightedRectsFromArray()
74 w = (int)Math.floor(a.getDouble(i+2) * width + 0.5f); in getJsonWeightedRectsFromArray()
75 h = (int)Math.floor(a.getDouble(i+3) * height + 0.5f); in getJsonWeightedRectsFromArray()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutGetLineLeftRightTest.java157 expectedLeft = (float) Math.floor((mWidth - mLeadingMargin - textWidth) / 2); in testGetLineLeft()
159 expectedLeft = (float) Math.floor(mLeadingMargin in testGetLineLeft()
/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java104 return (widthDp - (float) Math.floor(widthDp)) / widthDp; in getMaxErrorRatio()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java351 (int) Math.ceil(texturePosF.top), (int) Math.floor(texturePosF.right), in testSamplingWithTransform()
352 (int) Math.floor(texturePosF.bottom)); in testSamplingWithTransform()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java648 assertEquals((int) Math.floor(origOutlineRect.right * scale), tempOutlineRect.right); in verifyOutlinePreloadDensityInner()
649 assertEquals((int) Math.floor(origOutlineRect.bottom * scale), tempOutlineRect.bottom); in verifyOutlinePreloadDensityInner()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1252 minEvents = (int) Math.floor( in checkSharedMemoryContent()
1440 minMax[0] = (int) Math.floor( in calculateExpectedNEvents()
1530 minMax[0] = Math.max((int) Math.floor(
/cts/tools/cts-media/
Dget_achievable_rates.py156 … p95, med, p5 = perc(data, P, math.floor), perc(data, 50, round), perc(data, 100 - P, math.ceil)
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp193 return 1 + static_cast<int>(std::floor(std::log2(static_cast<float>(std::max(width, height))))); in MipLevelCount()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2938 int minBurstFps = (int) Math.floor(1e9 / frameDuration + 0.05f); in getSuitableFpsRangeForDuration()