Home
last modified time | relevance | path

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

/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java133 final Layout layout = LAYOUTS[mLayoutIndex++]; in setNextLayout()
336 private static class Layout { class in ThemeDeviceActivity
341 private Layout(int id, String name) { in Layout() method in ThemeDeviceActivity.Layout
345 private Layout(int id, String name, LayoutModifier modifier) { in Layout() method in ThemeDeviceActivity.Layout
353 private static final Layout[] LAYOUTS = {
354 new Layout(R.layout.button, "button"),
355 new Layout(R.layout.button, "button_pressed",
357 new Layout(R.layout.checkbox, "checkbox"),
358 new Layout(R.layout.checkbox, "checkbox_checked",
360 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.java25 import android.text.Layout;
28 import android.text.Layout.Alignment;
43 private static final Layout.Alignment DEFAULT_ALIGN = Layout.Alignment.ALIGN_CENTER;
115 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); in testPreconditions()
118 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mBoringLayout.getParagraphDirection(0)); in testPreconditions()
156 BoringLayout boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_NORMAL); in testAlignment()
160 boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_CENTER); in testAlignment()
166 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()
DStaticLayoutLineBreakingTest.java25 import android.text.Layout.Alignment;
DStaticLayoutTest.java23 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;
66 final Layout layout = tv.getLayout(); in testScrollTo()
DScrollingMovementMethodTest.java24 import android.text.Layout;
689 Layout layout = mTextView.getLayout();
812 Layout layout = mTextView.getLayout();
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java51 import android.text.Layout;
2672 Layout.BREAK_STRATEGY_SIMPLE, Layout.BREAK_STRATEGY_HIGH_QUALITY, in testHyphenationNotHappen_frequencyNone()
2673 Layout.BREAK_STRATEGY_BALANCED }; in testHyphenationNotHappen_frequencyNone()
2685 mTextView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE); in testHyphenationNotHappen_frequencyNone()
2689 Layout layout = mTextView.getLayout(); in testHyphenationNotHappen_frequencyNone()
2706 Layout.HYPHENATION_FREQUENCY_NORMAL, Layout.HYPHENATION_FREQUENCY_FULL, in testHyphenationNotHappen_breakStrategySimple()
2707 Layout.HYPHENATION_FREQUENCY_NONE }; in testHyphenationNotHappen_breakStrategySimple()
2717 mTextView.setBreakStrategy(Layout.BREAK_STRATEGY_SIMPLE); in testHyphenationNotHappen_breakStrategySimple()
2723 Layout layout = mTextView.getLayout(); in testHyphenationNotHappen_breakStrategySimple()
3957 Layout layout = tv.getLayout(); in testTextDirectionFirstStrongLtr()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DGpsTestActivity.java27 import android.text.Layout;