Home
last modified time | relevance | path

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

123

/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/base/core/java/android/text/
DLayout.java249 int width, Alignment align, in Layout()
271 int width, Alignment align, TextDirectionHeuristic textDir, in Layout()
305 int width, Alignment align, in replaceWith()
356 Alignment paraAlign = mAlignment; in getJustifyWidth()
407 final Alignment align; in getJustifyWidth()
408 if (paraAlign == Alignment.ALIGN_LEFT) { in getJustifyWidth()
409 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_NORMAL : Alignment.ALIGN_OPPOSITE; in getJustifyWidth()
410 } else if (paraAlign == Alignment.ALIGN_RIGHT) { in getJustifyWidth()
411 align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_OPPOSITE : Alignment.ALIGN_NORMAL; in getJustifyWidth()
417 if (align == Alignment.ALIGN_NORMAL) { in getJustifyWidth()
[all …]
DBoringLayout.java58 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in make()
84 Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, in make()
118 @NonNull Alignment align, @NonNull BoringLayout.Metrics metrics, in make()
142 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake()
184 @NonNull Alignment align, @NonNull BoringLayout.Metrics metrics, boolean includePad, in replaceOrMake()
233 Alignment align, float spacingMult, float spacingAdd, BoringLayout.Metrics metrics, in replaceOrMake()
251 public BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, in BoringLayout()
281 public BoringLayout(CharSequence source, TextPaint paint, int outerWidth, Alignment align, in BoringLayout()
312 @IntRange(from = 0) int outerWidth, @NonNull Alignment align, float spacingMult, in BoringLayout()
342 /* package */ void init(CharSequence source, TextPaint paint, Alignment align, in init()
[all …]
DHtml.java303 Layout.Alignment align = in encodeTextAlignmentByDiv()
306 if (align == Layout.Alignment.ALIGN_CENTER) { in encodeTextAlignmentByDiv()
308 } else if (align == Layout.Alignment.ALIGN_OPPOSITE) { in encodeTextAlignmentByDiv()
369 final Layout.Alignment alignment = s.getAlignment(); in getTextStyles()
370 if (alignment == Layout.Alignment.ALIGN_NORMAL) { in getTextStyles()
372 } else if (alignment == Layout.Alignment.ALIGN_CENTER) { in getTextStyles()
374 } else if (alignment == Layout.Alignment.ALIGN_OPPOSITE) { in getTextStyles()
980 start(text, new Alignment(Layout.Alignment.ALIGN_NORMAL)); in startBlockElement()
982 start(text, new Alignment(Layout.Alignment.ALIGN_CENTER)); in startBlockElement()
984 start(text, new Alignment(Layout.Alignment.ALIGN_OPPOSITE)); in startBlockElement()
[all …]
DStaticLayout.java103 b.mAlignment = Alignment.ALIGN_NORMAL; in obtain()
201 public Builder setAlignment(@NonNull Alignment alignment) { in setAlignment()
444 private Alignment mAlignment;
472 Alignment align, float spacingmult, float spacingadd, in StaticLayout()
484 Alignment align, in StaticLayout()
497 Alignment align, in StaticLayout()
514 Alignment align, TextDirectionHeuristic textDir, in StaticLayout()
1353 public int getIndentAdjust(int line, Alignment align) {
1354 if (align == Alignment.ALIGN_LEFT) {
1360 } 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/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/packages/SystemUI/compose/core/src/com/android/compose/pager/
DPager.kt34 import androidx.compose.ui.Alignment in <lambda>()
113 verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, in HorizontalPager()
160 horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, in VerticalPager()
192 verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, in Pager()
193 horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, in Pager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuView.java99 @Alignment
174 Alignment.LEFT,
175 Alignment.RIGHT
178 @interface Alignment { annotation in AccessibilityFloatingMenuView
212 mRadiusType = (mAlignment == Alignment.RIGHT) in AccessibilityFloatingMenuView()
239 mRadiusType = (mAlignment == Alignment.RIGHT) in AccessibilityFloatingMenuView()
424 final float toXValue = (mAlignment == Alignment.RIGHT) in startTranslateXAnimation()
535 private boolean isMovingTowardsScreenEdge(@Alignment int side, int currentRawX, int downX) { in isMovingTowardsScreenEdge()
536 return (side == Alignment.RIGHT && currentRawX > downX) in isMovingTowardsScreenEdge()
537 || (side == Alignment.LEFT && downX > currentRawX); in isMovingTowardsScreenEdge()
[all …]
/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/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 …]
/frameworks/base/core/java/android/widget/
DGridLayout.java665 static Alignment getAlignment(int gravity, boolean horizontal) { in getAlignment()
1185 Alignment hAlign = columnSpec.getAbsoluteAlignment(true); in onLayout()
1186 Alignment vAlign = rowSpec.getAbsoluteAlignment(false); in onLayout()
2427 protected int getOffset(GridLayout gl, View c, Alignment a, int size, boolean horizontal) {
2434 Alignment alignment = spec.getAbsoluteAlignment(axis.horizontal);
2571 final Alignment alignment;
2574 private Spec(boolean startDefined, Interval span, Alignment alignment, float weight) {
2581 private Spec(boolean startDefined, int start, int size, Alignment alignment, float weight) {
2585 private Alignment getAbsoluteAlignment(boolean horizontal) {
2599 final Spec copyWriteAlignment(Alignment alignment) {
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/people/ui/compose/
DPeopleScreenEmpty.kt37 import androidx.compose.ui.Alignment
53 horizontalAlignment = Alignment.CenterHorizontally, in PeopleScreenEmpty()
98 verticalAlignment = Alignment.CenterVertically, in ExampleTile()
100 Column(horizontalAlignment = Alignment.CenterHorizontally) { in ExampleTile()
DPeopleScreen.kt42 import androidx.compose.ui.Alignment in <lambda>()
119 horizontalAlignment = Alignment.CenterHorizontally, in PeopleScreenWithConversations()
225 verticalAlignment = Alignment.CenterVertically, in Tile()
/frameworks/base/libs/hwui/canvas/
DOpBuffer.h57 static constexpr size_t Alignment = alignof(void*); variable
60 return (size + (Alignment - 1)) & -Alignment; in PadAlign()
97 static_assert(alignof(ItemContainer<T>) <= Alignment); in push_container()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
DFooterActions.kt46 import androidx.compose.ui.Alignment in <lambda>()
173 verticalAlignment = Alignment.CenterVertically, in <lambda>()
288 modifier = Modifier.align(Alignment.Center), in NumberButton()
298 NewChangesDot(Modifier.align(Alignment.BottomEnd)) in NumberButton()
334 verticalAlignment = Alignment.CenterVertically, in TextButton()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java30 import android.text.Layout.Alignment;
61 private Alignment mAlignment = Alignment.ALIGN_CENTER;
208 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

123