Home
last modified time | relevance | path

Searched refs:StaticLayout (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutPerfTest.java73 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_FixedText_NoStyle_Greedy_NoHyphenation()
88 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_NoHyphenation()
103 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_Hyphenation()
118 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_NoHyphenation()
133 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_Hyphenation()
148 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_Styled_Greedy_NoHyphenation()
165 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation()
183 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent()
201 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation()
218 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_PrecomputedText_NoStyled_Balanced_NoHyphenation()
[all …]
DStaticLayoutGetOffsetForHorizontalPerfTest.java63 StaticLayout layout = in testGetOffsetForHorizontal_LTR()
64 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_LTR()
78 StaticLayout layout = in testGetOffsetForHorizontal_RTL()
79 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_RTL()
93 StaticLayout layout = in testGetOffsetForHorizontal_BiDi()
94 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_BiDi()
DStaticLayoutMultithreadPerfTest.java70 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in startBackgroundThread()
111 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in runRandomTest()
DStaticLayoutCreateDrawPerfTest.java138 return StaticLayout.Builder.obtain(text, 0 /*start*/, text.length() /*end*/, mTextPaint, in createLayout()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java64 private StaticLayout mDefaultLayout;
73 private StaticLayout createDefaultStaticLayout() { in createDefaultStaticLayout()
74 return new StaticLayout(LAYOUT_TEXT, mDefaultPaint, in createDefaultStaticLayout()
82 final StaticLayout.Builder builder = StaticLayout.Builder.obtain(LAYOUT_TEXT, 0, in testBuilder_textDirection()
84 final StaticLayout layout = builder.build(); in testBuilder_textDirection()
91 final StaticLayout.Builder builder = StaticLayout.Builder.obtain(LAYOUT_TEXT, 0, in testBuilder_textDirection()
94 final StaticLayout layout = builder.build(); in testBuilder_textDirection()
371 return new StaticLayout(text, paint, width, align, spacingMult, in build()
518 private StaticLayout createEllipsizeStaticLayout(CharSequence text, in createEllipsizeStaticLayout()
520 return new StaticLayout(text, 0, text.length(), in createEllipsizeStaticLayout()
[all …]
DStaticLayoutTextMeasuringTest.java55 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp()
66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari()
79 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji()
DDynamicLayoutTest.java127 final StaticLayout staticLayout = StaticLayout.Builder.obtain(text, 0, in testGetLineExtra_withoutLinespacing()
157 final StaticLayout staticLayout = StaticLayout.Builder.obtain(text, 0, in testGetLineExtra_withLinespacing()
DLayoutTest.java315 final Layout layout = new StaticLayout("abc", mTextPaint, Integer.MAX_VALUE, in testGetSelectionWithASingleLineSelection()
346 final Layout layout = new StaticLayout("a\nb\nc", mTextPaint, Integer.MAX_VALUE, in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter()
392 final Layout layout = new StaticLayout("a\nb\nc", mTextPaint, Integer.MAX_VALUE,
435 final Layout layout = new StaticLayout("abc", mTextPaint, Integer.MAX_VALUE, in testGetSelectionPathWithASingleLineSelection()
468 final Layout layout = new StaticLayout("abc", mTextPaint, Integer.MAX_VALUE, in testGetSelection_latinTextDirection()
479 final Layout layout = new StaticLayout("غينيا", mTextPaint, Integer.MAX_VALUE, in testGetSelection_arabicTextDirection()
490 final Layout layout = new StaticLayout("abcغينيا", mTextPaint, Integer.MAX_VALUE, in testGetSelection_mixedLatinAndArabicTextDirection()
709 Layout layout = StaticLayout.Builder.obtain( in assertPrimaryIsTrailingPrevious()
DTextLayoutTest.java43 new StaticLayout(mString, mPaint, 200, in testStaticLayout()
DLayoutBidiCursorPathTest.java160 final Layout layout = StaticLayout.Builder.obtain( in setupLayoutAndGetCursorPath()
DTextLineTest.java102 StaticLayout.Builder.obtain(str, 0, str.length(), paint, Integer.MAX_VALUE) in getTextLine()
/frameworks/base/core/tests/coretests/src/android/text/style/
DUnderlineSpanTest.java24 import android.text.StaticLayout;
62 final StaticLayout layout = StaticLayout.Builder.obtain( in textWidth()
/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java23 import android.text.StaticLayout;
75 StaticLayout.Builder builder = StaticLayout.Builder.obtain(text, 0, text.length(), in makeSingleLayout()
DSubtitleView.java32 import android.text.StaticLayout;
72 private StaticLayout mLayout;
223 final StaticLayout layout = mLayout; in onMeasure()
259 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mTextPaint, maxWidth) in computeMeasurements()
295 final StaticLayout layout = mLayout; in onDraw()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewFallbackLineSpacingTest.java27 import android.text.StaticLayout;
116 assertTrue(layout instanceof StaticLayout); in testFallbackLineSpacing()
/frameworks/base/core/java/android/text/
DDynamicLayout.java584 StaticLayout reflowed; in reflow()
585 StaticLayout.Builder b; in reflow()
595 reflowed = new StaticLayout(null); in reflow()
596 b = StaticLayout.Builder.obtain(text, where, where + after, getPaint(), getWidth()); in reflow()
677 ints[HYPHEN] = StaticLayout.packHyphenEdit( in reflow()
1061 return StaticLayout.unpackStartHyphenEdit(mInts.getValue(line, HYPHEN) & HYPHEN_MASK); in getStartHyphenEdit()
1069 return StaticLayout.unpackEndHyphenEdit(mInts.getValue(line, HYPHEN) & HYPHEN_MASK); in getEndHyphenEdit()
1190 private static StaticLayout sStaticLayout = null;
1191 private static StaticLayout.Builder sBuilder = null;
DStaticLayout.java49 public class StaticLayout extends Layout { class
415 public StaticLayout build() { in build()
416 StaticLayout result = new StaticLayout(this); in build()
451 public StaticLayout(CharSequence source, TextPaint paint, in StaticLayout() method in StaticLayout
463 public StaticLayout(CharSequence source, int bufstart, int bufend, in StaticLayout() method in StaticLayout
476 public StaticLayout(CharSequence source, int bufstart, int bufend, in StaticLayout() method in StaticLayout
493 public StaticLayout(CharSequence source, int bufstart, int bufend, in StaticLayout() method in StaticLayout
553 /* package */ StaticLayout(@Nullable CharSequence text) { in StaticLayout() method in StaticLayout
561 private StaticLayout(Builder b) { in StaticLayout() method in StaticLayout
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt27 import android.text.StaticLayout
306 val textLayout = StaticLayout.Builder.obtain( in onDraw()
/frameworks/base/core/java/android/widget/
DSwitch.java40 import android.text.StaticLayout;
985 return StaticLayout.Builder.obtain(transformed, 0, transformed.length(), mTextPaint, width) in makeLayout()
DTextView.java100 import android.text.StaticLayout;
9027 StaticLayout.Builder builder = StaticLayout.Builder.obtain(mHint, 0, in makeNewLayout()
9140 StaticLayout.Builder builder = StaticLayout.Builder.obtain(mTransformed, in makeSingleLayout()
9504 final StaticLayout.Builder layoutBuilder = StaticLayout.Builder.obtain( in suggestedSizeFitsInSpace()
9517 final StaticLayout layout = layoutBuilder.build(); in suggestedSizeFitsInSpace()
DEditor.java70 import android.text.StaticLayout;
864 final StaticLayout l = StaticLayout.Builder.obtain(text, 0, text.length(), tv.getPaint(), in chooseSize()
/frameworks/base/config/
Dpreloaded-classes3485 android.text.StaticLayout$Builder
3486 android.text.StaticLayout$LineBreaks
3487 android.text.StaticLayout
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...