Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/text/style/
DAlignmentSpan.java25 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;
/frameworks/base/core/java/android/text/
DLayout.java189 int width, Alignment align, in Layout()
211 int width, Alignment align, TextDirectionHeuristic textDir, in Layout()
245 int width, Alignment align, in replaceWith()
296 Alignment paraAlign = mAlignment; in getJustifyWidth()
353 final Alignment align; in getJustifyWidth()
354 if (paraAlign == Alignment.ALIGN_LEFT) { in getJustifyWidth()
355 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_NORMAL : Alignment.ALIGN_OPPOSITE; in getJustifyWidth()
356 } else if (paraAlign == Alignment.ALIGN_RIGHT) { in getJustifyWidth()
357 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_OPPOSITE : Alignment.ALIGN_NORMAL; in getJustifyWidth()
363 if (align == Alignment.ALIGN_NORMAL) { in getJustifyWidth()
[all …]
DBoringLayout.java40 Alignment align, in make()
50 Alignment align, in make()
65 int outerwidth, Alignment align, in replaceOrMake()
87 int outerwidth, Alignment align, in replaceOrMake()
120 Alignment align, in BoringLayout()
135 Alignment align, in BoringLayout()
170 Alignment align, in init()
176 if (source instanceof String && align == Layout.Alignment.ALIGN_NORMAL) { in init()
DHtml.java299 Layout.Alignment align = in encodeTextAlignmentByDiv()
302 if (align == Layout.Alignment.ALIGN_CENTER) { in encodeTextAlignmentByDiv()
304 } else if (align == Layout.Alignment.ALIGN_OPPOSITE) { in encodeTextAlignmentByDiv()
365 final Layout.Alignment alignment = s.getAlignment(); in getTextStyles()
366 if (alignment == Layout.Alignment.ALIGN_NORMAL) { in getTextStyles()
368 } else if (alignment == Layout.Alignment.ALIGN_CENTER) { in getTextStyles()
370 } else if (alignment == Layout.Alignment.ALIGN_OPPOSITE) { in getTextStyles()
967 start(text, new Alignment(Layout.Alignment.ALIGN_NORMAL)); in startBlockElement()
969 start(text, new Alignment(Layout.Alignment.ALIGN_CENTER)); in startBlockElement()
971 start(text, new Alignment(Layout.Alignment.ALIGN_OPPOSITE)); in startBlockElement()
[all …]
DStaticLayout.java87 b.mAlignment = Alignment.ALIGN_NORMAL; in obtain()
182 public Builder setAlignment(Alignment alignment) { in setAlignment()
409 Alignment mAlignment;
435 Alignment align, float spacingmult, float spacingadd,
445 int width, Alignment align, TextDirectionHeuristic textDir,
454 Alignment align,
466 Alignment align, TextDirectionHeuristic textDir,
475 Alignment align,
489 Alignment align, TextDirectionHeuristic textDir,
1234 public int getIndentAdjust(int line, Alignment align) {
[all …]
/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/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java620 static Alignment getAlignment(int gravity, boolean horizontal) { in getAlignment()
1052 Alignment hAlign = columnSpec.getAbsoluteAlignment(true); in onLayout()
1053 Alignment vAlign = rowSpec.getAbsoluteAlignment(false); in onLayout()
2288 protected int getOffset(GridLayout gl, View c, Alignment a, int size, boolean horizontal) {
2295 Alignment alignment = spec.getAbsoluteAlignment(horizontal);
2432 final Alignment alignment;
2435 private Spec(boolean startDefined, Interval span, Alignment alignment, float weight) {
2442 Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) {
2446 public Alignment getAbsoluteAlignment(boolean horizontal) {
2460 final Spec copyWriteAlignment(Alignment alignment) {
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
DLVDBE_Init.c76 pMemoryTable->Region[LVDBE_MEMREGION_INSTANCE].Alignment = LVDBE_INSTANCE_ALIGN; in LVDBE_Memory()
84 … pMemoryTable->Region[LVDBE_MEMREGION_PERSISTENT_DATA].Alignment = LVDBE_PERSISTENT_DATA_ALIGN; in LVDBE_Memory()
92 … 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()
181 … if (((uintptr_t)pMemoryTable->Region[i].pBaseAddress % pMemoryTable->Region[i].Alignment)!=0){ in LVDBE_Init()
/frameworks/base/core/java/android/widget/
DGridLayout.java636 static Alignment getAlignment(int gravity, boolean horizontal) { in getAlignment()
1156 Alignment hAlign = columnSpec.getAbsoluteAlignment(true); in onLayout()
1157 Alignment vAlign = rowSpec.getAbsoluteAlignment(false); in onLayout()
2398 protected int getOffset(GridLayout gl, View c, Alignment a, int size, boolean horizontal) {
2405 Alignment alignment = spec.getAbsoluteAlignment(axis.horizontal);
2542 final Alignment alignment;
2545 private Spec(boolean startDefined, Interval span, Alignment alignment, float weight) {
2552 private Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) {
2556 private Alignment getAbsoluteAlignment(boolean horizontal) {
2570 final Spec copyWriteAlignment(Alignment alignment) {
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTextMeasuringTest.java24 import android.text.Layout.Alignment;
39 private static final Alignment DEFAULT_ALIGN = Alignment.ALIGN_LEFT;
DTextLayoutTest.java41 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testStaticLayout()
48 Layout.Alignment.ALIGN_NORMAL, 1, 0, in testDynamicLayoutTest()
DStaticLayoutTest.java19 import static android.text.Layout.Alignment.ALIGN_NORMAL;
25 import android.text.Layout.Alignment;
240 Alignment align = ALIGN_NORMAL;
260 LayoutBuilder setAlignment(Alignment align) { in setAlignment()
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_Init.c90 pMemoryTable->Region[LVEQNB_MEMREGION_INSTANCE].Alignment = LVEQNB_INSTANCE_ALIGN; in LVEQNB_Memory()
111 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()
139 pMemoryTable->Region[LVEQNB_MEMREGION_SCRATCH].Alignment = LVEQNB_SCRATCH_ALIGN; in LVEQNB_Memory()
/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/base/core/java/com/android/internal/widget/
DSubtitleView.java30 import android.text.Layout.Alignment;
61 private Alignment mAlignment;
207 public void setAlignment(Alignment textAlignment) { in setAlignment()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatTextViewAutoSizeHelper.java666 Layout.Alignment alignment = invokeAndReturnWithDefault( in suggestedSizeFitsInSpace()
667 mTextView, "getLayoutAlignment", Layout.Alignment.ALIGN_NORMAL); in suggestedSizeFitsInSpace()
687 Layout.Alignment alignment, int availableWidth, int maxLines) { in createStaticLayoutForMeasuring()
711 Layout.Alignment alignment, int availableWidth) { in createStaticLayoutForMeasuringPre23()
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/
DLVEQNB.h229 LVM_UINT16 Alignment; /* Region alignment in bytes */ member
/frameworks/av/media/libeffects/lvm/lib/Bass/lib/
DLVDBE.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()

1234