Home
last modified time | relevance | path

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

1234

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarContextView.java322 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in onLayout()
323 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
329 final int startMargin = (isLayoutRtl ? lp.rightMargin : lp.leftMargin); in onLayout()
330 final int endMargin = (isLayoutRtl ? lp.leftMargin : lp.rightMargin); in onLayout()
331 x = next(x, startMargin, isLayoutRtl); in onLayout()
332 x += positionChild(mClose, x, y, contentHeight, isLayoutRtl); in onLayout()
333 x = next(x, endMargin, isLayoutRtl); in onLayout()
337 x += positionChild(mTitleLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
341 x += positionChild(mCustomView, x, y, contentHeight, isLayoutRtl); in onLayout()
344 x = isLayoutRtl ? getPaddingLeft() : r - l - getPaddingRight(); in onLayout()
[all …]
DSwitchCompat.java948 if (ViewUtils.isLayoutRtl(this)) { in onTouchEvent()
1003 newState = ViewUtils.isLayoutRtl(this) ? (xvel < 0) : (xvel > 0); in stopDrag()
1092 if (ViewUtils.isLayoutRtl(this)) { in onLayout()
1259 if (!ViewUtils.isLayoutRtl(this)) { in getCompoundPaddingLeft()
1271 if (ViewUtils.isLayoutRtl(this)) { in getCompoundPaddingRight()
1289 if (ViewUtils.isLayoutRtl(this)) { in getThumbOffset()
DLinearLayoutCompat.java321 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in drawDividersHorizontal()
329 if (isLayoutRtl) { in drawDividersHorizontal()
343 if (isLayoutRtl) { in drawDividersHorizontal()
350 if (isLayoutRtl) { in drawDividersHorizontal()
1518 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in layoutHorizontal()
1562 if (isLayoutRtl) { in layoutHorizontal()
DViewUtils.java56 public static boolean isLayoutRtl(View view) { in isLayoutRtl() method in ViewUtils
DActionMenuView.java451 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in onLayout()
467 if (isLayoutRtl) { in onLayout()
506 if (isLayoutRtl) { in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContextView.java383 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
384 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
390 final int startMargin = (isLayoutRtl ? lp.rightMargin : lp.leftMargin); in onLayout()
391 final int endMargin = (isLayoutRtl ? lp.leftMargin : lp.rightMargin); in onLayout()
392 x = next(x, startMargin, isLayoutRtl); in onLayout()
393 x += positionChild(mClose, x, y, contentHeight, isLayoutRtl); in onLayout()
394 x = next(x, endMargin, isLayoutRtl); in onLayout()
399 x += positionChild(mTitleLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
403 x += positionChild(mCustomView, x, y, contentHeight, isLayoutRtl); in onLayout()
406 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.java202 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
232 if (isLayoutRtl) { in onLayout()
/frameworks/support/core-ui/java/android/support/v4/widget/
DSlidingPaneLayout.java352 final boolean isLayoutRtl = isLayoutRtlSupport(); in updateObscuredViewsVisibility()
353 final int startBound = isLayoutRtl ? (getWidth() - getPaddingRight()) : getPaddingLeft(); in updateObscuredViewsVisibility()
354 final int endBound = isLayoutRtl ? getPaddingLeft() : (getWidth() - getPaddingRight()); in updateObscuredViewsVisibility()
381 (isLayoutRtl ? endBound : startBound), child.getLeft()); in updateObscuredViewsVisibility()
384 (isLayoutRtl ? startBound : endBound), child.getRight()); in updateObscuredViewsVisibility()
657 final boolean isLayoutRtl = isLayoutRtlSupport(); in onLayout()
658 if (isLayoutRtl) { in onLayout()
664 final int paddingStart = isLayoutRtl ? getPaddingRight() : getPaddingLeft(); in onLayout()
665 final int paddingEnd = isLayoutRtl ? getPaddingLeft() : getPaddingRight(); in onLayout()
693 final int lpMargin = isLayoutRtl ? lp.rightMargin : lp.leftMargin; in onLayout()
[all …]
DFocusStrategy.java38 @Nullable T focused, @FocusRelativeDirection int direction, boolean isLayoutRtl, in findNextFocusInRelativeDirection() argument
46 final SequentialComparator<T> comparator = new SequentialComparator<>(isLayoutRtl, adapter); in findNextFocusInRelativeDirection()
101 SequentialComparator(boolean isLayoutRtl, BoundsAdapter<T> adapter) { in SequentialComparator() argument
102 mIsLayoutRtl = isLayoutRtl; in SequentialComparator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java46 mPageListener.onPageChanged(isLayoutRtl() ? position == mPages.size() - 1 in PagedTileLayout()
59 (isLayoutRtl() ? position == mPages.size() - 1 : position == 0)); in PagedTileLayout()
79 if (isLayoutRtl()) { in setCurrentItem()
133 if (isLayoutRtl()) { in setPageListening()
304 if (isLayoutRtl()) {
/frameworks/base/core/java/android/widget/
DCalendarViewLegacyDelegate.java1344 final boolean isLayoutRtl = isLayoutRtl(); in getDayFromLocation()
1349 if (isLayoutRtl) { in getDayFromLocation()
1365 if (isLayoutRtl) { in getDayFromLocation()
1386 if (isLayoutRtl()) { in getBoundsForDate()
1425 final boolean isLayoutRtl = isLayoutRtl(); in drawBackground()
1427 if (isLayoutRtl) { in drawBackground()
1436 if (isLayoutRtl) { in drawBackground()
1462 if (isLayoutRtl()) { in drawWeekNumbersAndDates()
1508 if (isLayoutRtl()) { in drawWeekSeparators()
1552 final boolean isLayoutRtl = isLayoutRtl(); in updateSelectionPositions()
[all …]
DExpandableListView.java304 final boolean isLayoutRtl = isLayoutRtl(); in resolveIndicator()
305 if (isLayoutRtl) { in resolveIndicator()
330 final boolean isLayoutRtl = isLayoutRtl(); in resolveChildIndicator()
331 if (isLayoutRtl) { in resolveChildIndicator()
410 final boolean isLayoutRtl = isLayoutRtl(); in dispatchDraw()
426 if (isLayoutRtl) { in dispatchDraw()
DCompoundButton.java389 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
401 if (isLayoutRtl()) { in getCompoundPaddingRight()
439 final int left = isLayoutRtl() ? getWidth() - drawableWidth : 0; in onDraw()
440 final int right = isLayoutRtl() ? getWidth() : drawableWidth; in onDraw()
DSimpleMonthView.java394 focusChanged = moveOneDay(isLayoutRtl()); in onKeyDown()
399 focusChanged = moveOneDay(!isLayoutRtl()); in onKeyDown()
552 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft; in findClosestColumn()
645 if (isLayoutRtl()) { in drawDaysOfWeek()
672 if (isLayoutRtl()) { in drawDays()
956 if (isLayoutRtl()) { in getDayAtLocation()
990 if (isLayoutRtl()) { in getBoundsForDay()
DRelativeLayout.java447 if (isLayoutRtl() && myWidth == -1) { in onMeasure()
485 if (isLayoutRtl()) { in onMeasure()
626 if (isLayoutRtl()) { in onMeasure()
849 if (isLayoutRtl()) { in positionAtEdge()
1523 final boolean isLayoutRtl = (layoutDirection == View.LAYOUT_DIRECTION_RTL); in resolveRules()
1593 mRules[isLayoutRtl ? ALIGN_RIGHT : ALIGN_LEFT] = mRules[ALIGN_START]; in resolveRules()
1598 mRules[isLayoutRtl ? ALIGN_LEFT : ALIGN_RIGHT] = mRules[ALIGN_END]; in resolveRules()
1610 mRules[isLayoutRtl ? RIGHT_OF : LEFT_OF] = mRules[START_OF]; in resolveRules()
1615 mRules[isLayoutRtl ? LEFT_OF : RIGHT_OF] = mRules[END_OF]; in resolveRules()
1627 … mRules[isLayoutRtl ? ALIGN_PARENT_RIGHT : ALIGN_PARENT_LEFT] = mRules[ALIGN_PARENT_START]; in resolveRules()
[all …]
DGridView.java327 final boolean isLayoutRtl = isLayoutRtl(); in makeRow()
332 if (isLayoutRtl) { in makeRow()
348 nextLeft += (isLayoutRtl ? -1 : +1) * deltaLeft; in makeRow()
359 final int nextChildDir = isLayoutRtl ? -1 : +1; in makeRow()
1853 final boolean isLayoutRtl = isLayoutRtl(); in arrowScroll()
1854 if (selectedPosition > startOfRowPos && ((direction == FOCUS_LEFT && !isLayoutRtl) || in arrowScroll()
1855 (direction == FOCUS_RIGHT && isLayoutRtl))) { in arrowScroll()
1859 } else if (selectedPosition < endOfRowPos && ((direction == FOCUS_LEFT && isLayoutRtl) || in arrowScroll()
1860 (direction == FOCUS_RIGHT && !isLayoutRtl))) { in arrowScroll()
DSwitch.java969 if (isLayoutRtl()) { in onTouchEvent()
1024 newState = isLayoutRtl() ? (xvel < 0) : (xvel > 0); in stopDrag()
1111 if (isLayoutRtl()) { in onLayout()
1277 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
1289 if (isLayoutRtl()) { in getCompoundPaddingRight()
1307 if (isLayoutRtl()) { in getThumbOffset()
DActionMenuView.java448 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
465 if (isLayoutRtl) { in onLayout()
504 if (isLayoutRtl) { in onLayout()
DLinearLayout.java445 final boolean isLayoutRtl = isLayoutRtl(); in drawDividersHorizontal()
452 if (isLayoutRtl) { in drawDividersHorizontal()
466 if (isLayoutRtl) { in drawDividersHorizontal()
473 if (isLayoutRtl) { in drawDividersHorizontal()
1668 final boolean isLayoutRtl = isLayoutRtl(); in layoutHorizontal()
1712 if (isLayoutRtl) { in layoutHorizontal()
DAbsSeekBar.java649 final int left = (isLayoutRtl() && mMirrorForRtl) ? available - thumbPos : thumbPos;
845 if (isLayoutRtl() && mMirrorForRtl) {
915 increment = isLayoutRtl() ? -increment : increment;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java56 int left = mView.isLayoutRtl() ? FLAG_END : FLAG_START; in onTuningChanged()
57 int right = mView.isLayoutRtl() ? FLAG_START : FLAG_END; in onTuningChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DReverseLinearLayout.java85 boolean isLayoutRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; in updateOrder()
86 boolean isLayoutReverse = isLayoutRtl ^ mIsAlternativeOrder; in updateOrder()
/frameworks/base/graphics/java/android/graphics/drawable/
DLayerDrawable.java1035 final boolean isLayoutRtl = getLayoutDirection() == LayoutDirection.RTL; in getPadding()
1036 final int paddingRtlL = isLayoutRtl ? layerState.mPaddingEnd : layerState.mPaddingStart; in getPadding()
1037 final int paddingRtlR = isLayoutRtl ? layerState.mPaddingStart : layerState.mPaddingEnd; in getPadding()
1549 final boolean isLayoutRtl = layoutDirection == LayoutDirection.RTL; in updateLayerBoundsInternal()
1565 final int insetRtlL = isLayoutRtl ? r.mInsetE : r.mInsetS; in updateLayerBoundsInternal()
1566 final int insetRtlR = isLayoutRtl ? r.mInsetS : r.mInsetE; in updateLayerBoundsInternal()
1650 final boolean isLayoutRtl = getLayoutDirection() == LayoutDirection.RTL;
1664 final int insetRtlL = isLayoutRtl ? r.mInsetE : r.mInsetS;
1665 final int insetRtlR = isLayoutRtl ? r.mInsetS : r.mInsetE;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStreamingTextView.java253 boolean rtl = isLayoutRtl(StreamingTextView.this); in draw()
284 public static boolean isLayoutRtl(View view) { in isLayoutRtl() method in StreamingTextView

1234