Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58b2bf57 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Mark test 13 as LargeTest." into sc-dev am: e3ca0e42

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13583050

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2787255f16e0855f63faef063f0ea06aa6a4932b
parents 05329772 e3ca0e42
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@ import android.annotation.NonNull;
import android.util.Pair;
import android.util.Pair;
import android.util.SparseIntArray;
import android.util.SparseIntArray;


import androidx.test.filters.LargeTest;
import androidx.test.filters.MediumTest;
import androidx.test.filters.MediumTest;
import androidx.test.runner.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;


@@ -496,6 +497,7 @@ public class WorkCountTrackerTest {
    }
    }


    @Test
    @Test
    @LargeTest
    public void testRandom13() {
    public void testRandom13() {
        assertThat(EQUAL_PROBABILITY_CDF.length).isEqualTo(NUM_WORK_TYPES);
        assertThat(EQUAL_PROBABILITY_CDF.length).isEqualTo(NUM_WORK_TYPES);


@@ -508,9 +510,9 @@ public class WorkCountTrackerTest {
                Pair.create(WORK_TYPE_BGUSER, 3));
                Pair.create(WORK_TYPE_BGUSER, 3));
        final List<Pair<Integer, Integer>> minLimits =
        final List<Pair<Integer, Integer>> minLimits =
                List.of(Pair.create(WORK_TYPE_EJ, 2), Pair.create(WORK_TYPE_BG, 1));
                List.of(Pair.create(WORK_TYPE_EJ, 2), Pair.create(WORK_TYPE_BG, 1));
        final double probStop = 0.01;
        final double probStop = 0.13;
        final double[] numTypesCdf = buildCdf(0, 0.05, 0.05, 0.9);
        final double[] numTypesCdf = buildCdf(0, 0.05, 0.1, 0.85);
        final double probStart = 0.99;
        final double probStart = 0.87;


        checkRandom(jobs, numTests, totalMax, minLimits, maxLimits, probStart,
        checkRandom(jobs, numTests, totalMax, minLimits, maxLimits, probStart,
                EQUAL_PROBABILITY_CDF, numTypesCdf, probStop);
                EQUAL_PROBABILITY_CDF, numTypesCdf, probStop);