Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DSeascapePagedViewHandler.kt58 override fun getRecentsRtlSetting(resources: Resources): Boolean = Utilities.isRtl(resources) in getSplitTranslationDirectionFactor()
138 val isRtl = banner.layoutDirection == View.LAYOUT_DIRECTION_RTL in getDwbLayoutTranslations() constant
141 bannerParams.gravity = Gravity.BOTTOM or if (isRtl) Gravity.END else Gravity.START in getDwbLayoutTranslations()
220 isRtl: Boolean in setTaskIconParams()
223 if (isRtl) { in setTaskIconParams()
246 val isRtl = iconAppChipView.layoutDirection == View.LAYOUT_DIRECTION_RTL in setIconAppChipMenuParams() constant
249 if (isRtl) { in setIconAppChipMenuParams()
276 isRtl: Boolean in measureGroupedTaskViewThumbnailBounds()
334 override fun getUpDirection(isRtl: Boolean): Int = in getUpDirection()
335 if (isRtl) SingleAxisSwipeDetector.DIRECTION_POSITIVE in getUpDirection()
[all …]
DLandscapePagedViewHandler.kt128 override fun getClearAllSidePadding(view: View, isRtl: Boolean): Int = in getClearAllSidePadding()
129 if (isRtl) view.paddingBottom / 2 else -view.paddingTop / 2 in getClearAllSidePadding()
145 override fun getRecentsRtlSetting(resources: Resources): Boolean = !Utilities.isRtl(resources) in getRecentsRtlSetting()
255 val isRtl = banner.layoutDirection == View.LAYOUT_DIRECTION_RTL in getDwbLayoutTranslations() constant
259 bannerParams.gravity = Gravity.TOP or if (isRtl) Gravity.END else Gravity.START in getDwbLayoutTranslations()
295 override fun getUpDirection(isRtl: Boolean): Int = in getUpDirection()
296 if (isRtl) SingleAxisSwipeDetector.DIRECTION_NEGATIVE in getUpDirection()
299 override fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean = in getUpDirection()
300 if (isRtl) displacement < 0 else displacement > 0 in getUpDirection()
302 override fun getTaskDragDisplacementFactor(isRtl: Boolean): Int = if (isRtl) 1 else -1 in getUpDirection()
[all …]
DRecentsPagedOrientationHandler.kt76 fun getClearAllSidePadding(view: View, isRtl: Boolean): Int in setSecondary()
187 isRtl: Boolean in setSecondary()
209 isRtl: Boolean in setSecondary()
235 isRtl: Boolean, in setSecondary()
318 fun getUpDirection(isRtl: Boolean): Int in setSecondary()
321 fun isGoingUp(displacement: Float, isRtl: Boolean): Boolean in setSecondary()
324 fun getTaskDragDisplacementFactor(isRtl: Boolean): Int in setSecondary()
DPortraitPagedViewHandler.java138 public int getClearAllSidePadding(View view, boolean isRtl) { in getClearAllSidePadding() argument
139 return (isRtl ? view.getPaddingRight() : - view.getPaddingLeft()) / 2; in getClearAllSidePadding()
307 public int getUpDirection(boolean isRtl) { in getUpDirection() argument
313 public boolean isGoingUp(float displacement, boolean isRtl) { in isGoingUp() argument
319 public int getTaskDragDisplacementFactor(boolean isRtl) { in getTaskDragDisplacementFactor() argument
536 DeviceProfile dp, boolean isRtl) { in measureGroupedTaskViewThumbnailBounds() argument
546 if (isRtl) { in measureGroupedTaskViewThumbnailBounds()
633 int taskIconHeight, int thumbnailTopMargin, boolean isRtl) { in setTaskIconParams() argument
666 int groupedTaskViewHeight, int groupedTaskViewWidth, boolean isRtl, in setSplitIconParams() argument
682 if (isRtl) { in setSplitIconParams()
[all …]
/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
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabStrip.java82 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/
DLauncherState.java230 boolean isRtl = Utilities.isRtl(launcher.getResources()); in getFloatingSearchBarRestingMarginStart()
232 return isRtl ? launcher.getHotseat().getRight() - qsb.getRight() : qsb.getLeft(); in getFloatingSearchBarRestingMarginStart()
247 boolean isRtl = Utilities.isRtl(launcher.getResources()); in getFloatingSearchBarRestingMarginEnd()
249 return isRtl ? qsb.getLeft() : launcher.getHotseat().getRight() - qsb.getRight(); in getFloatingSearchBarRestingMarginEnd()
403 boolean isRtl = launcher.getWorkspace().mIsRtl;
405 return ((isFirstPage && !isRtl) || (!isFirstPage && isRtl)) ? -quarterPageSpacing
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/util/
DFullResImageViewUtilTest.kt26 isRtl = false, in getScaleAndCenter_wallpaperSizeSameAsScreen()
51 isRtl = false, in getScaleAndCenter_wallpaperSizeLargerThanScreen()
76 isRtl = false, in getScaleAndCenter_wallpaperSizeSmallerThanScreen()
101 isRtl = false, in getScaleAndCenter_wallpaperSmallerThanScreenEightTimes_getsSameScales()
/packages/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/models/selection/
DSelectionBoundary.java62 public SelectionBoundary(int index, boolean isRtl) { in SelectionBoundary() argument
66 this.mIsRtl = isRtl; in SelectionBoundary()
94 public SelectionBoundary(@NonNull Point point, boolean isRtl) { in SelectionBoundary() argument
98 this.mIsRtl = isRtl; in SelectionBoundary()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/section/
DScreenPreviewClickView.kt59 val isRtl = RtlUtils.isRtl(context) in onInterceptTouchEvent() constant
62 downX < leftXBound -> onSideClicked?.invoke(!isRtl) in onInterceptTouchEvent()
63 downX > rightXBound -> onSideClicked?.invoke(isRtl) in onInterceptTouchEvent()
/packages/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/models/jni/
DSelectionBoundary.java35 public SelectionBoundary(int index, int x, int y, boolean isRtl) { in SelectionBoundary() argument
39 mIsRtl = isRtl; in SelectionBoundary()
73 public boolean isRtl() { in isRtl() method in SelectionBoundary
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSlideInRemoteTransition.kt35 private val isRtl: Boolean, constant in com.android.quickstep.util.SlideInRemoteTransition
79 val targetX = (if (isRtl) -1 else 1) * (startBounds!!.right + pageSpacing) in startAnimation()
89 val targetX = (if (isRtl) -1 else 1) * (endBounds!!.right + pageSpacing) in startAnimation()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridPaddingDecorationCreativeCategory.java51 boolean isRtl = isRtlLayout(parent); in getItemOffsets()
76 if (isRtl) { in getItemOffsets()
86 if (isRtl) { in getItemOffsets()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java109 super(context, ViewConfiguration.get(context), Utilities.isRtl(context.getResources())); in SingleAxisSwipeDetector()
116 @NonNull Listener l, @NonNull Direction dir, boolean isRtl) { in SingleAxisSwipeDetector() argument
117 super(context, config, isRtl); in SingleAxisSwipeDetector()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java367 boolean isRtl = RtlUtils.isRtl(activity); in loadPreviewImage()
374 cropHints.get(screenSize), screenSize, RtlUtils.isRtl(activity)); in loadPreviewImage()
378 isRtl = false; in loadPreviewImage()
386 isRtl, in loadPreviewImage()
/packages/apps/ThemePicker/src/com/android/customization/picker/common/ui/view/
DItemSpacing.kt29 val isRtl = parent.layoutManager?.layoutDirection == ViewCompat.LAYOUT_DIRECTION_RTL in getItemOffsets() constant
32 if (!isRtl) { in getItemOffsets()
/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/Launcher3/src/com/android/launcher3/allapps/
DWorkModeSwitch.java110 boolean isRtl = Utilities.isRtl(getResources()); in onLayout()
112 setTranslationX(isRtl ? shift : -shift); in onLayout()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DStaticWallpaperPreviewBinder.kt83 RtlUtils.isRtl(lowResImageView.context), in <lambda>()
147 isRtl: Boolean, in <lambda>()
159 isRtl, in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DCropSizeUtil.kt73 isRtl: Boolean, in fitCropRectToLayoutDirection()
76 return Rect(cropRect).apply { if (isRtl) left += parallax else right -= parallax } in fitCropRectToLayoutDirection()
DFullResImageViewUtil.kt34 isRtl: Boolean, in getScaleAndCenter()
52 cropRect?.let { fitCropRectToLayoutDirection(it, displaySize, isRtl) } in getScaleAndCenter()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseDialogFragment.java154 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/Launcher3/src/com/android/launcher3/graphics/
DFastScrollThumbDrawable.java37 public FastScrollThumbDrawable(Paint paint, boolean isRtl) { in FastScrollThumbDrawable() argument
39 mIsRtl = isRtl; in FastScrollThumbDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultBitmapCropper.java40 boolean isRtl, Callback callback) { in cropAndScaleBitmap() argument
48 asset.decodeBitmapRegion(scaledCropRect, cropRect.width(), cropRect.height(), isRtl, in cropAndScaleBitmap()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java430 final boolean isRtl = mChipGroup.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in reorderCheckedChips()
431 float lastX = isRtl ? mChipGroup.getWidth() - chipSpacing / 2 : chipSpacing / 2; in reorderCheckedChips()
453 if (isRtl) { in reorderCheckedChips()
459 if (isRtl) { in reorderCheckedChips()
471 final int scrollToX = isRtl ? parent.getWidth() : 0; in reorderCheckedChips()

1234