Home
last modified time | relevance | path

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

123

/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/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/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/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-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-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/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/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/net/src/android/net/cts/
DDnsResolverTest.java426 int round = 0; in testRawQueryCancel() local
428 if (++round > CANCEL_RETRY_TIMES) { in testRawQueryCancel()
455 int round = 0; in testRawQueryBlobCancel() local
457 if (++round > CANCEL_RETRY_TIMES) { in testRawQueryBlobCancel()
613 int round = 0; in testQueryCancelForInetAddress() local
615 if (++round > CANCEL_RETRY_TIMES) { in testQueryCancelForInetAddress()
/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()
DBlendModeTest.java308 return Math.round((alphaSrc * Math.min(alphaDst, colorDst * alphaRatio)) / 255 in computeColorDodge()
407 return Math.round( in computeSoftLight()
413 return Math.round( in computeSoftLight()
420 return (int) Math.round( in computeSoftLight()
/cts/tests/tests/view/src/android/view/cts/util/
DScrollBarUtils.java26 int length = Math.round((float) size * extent / range); in getThumbLength()
/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/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)
Drun_all_tests.py152 fov = str(round(2 * math.degrees(math.atan(diag / (2 * focal_l))), 2))
419 scene_start_time = int(round(time.time() * 1000))
557 scene_end_time = int(round(time.time() * 1000))
/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/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);

123