diff options
author | Siyamed Sinir <siyamed@google.com> | 2017-07-25 19:08:42 -0700 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2017-07-25 19:09:53 -0700 |
commit | af39851b2a03fbd18314169cfb83afe65d8845fe (patch) | |
tree | a58a4f60bf28befd730151ab07e27a72a8d0a34b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 62944851e279c27cb065fc242479d0d091f4566f (diff) |
Fix StaticLayout.mDirections array size
mLineDirections variable needs to keep a Directions object for each line
of text. Therefore at any time array of line count is required. However
currently mLineDirections is initialized and grown in the size of mLines
array, which makes the size around mColumns*line count.
This CL removes that extra allocation.
Test: Manual test to check if device boots and displays
Test: bit -t CtsTextTestCases:*
Test: bit -t FrameworksCoreTests:android.text.
Test: bit -t FrameworksCoreTests:android.widget.TextViewTest
Test: bit -t FrameworksCoreTests:android.widget.EditorCursorTest
Test: bit -t CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit -t CtsWidgetTestCases:android.widget.cts.EditTextTest
Bug: 64038460
Bug: 62889232
Change-Id: If9bda040b98efcf16c3cdcba5bc27667775ce1fc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions