Home
last modified time | relevance | path

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

123456

/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 return Layout.DIRS_ALL_LEFT_TO_RIGHT; in directions()
67 int baseLevel = dir == Layout.DIR_LEFT_TO_RIGHT ? 0 : 1; in directions()
104 return Layout.DIRS_ALL_RIGHT_TO_LEFT; in directions()
106 return Layout.DIRS_ALL_LEFT_TO_RIGHT; in directions()
[all …]
DSelection.java122 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
168 public static boolean moveDown(Spannable text, Layout layout) { in moveDown()
213 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft()
238 public static boolean moveRight(Spannable text, Layout layout) { in moveRight()
261 public static boolean extendUp(Spannable text, Layout layout) { in extendUp()
290 public static boolean extendDown(Spannable text, Layout layout) { in extendDown()
319 public static boolean extendLeft(Spannable text, Layout layout) { in extendLeft()
335 public static boolean extendRight(Spannable text, Layout layout) { in extendRight()
347 public static boolean extendToLeftEdge(Spannable text, Layout layout) { in extendToLeftEdge()
353 public static boolean extendToRightEdge(Spannable text, Layout layout) { in extendToRightEdge()
[all …]
DTextLine.java24 import android.text.Layout.Directions;
25 import android.text.Layout.TabStops;
155 mCharsValid = hasReplacement || hasTabs || directions != Layout.DIRS_ALL_LEFT_TO_RIGHT; in set()
195 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in draw()
199 if (mDirections == Layout.DIRS_ALL_RIGHT_TO_LEFT) { in draw()
212 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in draw()
216 boolean runIsRtl = (runs[i+1] & Layout.RUN_RTL_FLAG) != 0; in draw()
227 if (codept >= Layout.MIN_EMOJI && codept <= Layout.MAX_EMOJI) { in draw()
228 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in draw()
295 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in measure()
[all …]
DMeasuredText.java129 mDir = Layout.DIR_LEFT_TO_RIGHT; in setPara()
137 bidiRequest = Layout.DIR_REQUEST_LTR; in setPara()
139 bidiRequest = Layout.DIR_REQUEST_RTL; in setPara()
141 bidiRequest = Layout.DIR_REQUEST_DEFAULT_LTR; in setPara()
143 bidiRequest = Layout.DIR_REQUEST_DEFAULT_RTL; in setPara()
146 bidiRequest = isRtl ? Layout.DIR_REQUEST_RTL : Layout.DIR_REQUEST_LTR; in setPara()
162 boolean isRtl = 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()
208 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, in init()
209 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in init()
302 line.set(paint, text, 0, length, Layout.DIR_LEFT_TO_RIGHT, in isBoring()
303 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in isBoring()
361 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;
71 boolean first, Layout layout); in drawLeadingMargin()
148 boolean first, Layout layout) { in drawLeadingMargin()
DQuoteSpan.java22 import android.text.Layout;
69 boolean first, Layout layout) { in drawLeadingMargin()
DIconMarginSpan.java23 import android.text.Layout;
44 boolean first, Layout layout) { in drawLeadingMargin()
DDrawableMarginSpan.java23 import android.text.Layout;
44 boolean first, Layout layout) { in drawLeadingMargin()
/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()
/frameworks/minikin/libs/minikin/
DLayout.cpp97 void doLayout(Layout* layout, LayoutContext* ctx, const FontCollection* collection) const { in doLayout()
121 class LayoutCache : private OnEntryRemoved<LayoutCacheKey, Layout*> {
131 Layout* get(LayoutCacheKey& key, LayoutContext* ctx, const FontCollection* collection) { in get()
132 Layout* layout = mCache.get(key); in get()
135 layout = new Layout(); in get()
144 void operator()(LayoutCacheKey& key, Layout*& value) { in operator ()()
149 LruCache<LayoutCacheKey, Layout*> mCache;
271 void Layout::init() { in init()
274 void Layout::reset() { in reset()
282 void Layout::setFontCollection(const FontCollection* collection) { in setFontCollection()
[all …]
/frameworks/base/core/jni/android/graphics/
DMinikinUtils.h48 static void doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface,
51 static float xOffsetForTextAlign(Paint* paint, const Layout& layout);
53 static float hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path);
56 static void forFontRun(const Layout& layout, Paint* paint, F& f) { in forFontRun()
DMinikinUtils.cpp41 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typefa… in doLayout()
66 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const Layout& layout) { in xOffsetForTextAlign()
80 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) { in hOffsetForTextAlign()
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java20 import android.text.Layout;
39 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
71 final Layout layout = widget.getLayout(); in left()
81 final Layout layout = widget.getLayout(); in right()
91 final Layout layout = widget.getLayout(); in up()
101 final Layout layout = widget.getLayout(); in down()
111 final Layout layout = widget.getLayout(); in pageUp()
135 final Layout layout = widget.getLayout(); in pageDown()
179 final Layout layout = widget.getLayout(); in lineStart()
189 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()
167 Layout layout = widget.getLayout(); in onTouchEvent()
/frameworks/base/docs/html/training/animation/
Dlayout.jd1 page.title=Animating Layout Changes
11 <li><a href="#views">Create the Layout</a></li>
12 <li><a href="#add">Add, Update, or Remove Items from the Layout</a></li>
47 Layout animation
61 <h2 id="views">Create the Layout</h2>
73 <h2 id="activity">Add, Update, or Remove Items from the Layout</h2>
/frameworks/base/docs/html/training/improving-layouts/
Doptimizing-layout.jd1 page.title=Optimizing Layout Hierarchies
2 parent.title=Improving Layout Performance
19 <li><a href="#Inspect">Inspect Your Layout</a></li>
20 <li><a href="#Revise">Revise Your Layout</a></li>
29 href="{@docRoot}guide/topics/resources/layout-resource.html#include- element">Layout
53 <h2 id="Inspect">Inspect Your Layout</h2>
62 Layout and Draw performance, helping you identify potential issues.</p>
81 <p class="img-caption"><strong>Figure 2.</strong> Layout hierarchy for the layout in figure 1,
99 <li>Layout: 0.167ms</li>
104 <h2 id="Revise">Revise Your Layout</h2>
[all …]
/frameworks/minikin/include/minikin/
DLayout.h65 class Layout {
68 Layout() : mGlyphs(), mAdvances(), mCollection(0), mFaces(), mAdvance(0), mBounds() { in Layout() function
125 void appendLayout(Layout* src, size_t start);
/frameworks/minikin/sample/
Dexample_skia.cpp82 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { in drawToSkia()
115 Layout::init(); in runMinikinTest()
118 Layout layout; in runMinikinTest()
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java21 import android.text.Layout;
52 final Layout layout = getLayout(); in onMeasure()
/frameworks/base/core/java/android/widget/
DAccessibilityIterators.java20 import android.text.Layout;
36 protected Layout mLayout;
45 public void initialize(Spannable text, Layout layout) { in initialize()

123456