Home
last modified time | relevance | path

Searched refs:Alignment (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/text/
DLayout.java227 int width, Alignment align, in Layout()
249 int width, Alignment align, TextDirectionHeuristic textDir, in Layout()
283 int width, Alignment align, in replaceWith()
334 Alignment paraAlign = mAlignment; in getJustifyWidth()
385 final Alignment align; in getJustifyWidth()
386 if (paraAlign == Alignment.ALIGN_LEFT) { in getJustifyWidth()
387 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_NORMAL : Alignment.ALIGN_OPPOSITE; in getJustifyWidth()
388 } else if (paraAlign == Alignment.ALIGN_RIGHT) { in getJustifyWidth()
389 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_OPPOSITE : Alignment.ALIGN_NORMAL; in getJustifyWidth()
395 if (align == Alignment.ALIGN_NORMAL) { in getJustifyWidth()
[all …]
DBoringLayout.java55 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in make()
81 Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, in make()
104 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake()
138 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake()
173 public BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, in BoringLayout()
202 public BoringLayout(CharSequence source, TextPaint paint, int outerWidth, Alignment align, in BoringLayout()
230 /* package */ void init(CharSequence source, TextPaint paint, Alignment align, in init()
234 if (source instanceof String && align == Layout.Alignment.ALIGN_NORMAL) { in init()
DHtml.java300 Layout.Alignment align = in encodeTextAlignmentByDiv()
303 if (align == Layout.Alignment.ALIGN_CENTER) { in encodeTextAlignmentByDiv()
305 } else if (align == Layout.Alignment.ALIGN_OPPOSITE) { in encodeTextAlignmentByDiv()
366 final Layout.Alignment alignment = s.getAlignment(); in getTextStyles()
367 if (alignment == Layout.Alignment.ALIGN_NORMAL) { in getTextStyles()
369 } else if (alignment == Layout.Alignment.ALIGN_CENTER) { in getTextStyles()
371 } else if (alignment == Layout.Alignment.ALIGN_OPPOSITE) { in getTextStyles()
969 start(text, new Alignment(Layout.Alignment.ALIGN_NORMAL)); in startBlockElement()
971 start(text, new Alignment(Layout.Alignment.ALIGN_CENTER)); in startBlockElement()
973 start(text, new Alignment(Layout.Alignment.ALIGN_OPPOSITE)); in startBlockElement()
[all …]
DStaticLayout.java102 b.mAlignment = Alignment.ALIGN_NORMAL; in obtain()
199 public Builder setAlignment(@NonNull Alignment alignment) { in setAlignment()
426 private Alignment mAlignment;
453 Alignment align, float spacingmult, float spacingadd, in StaticLayout()
465 Alignment align, in StaticLayout()
478 Alignment align, in StaticLayout()
495 Alignment align, TextDirectionHeuristic textDir, in StaticLayout()
1304 public int getIndentAdjust(int line, Alignment align) {
1305 if (align == Alignment.ALIGN_LEFT) {
1311 } else if (align == Alignment.ALIGN_RIGHT) {
[all …]
DDynamicLayout.java79 b.mAlignment = Alignment.ALIGN_NORMAL; in obtain()
125 public Builder setAlignment(@NonNull Alignment alignment) { in setAlignment()
289 private Alignment mAlignment;
312 @IntRange(from = 0) int width, @NonNull Alignment align, in DynamicLayout()
325 @IntRange(from = 0) int width, @NonNull Alignment align, in DynamicLayout()
338 @IntRange(from = 0) int width, @NonNull Alignment align, in DynamicLayout()
362 @NonNull Alignment align, @NonNull TextDirectionHeuristic textDir, in DynamicLayout()
/frameworks/base/core/java/android/text/style/
DAlignmentSpan.java35 Layout.Alignment getAlignment(); in getAlignment()
57 private final Layout.Alignment mAlignment;
62 public Standard(@NonNull Layout.Alignment align) { in Standard()
70 mAlignment = Layout.Alignment.valueOf(src.readString()); in Standard()
101 public Layout.Alignment getAlignment() { in getAlignment()
/frameworks/compile/mclinker/unittests/
DFragmentTest.cpp40 new Fragment(Fragment::Alignment, s); in TEST_F()
42 new Fragment(Fragment::Alignment, s); in TEST_F()
55 Fragment* f = new Fragment(Fragment::Alignment, s); in TEST_F()
57 EXPECT_TRUE(Fragment::Alignment == f->getKind()); in TEST_F()
DSectionDataTest.cpp53 new Fragment(Fragment::Alignment, s); in TEST_F()
54 new Fragment(Fragment::Alignment, s); in TEST_F()
62 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
64 EXPECT_TRUE(Fragment::Alignment == iter->getKind()); in TEST_F()
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DAlignmentTest.java28 import android.widget.GridLayout.Alignment;
44 public static final Alignment[] HORIZONTAL_ALIGNMENTS = {LEFT, CENTER, RIGHT, FILL};
46 public static final Alignment[] VERTICAL_ALIGNMENTS = {TOP, CENTER, BASELINE, BOTTOM, FILL};
93 Alignment va = VERTICAL_ALIGNMENTS[i]; in create()
95 Alignment ha = HORIZONTAL_ALIGNMENTS[j]; in create()
/frameworks/base/core/java/android/text/method/
DTouch.java20 import android.text.Layout.Alignment;
42 Alignment a = layout.getParagraphAlignment(top); in scrollTo()
65 if (a == Alignment.ALIGN_CENTER) { in scrollTo()
67 } else if ((ltr && (a == Alignment.ALIGN_OPPOSITE)) || in scrollTo()
68 (!ltr && (a == Alignment.ALIGN_NORMAL)) || in scrollTo()
69 (a == Alignment.ALIGN_RIGHT)) { in scrollTo()
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
DLVDBE_Init.cpp75 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Alignment = LVDBE_INSTANCE_ALIGN; in LVDBE_Memory()
83 … pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Alignment = LVDBE_PERSISTENT_DATA_ALIGN; in LVDBE_Memory()
91 … pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_COEF].Alignment = LVDBE_PERSISTENT_COEF_ALIGN; in LVDBE_Memory()
101 pMemoryTable->Region[LVDBE_MEMREGION_SCRATCH].Alignment = LVDBE_SCRATCH_ALIGN; in LVDBE_Memory()
178 … if (((uintptr_t)pMemoryTable->Region[i].pBaseAddress % pMemoryTable->Region[i].Alignment)!=0){ in LVDBE_Init()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTextMeasuringTest.java22 import android.text.Layout.Alignment;
40 private static final Alignment DEFAULT_ALIGN = Alignment.ALIGN_LEFT;
DTextLayoutTest.java44 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testStaticLayout()
51 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testDynamicLayoutTest()
DLayoutTest.java34 import android.text.Layout.Alignment;
60 private Layout.Alignment mAlign;
71 mAlign = Alignment.ALIGN_CENTER; in setup()
316 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelectionWithASingleLineSelection()
347 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter()
393 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false);
436 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelectionPathWithASingleLineSelection()
469 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelection_latinTextDirection()
480 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelection_arabicTextDirection()
491 Alignment.ALIGN_LEFT, mSpacingMult, mSpacingAdd, false); in testGetSelection_mixedLatinAndArabicTextDirection()
[all …]
DStaticLayoutTest.java19 import static android.text.Layout.Alignment.ALIGN_NORMAL;
29 import android.text.Layout.Alignment;
61 private static final Alignment DEFAULT_ALIGN = Alignment.ALIGN_CENTER;
330 Alignment align = ALIGN_NORMAL;
350 LayoutBuilder setAlignment(Alignment align) { in setAlignment()
/frameworks/base/core/java/android/widget/
DGridLayout.java659 static Alignment getAlignment(int gravity, boolean horizontal) { in getAlignment()
1179 Alignment hAlign = columnSpec.getAbsoluteAlignment(true); in onLayout()
1180 Alignment vAlign = rowSpec.getAbsoluteAlignment(false); in onLayout()
2421 protected int getOffset(GridLayout gl, View c, Alignment a, int size, boolean horizontal) {
2428 Alignment alignment = spec.getAbsoluteAlignment(axis.horizontal);
2565 final Alignment alignment;
2568 private Spec(boolean startDefined, Interval span, Alignment alignment, float weight) {
2575 private Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) {
2579 private Alignment getAbsoluteAlignment(boolean horizontal) {
2593 final Spec copyWriteAlignment(Alignment alignment) {
[all …]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_Init.cpp87 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Alignment = LVEQNB_INSTANCE_ALIGN; in LVEQNB_Memory()
110 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_DATA].Alignment = LVEQNB_DATA_ALIGN; in LVEQNB_Memory()
127 pMemoryTable->Region[LVEQNB_MEMREGION_PERSISTENT_COEF].Alignment = LVEQNB_COEF_ALIGN; in LVEQNB_Memory()
140 pMemoryTable->Region[LVEQNB_MEMREGION_SCRATCH].Alignment = LVEQNB_SCRATCH_ALIGN; in LVEQNB_Memory()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java30 import android.text.Layout.Alignment;
61 private Alignment mAlignment = Alignment.ALIGN_CENTER;
207 public void setAlignment(Alignment textAlignment) { in setAlignment()
/frameworks/compile/slang/
Dlegacy_bitcode.h23 if (A.hasAttribute(i, llvm::Attribute::Alignment)) { in encodeLLVMAttributesForBitcode()
/frameworks/compile/mclinker/lib/Fragment/
DAlignFragment.cpp24 : Fragment(Fragment::Alignment, pSD), in AlignFragment()
/frameworks/compile/mclinker/include/mcld/Fragment/
DAlignFragment.h39 return F->getKind() == Fragment::Alignment; in classof()
DFragment.h29 enum Type { Alignment, Fillment, Region, Target, Stub, Null }; enumerator
/frameworks/av/media/libeffects/lvm/lib/Bass/lib/
DLVDBE.h220 LVM_UINT16 Alignment; /* Region alignment in bytes */ member
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/
DLVEQNB.h227 LVM_UINT16 Alignment; /* Region alignment in bytes */ member
/frameworks/compile/mclinker/lib/LD/
DBranchIslandFactory.cpp50 while (frag != NULL && frag->getKind() == Fragment::Alignment) { in group()

12