Home
last modified time | relevance | path

Searched refs:ceil (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestCeil.rs24 return ceil(inV);
28 return ceil(inV);
32 return ceil(inV);
36 return ceil(inV);
40 return ceil(inV);
44 return ceil(inV);
48 return ceil(inV);
52 return ceil(inV);
/cts/tests/tests/libcorelegacy22/src/android/util/cts/
DFloatMathTest.java39 assertEquals(79, FloatMath.ceil(78.89f), 0); in testCeil()
40 assertEquals(-78, FloatMath.ceil(-78.89f), 0); in testCeil()
41 assertEquals(8.0f, FloatMath.ceil(7.2f)); in testCeil()
42 assertEquals(-6.0f, FloatMath.ceil(-6.3f)); in testCeil()
/cts/hostsidetests/theme/
Davd.py83 width_px = int(math.ceil(width_dp * density / 1600) * 10)
84 height_px = int(math.ceil(height_dp * density / 1600) * 10)
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java141 public static PointF ceil(PointF p) { in ceil() method in GestureUtils
142 return new PointF((float) Math.ceil(p.x), (float) Math.ceil(p.y)); in ceil()
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java226 public void ceil() { in ceil() method in HalfTest
227 assertShortEquals(POSITIVE_INFINITY, Half.ceil(POSITIVE_INFINITY)); in ceil()
228 assertShortEquals(NEGATIVE_INFINITY, Half.ceil(NEGATIVE_INFINITY)); in ceil()
229 assertShortEquals(POSITIVE_ZERO, Half.ceil(POSITIVE_ZERO)); in ceil()
230 assertShortEquals(NEGATIVE_ZERO, Half.ceil(NEGATIVE_ZERO)); in ceil()
231 assertShortEquals(NaN, Half.ceil(NaN)); in ceil()
232 assertShortEquals(LOWEST_VALUE, Half.ceil(LOWEST_VALUE)); in ceil()
233 assertEquals(1.0f, toFloat(Half.ceil(MIN_NORMAL)), 1e-6f); in ceil()
234 assertEquals(1.0f, toFloat(Half.ceil((short) 0x3ff)), 1e-6f); in ceil()
235 assertEquals(1.0f, toFloat(Half.ceil(toHalf(0.2f))), 1e-6f); in ceil()
[all …]
/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)
159 pub_lo, pub_hi = min(int(p95 * T), round(geo)), max(math.ceil(p5 / T), round(geo))
177 …b_hi_ = min(int(data[N / 2 - i - 1] * T), round(geo), int(med)), max(math.ceil(data[N / 2 + i] / T…
180 pub_lo = min(pub_lo, math.ceil(pub_hi_ / TO))
201 comment = comment.replace('RANGE', '%d - %d' % (math.ceil(pub_lo / T), int(pub_hi * T)))
213 …- measured %d%%:%d-%d med:%d%s -->' % (round(100 - 2 * P), int(p95), math.ceil(p5), int(round(med)…
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCommon.java87 + (1 + index - Math.ceil(index)) * prefixArray[(int) Math.ceil(index)]; in prefix()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DDaveyView.java57 int textHeight = (int) Math.ceil(metric.descent - metric.ascent); in DaveyView()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventGapVerification.java78 Math.ceil(Math.min(EVENT_GAP_THRESHOLD_MAX, mEventCount * EVENT_GAP_TOLERANCE)); in verify()
/cts/tests/pdf/src/android/graphics/pdf/cts/
DUtils.java260 "differ by " + Math.ceil(nonMatching * 10000) / 100 + in renderAndCompare()
263 Log.d(LOG_TAG, "bitmaps differ by " + Math.ceil(nonMatching * 10000) / 100 + "%"); in renderAndCompare()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java632 int yStride = (int)Math.ceil(w / 16.0) * 16; in onPreviewFrame()
633 int uvStride = (int)Math.ceil(yStride / 2 / 16.0) * 16; in onPreviewFrame()
748 int yStride = (int)Math.ceil(w / 16.0) * 16; in convertFromYV12()
749 int uvStride = (int)Math.ceil(yStride/2/16.0) * 16; in convertFromYV12()
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java200 xTile = (int)Math.ceil(xNorm * wFull); in Patch()
201 yTile = (int)Math.ceil(yNorm * hFull); in Patch()
203 wTile = (int)Math.ceil(wNorm * wFull); in Patch()
204 hTile = (int)Math.ceil(hNorm * hFull); in Patch()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java89 final double lineSpacing = Math.ceil(mTextView.getPaint().getFontSpacing()); in testOnGenericMotionEvent_horizontalScroll()
/cts/tests/sensor/src/android/hardware/cts/
DSensorBatchingTests.java56 private static final int BATCHING_PADDING_TIME_S = (int) Math.ceil(BATCHING_PERIOD * 0.1f + 2);
DSensorDirectReportTest.java1258 maxEvents = (int) Math.ceil( in checkSharedMemoryContent()
1448 minMax[1] = (int) Math.ceil( in calculateExpectedNEvents()
1532 minMax[1] = (int) Math.ceil(timeMs * 1000 * 2 / samplingPeriodUs);
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise()
/cts/apps/CameraITS/pymodules/its/
Dimage.py645 xtile = int(math.ceil(xnorm * wfull))
646 ytile = int(math.ceil(ynorm * hfull))
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java20 import static android.accessibilityservice.cts.utils.GestureUtils.ceil;
222 ceil(times(fractionOfSwipe, diff(endPoint, startPoint)))); in testSwipe_shouldContainPointsInALine()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java322 mMax = (int) Math.ceil(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ValidateBoundsListener()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java634 assertEquals((int) Math.ceil(origOutlineRect.left * scale), tempOutlineRect.left); in verifyOutlinePreloadDensityInner()
635 assertEquals((int) Math.ceil(origOutlineRect.top * scale), tempOutlineRect.top); in verifyOutlinePreloadDensityInner()
/cts/tests/tests/widget/src/android/widget/cts/
DLinearLayoutTest.java208 assertEquals(Math.ceil(parentWidth * 0.2), weight02.getWidth(), 1.0); in testAccessWeightSum()
209 assertEquals(Math.ceil(parentWidth * 0.5), weight05.getWidth(), 1.0); in testAccessWeightSum()
210 assertEquals(Math.ceil(parentWidth * 0.3), weight03.getWidth(), 1.0); in testAccessWeightSum()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dreduce.rs423 *accum += ((((c + (long)ceil(log(f))) + i3.x) + i3.y) + i3.z);
DCoreMathVerifier.java65 static native float ceil(float x); in ceil() method in CoreMathVerifier
1234 Math.ceil(in.mid()), in computeCeil()
1235 Math.ceil(in.min()), in computeCeil()
1236 Math.ceil(in.max())); in computeCeil()
1243 ceil(in.mid32()), in computeCeil()
1244 ceil(in.min32()), in computeCeil()
1245 ceil(in.max32())); in computeCeil()
DReduceTest.java609 …sum += ((((input1[i] + (long)Math.ceil(Math.log(input2[i]))) + input3[3*i + 0]) + input3[3*i + 1])… in sillySum()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecCapabilitiesTest.java757 if (actualMax < (int)(max * 0.9) || actualMax > (int) Math.ceil(max * 1.1)) { in testGetMaxSupportedInstances()

12