Home
last modified time | relevance | path

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

12345678

/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A 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
184 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetLineBounds() local
197 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetLineForVertical() local
207 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetLineForOffset() local
[all …]
H A 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
H A 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
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
561 StaticLayout layout = new StaticLayout(text, 0, text.length(), mDefaultPaint, in testEllipsis_singleLine() local
568 StaticLayout layout = new StaticLayout(text, 0, text.length(), mDefaultPaint, in testEllipsis_singleLine() local
[all …]
H A 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
H A DDynamicLayoutOffsetMappingTest.java45 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping() local
62 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_deletion() local
90 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_insertion() local
111 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_replace() local
129 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_deletion() local
152 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_insertion() local
173 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_replace() local
202 private void assertLineRange(Layout layout, int... lineBreaks) { in assertLineRange()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DDeviceStateToLayoutMapTest.java150 Layout layout = new Layout(); in testLeadDisplayAddress() local
168 Layout layout = new Layout(); in testLeadDisplayAddress_defaultDisplay() local
180 Layout layout = new Layout(); in testLeadDisplayAddress_noLeadDisplay() local
193 Layout layout = new Layout(); in testLeadDisplayAddress_selfLeadDisplayForNonDefaultDisplay() local
208 Layout layout = new Layout(); in testLeadDisplayAddress_wrongLeadDisplayForDefaultDisplay() local
223 Layout layout = new Layout(); in testLeadDisplayAddress_notExistingLeadDisplayForNonDefaultDisplay() local
233 Layout layout = new Layout(); in testLeadDisplayAddress_leadDisplayInDifferentDisplayGroup() local
246 Layout layout = new Layout(); in testLeadDisplayAddress_cyclicLeadDisplay() local
263 private void createDefaultDisplay(Layout layout, long id) { in createDefaultDisplay()
268 private void createNonDefaultDisplay(Layout layout, long id, boolean enabled, String group, in createNonDefaultDisplay()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
H A DTextInterpolatorTest.kt87 val layout = makeLayout(TEXT, PAINT) regex
106 val layout = makeLayout(TEXT, PAINT) regex
124 val layout = makeLayout(TEXT, PAINT) regex
146 val layout = makeLayout(TEXT, PAINT) regex
168 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.LTR) regex
188 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) regex
208 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) regex
230 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) regex
255 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) regex
280 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) regex
[all …]
H A DTextAnimatorTest.kt52 val layout = makeLayout("Hello, World", PAINT) regex
82 val layout = makeLayout("Hello, World", PAINT) regex
109 val layout = makeLayout("Hello, World", PAINT) regex
140 val layout = makeLayout("Hello, World", PAINT) regex
/aosp14/frameworks/base/libs/hwui/jni/text/
H A 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
/aosp14/frameworks/base/core/java/android/text/method/
H A 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 …]
/aosp14/frameworks/base/core/java/android/text/
H A DSelection.java199 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
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()
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()
502 public static boolean extendRight(Spannable text, Layout layout) { in extendRight()
526 public static boolean moveToLeftEdge(Spannable text, Layout layout) { in moveToLeftEdge()
576 private static int findEdge(Spannable text, Layout layout, int dir) { in findEdge()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A 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
/aosp14/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/collapsingtoolbar/widget/
H A 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
/aosp14/frameworks/base/core/java/android/widget/
H A 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()
/aosp14/frameworks/base/tools/aapt2/java/
H A DProguardRules_test.cpp87 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
104 std::unique_ptr<xml::XmlResource> layout = local
120 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
140 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
158 std::unique_ptr<xml::XmlResource> layout = local
174 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
228 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
295 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
322 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
344 std::unique_ptr<xml::XmlResource> layout = test::BuildXmlDom(R"( local
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DStaticLayoutGetOffsetForHorizontalPerfTest.java63 StaticLayout layout = in testGetOffsetForHorizontal_LTR() local
78 StaticLayout layout = in testGetOffsetForHorizontal_RTL() local
93 StaticLayout layout = in testGetOffsetForHorizontal_BiDi() local
H A DStaticLayoutPerfTest.java309 final StaticLayout layout = in testDraw_FixedText_NoStyled() local
326 final StaticLayout layout = in testDraw_RandomText_Styled() local
343 final StaticLayout layout = in testDraw_RandomText_NoStyled() local
360 final StaticLayout layout = in testDraw_RandomText_Styled_WithoutCache() local
378 final StaticLayout layout = in testDraw_RandomText_NoStyled_WithoutCache() local
397 final StaticLayout layout = in testDraw_PrecomputedText_Styled() local
415 final StaticLayout layout = in testDraw_PrecomputedText_NoStyled() local
433 final StaticLayout layout = in testDraw_PrecomputedText_Styled_WithoutCache() local
452 final StaticLayout layout = in testDraw_PrecomputedText_NoStyled_WithoutCache() local
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextGammaActivity.java37 final LinearLayout layout = new LinearLayout(this); in onCreate() local
88 final LinearLayout layout = new LinearLayout(this); in onCreate() local
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskLaunchParamsModifierTests.java567 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea() local
771 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutInfersFreeformOnFreeformDisplay() local
791 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testLayoutWithGravityAndEmptySizeInfersFreeformAndRespectsCurrentSize() local
806 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutUsesFullscreenWithResizeableActivity() local
1102 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_LeftGravity() local
1118 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopGravity() local
1134 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_TopLeftGravity() local
1151 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_RightGravity() local
1167 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_BottomGravity() local
1183 final ActivityInfo.WindowLayout layout = new WindowLayoutBuilder() in testNonEmptyLayoutBoundsRespectsGravityWithEmptySize_BottomRightGravity() local
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
H A DDialogAnimationController.java79 public void startEnterAnimation(@NonNull T layout, Runnable endCallback) { in startEnterAnimation()
111 public void startExitAnimation(@NonNull T layout, Runnable endCallback) { in startExitAnimation()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DDeviceStateToLayoutMap.java91 Layout layout = mLayoutMap.get(state); in get() local
120 final Layout layout = createLayout(state); in loadLayoutsFromConfig() local
164 final Layout layout = new Layout(); in createLayout() local
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
H A DLetterboxEduWindowManagerTest.java200 LetterboxEduDialogLayout layout = windowManager.mLayout; in testCreateLayout_canShowTrue_createsLayoutCorrectly() local
295 LetterboxEduDialogLayout layout = windowManager.mLayout; in testUpdateCompatInfo_updatesLayoutCorrectly() local
350 LetterboxEduDialogLayout layout = windowManager.mLayout; in testUpdateDisplayLayout_updatesLayoutCorrectly() local
395 private void verifyLayout(LetterboxEduDialogLayout layout, ViewGroup.LayoutParams params, in verifyLayout()
408 private void verifyAndFinishEnterAnimation(LetterboxEduDialogLayout layout) { in verifyAndFinishEnterAnimation()
420 private void verifyAndFinishExitAnimation(LetterboxEduDialogLayout layout) { in verifyAndFinishExitAnimation()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DLaunchParamsController.java84 void calculate(Task task, WindowLayout layout, ActivityRecord activity, ActivityRecord source, in calculate()
132 boolean layoutTask(Task task, WindowLayout layout) { in layoutTask()
136 boolean layoutTask(Task task, WindowLayout layout, ActivityRecord activity, in layoutTask()
315 int onCalculate(@Nullable Task task, @Nullable WindowLayout layout, in onCalculate()
/aosp14/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerListHelper.java49 public void bindListUI(int layout) { in bindListUI()
62 public TrackerAdapter(Context context, int layout, Cursor c) { in TrackerAdapter()

12345678