/frameworks/base/core/java/android/text/ |
D | AndroidBidi.java | 19 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 …]
|
D | Selection.java | 122 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 …]
|
D | TextLine.java | 24 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() 211 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in draw() 215 boolean runIsRtl = (runs[i+1] & Layout.RUN_RTL_FLAG) != 0; in draw() 276 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in measure() 279 if (mDirections == Layout.DIRS_ALL_RIGHT_TO_LEFT) { in measure() 288 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in measure() [all …]
|
D | MeasuredText.java | 139 mDir = Layout.DIR_LEFT_TO_RIGHT; in setPara() 147 bidiRequest = Layout.DIR_REQUEST_LTR; in setPara() 149 bidiRequest = Layout.DIR_REQUEST_RTL; in setPara() 151 bidiRequest = Layout.DIR_REQUEST_DEFAULT_LTR; in setPara() 153 bidiRequest = Layout.DIR_REQUEST_DEFAULT_RTL; in setPara() 156 bidiRequest = isRtl ? Layout.DIR_REQUEST_RTL : Layout.DIR_REQUEST_LTR; in setPara() 178 boolean isRtl = mDir != Layout.DIR_LEFT_TO_RIGHT; in addStyleRun()
|
D | BoringLayout.java | 37 public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback { 176 if (source instanceof String && align == Layout.Alignment.ALIGN_NORMAL) { in init() 203 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, in init() 204 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in init() 308 line.set(paint, text, 0, textLength, Layout.DIR_LEFT_TO_RIGHT, in isBoring() 309 Layout.DIRS_ALL_LEFT_TO_RIGHT, false, null); in isBoring() 372 return Layout.DIRS_ALL_LEFT_TO_RIGHT; in getLineDirections()
|
D | Html.java | 302 Layout.Alignment align = in encodeTextAlignmentByDiv() 305 if (align == Layout.Alignment.ALIGN_CENTER) { in encodeTextAlignmentByDiv() 307 } else if (align == Layout.Alignment.ALIGN_OPPOSITE) { in encodeTextAlignmentByDiv() 351 int paraDir = AndroidBidi.bidi(Layout.DIR_REQUEST_DEFAULT_LTR, buffer, levels, len, in getTextDirection() 354 case Layout.DIR_RIGHT_TO_LEFT: in getTextDirection() 356 case Layout.DIR_LEFT_TO_RIGHT: in getTextDirection() 377 final Layout.Alignment alignment = s.getAlignment(); in getTextStyles() 378 if (alignment == Layout.Alignment.ALIGN_NORMAL) { in getTextStyles() 380 } else if (alignment == Layout.Alignment.ALIGN_CENTER) { in getTextStyles() 382 } else if (alignment == Layout.Alignment.ALIGN_OPPOSITE) { in getTextStyles() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | AlignmentSpan.java | 20 import android.text.Layout; 25 Layout.Alignment getAlignment(); in getAlignment() 28 public Standard(Layout.Alignment align) { in Standard() 33 mAlignment = Layout.Alignment.valueOf(src.readString()); in Standard() 58 public Layout.Alignment getAlignment() { in getAlignment() 62 private final Layout.Alignment mAlignment;
|
D | LeadingMarginSpan.java | 22 import android.text.Layout; 71 boolean first, Layout layout); in drawLeadingMargin() 158 boolean first, Layout layout) { in drawLeadingMargin()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 21 import android.text.Layout.Alignment; 22 import static android.text.Layout.Alignment.*; 55 Layout l = b.build(); in testGetters1() 61 assertEquals(Layout.DIR_LEFT_TO_RIGHT, l.getParagraphDirection(0)); in testGetters1() 63 assertEquals(Layout.DIRS_ALL_LEFT_TO_RIGHT, l.getLineDirections(0)); in testGetters1() 79 Layout l = b.build(); in testGetters2() 95 Layout l = b.build(); in testGetters3() 113 Layout l = b.build(); in testGetters4() 141 Layout l = b.build(); in testGetters5() 162 Layout l = b.build(); in testGetters6() [all …]
|
D | TextLayoutTest.java | 21 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()
|
D | StaticLayoutDirectionsTest.java | 19 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/ |
D | Layout.cpp | 137 void doLayout(Layout* layout, LayoutContext* ctx, const FontCollection* collection) const { in doLayout() 165 class LayoutCache : private OnEntryRemoved<LayoutCacheKey, Layout*> { 175 Layout* get(LayoutCacheKey& key, LayoutContext* ctx, const FontCollection* collection) { in get() 176 Layout* layout = mCache.get(key); in get() 179 layout = new Layout(); in get() 188 void operator()(LayoutCacheKey& key, Layout*& value) { in operator ()() 193 LruCache<LayoutCacheKey, Layout*> mCache; 273 void Layout::init() { in init() 276 void Layout::reset() { in reset() 284 void Layout::setFontCollection(const FontCollection* collection) { in setFontCollection() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | ArrowKeyMovementMethod.java | 20 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()
|
D | BaseMovementMethod.java | 19 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()
|
D | Touch.java | 19 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() 157 Layout layout = widget.getLayout(); in onTouchEvent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ImageFloatingTextView.java | 22 import android.text.Layout; 61 protected Layout makeSingleLayout(int wantWidth, BoringLayout.Metrics boring, int ellipsisWidth, in makeSingleLayout() 62 Layout.Alignment alignment, boolean shouldEllipsize, in makeSingleLayout() 73 .setBreakStrategy(Layout.BREAK_STRATEGY_HIGH_QUALITY) in makeSingleLayout() 74 .setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL); in makeSingleLayout()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 80 class Layout { 83 Layout() : mGlyphs(), mAdvances(), mCollection(0), mFaces(), mAdvance(0), mBounds() { in Layout() function 140 const FontCollection* collection, Layout* layout, float* advances); 145 Layout* layout, float* advances); 152 void appendLayout(Layout* src, size_t start);
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.h | 40 ANDROID_API static void doLayout(Layout* layout, const Paint* paint, int bidiFlags, 49 ANDROID_API static float xOffsetForTextAlign(Paint* paint, const Layout& layout); 51 …ANDROID_API static float hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& pat… 54 ANDROID_API static void forFontRun(const Layout& layout, Paint* paint, F& f) { in forFontRun()
|
D | MinikinUtils.cpp | 53 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, in doLayout() 68 return Layout::measureText(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint, in measureText() 77 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const Layout& layout) { in xOffsetForTextAlign() 91 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) { in hOffsetForTextAlign()
|
D | Canvas.cpp | 82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, in DrawTextFunctor() 138 const Layout& layout; 154 Layout layout; in drawText() 181 DrawTextOnPathFunctor(const Layout& layout, Canvas* canvas, float hOffset, in DrawTextOnPathFunctor() 201 const Layout& layout; 212 Layout layout; in drawTextOnPath()
|
/frameworks/base/docs/html/training/animation/ |
D | layout.jd | 1 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/ |
D | optimizing-layout.jd | 1 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/sample/ |
D | example_skia.cpp | 80 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { in drawToSkia() 113 Layout::init(); in runMinikinTest() 116 Layout layout; in runMinikinTest()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | DialogTitle.java | 22 import android.text.Layout; 51 final Layout layout = getLayout(); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | TextViewTransformState.java | 19 import android.text.Layout; 61 Layout l = mText.getLayout(); in getEllipsisCount()
|