Home
last modified time | relevance | path

Searched defs:layout (Results 1 – 25 of 260) sorted by relevance

1234567891011

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/
DGlifLayoutTest.java62 GlifLayout layout = new GlifLayout(context); in testDefaultTemplate() local
68 GlifLayout layout = new GlifLayout(context); in testSetHeaderText() local
79 GlifLayout layout = new GlifLayout(context); in testAddView() local
90 GlifLayout layout = new GlifLayout(context); in testGetScrollView() local
98 GlifLayout layout = new GlifLayout(context); in testSetPrimaryColor() local
119 GlifLayout layout = new GlifLayout(context); in testSetPrimaryColorTablet() local
141 GlifLayout layout = new GlifLayout(context); in testSetBackgroundBaseColor() local
152 GlifLayout layout = new GlifLayout(context); in testSetBackgroundBaseColorTablet() local
162 GlifLayout layout = new GlifLayout(context); in testSetBackgroundPatternedTrue() local
171 GlifLayout layout = new GlifLayout(context); in testSetBackgroundPatternedFalse() local
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSetupWizardLayoutTest.java67 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testDefaultTemplate() local
73 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testSetHeaderText() local
81 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testAddView() local
93 SetupWizardLayout layout = (SetupWizardLayout) inflater.inflate(R.layout.test_layout, null); in testInflateFromXml() local
101 SetupWizardLayout layout = new SetupWizardLayout(mContext, R.layout.test_template); in testCustomTemplate() local
123 final SetupWizardLayout layout = new SetupWizardLayout(mContext); in testGetNavigationBar() local
134 final SetupWizardLayout layout = new SetupWizardLayout(mContext, R.layout.test_template); in testGetNavigationBarNull() local
141 final SetupWizardLayout layout = new SetupWizardLayout(mContext); in testShowProgressBar() local
152 final SetupWizardLayout layout = new SetupWizardLayout(mContext); in testHideProgressBar() local
166 final SetupWizardLayout layout = new SetupWizardLayout(mContext, R.layout.test_template); in testShowProgressBarNotExist() local
[all …]
DGlifListLayoutTest.java58 GlifListLayout layout = new GlifListLayout(mContext); in testDefaultTemplate() local
64 GlifListLayout layout = new GlifListLayout(mContext); in testAddView() local
77 GlifListLayout layout = (GlifListLayout) inflater.inflate(R.layout.test_glif_list_layout, null); in testInflateFromXml() local
83 GlifListLayout layout = new GlifListLayout(mContext); in testGetListView() local
90 GlifListLayout layout = new GlifListLayout(mContext); in testAdapter() local
105 GlifListLayout layout = new GlifListLayout(mContext); in testDividerInsetLegacy() local
120 GlifListLayout layout = new GlifListLayout(mContext); in testDividerInsets() local
134 private void assertListTemplateInflated(GlifListLayout layout) { in assertListTemplateInflated()
DSetupWizardListLayoutTest.java59 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testDefaultTemplate() local
65 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testAddView() local
78 SetupWizardListLayout layout = in testInflateFromXml() local
85 final SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testShowProgressBar() local
96 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testDividerInsetLegacy() local
111 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); in testDividerInsets() local
125 private void assertListTemplateInflated(SetupWizardLayout layout) { in assertListTemplateInflated()
DGlifLayoutTest.java59 GlifLayout layout = (GlifLayout) inflater.inflate(R.layout.test_glif_layout, null); in testInflateFromXml() local
68 GlifLayout layout = in testPrimaryColorFromXml() local
77 GlifLayout layout = new GlifLayout(mContext, R.layout.test_template); in testSetProgressBarShownInvalid() local
133 private void assertDefaultTemplateInflated(GlifLayout layout) { in assertDefaultTemplateInflated()
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp74 auto layout = buildLayout("I", {"LayoutTestFont.ttf"}); in TEST() local
85 auto layout = buildLayout("II", {"LayoutTestFont.ttf"}); in TEST() local
100 auto layout = buildLayout("IV", {"LayoutTestFont.ttf"}); in TEST() local
126 auto layout = buildLayout("I\u3042", {"LayoutTestFont.ttf", "Hiragana.ttf"}); in TEST() local
141 auto layout = buildLayout("\u3042I", {"LayoutTestFont.ttf", "Hiragana.ttf"}); in TEST() local
163 auto layout = buildLayout("fi", {"Ligature.ttf"}); in TEST() local
175 auto layout = buildLayout("ff", {"Ligature.ttf"}); in TEST() local
187 auto layout = buildLayout("fi", {"Ligature.ttf"}, "'liga' off"); in TEST() local
199 auto layout = buildLayout("ff", {"Ligature.ttf"}, "'liga' off"); in TEST() local
213 auto layout = buildLayout("fii", {"Ligature.ttf"}); in TEST() local
[all …]
DLayoutTest.cpp71 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
90 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
109 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
128 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
159 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
178 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
198 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
219 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
253 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
272 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() local
[all …]
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPreferenceLayoutTest.java54 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testDefaultTemplate() local
60 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testGetRecyclerView() local
67 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testOnCreateRecyclerView() local
77 GlifPreferenceLayout layout = new GlifPreferenceLayout(mContext); in testDividerInset() local
85 LayoutInflater.from(mContext), layout, null /* savedInstanceState */)); in testDividerInset() local
94 private void assertPreferenceTemplateInflated(GlifPreferenceLayout layout) { in assertPreferenceTemplateInflated()
DSetupWizardPreferenceLayoutTest.java55 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testDefaultTemplate() local
61 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testGetRecyclerView() local
68 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testOnCreateRecyclerView() local
78 SetupWizardPreferenceLayout layout = new SetupWizardPreferenceLayout(mContext); in testDividerInset() local
86 LayoutInflater.from(mContext), layout, null /* savedInstanceState */)); in testDividerInset() local
95 private void assertPreferenceTemplateInflated(SetupWizardPreferenceLayout layout) { in assertPreferenceTemplateInflated()
DSetupWizardRecyclerLayoutTest.java60 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testDefaultTemplate() local
67 SetupWizardRecyclerLayout layout = in testInflateFromXml() local
74 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testGetRecyclerView() local
81 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testAdapter() local
94 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testLayout() local
108 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testDividerInsetLegacy() local
123 SetupWizardRecyclerLayout layout = new SetupWizardRecyclerLayout(mContext); in testDividerInsets() local
147 private void assertRecyclerTemplateInflated(SetupWizardRecyclerLayout layout) { in assertRecyclerTemplateInflated()
DGlifRecyclerLayoutTest.java58 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testDefaultTemplate() local
65 GlifRecyclerLayout layout = in testInflateFromXml() local
72 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testGetRecyclerView() local
79 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testAdapter() local
92 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testLayout() local
106 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testDividerInsetLegacy() local
121 GlifRecyclerLayout layout = new GlifRecyclerLayout(mContext); in testDividerInsets() local
145 private void assertRecyclerTemplateInflated(GlifRecyclerLayout layout) { in assertRecyclerTemplateInflated()
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java89 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local
99 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local
110 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local
120 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 15, in testGetEllipsizedWidth() local
130 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testIncreaseWidthTo() local
149 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetHeight() local
156 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetAlignment() local
166 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, -1, mSpacingAdd); in testGetSpacingMultiplier() local
175 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, mSpacingMult, -1); in testGetSpacingAdd() local
184 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetLineBounds() local
[all …]
DDynamicLayoutTest.java48 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_en() local
74 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() local
103 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_thai() local
182 final DynamicLayout layout = new DynamicLayout("", new TextPaint(), 10 /*width*/, in testGetLineExtra_withNegativeValue() local
189 final DynamicLayout layout = new DynamicLayout("", new TextPaint(), 10 /*width*/, in testGetLineExtra_withParamGreaterThanLineCount() local
202 final DynamicLayout layout = new DynamicLayout(spannable, new TextPaint(), WIDTH, in testReflow_afterSpannableEdit() local
246 DynamicLayout layout = DynamicLayout.Builder in testFallbackLineSpacing() local
292 final DynamicLayout layout = builder.build(); in testBuilder_defaultTextDirection() local
301 final DynamicLayout layout = builder.build(); in testBuilder_setTextDirection() local
DStaticLayoutTest.java84 final StaticLayout layout = builder.build(); in testBuilder_textDirection() local
94 final StaticLayout layout = builder.build(); in testBuilder_textDirection() local
288 final Layout layout = builder().build(); in testGetLineExtra_withNegativeValue() local
294 final Layout layout = builder().build(); in testGetLineExtra_withParamGreaterThanLineCount() local
432 final Layout layout = builder().setText(state.mText.toString()).setPaint(paint).build(); in moveCursorToRightCursorableOffset() local
439 final Layout layout = builder().setText(state.mText.toString()).setPaint(paint).build(); in moveCursorToLeftCursorableOffset() local
533 StaticLayout layout = createEllipsizeStaticLayout(LAYOUT_TEXT_SINGLE_LINE, in testEllipsis_singleLine() local
539 StaticLayout layout = createEllipsizeStaticLayout(LAYOUT_TEXT_SINGLE_LINE, in testEllipsis_singleLine() local
545 StaticLayout layout = createEllipsizeStaticLayout(LAYOUT_TEXT_SINGLE_LINE, in testEllipsis_singleLine() local
551 StaticLayout layout = createEllipsizeStaticLayout(LAYOUT_TEXT_SINGLE_LINE, in testEllipsis_singleLine() local
[all …]
DStaticLayoutTextMeasuringTest.java55 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp() local
66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari() local
79 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DTextInterpolatorTest.kt80 val layout = makeLayout(TEXT, PAINT) in testStartState() constant
99 val layout = makeLayout(TEXT, PAINT) in testEndState() constant
117 val layout = makeLayout(TEXT, PAINT) in testMiddleState() constant
139 val layout = makeLayout(TEXT, PAINT) in testRebase() constant
161 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.LTR) in testBidi_LTR() constant
181 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testBidi_RTL() constant
201 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Empty() constant
223 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Xcoordinate() constant
248 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Ycoordinate() constant
273 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_TextSize() constant
[all …]
DTextAnimatorTest.kt56 val layout = makeLayout("Hello, World", PAINT) in testAnimationStarted() constant
88 val layout = makeLayout("Hello, World", PAINT) in testAnimationNotStarted() constant
117 val layout = makeLayout("Hello, World", PAINT) in testAnimationEnded() constant
147 val layout = makeLayout("Hello, World", PAINT) in testCacheTypeface() constant
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DFillContentLayoutTest.java36 FillContentLayout layout = in testMeasureMinSize() local
54 FillContentLayout layout = in testMeasureChildIsSmallerThanMaxSize() local
73 FillContentLayout layout = in testMeasureChildIsSmallerThanParent() local
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/
DTemplateLayoutTest.java51 TemplateLayout layout = in testAddView() local
63 TemplateLayout layout = (TemplateLayout) inflater.inflate(R.layout.test_template_layout, null); in testInflateFromXml() local
70 TemplateLayout layout = in testTemplate() local
97 TemplateLayout layout = in testGetMixin() local
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp40 minikin::Layout layout; member
55 minikin::Layout layout = MinikinUtils::doLayout(&paint, bidiFlags, typeface, in shapeTextRun() local
110 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getGlyphCount() local
116 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getTotalAdvance() local
122 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getAscent() local
128 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getDescent() local
134 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getGlyphId() local
140 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getX() local
146 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getY() local
152 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getFont() local
/frameworks/base/core/java/android/text/
DSelection.java198 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
232 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, in setSelectionAndMemory()
269 public static boolean moveDown(Spannable text, Layout layout) { in moveDown()
305 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft()
330 public static boolean moveRight(Spannable text, Layout layout) { in moveRight()
353 public static boolean extendUp(Spannable text, Layout layout) { in extendUp()
372 public static boolean extendDown(Spannable text, Layout layout) { in extendDown()
391 public static boolean extendLeft(Spannable text, Layout layout) { in extendLeft()
407 public static boolean extendRight(Spannable text, Layout layout) { in extendRight()
419 public static boolean extendToLeftEdge(Spannable text, Layout layout) { in extendToLeftEdge()
[all …]
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
70 final Layout layout = widget.getLayout(); in left() local
80 final Layout layout = widget.getLayout(); in right() local
90 final Layout layout = widget.getLayout(); in up() local
100 final Layout layout = widget.getLayout(); in down() local
110 final Layout layout = widget.getLayout(); in pageUp() local
134 final Layout layout = widget.getLayout(); in pageDown() local
178 final Layout layout = widget.getLayout(); in lineStart() local
188 final Layout layout = widget.getLayout(); in lineEnd() local
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java85 LinearLayout layout = new LinearLayout(this); in onCreate() local
159 private void addChildToRoot(LinearLayout root, LinearLayout layout) { in addChildToRoot()
164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { in addBitmapDrawable()
179 private void addResourceDrawable(LinearLayout layout, int resource) { in addResourceDrawable()
190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { in addCanvasBitmap()
201 private void addNinePatchResourceDrawable(LinearLayout layout, int resource) { in addNinePatchResourceDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/collapsingtoolbar/widget/
DCollapsingCoordinatorLayoutTest.java50 CollapsingCoordinatorLayout layout = mActivity.getCollapsingCoordinatorLayout(); in onCreate_childViewsNumberShouldBeTwo() local
57 CollapsingCoordinatorLayout layout = mActivity.getCollapsingCoordinatorLayout(); in onCreate_userAddedChildViewsBeMovedToContentFrame() local
68 CollapsingCoordinatorLayout layout = mActivity.getCollapsingCoordinatorLayout(); in initSettingsStyleToolBar_assignedTitle() local
/frameworks/base/core/java/android/widget/
DResourceCursorAdapter.java54 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter()
77 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter()
95 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter()
148 public void setViewResource(int layout) { in setViewResource()

1234567891011