Home
last modified time | relevance | path

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

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestRound.rs24 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/apps/CameraITS/tests/scene2c/
Dtest_num_faces.py70 top_left = (int(round(rect['left']*W/aw)),
71 int(round(rect['top']*H/ah)))
72 bot_rght = (int(round(rect['right']*W/aw)),
73 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2/
Dtest_num_faces.py71 top_left = (int(round(rect['left']*W/aw)),
72 int(round(rect['top']*H/ah)))
73 bot_rght = (int(round(rect['right']*W/aw)),
74 int(round(rect['bottom']*H/ah)))
/cts/apps/CameraITS/tests/scene2b/
Dtest_num_faces.py70 top_left = (int(round(rect['left']*W/aw)),
71 int(round(rect['top']*H/ah)))
72 bot_rght = (int(round(rect['right']*W/aw)),
73 int(round(rect['bottom']*H/ah)))
/cts/common/device-side/util/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/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/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/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.java71 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
84 + Math.round(apiClass.getCoveragePercentage()) in printXmlReport()
158 + 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/tests/tests/util/src/android/util/cts/
DHalfTest.java308 public void round() { in round() method in HalfTest
309 assertShortEquals(POSITIVE_INFINITY, Half.round(POSITIVE_INFINITY)); in round()
310 assertShortEquals(NEGATIVE_INFINITY, Half.round(NEGATIVE_INFINITY)); in round()
311 assertShortEquals(POSITIVE_ZERO, Half.round(POSITIVE_ZERO)); in round()
312 assertShortEquals(NEGATIVE_ZERO, Half.round(NEGATIVE_ZERO)); in round()
313 assertShortEquals(NaN, Half.round(NaN)); in round()
314 assertShortEquals(LOWEST_VALUE, Half.round(LOWEST_VALUE)); in round()
315 assertShortEquals(POSITIVE_ZERO, Half.round(MIN_VALUE)); in round()
316 assertShortEquals(POSITIVE_ZERO, Half.round((short) 0x200)); in round()
317 assertShortEquals(POSITIVE_ZERO, Half.round((short) 0x3ff)); in round()
[all …]
/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()
DGradientDrawableTest.java795 assertEquals(Math.round(origWidth * approxHalf), halfDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
796 assertEquals(Math.round(origHeight * approxHalf), halfDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
829 assertEquals(Math.round(approxDouble * Math.round(origWidth * approxHalf)), in verifyPreloadDensityInner()
831 assertEquals(Math.round(approxDouble * Math.round(origHeight * approxHalf)), in verifyPreloadDensityInner()
/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/util/
DScrollBarUtils.java26 int length = Math.round((float) size * extent / range); in getThumbLength()
/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/tests/net/src/android/net/cts/
DDnsResolverTest.java387 int round = 0; in testRawQueryCancel() local
389 if (++round > CANCEL_RETRY_TIMES) { in testRawQueryCancel()
416 int round = 0; in testRawQueryBlobCancel() local
418 if (++round > CANCEL_RETRY_TIMES) { in testRawQueryBlobCancel()
566 int round = 0; in testQueryCancelForInetAddress() local
568 if (++round > CANCEL_RETRY_TIMES) { in testQueryCancelForInetAddress()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerDrmTestBase.java563 for (int round = 0; round < 2 ; round++) { in playLoadedModularDrmVideo_V4_offlineKey()
564 boolean keyRequestRound = (round == 0); in playLoadedModularDrmVideo_V4_offlineKey()
565 boolean restoreRound = (round == 1); in playLoadedModularDrmVideo_V4_offlineKey()
566 Log.v(TAG, "playLoadedVideo: round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
585 fail("preparePlayer: unexpected round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
/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/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/apps/CameraITS/tools/
Ddng_noise_model.py128 while int(round(s)) <= sens_max_meas:
129 s_int = int(round(s))
144 print 'exp %.3fms' % round(e*1.0E-6, 3)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java138 if (dataStartI > Math.round(sampleRate * (Common.PREFIX_LENGTH_S in measurePipStrength()
224 int fftSize = Util.nextPowerOfTwo((int) Math.round(sampleRate * (Common.PREFIX_LENGTH_S in alignData()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response.rsh79 camera_response->lut_apply_crf_int[i] = round((kLUTLength - 1) * y);
83 camera_response->lut_remove_crf_int[i] = round((kLUTLength - 1) * x);
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java82 return Math.round((float) dp * density); in convertDpToPixel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMotionIndicatorView.java375 int iLow = Math.max(Math.round((low - mLow) / mStep), 0); in isRangeCovered()
376 int iHigh = Math.min(Math.round((high - mLow) / mStep), mCovered.length-1); in isRangeCovered()

123