Home
last modified time | relevance | path

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

12

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarContextView.java320 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in onLayout()
321 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
327 final int startMargin = (isLayoutRtl ? lp.rightMargin : lp.leftMargin); in onLayout()
328 final int endMargin = (isLayoutRtl ? lp.leftMargin : lp.rightMargin); in onLayout()
329 x = next(x, startMargin, isLayoutRtl); in onLayout()
330 x += positionChild(mClose, x, y, contentHeight, isLayoutRtl); in onLayout()
331 x = next(x, endMargin, isLayoutRtl); in onLayout()
335 x += positionChild(mTitleLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
339 x += positionChild(mCustomView, x, y, contentHeight, isLayoutRtl); in onLayout()
342 x = isLayoutRtl ? getPaddingLeft() : r - l - getPaddingRight(); in onLayout()
[all …]
DViewUtils.java52 public static boolean isLayoutRtl(View view) { in isLayoutRtl() method in ViewUtils
/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.java1100 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
1101 final int direction = isLayoutRtl ? 1 : -1; in onLayout()
1102 int menuStart = isLayoutRtl ? getPaddingLeft() : r - l - getPaddingRight(); in onLayout()
1105 int x = isLayoutRtl ? r - l - getPaddingRight() : getPaddingLeft(); in onLayout()
1122 next(x, startOffset, isLayoutRtl), y, contentHeight, isLayoutRtl); in onLayout()
1123 x = next(x, startOffset, isLayoutRtl); in onLayout()
1132 x = next(x, mItemPadding, isLayoutRtl); in onLayout()
1134 x += positionChild(mListNavLayout, x, y, contentHeight, isLayoutRtl); in onLayout()
1135 x = next(x, mItemPadding, isLayoutRtl); in onLayout()
1140 if (showTitle) x = next(x, mItemPadding, isLayoutRtl); in onLayout()
[all …]
DViewPager.java598 if (isLayoutRtl()) { in getLeftEdgeForItem()
1604 if (isLayoutRtl()) {
1664 if (isLayoutRtl()) {
2031 if (isLayoutRtl()) {
2095 if (isLayoutRtl()) {
2106 if (isLayoutRtl()) {
2151 if (isLayoutRtl()) {
2218 if (isLayoutRtl()) {
2328 if (isLayoutRtl()) {
/frameworks/support/v4/java/android/support/v4/widget/
DSlidingPaneLayout.java356 final boolean isLayoutRtl = isLayoutRtlSupport(); in updateObscuredViewsVisibility()
357 final int startBound = isLayoutRtl ? (getWidth() - getPaddingRight()) : in updateObscuredViewsVisibility()
359 final int endBound = isLayoutRtl ? getPaddingLeft() : in updateObscuredViewsVisibility()
384 final int clampedChildLeft = Math.max((isLayoutRtl ? endBound : in updateObscuredViewsVisibility()
387 final int clampedChildRight = Math.min((isLayoutRtl ? startBound : 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 …]
/frameworks/base/core/java/android/widget/
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()
DCalendarViewLegacyDelegate.java1320 final boolean isLayoutRtl = isLayoutRtl(); in getDayFromLocation()
1325 if (isLayoutRtl) { in getDayFromLocation()
1341 if (isLayoutRtl) { in getDayFromLocation()
1373 final boolean isLayoutRtl = isLayoutRtl(); in drawBackground()
1375 if (isLayoutRtl) { in drawBackground()
1384 if (isLayoutRtl) { in drawBackground()
1410 if (isLayoutRtl()) { in drawWeekNumbersAndDates()
1456 if (isLayoutRtl()) { in drawWeekSeparators()
1500 final boolean isLayoutRtl = isLayoutRtl(); in updateSelectionPositions()
1505 if (mShowWeekNumber && !isLayoutRtl) { in updateSelectionPositions()
[all …]
DCompoundButton.java371 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
383 if (isLayoutRtl()) { in getCompoundPaddingRight()
421 final int left = isLayoutRtl() ? getWidth() - drawableWidth : 0; in onDraw()
422 final int right = isLayoutRtl() ? getWidth() : drawableWidth; in onDraw()
DRelativeLayout.java447 if (isLayoutRtl() && myWidth == -1) { in onMeasure()
485 if (isLayoutRtl()) { in onMeasure()
626 if (isLayoutRtl()) { in onMeasure()
843 if (isLayoutRtl()) { in positionChildHorizontal()
1468 final boolean isLayoutRtl = (layoutDirection == View.LAYOUT_DIRECTION_RTL); in resolveRules()
1538 mRules[isLayoutRtl ? ALIGN_RIGHT : ALIGN_LEFT] = mRules[ALIGN_START]; in resolveRules()
1543 mRules[isLayoutRtl ? ALIGN_LEFT : ALIGN_RIGHT] = mRules[ALIGN_END]; in resolveRules()
1555 mRules[isLayoutRtl ? RIGHT_OF : LEFT_OF] = mRules[START_OF]; in resolveRules()
1560 mRules[isLayoutRtl ? LEFT_OF : RIGHT_OF] = mRules[END_OF]; in resolveRules()
1572 … 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()
1861 final boolean isLayoutRtl = isLayoutRtl(); in arrowScroll()
1862 if (selectedPosition > startOfRowPos && ((direction == FOCUS_LEFT && !isLayoutRtl) || in arrowScroll()
1863 (direction == FOCUS_RIGHT && isLayoutRtl))) { in arrowScroll()
1867 } else if (selectedPosition < endOfRowPos && ((direction == FOCUS_LEFT && isLayoutRtl) || in arrowScroll()
1868 (direction == FOCUS_RIGHT && !isLayoutRtl))) { in arrowScroll()
DSwitch.java964 if (isLayoutRtl()) { in onTouchEvent()
1019 newState = isLayoutRtl() ? (xvel < 0) : (xvel > 0); in stopDrag()
1106 if (isLayoutRtl()) { in onLayout()
1272 if (!isLayoutRtl()) { in getCompoundPaddingLeft()
1284 if (isLayoutRtl()) { in getCompoundPaddingRight()
1302 if (isLayoutRtl()) { in getThumbOffset()
DActionMenuView.java447 final boolean isLayoutRtl = isLayoutRtl(); in onLayout()
464 if (isLayoutRtl) { in onLayout()
503 if (isLayoutRtl) { in onLayout()
DLinearLayout.java390 final boolean isLayoutRtl = isLayoutRtl(); in drawDividersHorizontal()
398 if (isLayoutRtl) { in drawDividersHorizontal()
412 if (isLayoutRtl) { in drawDividersHorizontal()
419 if (isLayoutRtl) { in drawDividersHorizontal()
1619 final boolean isLayoutRtl = isLayoutRtl(); in layoutHorizontal()
1663 if (isLayoutRtl) { in layoutHorizontal()
DAbsSeekBar.java476 final int left = (isLayoutRtl() && mMirrorForRtl) ? available - thumbPos : thumbPos;
643 if (isLayoutRtl() && mMirrorForRtl) {
709 increment = isLayoutRtl() ? -increment : increment;
DSimpleMonthView.java388 if (isLayoutRtl()) { in drawDaysOfWeek()
421 if (isLayoutRtl()) { in drawDays()
699 if (isLayoutRtl()) { in getDayAtLocation()
733 if (isLayoutRtl()) { in getBoundsForDay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarView.java522 boolean isLayoutRtl = getResources().getConfiguration() in updateRTLOrder()
524 if (mIsLayoutRtl != isLayoutRtl) { in updateRTLOrder()
529 adjustExtraKeyGravity(rotation90, isLayoutRtl); in updateRTLOrder()
534 adjustExtraKeyGravity(rotation270, isLayoutRtl); in updateRTLOrder()
536 mIsLayoutRtl = isLayoutRtl; in updateRTLOrder()
540 private void adjustExtraKeyGravity(View navBar, boolean isLayoutRtl) { in adjustExtraKeyGravity() argument
545 lp.gravity = isLayoutRtl ? Gravity.BOTTOM : Gravity.TOP; in adjustExtraKeyGravity()
550 lp.gravity = isLayoutRtl ? Gravity.BOTTOM : Gravity.TOP; in adjustExtraKeyGravity()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java680 if (ViewUtils.isLayoutRtl(this)) { in onTouchEvent()
735 newState = ViewUtils.isLayoutRtl(this) ? (xvel < 0) : (xvel > 0); in stopDrag()
820 if (ViewUtils.isLayoutRtl(this)) { in onLayout()
987 if (!ViewUtils.isLayoutRtl(this)) { in getCompoundPaddingLeft()
999 if (ViewUtils.isLayoutRtl(this)) { in getCompoundPaddingRight()
1017 if (ViewUtils.isLayoutRtl(this)) { in getThumbOffset()
DLinearLayoutCompat.java319 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in drawDividersHorizontal()
327 if (isLayoutRtl) { in drawDividersHorizontal()
341 if (isLayoutRtl) { in drawDividersHorizontal()
348 if (isLayoutRtl) { in drawDividersHorizontal()
1517 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in layoutHorizontal()
1561 if (isLayoutRtl) { in layoutHorizontal()
DActionMenuView.java451 final boolean isLayoutRtl = ViewUtils.isLayoutRtl(this); in onLayout()
467 if (isLayoutRtl) { in onLayout()
506 if (isLayoutRtl) { in onLayout()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStreamingTextView.java254 boolean rtl = isLayoutRtl(StreamingTextView.this); in draw()
285 public static boolean isLayoutRtl(View view) { in isLayoutRtl() method in StreamingTextView
/frameworks/base/core/java/android/view/
DFocusFinder.java132 if (root.isLayoutRtl()) { in findNextFocus()
144 if (root.isLayoutRtl()) { in findNextFocus()
175 mSequentialFocusComparator.setIsLayoutRtl(root.isLayoutRtl()); in findNextFocusInRelativeDirection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java170 public static boolean isLayoutRtl(View view) { in isLayoutRtl() method in SwipeHelper
187 mRtl = isLayoutRtl(mCurrView); in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java314 boolean isLayoutRtl = view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in dismissChild()
321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { in dismissChild()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java106 boolean isRtl = isLayoutRtl(); in onLayout()

12