diff options
author | Siyamed Sinir <siyamed@google.com> | 2018-07-22 12:52:15 -0700 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2018-07-22 12:52:15 -0700 |
commit | 301cda906f1f95f530ada91592e71bdc0cecbfe6 (patch) | |
tree | f023f2a8546e120a68db494aa3c2ef30495e7ec0 /apct-tests | |
parent | 3e2d62bd86e91f3dc62a8c323b84c4b90bf1d79e (diff) |
Disable hyphen for TextView perf test
Test: atest CorePerfTests:TextViewSetTextMeasurePerfTest
Bug: 78350836
Change-Id: I83ed7dc29180a010f67e0dc181e1e2e35c25e849
Diffstat (limited to 'apct-tests')
-rw-r--r-- | apct-tests/perftests/core/src/android/text/TextViewSetTextMeasurePerfTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apct-tests/perftests/core/src/android/text/TextViewSetTextMeasurePerfTest.java b/apct-tests/perftests/core/src/android/text/TextViewSetTextMeasurePerfTest.java index c2898fa05c81..4bbe4049ba35 100644 --- a/apct-tests/perftests/core/src/android/text/TextViewSetTextMeasurePerfTest.java +++ b/apct-tests/perftests/core/src/android/text/TextViewSetTextMeasurePerfTest.java @@ -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(); |