/cts/tests/tests/transition/src/android/transition/cts/ |
D | BaseTransitionTest.java | 158 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()
|
D | ChangeBoundsTest.java | 213 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 …]
|
D | SlideEdgeTest.java | 192 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()
|
D | ExplodeTest.java | 154 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/ |
D | LineGestureStrokeHelper.java | 89 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()
|
D | GestureComparator.java | 56 Assert.assertTrue(Arrays.equals(expectedStroke.points, observedStroke.points)); in assertGestureStrokesEqual()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencyVoiceRecognitionActivity.java | 504 int points = results.mValuesLog.length; in processSpectrum() local 507 for (int i = 0; i < points; i++) { in processSpectrum() 537 for (int i = 0; i < points; i++) { in processSpectrum() 557 int points = mFreqAverageNoise.getSize(); 560 if (points < 1) { 564 double[] tone = new double[points]; 565 double[] noise = new double[points]; 566 double[] reference = new double[points]; 567 double[] background = new double[points]; 575 double[] toneDb = new double[points]; [all …]
|
D | AudioFrequencyUnprocessedActivity.java | 487 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 …]
|
D | AudioFrequencySpeakerActivity.java | 424 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()
|
D | AudioFrequencyLineActivity.java | 398 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()
|
D | AudioFrequencyMicActivity.java | 624 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/ |
D | SamplePointWideGamutVerifier.java | 33 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/ |
D | MediaPerfUtils.java | 122 final double[] points = { in logPerformanceStats() local 133 final double[] percentiles = statsUs.getPercentiles(points); in logPerformanceStats() 143 return 1e6 / percentiles[points.length - 2]; in logPerformanceStats()
|
D | MediaUtils.java | 893 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/ |
D | MediaPerfUtils.java | 122 final double[] points = { in logPerformanceStats() local 133 final double[] percentiles = statsUs.getPercentiles(points); in logPerformanceStats() 143 return 1e6 / percentiles[points.length - 2]; in logPerformanceStats()
|
D | MediaUtils.java | 1000 public double[] getPercentiles(double... points) { in getPercentiles() argument 1002 double[] res = new double[points.length]; in getPercentiles() 1003 for (int i = 0; i < points.length; ++i) { in getPercentiles() 1004 if (mNum < 1 || points[i] < 0 || points[i] > 100) { in getPercentiles() 1007 res[i] = mSortedData[(int)Math.round(points[i] / 100 * (mNum - 1))]; in getPercentiles()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | WideColorGamutTests.java | 88 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/ |
D | MediaCodecListTest.java | 734 List<VideoCapabilities.PerformancePoint> points) { in verifyPerformancePoints() argument 772 for (VideoCapabilities.PerformancePoint pp : points) { in verifyPerformancePoints() 775 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints() 793 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints() 807 for (VideoCapabilities.PerformancePoint pp2 : points) { in verifyPerformancePoints()
|
D | VolumeShaperTest.java | 331 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/ |
D | get_achievable_rates.py | 279 …points = ('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/ |
D | test_rolling_shutter_skew.py | 566 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)
|