Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 90) 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/apicommon/
DCoverageComparator.java25 int lhsPct = Math.round(entity.getCoveragePercentage()); in compare()
26 int rhsPct = Math.round(otherEntity.getCoveragePercentage()); in compare()
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java362 public void round() { in round() method in HalfTest
363 assertShortEquals(POSITIVE_INFINITY, Half.round(POSITIVE_INFINITY)); in round()
364 assertShortEquals(NEGATIVE_INFINITY, Half.round(NEGATIVE_INFINITY)); in round()
365 assertShortEquals(POSITIVE_ZERO, Half.round(POSITIVE_ZERO)); in round()
366 assertShortEquals(NEGATIVE_ZERO, Half.round(NEGATIVE_ZERO)); in round()
367 assertShortEquals(NaN, Half.round(NaN)); in round()
368 assertShortEquals(LOWEST_VALUE, Half.round(LOWEST_VALUE)); in round()
369 assertShortEquals(POSITIVE_ZERO, Half.round(MIN_VALUE)); in round()
370 assertShortEquals(POSITIVE_ZERO, Half.round((short) 0x200)); in round()
371 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 …ub_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.java57 DeviceReportLog log, String message, int round, String codecName, in addPerformanceHeadersToLog() argument
63 log.addValue("round", round, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog()
75 message += " codec=" + codecName + " round=" + round + " configFormat=" + configFormat in addPerformanceHeadersToLog()
129 long avg = Math.round(statsUs.getAverage()); in logPerformanceStats()
130 long stdev = Math.round(statsUs.getStdev()); in logPerformanceStats()
137 long p = Math.round(percentiles[i]); in logPerformanceStats()
DCtsMouseUtil.java134 && Math.round(actual.getX()) == mX in matches()
135 && Math.round(actual.getY()) == mY; in matches()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DTransformVideoAspectRatio.java183 .setWidth(Math.round(requestedWidth)) in createEncFormat()
184 .setHeight(Math.round(requestedHeight)) in createEncFormat()
217 Math.round(height * requestedAspectRatio)); in transcodeTest()
222 Math.round(width / requestedAspectRatio)); in transcodeTest()
233 Math.round(height * requestedAspectRatio)); in transcodeTest()
235 assertThat(muxedOutputFormat.width).isEqualTo(Math.round(width / requestedAspectRatio)); in transcodeTest()
/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/tests/sensor/src/android/hardware/cts/accessories/
DVirtualHeadTracker.java80 int hidValue = (int) Math.round(orient / Math.PI * Short.MAX_VALUE); in orientationFloatToStr()
94 int hidValue = Math.round(angle / 32 * Short.MAX_VALUE); in angularVelocityFloatToStr()
/cts/tests/tests/view/src/android/view/cts/util/
DScrollBarUtils.java26 int length = Math.round((float) size * extent / range); in getThumbLength()
/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/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DXmlReport.java79 + Math.round(pkg.getCoveragePercentage()) in printXmlReport()
92 + Math.round(apiClass.getCoveragePercentage()) in printXmlReport()
168 + Math.round((float)totalCoveredMethods / totalMethods * 100.0f) + "\" />"); in printXmlReport()
DTextReport.java84 + Math.round(apiPackage.getCoveragePercentage()) + "% (" in printPackage()
90 + Math.round(apiClass.getCoveragePercentage()) + "% (" in printClass()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java350 int adjustedHorizontalInsets = Math.round(sizeDifference.x / aspectRatio); in calculateScaledMirroredActivitySize()
351 int adjustedVerticalInsets = Math.round(sizeDifference.y / aspectRatio); in calculateScaledMirroredActivitySize()
353 mirroredHeight = Math.round(surfaceSize.x / aspectRatio) - adjustedVerticalInsets; in calculateScaledMirroredActivitySize()
360 int adjustedHorizontalInsets = Math.round(sizeDifference.x * aspectRatio); in calculateScaledMirroredActivitySize()
361 int adjustedVerticalInsets = Math.round(sizeDifference.y * aspectRatio); in calculateScaledMirroredActivitySize()
362 mirroredWidth = Math.round(surfaceSize.y * aspectRatio) - adjustedHorizontalInsets; in calculateScaledMirroredActivitySize()
/cts/apps/CameraITS/utils/
Dnoise_model_utils.py348 if round(iso) < max_iso < round(iso * iso_multiplier):
451 if round(iso) <= sens_max_meas:
474 while round(iso) <= sens_max_meas:
476 round(iso), min_exposure_ns, f_dist
499 exposure_ns = round(math.pow(2, bracket) * auto_exposure_ns / iso)
500 exposure_ms = round(exposure_ns * 1.0e-6, 3)
Dzoom_capture_utils.py200 circlish = round((math.pi * radius**2) / area, 4)
246 center_i = (int(round(circle[0], 0)), int(round(circle[1], 0)))
247 radius_i = int(round(circle[2], 0))
Dopencv_processing_utils.py853 left = int(round((rect['left'] - crop['left']) * w / cw))
854 right = int(round((rect['right'] - crop['left']) * w / cw))
855 top = int(round((rect['top'] - crop['top']) * h / ch))
856 bottom = int(round((rect['bottom'] - crop['top']) * h / ch))
1073 rect_w = round((bottom_right[0] - top_left[0])/NUM_AE_AWB_REGIONS)
1141 rect_w = round((br_normalized_x - tl_normalized_x) / NUM_AE_AWB_REGIONS, 2)
1142 rect_h = round(br_normalized_y - tl_normalized_y, 2)
1144 x = round(tl_normalized_x + (rect_w * i), 2)
1145 y = round(tl_normalized_y, 2)
Dcapture_read_noise_utils.py333 if round(iso) <= high_iso:
342 while round(iso) <= high_iso:
344 round(iso), min_exposure_ns
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DChoreographerNativeTest.java254 assertEquals(Math.round(mDefaultDisplay.getRefreshRate()), refreshRate); in checkRefreshRateIsCurrentAndSwitch()
271 int refreshRate = Math.round(mDefaultDisplay.getRefreshRate()); in findModeForSeamlessSwitch()
274 .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/apps/CameraITS/tests/scene7/
Dtest_multi_camera_switch.py340 x = int(round(size_x / num_columns * (num_columns // 2), 0))
341 y = int(round(size_y / num_rows * (num_rows // 2), 0))
342 w = int(round(size_x / num_columns, 0))
343 h = int(round(size_y / num_rows, 0))
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaPlayerDrmTestBase.java576 for (int round = 0; round < 2 ; round++) { in playLoadedModularDrmVideo_V4_offlineKey()
577 boolean keyRequestRound = (round == 0); in playLoadedModularDrmVideo_V4_offlineKey()
578 boolean restoreRound = (round == 1); in playLoadedModularDrmVideo_V4_offlineKey()
579 Log.v(TAG, "playLoadedVideo: round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
598 fail("preparePlayer: unexpected round " + round); in playLoadedModularDrmVideo_V4_offlineKey()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DXmlWriter.java198 Math.round(pkg.getCoveragePercentage()))); in createApiPackageElement()
219 Math.round(apiClass.getCoveragePercentage()))); in createApiClassElement()
234 Math.round((float) totalCoveredMethods / totalMethods * 100.0f))); in createApiTotalElement()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java132 int textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent()
135 textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent()

1234