Home
last modified time | relevance | path

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

12345

/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;
152 mCharsValid = hasReplacement || hasTabs || directions != Layout.DIRS_ALL_LEFT_TO_RIGHT; in set()
192 if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) { in draw()
196 if (mDirections == Layout.DIRS_ALL_RIGHT_TO_LEFT) { in draw()
209 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in draw()
213 boolean runIsRtl = (runs[i+1] & Layout.RUN_RTL_FLAG) != 0; in draw()
224 if (codept >= Layout.MIN_EMOJI && codept <= Layout.MAX_EMOJI) { in draw()
225 bm = Layout.EMOJI_FACTORY.getBitmapFromAndroidPua(codept); in draw()
292 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 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()
/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/compile/mclinker/include/mcld/LD/
DELFWriter.h26 class Layout; variable
55 const Layout& pLayout,
60 const Layout& pLayout,
65 const Layout& pLayout,
79 void emitSectionData(const Layout& pLayout,
83 void emitRelocation(const Layout& pLayout,
88 void emitRel(const Layout& pLayout,
93 void emitRela(const Layout& pLayout,
DRelocationFactory.h23 class Layout; variable
64 void setLayout(const Layout& pLayout);
67 const Layout& getLayout() const;
74 const Layout* m_pLayout;
DRelocation.h23 class Layout; variable
57 Address place(const Layout& pLayout) const;
/frameworks/compile/mclinker/lib/LD/
DLayout.cpp26 Layout::Range::Range() in Range()
31 Layout::Range::Range(const LDSection& pHdr) in Range()
36 Layout::Range::~Range() in ~Range()
42 Layout::Layout() in Layout() function in Layout
46 Layout::~Layout() in ~Layout()
50 void Layout::setFragmentLayoutOrder(llvm::MCFragment* pFrag) in setFragmentLayoutOrder()
87 void Layout::setFragmentLayoutOffset(llvm::MCFragment* pFrag) in setFragmentLayoutOffset()
123 void Layout::addInputRange(const llvm::MCSectionData& pSD, in addInputRange()
172 uint64_t Layout::appendFragment(llvm::MCFragment& pFrag, in appendFragment()
209 Layout::getInputLDSection(const llvm::MCFragment& pFrag) in getInputLDSection()
[all …]
DRelocationFactory.cpp81 void RelocationFactory::setLayout(const Layout& pLayout) in setLayout()
86 const Layout& RelocationFactory::getLayout() const in getLayout()
/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()
154 Layout layout = widget.getLayout(); in onTouchEvent()
/frameworks/compile/mclinker/lib/MC/
DMCBitcodeInterceptor.cpp50 const MCAsmLayout &Layout) in ExecutePostLayoutBinding() argument
56 const MCAsmLayout &Layout, in RecordRelocation() argument
66 const MCAsmLayout &Layout) in WriteObject() argument
/frameworks/compile/mclinker/include/mcld/MC/
DMCBitcodeInterceptor.h51 const llvm::MCAsmLayout &Layout);
56 const llvm::MCAsmLayout &Layout,
64 void WriteObject(llvm::MCAssembler &Asm, const llvm::MCAsmLayout &Layout);
DMCFragmentRef.h21 class Layout; variable
24 uint64_t computeFragmentSize(const Layout& pLayout,
/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/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h120 const Layout& pLayout,
169 const Layout& pLayout) const;
191 const Layout& pLayout,
/frameworks/compile/mclinker/include/mcld/Target/
DGNULDBackend.h50 class Layout; variable
177 const Layout& pLayout,
183 const Layout& pLayout,
266 uint64_t getSymbolShndx(const LDSymbol& pSymbol, const Layout& pLayout) const;
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java21 import android.text.Layout;
49 final Layout layout = getLayout(); in onMeasure()

12345