/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FocusHelper.java | 112 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/ |
D | PagedView.java | 411 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 …]
|
D | AppsCustomizePagedView.java | 1019 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()
|
D | ButtonDropTarget.java | 120 private boolean isRtl() { in isRtl() method in ButtonDropTarget 137 if (isRtl()) { in getIconRect()
|
D | DragController.java | 534 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()
|
D | DragLayer.java | 789 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/ |
D | KeyboardUtils.java | 29 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/ |
D | ConversationItemView.java | 299 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 …]
|
D | ConversationItemViewCoordinates.java | 314 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/ |
D | FocusLogic.java | 85 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/ |
D | ViewPagerTabStrip.java | 81 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/ |
D | ViewPagerTabStrip.java | 78 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
|
D | MultiAttachmentLayout.java | 210 final boolean isRtl = AccessibilityUtil.isLayoutRtl(getRootView()); in determineLayout() 211 if (isRtl) { in determineLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | OverviewScreenAccessibilityDelegate.java | 44 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/ |
D | AttachmentTileGrid.java | 191 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()
|
D | HtmlConversationTemplates.java | 199 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/ |
D | CursorAnchorInfoUtils.java | 182 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/ |
D | FadeAndShortSlide.java | 60 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/ |
D | BaseDialogFragment.java | 153 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/ |
D | ConversationMessageView.java | 129 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/ |
D | FastScrollThumbDrawable.java | 37 public FastScrollThumbDrawable(Paint paint, boolean isRtl) { in FastScrollThumbDrawable() argument 39 mIsRtl = isRtl; in FastScrollThumbDrawable()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallActivityCommon.java | 184 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/ |
D | DialtactsActivity.java | 465 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/ |
D | DeepShortcutTextView.java | 60 if (!Utilities.isRtl(getResources())) { in onMeasure()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 193 final boolean isRtl = AccessibilityUtil.isLayoutRtl(this); in onLayout() 205 if (isRtl) { in onLayout() 213 if (isRtl) { in onLayout()
|