Home
last modified time | relevance | path

Searched refs:Layout (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java135 final Layout layout = LAYOUTS[mLayoutIndex++]; in setNextLayout()
343 private static class Layout { class in ThemeDeviceActivity
348 private Layout(int id, String name) { in Layout() method in ThemeDeviceActivity.Layout
352 private Layout(int id, String name, LayoutModifier modifier) { in Layout() method in ThemeDeviceActivity.Layout
360 private static final Layout[] LAYOUTS = {
361 new Layout(R.layout.button, "button"),
362 new Layout(R.layout.button, "button_pressed",
364 new Layout(R.layout.checkbox, "checkbox"),
365 new Layout(R.layout.checkbox, "checkbox_checked",
367 new Layout(R.layout.chronometer, "chronometer"),
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLayoutTest.java22 import android.text.Layout;
26 import android.text.Layout.Alignment;
36 private Layout.Alignment mAlign;
67 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText()
76 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint()
86 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth()
95 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 15, in testGetEllipsizedWidth()
104 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testIncreaseWidthTo()
122 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetHeight()
128 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetAlignment()
[all …]
DBoringLayoutTest.java26 import android.text.Layout;
29 import android.text.Layout.Alignment;
44 private static final Layout.Alignment DEFAULT_ALIGN = Layout.Alignment.ALIGN_CENTER;
116 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); in testPreconditions()
119 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); in testPreconditions()
157 BoringLayout boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_NORMAL); in testAlignment()
161 boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_CENTER); in testAlignment()
167 boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_OPPOSITE); in testAlignment()
DDynamicLayoutTest.java22 import android.text.Layout;
34 protected static final Layout.Alignment DEFAULT_ALIGN = Layout.Alignment.ALIGN_CENTER;
171 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mDynamicLayout.getParagraphDirection(LINE0)); in testLineLayout()
DHtmlTest.java26 import android.text.Layout;
222 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER), in testParagraphStyles()
230 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_OPPOSITE), in testParagraphStyles()
239 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_NORMAL), in testParagraphStyles()
387 assertEquals(Layout.Alignment.ALIGN_NORMAL, spans[0].getAlignment()); in testTextAlignCssFromHtml()
391 assertEquals(Layout.Alignment.ALIGN_CENTER, spans[1].getAlignment()); in testTextAlignCssFromHtml()
395 assertEquals(Layout.Alignment.ALIGN_OPPOSITE, spans[2].getAlignment()); in testTextAlignCssFromHtml()
DStaticLayoutTest.java22 import android.text.Layout;
23 import android.text.Layout.Alignment;
1219 .setBreakStrategy(Layout.BREAK_STRATEGY_HIGH_QUALITY) // enable hyphenation
1220 .setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NORMAL)
DStaticLayoutLineBreakingTest.java25 import android.text.Layout.Alignment;
/cts/tests/tests/text/src/android/text/style/cts/
DIconMarginSpanTest.java25 import android.text.Layout;
59 Layout layout = new StaticLayout("cts test.", p, 200, Layout.Alignment.ALIGN_NORMAL, in testDrawLeadingMargin()
DDrawableMarginSpanTest.java27 import android.text.Layout;
66 Layout layout = new StaticLayout("cts test.", paint, 200, in testDrawLeadingMargin()
67 Layout.Alignment.ALIGN_NORMAL, 1, 0, true); in testDrawLeadingMargin()
DAlignmentSpan_StandardTest.java21 import android.text.Layout.Alignment;
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java23 import android.text.Layout;
68 final Layout layout = tv.getLayout(); in testScrollTo()
DScrollingMovementMethodTest.java22 import android.text.Layout;
691 Layout layout = mTextView.getLayout();
815 Layout layout = mTextView.getLayout();
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java52 import android.text.Layout;
3199 Layout.BREAK_STRATEGY_SIMPLE, Layout.BREAK_STRATEGY_HIGH_QUALITY, in testHyphenationNotHappen_frequencyNone()
3200 Layout.BREAK_STRATEGY_BALANCED }; in testHyphenationNotHappen_frequencyNone()
3212 mTextView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE); in testHyphenationNotHappen_frequencyNone()
3216 Layout layout = mTextView.getLayout(); in testHyphenationNotHappen_frequencyNone()
3233 Layout.HYPHENATION_FREQUENCY_NORMAL, Layout.HYPHENATION_FREQUENCY_FULL, in testHyphenationNotHappen_breakStrategySimple()
3234 Layout.HYPHENATION_FREQUENCY_NONE }; in testHyphenationNotHappen_breakStrategySimple()
3244 mTextView.setBreakStrategy(Layout.BREAK_STRATEGY_SIMPLE); in testHyphenationNotHappen_breakStrategySimple()
3250 Layout layout = mTextView.getLayout(); in testHyphenationNotHappen_breakStrategySimple()
4512 Layout layout = tv.getLayout(); in testTextDirectionFirstStrongLtr()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DGpsTestActivity.java27 import android.text.Layout;
/cts/tools/dex-tools/dex/
Dclasses.out.dex75390 …(value =Landroid/text/Layout$Alignment;Landroid/text/Layout$SpannedEllipsizer;Landroid/text/Layout
75391 public abstract class android.text.Layout extends java.lang.Object
75395 static final android.text.Layout$Directions DIRS_ALL_LEFT_TO_RIGHT
75397 static final android.text.Layout$Directions DIRS_ALL_RIGHT_TO_LEFT
75407 private android.text.Layout$Alignment mAlignment
75430 android.text.Layout$Alignment
75435 android.text.Layout
75456 android.text.Layout$Directions
75515 android.text.Layout$Directions
75547 public final android.text.Layout$Alignment getAlignment()
[all …]