Home
last modified time | relevance | path

Searched refs:points (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/transition/src/android/transition/cts/
DBaseTransitionTest.java158 final ArrayList<PointF> points = Mockito.spy(new ArrayList<>()); in captureTranslations() local
165 if (points.isEmpty() || !points.get(points.size() - 1).equals(x, y)) { in captureTranslations()
166 points.add(new PointF(x, y)); in captureTranslations()
168 if (points.size() > 3 && x == 0f && y == 0f) { in captureTranslations()
178 verify(points, timeout(1000).times(1)).add(any()); in captureTranslations()
179 return points; in captureTranslations()
DChangeBoundsTest.java213 final List<RedAndGreen> points = Mockito.spy(new ArrayList<>()); in startTransitionAndWatch() local
217 points.add(new RedAndGreen(mActivity)); in startTransitionAndWatch()
220 return points; in startTransitionAndWatch()
223 private void waitForSizeIsMiddle(List<RedAndGreen> points) throws Throwable { in waitForSizeIsMiddle() argument
228 Mockito.verify(points, within(3000)).add(argThat(redAndGreen -> in waitForSizeIsMiddle()
236 private void waitForClipIsMiddle(List<RedAndGreen> points) throws Throwable { in waitForClipIsMiddle() argument
241 Mockito.verify(points, within(3000)).add(argThat(redAndGreen -> in waitForClipIsMiddle()
251 private boolean isRestartingAnimation(List<RedAndGreen> points, int startLayoutId) { in isRestartingAnimation() argument
256 RedAndGreen start = points.get(0); in isRestartingAnimation()
273 private boolean isRestartingClip(List<RedAndGreen> points, int startLayoutId) { in isRestartingClip() argument
[all …]
DSlideEdgeTest.java192 private void verifyMovement(List<PointF> points, int slideEdge, boolean in) { in verifyMovement() argument
193 int numPoints = points.size(); in verifyMovement()
197 PointF firstPoint = points.get(1); in verifyMovement()
199 PointF midPoint = points.get(numPoints / 2); in verifyMovement()
202 PointF lastPoint = points.get(numPoints - 2); in verifyMovement()
DExplodeTest.java154 private void verifyMovement(List<PointF> points, boolean moveRight, boolean moveDown, in verifyMovement() argument
156 int numPoints = points.size(); in verifyMovement()
160 PointF firstPoint = points.get(1); in verifyMovement()
163 PointF lastPoint = points.get(numPoints - 2); in verifyMovement()
/cts/tests/tests/gesture/src/android/gesture/cts/
DLineGestureStrokeHelper.java89 GestureStroke createGestureStroke(GesturePoint... points) { in createGestureStroke() argument
90 ArrayList<GesturePoint> list = new ArrayList<GesturePoint>(points.length); in createGestureStroke()
91 for (GesturePoint point : points) { in createGestureStroke()
DGestureComparator.java56 Assert.assertTrue(Arrays.equals(expectedStroke.points, observedStroke.points)); in assertGestureStrokesEqual()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyUnprocessedActivity.java487 int points = results.mValuesLog.length; in processSpectrum() local
490 for (int i = 0; i < points; i++) { in processSpectrum()
522 for (int i = 0; i < points; i++) { in processSpectrum()
542 int points = mFreqAverageNoise.getSize(); in computeResults() local
545 if (points < 1) { in computeResults()
549 double[] tone = new double[points]; in computeResults()
550 double[] noise = new double[points]; in computeResults()
551 double[] reference = new double[points]; in computeResults()
552 double[] background = new double[points]; in computeResults()
560 double[] toneDb = new double[points]; in computeResults()
[all …]
DAudioFrequencySpeakerActivity.java424 int points = freqAverage.getSize(); in computeResultsForVector() local
425 if (points > 0) { in computeResultsForVector()
427 double[] values = new double[points]; in computeResultsForVector()
429 results.mValuesLog = new double[points]; in computeResultsForVector()
430 for (int i = 0; i < points; i++) { in computeResultsForVector()
435 for (int i = 0; i < points; i++) { in computeResultsForVector()
463 for (int i = 0; i < points; i++) { in computeResultsForVector()
DAudioFrequencyLineActivity.java398 int points = freqAverage.getSize(); in computeResultsForVector() local
399 if (points > 0) { in computeResultsForVector()
401 double[] values = new double[points]; in computeResultsForVector()
403 results.mValuesLog = new double[points]; in computeResultsForVector()
404 for (int i = 0; i < points; i++) { in computeResultsForVector()
409 for (int i = 0; i < points; i++) { in computeResultsForVector()
437 for (int i = 0; i < points; i++) { in computeResultsForVector()
DAudioFrequencyMicActivity.java624 int points = freqAverage.getSize(); in computeResultsForVector() local
625 if (points > 0) { in computeResultsForVector()
627 double[] values = new double[points]; in computeResultsForVector()
629 results.mValuesLog = new double[points]; in computeResultsForVector()
630 for (int i = 0; i < points; i++) { in computeResultsForVector()
635 for (int i = 0; i < points; i++) { in computeResultsForVector()
663 for (int i = 0; i < points; i++) { in computeResultsForVector()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java33 public SamplePointWideGamutVerifier(Point[] points, Color[] colors, float eps) { in SamplePointWideGamutVerifier() argument
34 mPoints = points; in SamplePointWideGamutVerifier()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaPerfUtils.java122 final double[] points = { in logPerformanceStats() local
133 final double[] percentiles = statsUs.getPercentiles(points); in logPerformanceStats()
143 return 1e6 / percentiles[points.length - 2]; in logPerformanceStats()
DMediaUtils.java893 public double[] getPercentiles(double... points) { in getPercentiles() argument
895 double[] res = new double[points.length]; in getPercentiles()
896 for (int i = 0; i < points.length; ++i) { in getPercentiles()
897 if (mNum < 1 || points[i] < 0 || points[i] > 100) { in getPercentiles()
900 res[i] = mSortedData[(int)Math.round(points[i] / 100 * (mNum - 1))]; in getPercentiles()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaPerfUtils.java122 final double[] points = { in logPerformanceStats() local
133 final double[] percentiles = statsUs.getPercentiles(points); in logPerformanceStats()
143 return 1e6 / percentiles[points.length - 2]; in logPerformanceStats()
DMediaUtils.java906 public double[] getPercentiles(double... points) { in getPercentiles() argument
908 double[] res = new double[points.length]; in getPercentiles()
909 for (int i = 0; i < points.length; ++i) { in getPercentiles()
910 if (mNum < 1 || points[i] < 0 || points[i] > 100) { in getPercentiles()
913 res[i] = mSortedData[(int)Math.round(points[i] / 100 * (mNum - 1))]; in getPercentiles()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java88 private BitmapVerifier getVerifier(Point[] points, Color[] colors, float eps) { in getVerifier() argument
90 return new SamplePointWideGamutVerifier(points, colors, eps); in getVerifier()
92 return new SamplePointVerifier(points, in getVerifier()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecListTest.java725 List<VideoCapabilities.PerformancePoint> points) { in verifyPerformancePoints() argument
763 for (VideoCapabilities.PerformancePoint pp : points) { in verifyPerformancePoints()
766 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints()
784 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints()
798 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints()
DVolumeShaperTest.java331 private static void testBuildRamp(int points) { in testBuildRamp() argument
332 float[] ramp = new float[points]; in testBuildRamp()
333 final float fscale = 1.f / (points - 1); in testBuildRamp()
334 for (int i = 0; i < points; ++i) { in testBuildRamp()
337 ramp[points - 1] = 1.f; in testBuildRamp()
/cts/tools/cts-media/
Dget_achievable_rates.py279points = ('avg', 'min', 'p5', 'p10', 'p20', 'p30', 'p40', 'p50', 'p60', 'p70', 'p80', 'p90', 'p95'…
297 tuple(rateFn(a.get(prefix + i)) for i in points))
/cts/apps/CameraITS/tests/rolling_shutter_skew/
Dtest_rolling_shutter_skew.py566 points = np.array([[x, y], [x + w, y], [x + w, y + h], [x, y + h]],
568 cv2.polylines(scratch_frame, [points], True, (255, 0, 0), thickness=2)