/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowStaticLayoutTest.java | 4 import android.text.StaticLayout; 15 new StaticLayout("Hello!", new TextPaint(), 100, Layout.Alignment.ALIGN_LEFT, 1.2f, 1.0f, true);
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
StaticLayoutGetOffsetForHorizontalPerfTest.java | 63 StaticLayout layout = 64 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); 78 StaticLayout layout = 79 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); 93 StaticLayout layout = 94 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build();
|
StaticLayoutPerfTest.java | 73 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 88 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 103 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 118 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 133 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 148 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 165 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 183 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 201 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 218 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH [all...] |
StaticLayoutMultithreadPerfTest.java | 70 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) 111 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH)
|
StaticLayoutCreateDrawPerfTest.java | 40 * Performance test for multi line, single style {@link StaticLayout} creation/draw. 85 * Measures the creation time for a multi line {@link StaticLayout}. 107 * Measures the draw time for a multi line {@link StaticLayout}. 138 return StaticLayout.Builder.obtain(text, 0 /*start*/, text.length() /*end*/, mTextPaint,
|
/cts/tests/tests/text/src/android/text/cts/ |
StaticLayoutTest.java | 44 import android.text.StaticLayout; 102 private StaticLayout mDefaultLayout; 115 private StaticLayout createDefaultStaticLayout() { 116 return new StaticLayout(LAYOUT_TEXT, mDefaultPaint, 120 private StaticLayout createEllipsizeStaticLayout() { 121 return new StaticLayout(LAYOUT_TEXT, 0, LAYOUT_TEXT.length(), mDefaultPaint, 126 private StaticLayout createEllipsizeStaticLayout(CharSequence text, 128 return new StaticLayout(text, 0, text.length(), 140 new StaticLayout(LAYOUT_TEXT, mDefaultPaint, DEFAULT_OUTER_WIDTH, 143 new StaticLayout(LAYOUT_TEXT, 0, LAYOUT_TEXT.length(), mDefaultPaint [all...] |
StaticLayoutLineBreakingVariantsTest.java | 24 import android.text.StaticLayout; 50 private static StaticLayout buildLayout(String text, LocaleList locales, int width) { 51 return StaticLayout.Builder.obtain( 56 final StaticLayout layout = buildLayout(text, LocaleList.forLanguageTags(locale), width);
|
SelectionTest.java | 29 import android.text.StaticLayout; 187 StaticLayout layout = new StaticLayout(text, new TextPaint(), 50, null, 0, 0, false); 215 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); 247 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); 287 StaticLayout layout = new StaticLayout(builder, new TextPaint(), 200, 298 layout = new StaticLayout(builder, new TextPaint(), 200, Layout.Alignment.ALIGN_NORMAL [all...] |
StaticLayoutLineBreakingTest.java | 27 import android.text.StaticLayout; 79 private static StaticLayout getStaticLayout(CharSequence source, int width, 81 return StaticLayout.Builder.obtain(source, 0, source.length(), sTextPaint, width) 94 final StaticLayout staticLayout = getStaticLayout(source, width, breakStrategy); 96 final int[] breaks = new int[staticLayout.getLineCount() - 1]; 98 breaks[line] = staticLayout.getLineEnd(line); 103 private static void debugLayout(CharSequence source, StaticLayout staticLayout) { 105 int count = staticLayout.getLineCount() [all...] |
StaticLayoutGetLineLeftRightTest.java | 25 import android.text.StaticLayout; 114 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mPaint, mWidth)
|
DynamicLayoutTest.java | 33 import android.text.StaticLayout; 219 // create a StaticLayout with same text, this will define the expectations 253 // create a StaticLayout with same text, this will define the expectations 261 return StaticLayout.Builder.obtain(text, 0, 313 // create a StaticLayout with same text, this will define the expectations
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowStaticLayout.java | 9 import android.text.StaticLayout; 14 @Implements(value = StaticLayout.class, looseSignatures = true)
|
/cts/tests/tests/text/src/android/text/style/cts/ |
StrikethroughSpanTest.java | 26 import android.text.StaticLayout; 102 final StaticLayout layout = StaticLayout.Builder.obtain(
|
UnderlineSpanTest.java | 26 import android.text.StaticLayout; 99 final StaticLayout layout = StaticLayout.Builder.obtain(
|
IconMarginSpanTest.java | 28 import android.text.StaticLayout; 71 Layout layout = new StaticLayout("cts test.", p, 200, Layout.Alignment.ALIGN_NORMAL,
|
DrawableMarginSpanTest.java | 29 import android.text.StaticLayout; 86 Layout layout = new StaticLayout("cts test.", paint, 200,
|
SuggestionSpanTest.java | 31 import android.text.StaticLayout; 219 final StaticLayout layout = StaticLayout.Builder.obtain(
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
CustomViewAccessibilityActivity.java | 26 import android.text.StaticLayout; 265 return new StaticLayout(text, mTextPaint,
|