Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/widget/
DActionBarContextView.java384 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
385 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
391 final int startMargin = (isLayoutRtl ? lp.rightMargin : lp.leftMargin); in onLayout()
392 final int endMargin = (isLayoutRtl ? lp.leftMargin : lp.rightMargin); in onLayout()
393 x = next(x, startMargin, isLayoutRtl); in onLayout()
394 x += positionChild(mClose, x, y, contentHeight, isLayoutRtl); in onLayout()
395 x = next(x, endMargin, isLayoutRtl); in onLayout()
400 x += positionChild(mTitleLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
404 x += positionChild(mCustomView, x, y, contentHeight, isLayoutRtl); in onLayout()
407 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.java204 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
232 if (isLayoutRtl) { in onLayout()
DViewPager.java579 if (isLayoutRtl()) { in getLeftEdgeForItem()
1601 if (isLayoutRtl()) {
1661 if (isLayoutRtl()) {
2028 if (isLayoutRtl()) {
2092 if (isLayoutRtl()) {
2103 if (isLayoutRtl()) {
2148 if (isLayoutRtl()) {
2215 if (isLayoutRtl()) {
2325 if (isLayoutRtl()) {
/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.java313 final boolean isLayoutRtl = isLayoutRtl(); in resolveIndicator()
314 if (isLayoutRtl) { in resolveIndicator()
339 final boolean isLayoutRtl = isLayoutRtl(); in resolveChildIndicator()
340 if (isLayoutRtl) { in resolveChildIndicator()
419 final boolean isLayoutRtl = isLayoutRtl(); in dispatchDraw()
435 if (isLayoutRtl) { in dispatchDraw()
DCompoundButton.java429 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
441 if (isLayoutRtl()) { in getCompoundPaddingRight()
479 final int left = isLayoutRtl() ? getWidth() - drawableWidth : 0; in onDraw()
480 final int right = isLayoutRtl() ? getWidth() : drawableWidth; in onDraw()
DSimpleMonthView.java394 focusChanged = moveOneDay(isLayoutRtl()); in onKeyDown()
399 focusChanged = moveOneDay(!isLayoutRtl()); in onKeyDown()
556 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft; in findClosestColumn()
649 if (isLayoutRtl()) { in drawDaysOfWeek()
676 if (isLayoutRtl()) { in drawDays()
960 if (isLayoutRtl()) { in getDayAtLocation()
994 if (isLayoutRtl()) { in getBoundsForDay()
DGridView.java345 final boolean isLayoutRtl = isLayoutRtl(); in makeRow()
350 if (isLayoutRtl) { in makeRow()
366 nextLeft += (isLayoutRtl ? -1 : +1) * deltaLeft; in makeRow()
377 final int nextChildDir = isLayoutRtl ? -1 : +1; in makeRow()
1873 final boolean isLayoutRtl = isLayoutRtl(); in arrowScroll()
1874 if (selectedPosition > startOfRowPos && ((direction == FOCUS_LEFT && !isLayoutRtl) || in arrowScroll()
1875 (direction == FOCUS_RIGHT && isLayoutRtl))) { in arrowScroll()
1879 } else if (selectedPosition < endOfRowPos && ((direction == FOCUS_LEFT && isLayoutRtl) || in arrowScroll()
1880 (direction == FOCUS_RIGHT && !isLayoutRtl))) { in arrowScroll()
DRelativeLayout.java466 if (isLayoutRtl() && myWidth == -1) { in onMeasure()
504 if (isLayoutRtl()) { in onMeasure()
645 if (isLayoutRtl()) { in onMeasure()
868 if (isLayoutRtl()) { in positionAtEdge()
1549 final boolean isLayoutRtl = (layoutDirection == View.LAYOUT_DIRECTION_RTL); in resolveRules()
1619 mRules[isLayoutRtl ? ALIGN_RIGHT : ALIGN_LEFT] = mRules[ALIGN_START]; in resolveRules()
1624 mRules[isLayoutRtl ? ALIGN_LEFT : ALIGN_RIGHT] = mRules[ALIGN_END]; in resolveRules()
1636 mRules[isLayoutRtl ? RIGHT_OF : LEFT_OF] = mRules[START_OF]; in resolveRules()
1641 mRules[isLayoutRtl ? LEFT_OF : RIGHT_OF] = mRules[END_OF]; in resolveRules()
1653 … mRules[isLayoutRtl ? ALIGN_PARENT_RIGHT : ALIGN_PARENT_LEFT] = mRules[ALIGN_PARENT_START]; in resolveRules()
[all …]
DActionMenuView.java449 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
466 if (isLayoutRtl) { in onLayout()
505 if (isLayoutRtl) { in onLayout()
DSwitch.java1058 if (isLayoutRtl()) { in onTouchEvent()
1113 newState = isLayoutRtl() ? (xvel < 0) : (xvel > 0); in stopDrag()
1202 if (isLayoutRtl()) { in onLayout()
1368 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
1380 if (isLayoutRtl()) { in getCompoundPaddingRight()
1398 if (isLayoutRtl()) { in getThumbOffset()
DLinearLayout.java477 final boolean isLayoutRtl = isLayoutRtl(); in drawDividersHorizontal()
484 if (isLayoutRtl) { in drawDividersHorizontal()
498 if (isLayoutRtl) { in drawDividersHorizontal()
505 if (isLayoutRtl) { in drawDividersHorizontal()
1706 final boolean isLayoutRtl = isLayoutRtl(); in layoutHorizontal()
1750 if (isLayoutRtl) { in layoutHorizontal()
DAbsSeekBar.java738 final int left = (isLayoutRtl() && mMirrorForRtl) ? available - thumbPos : thumbPos;
983 if (isLayoutRtl() && mMirrorForRtl) {
1054 increment = isLayoutRtl() ? -increment : increment;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java130 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
140 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/qs/
DPagedTileLayout.java112 if (isLayoutRtl()) { in setCurrentItem()
390 mScroller.startScroll(getScrollX(), getScrollY(), isLayoutRtl() ? -dx : dx, 0, in startTileReveal()
416 mPageListener.onPageChanged(isLayoutRtl() ? position == mPages.size() - 1
429 (isLayoutRtl() ? position == mPages.size() - 1 : position == 0));
471 if (isLayoutRtl()) {
DQSHeaderInfoLayout.kt57 val layoutRTL = isLayoutRtl in onLayout()
DPseudoGridView.java102 boolean isRtl = isLayoutRtl(); in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DReverseLinearLayout.java86 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
87 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
DNotificationIconContainer.java472 if (isLayoutRtl()) { in calculateIconTranslations()
552 int translation = (int) (isLayoutRtl() ? getWidth() - mLastVisibleIconState.xTranslation in getFinalTranslationX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DHeadsUpStatusBarView.java187 boolean isRtl = isLayoutRtl(); in onLayout()
235 boolean isRtl = isLayoutRtl(); in fitSystemWindows()
/frameworks/base/graphics/java/android/graphics/drawable/
DLayerDrawable.java1042 final boolean isLayoutRtl = getLayoutDirection() == LayoutDirection.RTL; in getPadding()
1043 final int paddingRtlL = isLayoutRtl ? layerState.mPaddingEnd : layerState.mPaddingStart; in getPadding()
1044 final int paddingRtlR = isLayoutRtl ? layerState.mPaddingStart : layerState.mPaddingEnd; in getPadding()
1556 final boolean isLayoutRtl = layoutDirection == LayoutDirection.RTL; in updateLayerBoundsInternal()
1572 final int insetRtlL = isLayoutRtl ? r.mInsetE : r.mInsetS; in updateLayerBoundsInternal()
1573 final int insetRtlR = isLayoutRtl ? r.mInsetS : r.mInsetE; in updateLayerBoundsInternal()
1657 final boolean isLayoutRtl = getLayoutDirection() == LayoutDirection.RTL;
1671 final int insetRtlL = isLayoutRtl ? r.mInsetE : r.mInsetS;
1672 final int insetRtlR = isLayoutRtl ? r.mInsetS : r.mInsetE;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java94 when(mView.isLayoutRtl()).thenReturn(true); in testRtl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java372 boolean isLayoutRtl = animView.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in dismissChild()
379 && isLayoutRtl; in dismissChild()

12