/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FocusHelper.java | 115 final boolean isLayoutRtl = Utilities.isRtl(v.getResources()); in onKey() 265 pageCount, Utilities.isRtl(v.getResources())); in handleHotseatButtonKeyEvent() 364 pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 365 boolean isRtl = Utilities.isRtl(v.getResources()); in handleIconKeyEvent() 387 newPageIndex, pageCount, Utilities.isRtl(v.getResources())); in handleIconKeyEvent() 390 isRtl); in handleIconKeyEvent() 393 isRtl); in handleIconKeyEvent() 401 newIcon = getFirstFocusableIconInReadingOrder(workspaceLayout, isRtl); in handleIconKeyEvent() 404 newIcon = getFirstFocusableIconInReadingOrder(hotseatLayout, isRtl); in handleIconKeyEvent() 409 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | SwipeDetector.java | 71 boolean isRtl); in getDisplacement() argument 78 abstract float getVelocity(VelocityTracker tracker, boolean isRtl); in getVelocity() argument 88 float getDisplacement(MotionEvent ev, int pointerIndex, PointF refPoint, boolean isRtl) { 98 float getVelocity(VelocityTracker tracker, boolean isRtl) { 118 float getDisplacement(MotionEvent ev, int pointerIndex, PointF refPoint, boolean isRtl) { 120 if (isRtl) { 132 float getVelocity(VelocityTracker tracker, boolean isRtl) { 134 if (isRtl) { 249 this(ViewConfiguration.get(context), l, dir, Utilities.isRtl(context.getResources())); in SwipeDetector() 254 @NonNull Direction dir, boolean isRtl) { in SwipeDetector() argument [all …]
|
/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/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/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabStrip.java | 82 final boolean isRtl = isRtl(); in onDraw() 84 isRtl ? mIndexForSelection > 0 : (mIndexForSelection < (getChildCount() - 1)); in onDraw() 87 View nextTitle = getChildAt(mIndexForSelection + (isRtl ? -1 : 1)); in onDraw() 107 private boolean isRtl() { in isRtl() method in ViewPagerTabStrip
|
/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() 302 int[][] matrix, int increment, boolean isRtl) { in handleDpadHorizontal() argument 366 if (isRtl) { in handleDpadHorizontal()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchChipViewManager.java | 363 final boolean isRtl = mChipGroup.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in reorderCheckedChips() 364 float lastX = isRtl ? mChipGroup.getWidth() - chipSpacing : chipSpacing; in reorderCheckedChips() 386 if (isRtl) { in reorderCheckedChips() 392 if (isRtl) { in reorderCheckedChips() 404 final int scrollToX = isRtl ? parent.getWidth() : 0; in reorderCheckedChips()
|
/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 | 59 final boolean isRtl = 62 if (isRtl) { 76 final boolean isRtl = 79 if (isRtl) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseDialogFragment.java | 154 boolean isRtl = ViewCompat.getLayoutDirection(contentView) == in performEntryTransition() 156 int startDist = isRtl ? SLIDE_IN_DISTANCE : -SLIDE_IN_DISTANCE; in performEntryTransition() 157 int endDist = isRtl ? -actionFragmentView.getMeasuredWidth() : in performEntryTransition()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadView.java | 81 private final boolean isRtl; // whether the dialpad is shown in a right-to-left locale field in DialpadView 111 isRtl = in DialpadView() 299 dialpadKey.setTranslationX((isRtl ? -1 : 1) * translateDistance); in animateShow() 340 if (isRtl) { in getKeyButtonAnimationDelay() 428 if (isRtl) { in getKeyButtonAnimationDuration()
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | PreviewPager.java | 162 initialPage = isRtl() ? mAdapter.getCount() - 1 - mViewPager.getCurrentItem() in setAdapter() 167 mViewPager.setCurrentItem(isRtl() ? mAdapter.getCount() - 1 - initialPage : initialPage); in setAdapter() 178 private boolean isRtl() { in isRtl() method in PreviewPager
|
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | ConversationMessageView.java | 130 final boolean isRtl = isLayoutRtl(this); in onLayout() 143 if (isRtl) { in onLayout() 151 if (isRtl) { in onLayout()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 130 final boolean isRtl = isLayoutRtl(this); in onLayout() 143 if (isRtl) { in onLayout() 151 if (isRtl) { in onLayout()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | WallpaperPreviewBitmapTransformation.java | 42 public WallpaperPreviewBitmapTransformation(Context appContext, boolean isRtl) { in WallpaperPreviewBitmapTransformation() argument 49 mIsRtl = isRtl; in WallpaperPreviewBitmapTransformation()
|
D | PreviewFragment.java | 310 isRtl())); in onCreateView() 761 mDefaultCropSurfaceSize, mScreenSize, true /* alignStart */, isRtl()); in setDefaultWallpaperZoomAndScroll() 766 zoomedWallpaperSize, mDefaultCropSurfaceSize, false /* alignStart */, isRtl()); in setDefaultWallpaperZoomAndScroll() 806 if (isRtl()) { in calculateCropRect() 958 private boolean isRtl() { in isRtl() method in PreviewFragment
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 107 boolean isRtl) { in calculateCenterPosition() argument 116 relativePosition.x = isRtl ? outer.x - inner.x : 0; in calculateCenterPosition()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | DeepShortcutTextView.java | 70 if (!Utilities.isRtl(getResources())) { in onMeasure() 87 Utilities.isRtl(getResources()) ? mDragHandleWidth : getPaddingStart(), in setLoadingBounds()
|
/packages/apps/Dialer/java/com/android/dialer/app/ |
D | DialtactsActivity.java | 437 final boolean isLayoutRtl = ViewUtil.isRtl(); in onCreate() 1441 boolean isRtl = ViewUtil.isRtl(); in onPageScrolled() 1442 if (!isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_SPEED_DIAL && !isLandscape) { in onPageScrolled() 1444 } else if (isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_HISTORY && !isLandscape) { in onPageScrolled()
|