Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/text/
DAndroidBidi.java19 import android.text.Layout.Directions;
37 case Layout.DIR_REQUEST_LTR: dir = 0; break; in bidi()
38 case Layout.DIR_REQUEST_RTL: dir = 1; break; in bidi()
39 case Layout.DIR_REQUEST_DEFAULT_LTR: dir = -2; break; in bidi()
40 case Layout.DIR_REQUEST_DEFAULT_RTL: dir = -1; break; in bidi()
45 result = (result & 0x1) == 0 ? Layout.DIR_LEFT_TO_RIGHT : Layout.DIR_RIGHT_TO_LEFT; in bidi()
64 int baseLevel = dir == Layout.DIR_LEFT_TO_RIGHT ? 0 : 1; in directions()
101 return Layout.DIRS_ALL_RIGHT_TO_LEFT; in directions()
103 return Layout.DIRS_ALL_LEFT_TO_RIGHT; in directions()
108 int levelBits = minLevel << Layout.RUN_LEVEL_SHIFT; in directions()
[all …]
DSelection.java121 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
162 public static boolean moveDown(Spannable text, Layout layout) { in moveDown()
204 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft()
229 public static boolean moveRight(Spannable text, Layout layout) { in moveRight()
252 public static boolean extendUp(Spannable text, Layout layout) { in extendUp()
281 public static boolean extendDown(Spannable text, Layout layout) { in extendDown()
310 public static boolean extendLeft(Spannable text, Layout layout) { in extendLeft()
326 public static boolean extendRight(Spannable text, Layout layout) { in extendRight()
338 public static boolean extendToLeftEdge(Spannable text, Layout layout) { in extendToLeftEdge()
344 public static boolean extendToRightEdge(Spannable text, Layout layout) { in extendToRightEdge()
[all …]
DTextLine.java24 import android.text.Layout.Directions;
25 import android.text.Layout.TabStops;
144 mCharsValid = hasReplacement || hasTabs || directions != Layout.DIRS_ALL_LEFT_TO_RIGHT; in set()
186 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in draw()
190 if (mDirections == Layout.DIRS_ALL_RIGHT_TO_LEFT) { in draw()
203 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in draw()
207 boolean runIsRtl = (runs[i+1] & Layout.RUN_RTL_FLAG) != 0; in draw()
218 if (codept >= Layout.MIN_EMOJI && codept <= Layout.MAX_EMOJI) { in draw()
219 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in draw()
286 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in measure()
[all …]
DMeasuredText.java122 mDir = Layout.DIR_LEFT_TO_RIGHT; in setPara()
130 bidiRequest = Layout.DIR_REQUEST_LTR; in setPara()
132 bidiRequest = Layout.DIR_REQUEST_RTL; in setPara()
134 bidiRequest = Layout.DIR_REQUEST_DEFAULT_LTR; in setPara()
136 bidiRequest = Layout.DIR_REQUEST_DEFAULT_RTL; in setPara()
139 bidiRequest = isRtl ? Layout.DIR_REQUEST_RTL : Layout.DIR_REQUEST_LTR; in setPara()
155 int flags = mDir == Layout.DIR_LEFT_TO_RIGHT in addStyleRun()
DBoringLayout.java38 public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback {
177 if (source instanceof String && align == Layout.Alignment.ALIGN_NORMAL) { in init()
212 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, in init()
213 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in init()
306 line.set(paint, text, 0, length, Layout.DIR_LEFT_TO_RIGHT, in isBoring()
307 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in isBoring()
365 return Layout.DIRS_ALL_LEFT_TO_RIGHT; in getLineDirections()
/frameworks/base/core/java/android/text/style/
DAlignmentSpan.java20 import android.text.Layout;
25 public Layout.Alignment getAlignment(); in getAlignment()
29 public Standard(Layout.Alignment align) { in Standard()
34 mAlignment = Layout.Alignment.valueOf(src.readString()); in Standard()
49 public Layout.Alignment getAlignment() { in getAlignment()
53 private final Layout.Alignment mAlignment;
DLeadingMarginSpan.java22 import android.text.Layout;
68 boolean first, Layout layout); in drawLeadingMargin()
141 boolean first, Layout layout) { in drawLeadingMargin()
DQuoteSpan.java22 import android.text.Layout;
69 boolean first, Layout layout) { in drawLeadingMargin()
DIconMarginSpan.java24 import android.text.Layout;
45 boolean first, Layout layout) { in drawLeadingMargin()
DDrawableMarginSpan.java24 import android.text.Layout;
45 boolean first, Layout layout) { in drawLeadingMargin()
DBulletSpan.java24 import android.text.Layout;
83 boolean first, Layout l) { in drawLeadingMargin()
DLineHeightSpan.java21 import android.text.Layout;
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java21 import android.text.Layout.Alignment;
22 import static android.text.Layout.Alignment.*;
49 Layout l = b.build(); in testGetters1()
55 assertEquals(Layout.DIR_LEFT_TO_RIGHT, l.getParagraphDirection(0)); in testGetters1()
57 assertEquals(Layout.DIRS_ALL_LEFT_TO_RIGHT, l.getLineDirections(0)); in testGetters1()
73 Layout l = b.build(); in testGetters2()
89 Layout l = b.build(); in testGetters3()
107 Layout l = b.build(); in testGetters4()
135 Layout l = b.build(); in testGetters5()
156 Layout l = b.build(); in testGetters6()
[all …]
DTextLayoutTest.java21 import android.text.Layout;
40 Layout l = new StaticLayout(mString, mPaint, 200, in testStaticLayout()
41 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testStaticLayout()
47 Layout l = new DynamicLayout(mString, mPaint, 200, in testDynamicLayoutTest()
48 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testDynamicLayoutTest()
DStaticLayoutDirectionsTest.java19 import android.text.Layout.Directions;
130 Layout l = b.build(); in testTrailingWhitespace()
135 Directions expected = dirs(0, LVL1_1, 1, LVL2_1, 2, 3 | (1 << Layout.RUN_LEVEL_SHIFT)); in testTrailingWhitespace()
150 Layout l = b.build(); in testNextToRightOf()
166 Layout l = b.build(); in testNextToLeftOf()
226 private void checkDirections(Layout l, int i, String text, in checkDirections()
DStaticLayoutBidiTest.java33 public static final int L = Layout.DIR_LEFT_TO_RIGHT;
34 public static final int R = Layout.DIR_RIGHT_TO_LEFT;
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java20 import android.text.Layout;
38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
70 final Layout layout = widget.getLayout(); in left()
80 final Layout layout = widget.getLayout(); in right()
90 final Layout layout = widget.getLayout(); in up()
100 final Layout layout = widget.getLayout(); in down()
110 final Layout layout = widget.getLayout(); in pageUp()
134 final Layout layout = widget.getLayout(); in pageDown()
178 final Layout layout = widget.getLayout(); in lineStart()
188 final Layout layout = widget.getLayout(); in lineEnd()
DBaseMovementMethod.java19 import android.text.Layout;
423 final Layout layout = widget.getLayout(); in getScrollBoundsLeft()
440 final Layout layout = widget.getLayout(); in getScrollBoundsRight()
509 final Layout layout = widget.getLayout(); in scrollUp()
536 final Layout layout = widget.getLayout(); in scrollDown()
566 final Layout layout = widget.getLayout(); in scrollPageUp()
586 final Layout layout = widget.getLayout(); in scrollPageDown()
608 final Layout layout = widget.getLayout(); in scrollTop()
626 final Layout layout = widget.getLayout(); in scrollBottom()
DTouch.java19 import android.text.Layout;
20 import android.text.Layout.Alignment;
37 public static void scrollTo(TextView widget, Layout layout, int x, int y) { in scrollTo()
146 Layout layout = widget.getLayout(); in onTouchEvent()
DLinkMovementMethod.java19 import android.text.Layout;
92 Layout layout = widget.getLayout(); in action()
204 Layout layout = widget.getLayout(); in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java21 import android.text.Layout;
49 final Layout layout = getLayout(); in onMeasure()
/frameworks/base/core/java/android/widget/
DSwitch.java28 import android.text.Layout;
91 private Layout mOnLayout;
92 private Layout mOffLayout;
384 private Layout makeLayout(CharSequence text) { in makeLayout()
386 (int) Math.ceil(Layout.getDesiredWidth(text, mTextPaint)), in makeLayout()
387 Layout.Alignment.ALIGN_NORMAL, 1.f, 0, true); in makeLayout()
594 Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout; in onDraw()
/frameworks/base/docs/html/resources/tutorials/views/
Dindex.jd35 <a href="hello-linearlayout.html">Linear Layout</a><br/>
41 <a href="hello-relativelayout.html">Relative Layout</a><br/>
47 <a href="hello-tablelayout.html">Table Layout</a><br/>
58 <a href="hello-tabwidget.html">Tab Layout</a><br/>
/frameworks/base/docs/html/guide/developing/tools/
Dhierarchy-viewer.jd8 (the Layout View) and a magnified inspector of the display (the Pixel Perfect View).
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java31 import android.text.Layout;
265 lp.desiredWidth = (int) Layout.getDesiredWidth(getText(), getPaint()); in getTextAppropriateLayoutParams()

1234