Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 77) sorted by relevance

1234

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestRound.rscript24 return round(inV);
28 return round(inV);
32 return round(inV);
36 return round(inV);
40 return round(inV);
44 return round(inV);
48 return round(inV);
52 return round(inV);
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java55 (int) constrain((int) Math.round(r * 255), 0, 255), in xyzToColor()
56 (int) constrain((int) Math.round(g * 255), 0, 255), in xyzToColor()
57 (int) constrain((int) Math.round(b * 255), 0, 255)); in xyzToColor()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DHasCoverage.java29 int lhsPct = Math.round(entity.getCoveragePercentage()); in compare()
30 int rhsPct = Math.round(otherEntity.getCoveragePercentage()); in compare()
DXmlReport.java72 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
85 + Math.round(apiClass.getCoveragePercentage()) in printXmlReport()
161 + Math.round((float)totalCoveredMethods / totalMethods * 100.0f) + "\" />"); in printXmlReport()
DTextReport.java77 + Math.round(apiPackage.getCoveragePercentage()) + "% (" in printPackage()
83 + Math.round(apiClass.getCoveragePercentage()) + "% (" in printClass()
/cts/apps/CameraITS/tests/scene2_c/
Dtest_num_faces.py49 top_left = (int(round(rect['left']*W/aw)),
50 int(round(rect['top']*H/ah)))
51 bot_rght = (int(round(rect['right']*W/aw)),
52 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2_d/
Dtest_num_faces.py49 top_left = (int(round(rect['left']*W/aw)),
50 int(round(rect['top']*H/ah)))
51 bot_rght = (int(round(rect['right']*W/aw)),
52 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2_e/
Dtest_num_faces.py49 top_left = (int(round(rect['left']*W/aw)),
50 int(round(rect['top']*H/ah)))
51 bot_rght = (int(round(rect['right']*W/aw)),
52 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2_b/
Dtest_num_faces.py49 top_left = (int(round(rect['left']*W/aw)),
50 int(round(rect['top']*H/ah)))
51 bot_rght = (int(round(rect['right']*W/aw)),
52 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2_a/
Dtest_num_faces.py49 top_left = (int(round(rect['left']*W/aw)),
50 int(round(rect['top']*H/ah)))
51 bot_rght = (int(round(rect['right']*W/aw)),
52 int(round(rect['bottom']*H/ah)))
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java336 public void round() { in round() method in HalfTest
337 assertShortEquals(POSITIVE_INFINITY, Half.round(POSITIVE_INFINITY)); in round()
338 assertShortEquals(NEGATIVE_INFINITY, Half.round(NEGATIVE_INFINITY)); in round()
339 assertShortEquals(POSITIVE_ZERO, Half.round(POSITIVE_ZERO)); in round()
340 assertShortEquals(NEGATIVE_ZERO, Half.round(NEGATIVE_ZERO)); in round()
341 assertShortEquals(NaN, Half.round(NaN)); in round()
342 assertShortEquals(LOWEST_VALUE, Half.round(LOWEST_VALUE)); in round()
343 assertShortEquals(POSITIVE_ZERO, Half.round(MIN_VALUE)); in round()
344 assertShortEquals(POSITIVE_ZERO, Half.round((short) 0x200)); in round()
345 assertShortEquals(POSITIVE_ZERO, Half.round((short) 0x3ff)); in round()
[all …]
/cts/tools/cts-media/
Dget_achievable_rates.py97 def perc(data, p, fn=round):
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 …pub_hi_ = min(int(data[N / 2 - i - 1] * T), round(geo), int(med)), max(math.ceil(data[N / 2 + i] /…
186 if round(mn, 1) < pub_lo / T:
189 if round(mx, 1) > pub_hi * T:
206 c2 += ' v%d%%=%.1f' % (round(100 - 2 * P), var)
213 … <!-- measured %d%%:%d-%d med:%d%s -->' % (round(100 - 2 * P), int(p95), math.ceil(p5), int(
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaPerfUtils.java55 DeviceReportLog log, String message, int round, String codecName, in addPerformanceHeadersToLog() argument
61 log.addValue("round", round, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog()
73 message += " codec=" + codecName + " round=" + round + " configFormat=" + configFormat in addPerformanceHeadersToLog()
127 long avg = Math.round(statsUs.getAverage()); in logPerformanceStats()
128 long stdev = Math.round(statsUs.getStdev()); in logPerformanceStats()
135 long p = Math.round(percentiles[i]); in logPerformanceStats()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableSizeTest.java72 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicWidth()); in testVectorDrawableSize()
73 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight()); in testVectorDrawableSize()
/cts/apps/CameraITS/tests/scene6/
Dtest_zoom.py168 circlish = round((math.pi * radius**2) / area, 4)
194 center_i = (int(round(circle[0], 0)), int(round(circle[1], 0)))
195 radius_i = int(round(circle[2], 0))
253 NAME), round(z, 2))
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java138 float tx = Math.round((imageViewWidth - imageWidth)/2f); in centerMatrix()
142 float ty = Math.round((imageViewHeight - imageHeight)/2f); in centerMatrix()
176 float tx = Math.round((imageViewWidth - width) / 2f); in centerCropMatrix()
177 float ty = Math.round((imageViewHeight - height) / 2f); in centerCropMatrix()
344 layoutParams.width = Math.round(size); in enterImageViewScene()
345 layoutParams.height = Math.round(size * 2); in enterImageViewScene()
/cts/tests/tests/view/src/android/view/cts/
DChoreographerNativeTest.java222 assertEquals(Math.round(mDefaultDisplay.getRefreshRate()), refreshRate); in checkRefreshRateIsCurrentAndSwitch()
239 int refreshRate = Math.round(mDefaultDisplay.getRefreshRate()); in findModeForSeamlessSwitch()
242 .filter(mode -> Math.round(mode.getRefreshRate()) != refreshRate) in findModeForSeamlessSwitch()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java108 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
109 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java70 final int tapX = x + Math.round(touchSlop / 2.0f); in touchAndCancelOnDisplayCenterSync()
71 final int tapY = y + Math.round(touchSlop / 2.0f); in touchAndCancelOnDisplayCenterSync()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSystemPaletteTest.java115 + " has different hue compared to median hue " + Math.round(medianHue) in testAllColorsBelongToSameFamily()
125 return "H" + Math.round(cam.getHue()) + " C" + Math.round(cam.getChroma()) + " T" in toHctString()
126 + Math.round(labColor[0]); in toHctString()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java121 int textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent()
124 textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerDrmTestBase.java572 for (int round = 0; round < 2 ; round++) { in playLoadedModularDrmVideo_V4_offlineKey()
573 boolean keyRequestRound = (round == 0); in playLoadedModularDrmVideo_V4_offlineKey()
574 boolean restoreRound = (round == 1); in playLoadedModularDrmVideo_V4_offlineKey()
575 Log.v(TAG, "playLoadedVideo: round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
594 fail("preparePlayer: unexpected round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java79 final boolean round = insets.isRound(); in onApplyWindowInsets()
80 if (round != mLastKnownRound) { in onApplyWindowInsets()
81 mLastKnownRound = round; in onApplyWindowInsets()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java82 return Math.round((float) dp * density); in convertDpToPixel()
/cts/tests/tests/security/src/android/security/cts/
DAslrTest.java85 return (int) Math.round(entropy); in calculateEntropyBits()

1234