Loading apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java +7 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.graphics.Typeface; import android.text.Layout; import android.text.style.TextAppearanceSpan; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; Loading @@ -52,7 +53,7 @@ public class StaticLayoutPerfTest { private static final boolean NO_STYLE_TEXT = false; private static final boolean STYLE_TEXT = true; private final Random mRandom = new Random(31415926535L); private Random mRandom; private static final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; private static final int ALPHABET_LENGTH = ALPHABET.length(); Loading Loading @@ -98,6 +99,11 @@ public class StaticLayoutPerfTest { return ssb; } @Before public void setUp() { mRandom = new Random(0); } @Test public void testCreate_FixedText_NoStyle_Greedy_NoHyphenation() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); Loading Loading
apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java +7 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.graphics.Typeface; import android.text.Layout; import android.text.style.TextAppearanceSpan; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; Loading @@ -52,7 +53,7 @@ public class StaticLayoutPerfTest { private static final boolean NO_STYLE_TEXT = false; private static final boolean STYLE_TEXT = true; private final Random mRandom = new Random(31415926535L); private Random mRandom; private static final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; private static final int ALPHABET_LENGTH = ALPHABET.length(); Loading Loading @@ -98,6 +99,11 @@ public class StaticLayoutPerfTest { return ssb; } @Before public void setUp() { mRandom = new Random(0); } @Test public void testCreate_FixedText_NoStyle_Greedy_NoHyphenation() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); Loading