Home
last modified time | relevance | path

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

12345678910>>...13

/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.cpp92 auto layout = buildLayout("I", fc); in TEST() local
105 auto layout = buildLayout("II", fc); in TEST() local
122 auto layout = buildLayout("IV", fc); in TEST() local
150 auto layout = buildLayout("I\u3042", fc); in TEST() local
167 auto layout = buildLayout("\u3042I", fc); in TEST() local
191 auto layout = buildLayout("fi", fc); in TEST() local
205 auto layout = buildLayout("ff", fc); in TEST() local
219 auto layout = buildLayout("fi", fc, "'liga' off"); in TEST() local
233 auto layout = buildLayout("ff", fc, "'liga' off"); in TEST() local
249 auto layout = buildLayout("fii", fc); 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/
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()
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()
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()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDesktopModeLaunchParamsModifierTests.java201 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setWidth(120) in testNonEmptyLayoutBounds_CenterToDisplay() local
216 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setWidth(120) in testNonEmptyLayoutBounds_LeftGravity() local
231 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setWidth(120) in testNonEmptyLayoutBounds_TopGravity() local
246 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setWidth(120) in testNonEmptyLayoutBounds_TopLeftGravity() local
261 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setWidth(120) in testNonEmptyLayoutBounds_RightGravity() local
276 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBounds_BottomGravity() local
291 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBounds_RightBottomGravity() local
306 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutFractionBounds() local
321 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_LeftGravity() local
336 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder().setGravity(Gravity.TOP) in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopGravity() local
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java109 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local
119 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local
130 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local
140 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 15, in testGetEllipsizedWidth() local
150 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testIncreaseWidthTo() local
169 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetHeight() local
176 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetAlignment() local
186 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, -1, mSpacingAdd); in testGetSpacingMultiplier() local
195 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, mSpacingMult, -1); in testGetSpacingAdd() local
204 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.kt87 val layout = makeLayout(TEXT, PAINT) in testStartState() constant
106 val layout = makeLayout(TEXT, PAINT) in testEndState() constant
124 val layout = makeLayout(TEXT, PAINT) in testMiddleState() constant
146 val layout = makeLayout(TEXT, PAINT) in testRebase() constant
168 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.LTR) in testBidi_LTR() constant
188 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testBidi_RTL() constant
208 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Empty() constant
230 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Xcoordinate() constant
255 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Ycoordinate() constant
280 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_TextSize() constant
[all …]
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp37 minikin::Layout layout; member
52 minikin::Layout layout = MinikinUtils::doLayout(&paint, bidiFlags, typeface, in shapeTextRun() local
107 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getGlyphCount() local
113 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getTotalAdvance() local
119 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getAscent() local
125 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getDescent() local
131 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getGlyphId() local
137 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getX() local
143 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getY() local
149 const LayoutWrapper* layout = reinterpret_cast<LayoutWrapper*>(ptr); in TextShaper_Result_getFakeBold() local
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDeviceStateToLayoutMapTest.java162 Layout layout = new Layout(); in testLeadDisplayAddress() local
180 Layout layout = new Layout(); in testLeadDisplayAddress_defaultDisplay() local
192 Layout layout = new Layout(); in testLeadDisplayAddress_noLeadDisplay() local
205 Layout layout = new Layout(); in testLeadDisplayAddress_selfLeadDisplayForNonDefaultDisplay() local
221 Layout layout = new Layout(); in testLeadDisplayAddress_wrongLeadDisplayForDefaultDisplay() local
237 Layout layout = new Layout(); in testLeadDisplayAddress_notExistingLeadDisplayForNonDefaultDisplay() local
247 Layout layout = new Layout(); in testLeadDisplayAddress_leadDisplayInDifferentDisplayGroup() local
260 Layout layout = new Layout(); in testLeadDisplayAddress_cyclicLeadDisplay() local
312 private void createDefaultDisplay(Layout layout, long id) { in createDefaultDisplay()
317 private void createNonDefaultDisplay(Layout layout, long id, boolean enabled, String group, in createNonDefaultDisplay()
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
74 final Layout layout = widget.getLayout(); in left() local
87 final Layout layout = widget.getLayout(); in right() local
100 final Layout layout = widget.getLayout(); in up() local
113 final Layout layout = widget.getLayout(); in down() local
126 final Layout layout = widget.getLayout(); in pageUp() local
153 final Layout layout = widget.getLayout(); in pageDown() local
200 final Layout layout = widget.getLayout(); in lineStart() local
213 final Layout layout = widget.getLayout(); in lineEnd() local
254 final Layout layout = widget.getLayout(); in previousParagraph() local
[all …]
/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/core/java/android/text/
DSelection.java199 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
233 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, in setSelectionAndMemory()
270 public static boolean moveDown(Spannable text, Layout layout) { in moveDown()
306 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft()
331 public static boolean moveRight(Spannable text, Layout layout) { in moveRight()
359 public static boolean moveToParagraphStart(@NonNull Spannable text, @NonNull Layout layout) { in moveToParagraphStart()
386 public static boolean moveToParagraphEnd(@NonNull Spannable text, @NonNull Layout layout) { in moveToParagraphEnd()
448 public static boolean extendUp(Spannable text, Layout layout) { in extendUp()
467 public static boolean extendDown(Spannable text, Layout layout) { in extendDown()
486 public static boolean extendLeft(Spannable text, Layout layout) { in extendLeft()
[all …]
/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/base/core/tests/coretests/src/android/widget/
DTextViewPopulateCharacterBoundsTest.java102 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR() local
131 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR_multiline() local
161 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_LTR_newline() local
194 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_RTL() local
223 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_RTL_multiline() local
253 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_RTL_newline() local
287 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_BiDi() local
320 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_BiDi_multiline() local
348 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_charactersWithInvisibleRegion() local
386 final Layout layout = textView.getLayout(); in testPopulateCharacterBounds_withinRange() 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()

12345678910>>...13