/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestCeil.rscript | 24 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/ |
D | FloatMathTest.java | 39 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/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 242 public void ceil() { in ceil() method in HalfTest 243 assertShortEquals(POSITIVE_INFINITY, Half.ceil(POSITIVE_INFINITY)); in ceil() 244 assertShortEquals(NEGATIVE_INFINITY, Half.ceil(NEGATIVE_INFINITY)); in ceil() 245 assertShortEquals(POSITIVE_ZERO, Half.ceil(POSITIVE_ZERO)); in ceil() 246 assertShortEquals(NEGATIVE_ZERO, Half.ceil(NEGATIVE_ZERO)); in ceil() 247 assertShortEquals(NaN, Half.ceil(NaN)); in ceil() 248 assertShortEquals(LOWEST_VALUE, Half.ceil(LOWEST_VALUE)); in ceil() 249 assertEquals(1.0f, toFloat(Half.ceil(MIN_NORMAL)), 1e-6f); in ceil() 250 assertEquals(1.0f, toFloat(Half.ceil((short) 0x3ff)), 1e-6f); in ceil() 251 assertEquals(1.0f, toFloat(Half.ceil(toHalf(0.2f))), 1e-6f); in ceil() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | GestureUtils.java | 141 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/tools/cts-media/ |
D | get_achievable_rates.py | 156 … 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/hostsidetests/theme/ |
D | avd.py | 83 width_px = int(math.ceil(width_dp * density / 1600) * 10) 84 height_px = int(math.ceil(height_dp * density / 1600) * 10)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Common.java | 87 + (1 + index - Math.ceil(index)) * prefixArray[(int) Math.ceil(index)]; in prefix()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutGetLineLeftRightTest.java | 181 expectedRight = (float) Math.ceil(mWidth - mLeadingMargin in testGetLineRight() 184 expectedRight = (float) Math.ceil(mWidth in testGetLineRight()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | PerformanceTestResult.java | 82 return mSamples[(int) Math.ceil(mSampleCount * v) - 1]; in getPercentile()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | DaveyView.java | 57 int textHeight = (int) Math.ceil(metric.descent - metric.ascent); in DaveyView()
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | Utils.java | 260 "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/ |
D | CameraFormatsActivity.java | 700 int yStride = (int)Math.ceil(w / 16.0) * 16; in onPreviewFrame() 701 int uvStride = (int)Math.ceil(yStride / 2 / 16.0) * 16; in onPreviewFrame() 816 int yStride = (int)Math.ceil(w / 16.0) * 16; in convertFromYV12() 817 int uvStride = (int)Math.ceil(yStride/2/16.0) * 16; in convertFromYV12()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | AllocationTest.java | 198 xTile = (int)Math.ceil(xNorm * wFull); in Patch() 199 yTile = (int)Math.ceil(yNorm * hFull); in Patch() 201 wTile = (int)Math.ceil(wNorm * wFull); in Patch() 202 hTile = (int)Math.ceil(hNorm * hFull); in Patch()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventGapVerification.java | 78 Math.ceil(Math.min(EVENT_GAP_THRESHOLD_MAX, mEventCount * EVENT_GAP_TOLERANCE)); in verify()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseMovementMethodTest.java | 90 final double lineSpacing = Math.ceil(mTextView.getPaint().getFontSpacing()); in testOnGenericMotionEvent_horizontalScroll()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 350 Rect texturePos = new Rect((int) Math.ceil(texturePosF.left), in testSamplingWithTransform() 351 (int) Math.ceil(texturePosF.top), (int) Math.floor(texturePosF.right), in testSamplingWithTransform()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorBatchingTests.java | 56 private static final int BATCHING_PADDING_TIME_S = (int) Math.ceil(BATCHING_PERIOD * 0.1f + 2);
|
D | SensorDirectReportTest.java | 1258 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/graphics/src/android/graphics/drawable/cts/ |
D | NinePatchDrawableTest.java | 646 assertEquals((int) Math.ceil(origOutlineRect.left * scale), tempOutlineRect.left); in verifyOutlinePreloadDensityInner() 647 assertEquals((int) Math.ceil(origOutlineRect.top * scale), tempOutlineRect.top); in verifyOutlinePreloadDensityInner()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGestureDispatchTest.java | 21 import static android.accessibilityservice.cts.utils.GestureUtils.ceil; 229 ceil(times(fractionOfSwipe, diff(endPoint, startPoint)))); in testSwipe_shouldContainPointsInALine()
|
/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 663 xtile = int(math.ceil(xnorm * wfull)) 664 ytile = int(math.ceil(ynorm * hfull))
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayoutTest.java | 209 assertEquals(Math.ceil(parentWidth * 0.2), weight02.getWidth(), 1.0); in testAccessWeightSum() 210 assertEquals(Math.ceil(parentWidth * 0.5), weight05.getWidth(), 1.0); in testAccessWeightSum() 211 assertEquals(Math.ceil(parentWidth * 0.3), weight03.getWidth(), 1.0); in testAccessWeightSum()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 375 mMax = (int) Math.ceil(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, in ValidateBoundsListener()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | CoreMathVerifier.java | 65 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()
|