Home
last modified time | relevance | path

Searched refs:isRtl (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java112 final boolean isLayoutRtl = Utilities.isRtl(v.getResources()); in onKey()
262 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent()
375 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
376 boolean isRtl = Utilities.isRtl(v.getResources()); in handleIconKeyEvent()
398 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent()
401 isRtl); in handleIconKeyEvent()
404 isRtl); in handleIconKeyEvent()
412 newIcon = getFirstFocusableIconInReadingOrder(workspaceLayout, isRtl); in handleIconKeyEvent()
415 newIcon = getFirstFocusableIconInReadingOrder(hotseatLayout, isRtl); in handleIconKeyEvent()
420 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java411 final boolean isRtl = isLayoutRtl(); in scrollTo()
414 boolean isXBeforeFirstPage = isRtl ? (x > mMaxScrollX) : (x < 0); in scrollTo()
415 boolean isXAfterLastPage = isRtl ? (x < 0) : (x > mMaxScrollX); in scrollTo()
419 if (isRtl) { in scrollTo()
428 if (isRtl) { in scrollTo()
653 final boolean isRtl = isLayoutRtl(); in onLayout()
655 final int startIndex = isRtl ? childCount - 1 : 0; in onLayout()
656 final int endIndex = isRtl ? -1 : childCount; in onLayout()
657 final int delta = isRtl ? -1 : 1; in onLayout()
736 final boolean isRtl = isLayoutRtl(); in getChildOffset()
[all …]
DAppsCustomizePagedView.java1019 final boolean isRtl = isLayoutRtl(); in syncAppsPageItems()
1041 if (isRtl) { in syncAppsPageItems()
1374 final boolean isRtl = isLayoutRtl(); in screenScrolled()
1387 if (isRtl) { in screenScrolled()
1398 if (isRtl && (scrollProgress > 0)) { in screenScrolled()
1400 } else if (!isRtl && (scrollProgress < 0)) { in screenScrolled()
1412 float xPivot = isRtl ? 1f - TRANSITION_PIVOT : TRANSITION_PIVOT; in screenScrolled()
1413 … boolean isOverscrollingFirstPage = isRtl ? scrollProgress > 0 : scrollProgress < 0; in screenScrolled()
1414 … boolean isOverscrollingLastPage = isRtl ? scrollProgress < 0 : scrollProgress > 0; in screenScrolled()
DButtonDropTarget.java120 private boolean isRtl() { in isRtl() method in ButtonDropTarget
137 if (isRtl()) { in getIconRect()
DDragController.java534 final boolean isRtl = (dragLayer.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL); in checkScrollState()
535 final int forwardDirection = isRtl ? SCROLL_RIGHT : SCROLL_LEFT; in checkScrollState()
536 final int backwardsDirection = isRtl ? SCROLL_LEFT : SCROLL_RIGHT; in checkScrollState()
DDragLayer.java789 final boolean isRtl = isLayoutDirectionRtl(); in dispatchDraw()
790 CellLayout leftPage = (CellLayout) workspace.getChildAt(isRtl ? page + 1 : page - 1); in dispatchDraw()
791 CellLayout rightPage = (CellLayout) workspace.getChildAt(isRtl ? page - 1 : page + 1); in dispatchDraw()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DKeyboardUtils.java29 public static boolean isKeycodeDirectionStart(int keyCode, boolean isRtl) { in isKeycodeDirectionStart() argument
30 return (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || in isKeycodeDirectionStart()
31 (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT); in isKeycodeDirectionStart()
38 public static boolean isKeycodeDirectionEnd(int keyCode, boolean isRtl) { in isKeycodeDirectionEnd() argument
39 return (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || in isKeycodeDirectionEnd()
40 (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT); in isKeycodeDirectionEnd()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemView.java299 boolean isRtl) { in drawFolders() argument
321 int xStart = (isRtl) ? coordinates.snippetX + width : right - width; in drawFolders()
329 final int actualStart = isRtl ? xStart - measurements[index] : xStart; in drawFolders()
336 xStart += (isRtl) ? -usedWidth : usedWidth; in drawFolders()
965 final boolean isRtl = ViewUtils.isViewRtl(this); in calculateCoordinates()
970 mInfoIconX = (isRtl) ? mCoordinates.infoIconX : in calculateCoordinates()
976 mDateX = (isRtl) ? mCoordinates.dateX : mCoordinates.dateXRight - mDateWidth; in calculateCoordinates()
983 mDateX = (isRtl) ? mCoordinates.infoIconX : mCoordinates.infoIconXRight - mDateWidth; in calculateCoordinates()
990 mPaperclipX = (isRtl) ? mDateX + mDateWidth + mCoordinates.datePaddingStart : in calculateCoordinates()
1001 dateAttachmentStart = (isRtl) ? in calculateCoordinates()
[all …]
DConversationItemViewCoordinates.java314 final boolean isRtl = ViewUtils.isViewRtl(view); in ConversationItemViewCoordinates()
318 starX = getX(star) + (isRtl ? 0 : starPadding); in ConversationItemViewCoordinates()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java85 int pageCount, boolean isRtl) { in handleKeyEvent() argument
99 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, -1 /*increment*/, isRtl); in handleKeyEvent()
100 if (!isRtl && newIndex == NOOP && pageIndex > 0) { in handleKeyEvent()
102 } else if (isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
107 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, 1 /*increment*/, isRtl); in handleKeyEvent()
108 if (!isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
110 } else if (isRtl && newIndex == NOOP && pageIndex > 0) { in handleKeyEvent()
326 int[][] matrix, int increment, boolean isRtl) { in handleDpadHorizontal() argument
390 if (isRtl) { in handleDpadHorizontal()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabStrip.java81 final boolean isRtl = isRtl(); in onDraw()
83 isRtl ? mIndexForSelection > 0 : (mIndexForSelection < (getChildCount() - 1)); in onDraw()
86 View nextTitle = getChildAt(mIndexForSelection + (isRtl ? -1 : 1)); in onDraw()
106 private boolean isRtl() { in isRtl() method in ViewPagerTabStrip
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabStrip.java78 final boolean isRtl = isRtl(); in onDraw()
79 final boolean hasNextTab = isRtl ? mIndexForSelection > 0 in onDraw()
83 View nextTitle = getChildAt(mIndexForSelection + (isRtl ? -1 : 1)); in onDraw()
99 private boolean isRtl() { in isRtl() method in ViewPagerTabStrip
DMultiAttachmentLayout.java210 final boolean isRtl = AccessibilityUtil.isLayoutRtl(getRootView()); in determineLayout()
211 if (isRtl) { in determineLayout()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DOverviewScreenAccessibilityDelegate.java44 boolean isRtl = Utilities.isRtl(context.getResources()); in OverviewScreenAccessibilityDelegate()
46 context.getText(isRtl ? R.string.action_move_screen_right : in OverviewScreenAccessibilityDelegate()
49 context.getText(isRtl ? R.string.action_move_screen_left : in OverviewScreenAccessibilityDelegate()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTileGrid.java191 final boolean isRtl = ViewUtils.isViewRtl(this); in onLayoutForTiles()
193 int childLeft = (isRtl) ? width - getChildAt(0).getMeasuredWidth() : 0; in onLayoutForTiles()
208 childLeft = (isRtl) ? width - childWidth : 0; in onLayoutForTiles()
217 if (isRtl) { in onLayoutForTiles()
DHtmlConversationTemplates.java199 final boolean isRtl = TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) in endConversation()
201 final String showElided = (isRtl ? RIGHT_TO_LEFT_TRIANGLE : LEFT_TO_RIGHT_TRIANGLE) + in endConversation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java182 final boolean isRtl = layout.isRtlCharAt(offset); in extractFromTextViewInternal()
190 if (isRtl) { in extractFromTextViewInternal()
198 if (!isRtl) { in extractFromTextViewInternal()
222 if (isRtl) { in extractFromTextViewInternal()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java60 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
62 if (isRtl) {
74 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
76 if (isRtl) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseDialogFragment.java153 boolean isRtl = ViewCompat.getLayoutDirection(contentView) == in performEntryTransition()
155 int startDist = isRtl ? SLIDE_IN_DISTANCE : -SLIDE_IN_DISTANCE; in performEntryTransition()
156 int endDist = isRtl ? -actionFragmentView.getMeasuredWidth() : in performEntryTransition()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java129 final boolean isRtl = isLayoutRtl(this); in onLayout()
142 if (isRtl) { in onLayout()
150 if (isRtl) { in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DFastScrollThumbDrawable.java37 public FastScrollThumbDrawable(Paint paint, boolean isRtl) { in FastScrollThumbDrawable() argument
39 mIsRtl = isRtl; in FastScrollThumbDrawable()
/packages/apps/Dialer/java/com/android/incallui/
DInCallActivityCommon.java184 boolean isRtl = ViewUtil.isRtl(); in onCreate()
189 inCallActivity, isRtl ? R.anim.dialpad_slide_in_left : R.anim.dialpad_slide_in_right); in onCreate()
193 isRtl ? R.anim.dialpad_slide_out_left : R.anim.dialpad_slide_out_right); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java465 final boolean isLayoutRtl = ViewUtil.isRtl(); in onCreate()
1465 boolean isRtl = ViewUtil.isRtl(); in onPageScrolled()
1466 if (!isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_SPEED_DIAL && !mIsLandscape) { in onPageScrolled()
1468 } else if (isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_HISTORY && !mIsLandscape) { in onPageScrolled()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DDeepShortcutTextView.java60 if (!Utilities.isRtl(getResources())) { in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java193 final boolean isRtl = AccessibilityUtil.isLayoutRtl(this); in onLayout()
205 if (isRtl) { in onLayout()
213 if (isRtl) { in onLayout()

12