Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/com/android/internal/widget/
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 …]
DActionBarView.java1102 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
1103 final int direction = isLayoutRtl ? 1 : -1; in onLayout()
1104 int menuStart = isLayoutRtl ? getPaddingLeft() : r - l - getPaddingRight(); in onLayout()
1107 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
1124 next(x, startOffset, isLayoutRtl), y, contentHeight, isLayoutRtl); in onLayout()
1125 x = next(x, startOffset, isLayoutRtl); in onLayout()
1134 x = next(x, mItemPadding, isLayoutRtl); in onLayout()
1136 x += positionChild(mListNavLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
1137 x = next(x, mItemPadding, isLayoutRtl); in onLayout()
1142 if (showTitle) x = next(x, mItemPadding, isLayoutRtl); in onLayout()
[all …]
DNotificationActionListLayout.java308 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
339 if (isLayoutRtl) { in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DConfigurationController.java34 boolean isLayoutRtl(); in isLayoutRtl() method
47 default void onLayoutDirectionChanged(boolean isLayoutRtl) {} in onLayoutDirectionChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandlerTest.kt86 whenever(mediaCarousel.isLayoutRtl).thenReturn(false) in testCarouselScroll_shortScroll()
98 whenever(mediaCarousel.isLayoutRtl).thenReturn(true) in testCarouselScroll_shortScroll_isRTL()
110 whenever(mediaCarousel.isLayoutRtl).thenReturn(false) in testCarouselScroll_longScroll()
122 whenever(mediaCarousel.isLayoutRtl).thenReturn(true) in testCarouselScroll_longScroll_isRTL()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java130 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
140 if (isLayoutRtl) { in onLayout()
/frameworks/base/core/java/android/widget/
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 …]
DExpandableListView.java315 final boolean isLayoutRtl = isLayoutRtl(); in resolveIndicator()
316 if (isLayoutRtl) { in resolveIndicator()
341 final boolean isLayoutRtl = isLayoutRtl(); in resolveChildIndicator()
342 if (isLayoutRtl) { in resolveChildIndicator()
421 final boolean isLayoutRtl = isLayoutRtl(); in dispatchDraw()
437 if (isLayoutRtl) { in dispatchDraw()
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()
DSimpleMonthView.java404 focusChanged = moveOneDay(isLayoutRtl()); in onKeyDown()
409 focusChanged = moveOneDay(!isLayoutRtl()); in onKeyDown()
567 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft; in findClosestColumn()
660 if (isLayoutRtl()) { in drawDaysOfWeek()
687 if (isLayoutRtl()) { in drawDays()
971 if (isLayoutRtl()) { in getDayAtLocation()
1005 if (isLayoutRtl()) { in getBoundsForDay()
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 …]
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()
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()
DActionMenuView.java450 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
467 if (isLayoutRtl) { in onLayout()
506 if (isLayoutRtl) { in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java63 int left = mView.isLayoutRtl() ? FLAG_END : FLAG_START; in onTuningChanged()
64 int right = mView.isLayoutRtl() ? FLAG_START : FLAG_END; in onTuningChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaScrollView.kt64 if (isLayoutRtl) { in transformScrollX()
78 if (!isLaidOut && isLayoutRtl) { in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DReverseLinearLayout.java86 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
87 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DReverseLinearLayout.java88 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
89 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeConfigurationController.java38 public boolean isLayoutRtl() { in isLayoutRtl() method in FakeConfigurationController
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java191 if (isLayoutRtl()) { in setCurrentItem()
201 return getPageNumberForDirection(isLayoutRtl()); in getCurrentPageNumber()
647 scrollByX(isLayoutRtl() ? -dx : dx, REVEAL_SCROLL_DURATION_MILLIS); in startTileReveal()
666 if (!isLayoutRtl()) {
743 int pageNumber = isLayoutRtl() ? mPages.size() - 1 - position : position;
762 int pageNumber = isLayoutRtl() ? mPages.size() - 1 - position : position;
793 if (isLayoutRtl()) {
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DFakeConfigurationController.kt45 override fun isLayoutRtl(): Boolean = isRtl in isLayoutRtl() method in com.android.systemui.statusbar.policy.FakeConfigurationController
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DAnimatableClockView.kt511 get() = if (isLayoutRtl) MOVE_LEFT_DELAYS else MOVE_RIGHT_DELAYS in <lambda>()
514 get() = if (isLayoutRtl) MOVE_RIGHT_DELAYS else MOVE_LEFT_DELAYS in <lambda>()
533 val isMovingToCenter = if (isLayoutRtl) clockMoveDirection < 0 else clockMoveDirection > 0 in <lambda>()
568 val dir = if (isLayoutRtl) -1 else 1 in <lambda>()
/frameworks/base/core/java/com/android/internal/app/
DResolverViewPager.java87 return !isLayoutRtl() && mSwipingEnabled && super.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeHeaderController.kt338 val newPivot = if (v.isLayoutRtl) v.width.toFloat() else 0f in <lambda>()
424 if (view.isLayoutRtl) cutoutRight else cutoutLeft, in <lambda>()
426 if (view.isLayoutRtl) cutoutLeft else cutoutRight, in <lambda>()
437 view.isLayoutRtl, in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleExpandedViewPinController.kt82 location.isOnLeft(view.isLayoutRtl), in updateLocation()

123