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

Commit 301cda90 authored by Siyamed Sinir's avatar Siyamed Sinir
Browse files

Disable hyphen for TextView perf test

Test: atest  CorePerfTests:TextViewSetTextMeasurePerfTest
Bug: 78350836
Change-Id: I83ed7dc29180a010f67e0dc181e1e2e35c25e849
parent 3e2d62bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ public class TextViewSetTextMeasurePerfTest {
        Canvas.freeTextLayoutCaches();
        final CharSequence text = createRandomText(mLength);
        final TextView textView = new TextView(InstrumentationRegistry.getTargetContext());
        textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE);

        textView.setText(text);
        state.resumeTiming();

@@ -119,6 +121,7 @@ public class TextViewSetTextMeasurePerfTest {
        final RenderNode node = RenderNode.create("benchmark", null);
        final CharSequence text = createRandomText(mLength);
        final TextView textView = new TextView(InstrumentationRegistry.getTargetContext());
        textView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE);
        textView.setText(text);
        state.resumeTiming();