Home
last modified time | relevance | path

Searched refs:isLayoutRtl (Results 1 – 25 of 68) sorted by relevance

123

/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarContextView.java385 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
386 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
392 final int startMargin = (isLayoutRtl ? lp.rightMargin : lp.leftMargin); in onLayout()
393 final int endMargin = (isLayoutRtl ? lp.leftMargin : lp.rightMargin); in onLayout()
394 x = next(x, startMargin, isLayoutRtl); in onLayout()
395 x += positionChild(mClose, x, y, contentHeight, isLayoutRtl); in onLayout()
396 x = next(x, endMargin, isLayoutRtl); in onLayout()
401 x += positionChild(mTitleLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
405 x += positionChild(mCustomView, x, y, contentHeight, isLayoutRtl); in onLayout()
408 x = isLayoutRtl ? getPaddingLeft() : r - l - getPaddingRight(); in onLayout()
[all …]
H A DActionBarView.java1102 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
1103 final int direction = isLayoutRtl ? 1 : -1; in onLayout()
1124 next(x, startOffset, isLayoutRtl), y, contentHeight, isLayoutRtl); in onLayout()
1125 x = next(x, startOffset, isLayoutRtl); in onLayout()
1137 x = next(x, mItemPadding, isLayoutRtl); in onLayout()
1189 if (isLayoutRtl) { in onLayout()
1216 xpos = isLayoutRtl ? menuStart : x; in onLayout()
1247 x = next(x, customWidth, isLayoutRtl); in onLayout()
1548 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
1560 if (isLayoutRtl) { in onLayout()
[all …]
H A DNotificationActionListLayout.java263 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
294 if (isLayoutRtl) { in onLayout()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
H A DMediaCarouselScrollHandlerTest.kt89 whenever(mediaCarousel.isLayoutRtl).thenReturn(false)
100 whenever(mediaCarousel.isLayoutRtl).thenReturn(true)
111 whenever(mediaCarousel.isLayoutRtl).thenReturn(false)
122 whenever(mediaCarousel.isLayoutRtl).thenReturn(true)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DConfigurationController.java34 boolean isLayoutRtl(); in isLayoutRtl() method
44 default void onLayoutDirectionChanged(boolean isLayoutRtl) {} in onLayoutDirectionChanged() argument
/aosp14/frameworks/base/core/java/android/widget/
H A DCalendarViewLegacyDelegate.java1342 final boolean isLayoutRtl = isLayoutRtl(); in getDayFromLocation()
1347 if (isLayoutRtl) { in getDayFromLocation()
1363 if (isLayoutRtl) { in getDayFromLocation()
1384 if (isLayoutRtl()) { in getBoundsForDate()
1423 final boolean isLayoutRtl = isLayoutRtl(); in drawBackground()
1425 if (isLayoutRtl) { in drawBackground()
1434 if (isLayoutRtl) { in drawBackground()
1460 if (isLayoutRtl()) { in drawWeekNumbersAndDates()
1506 if (isLayoutRtl()) { in drawWeekSeparators()
1550 final boolean isLayoutRtl = isLayoutRtl(); in updateSelectionPositions()
[all …]
H A DExpandableListView.java314 final boolean isLayoutRtl = isLayoutRtl(); in resolveIndicator()
315 if (isLayoutRtl) { in resolveIndicator()
340 final boolean isLayoutRtl = isLayoutRtl(); in resolveChildIndicator()
341 if (isLayoutRtl) { in resolveChildIndicator()
420 final boolean isLayoutRtl = isLayoutRtl(); in dispatchDraw()
436 if (isLayoutRtl) { in dispatchDraw()
H A DCompoundButton.java499 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
511 if (isLayoutRtl()) { in getCompoundPaddingRight()
549 final int left = isLayoutRtl() ? getWidth() - drawableWidth : 0; in onDraw()
550 final int right = isLayoutRtl() ? getWidth() : drawableWidth; in onDraw()
H A DSimpleMonthView.java400 focusChanged = moveOneDay(isLayoutRtl()); in onKeyDown()
405 focusChanged = moveOneDay(!isLayoutRtl()); in onKeyDown()
563 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft; in findClosestColumn()
656 if (isLayoutRtl()) { in drawDaysOfWeek()
683 if (isLayoutRtl()) { in drawDays()
967 if (isLayoutRtl()) { in getDayAtLocation()
1001 if (isLayoutRtl()) { in getBoundsForDay()
H A DGridView.java346 final boolean isLayoutRtl = isLayoutRtl(); in makeRow()
351 if (isLayoutRtl) { in makeRow()
367 nextLeft += (isLayoutRtl ? -1 : +1) * deltaLeft; in makeRow()
378 final int nextChildDir = isLayoutRtl ? -1 : +1; in makeRow()
1874 final boolean isLayoutRtl = isLayoutRtl(); in arrowScroll()
1875 if (selectedPosition > startOfRowPos && ((direction == FOCUS_LEFT && !isLayoutRtl) || in arrowScroll()
1876 (direction == FOCUS_RIGHT && isLayoutRtl))) { in arrowScroll()
1880 } else if (selectedPosition < endOfRowPos && ((direction == FOCUS_LEFT && isLayoutRtl) || in arrowScroll()
1881 (direction == FOCUS_RIGHT && !isLayoutRtl))) { in arrowScroll()
H A DRelativeLayout.java467 if (isLayoutRtl() && myWidth == -1) { in onMeasure()
505 if (isLayoutRtl()) { in onMeasure()
646 if (isLayoutRtl()) { in onMeasure()
869 if (isLayoutRtl()) { in positionAtEdge()
1550 final boolean isLayoutRtl = (layoutDirection == View.LAYOUT_DIRECTION_RTL); in resolveRules()
1620 mRules[isLayoutRtl ? ALIGN_RIGHT : ALIGN_LEFT] = mRules[ALIGN_START]; in resolveRules()
1625 mRules[isLayoutRtl ? ALIGN_LEFT : ALIGN_RIGHT] = mRules[ALIGN_END]; in resolveRules()
1637 mRules[isLayoutRtl ? RIGHT_OF : LEFT_OF] = mRules[START_OF]; in resolveRules()
1642 mRules[isLayoutRtl ? LEFT_OF : RIGHT_OF] = mRules[END_OF]; in resolveRules()
1654 … mRules[isLayoutRtl ? ALIGN_PARENT_RIGHT : ALIGN_PARENT_LEFT] = mRules[ALIGN_PARENT_START]; in resolveRules()
[all …]
H A DLinearLayout.java477 final boolean isLayoutRtl = isLayoutRtl(); in drawDividersHorizontal()
484 if (isLayoutRtl) { in drawDividersHorizontal()
498 if (isLayoutRtl) { in drawDividersHorizontal()
505 if (isLayoutRtl) { in drawDividersHorizontal()
1762 final boolean isLayoutRtl = isLayoutRtl(); in layoutHorizontal()
1806 if (isLayoutRtl) { in layoutHorizontal()
1869 if (isLayoutRtl) { in layoutHorizontal()
H A DActionMenuView.java450 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
467 if (isLayoutRtl) { in onLayout()
506 if (isLayoutRtl) { in onLayout()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java130 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
140 if (isLayoutRtl) { in onLayout()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DTunablePadding.java63 int left = mView.isLayoutRtl() ? FLAG_END : FLAG_START; in onTuningChanged()
64 int right = mView.isLayoutRtl() ? FLAG_START : FLAG_END; in onTuningChanged()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPagedTileLayout.java177 if (isLayoutRtl()) { in setCurrentItem()
187 return getPageNumberForDirection(isLayoutRtl()); in getCurrentPageNumber()
591 mScroller.startScroll(getScrollX(), getScrollY(), isLayoutRtl() ? -dx : dx, 0, in startTileReveal()
612 if (!isLayoutRtl()) {
689 int pageNumber = isLayoutRtl() ? mPages.size() - 1 - position : position;
708 int pageNumber = isLayoutRtl() ? mPages.size() - 1 - position : position;
739 if (isLayoutRtl()) {
H A DQSPanelController.java202 public boolean isLayoutRtl() { in isLayoutRtl() method in QSPanelController
203 return mView.isLayoutRtl(); in isLayoutRtl()
/aosp14/frameworks/base/core/java/android/inputmethodservice/navigationbar/
H A DReverseLinearLayout.java88 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
89 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
H A DReverseLinearLayout.java86 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
87 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
H A DFakeConfigurationController.java38 public boolean isLayoutRtl() { in isLayoutRtl() method in FakeConfigurationController
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
H A DFakeConfigurationController.kt34 override fun isLayoutRtl(): Boolean = false
/aosp14/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
H A DAnimatableClockView.kt473 get() = if (isLayoutRtl) MOVE_LEFT_DELAYS else MOVE_RIGHT_DELAYS
476 get() = if (isLayoutRtl) MOVE_RIGHT_DELAYS else MOVE_LEFT_DELAYS
495 val isMovingToCenter = if (isLayoutRtl) clockMoveDirection < 0 else clockMoveDirection > 0
497 val digitOffsetDirection = if (isLayoutRtl) -1 else 1
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
H A DShadeHeaderController.kt322 val newPivot = if (v.isLayoutRtl) v.width.toFloat() else 0f
408 if (view.isLayoutRtl) cutoutRight else cutoutLeft,
410 if (view.isLayoutRtl) cutoutLeft else cutoutRight,
421 view.isLayoutRtl,
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DResolverViewPager.java87 return !isLayoutRtl() && mSwipingEnabled && super.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarContentInsetsProvider.kt151 val isRtl = configurationController.isLayoutRtl
245 if (configurationController.isLayoutRtl) {
261 configurationController.isLayoutRtl,

123