261118009def6217cdd70e3b3e76ef4648a223f5 |
|
22-Aug-2017 |
Siyamed Sinir <siyamed@google.com> |
StaticLayout capped height should be 0 when maxLines=0 Previously we added mMaxLineHeight to track the line height at the maxLines value. However when maxLines is set to zero, mMaxLineHeight is not calculated and remains 0. When maxLines is set to zero, the capped height of the layout should be 0. Test: Added a test case to coretests/StaticLayoutTest Test: bit FrameworksCoreTests:android.text.StaticLayoutTest Test: bit FrameworksCoreTests:android.text.DynamicLayoutTest Test: bit FrameworksCoreTests:android.text.StaticLayoutLineBreakingTest Test: bit FrameworksCoreTests:android.text.StaticLayoutBidiTest Test: bit FrameworksCoreTests:android.text.StaticLayoutTextMeasuringTest Test: bit FrameworksCoreTests:android.text.StaticLayoutDirectionsTest Test: bit CtsTextTestCases:android.text.cts.StaticLayoutTest Test: bit CtsTextTestCases:android.text.cts.DynamicLayoutTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Bug: 64822158 Change-Id: Id9240ee7b893f8af9cd0d91329617c24da80c7d2 Merged-In: a8d982d6c850c8b3822d9ad01f8579c003da45db (cherry picked from commit a8d982d6c850c8b3822d9ad01f8579c003da45db)
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
ef7cfa17e78d05b8d931d839d25261c459a0fc90 |
|
15-Jun-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Pass all locale information down to Minikin Previously, locale lists and LocaleSpans were ignored in deciding line breaking and hyphenation in layouts. Now, we pass both changing locale information and the whole locale list to Minikin. Fixes: 21571721 Bug: 25122192 Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: Ia93b0b7cbe54de65bb0ec4937e65cc7993559a6f
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
02f167c35ad81fce82c0ebc14a15892fb6981866 |
|
06-Jun-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Move tests with private APIs to coretests Tests have been moved from CTS tests, with some small modifications. Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Bug: 37780152 Change-Id: I87ce084276db0f1157260bbeb0c9009c5227bfcf
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
e1a7d0d7f7d02edf4e68cd9d3e90154f844bacf9 |
|
24-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
Move text coretests to JUnit (1) * moved android.text package core tests to AndroidJUnit * replaced manual mocks with mockito * removed redundant "throws Exception" in all touched files Bug: 31223263 Test: adb shell am instrument -w -e package android.text\ com.android.frameworks.coretests/android.support.test.runner\ .AndroidJUnitRunner Change-Id: I6ae08df24064720635c4acc0d9085a539a317ac0
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
68089c81068cc93d3fd42e2f768fc3a2a0d08f3c |
|
30-Jun-2016 |
Siyamed Sinir <siyamed@google.com> |
Enable Text core tests Some of the tests were disabled because of the access permissions. This CL: * Removes @Suppress annotations * Annotates the test classes with related annotations such as @SmallTest * Removes unused imports * Replaces android.test.sitebuilder.annotation.SmallTest annotations with android.support.test.filters.SmallTest Bug: 29879498 Change-Id: I9e6e326bc6eaf365d7d5c6d1f7edec35e6957302
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
ed09ae1fccfb1c02109a0c1428ddff52daa939d5 |
|
16-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Visibility fixes for text related tests. Some of the text and text layout related tests fail because of the visibility of parameters/functions they use. This CL updates annotations and visibility of related classes. Bug: 29871441 Change-Id: Ia06072815261379ff839c440482d94570ec05a80
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
f4afb095a0073f91c877a79e68b03e7939a9d76d |
|
15-Mar-2016 |
Seigo Nonaka <nona@google.com> |
Add cursor positioning tests for emoji. Bug: 25375561 Change-Id: Id8e467bc13fc69560ea3d238765760e006c8ced5
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
9f7a4442b89cc06cb8cae6992484e7ae795323ab |
|
01-Mar-2010 |
Doug Felt <dougfelt@google.com> |
Enable nested bidi levels in a paragraph. Changes the internal representation of direction information in the Directions object to be a visually-ordered list of start/length+direction pairs instead of a list of directionality inversion offsets. Rewrite Layout.getOffsetToLeft/RightOf to use run information instead of width metrics. Remove java Bidi, use native. Switch bidi tests to test native, expect levels instead of dirs. Add test of directionality. Leave in switch to turn new code off and restore previous behavior for now. Change-Id: Iea8bb46c678a18820e237c90f76007a084c83051
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
08209a767b7d960f5396df3aa45913b2194c46be |
|
02-Mar-2010 |
Doug Felt <dougfelt@google.com> |
Disable tests that require package-private access to code under test.
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
1065758a0f8966a8597a61492112f7859a7050a4 |
|
22-Feb-2010 |
Doug Felt <dougfelt@google.com> |
Fix rounding of extra spacing when it is negative.
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|
6ad5a7a7c78799ecb306cb97d979bdb98cc52d15 |
|
20-Feb-2010 |
Doug Felt <dougfelt@google.com> |
Add a few simple tests of StaticLayout.
/frameworks/base/core/tests/coretests/src/android/text/StaticLayoutTest.java
|