Home
last modified time | relevance | path

Searched refs:LayoutDirection (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitAttributesHelper.java34 case SplitAttributes.LayoutDirection.LEFT_TO_RIGHT: in isReversedLayout()
35 case SplitAttributes.LayoutDirection.TOP_TO_BOTTOM: in isReversedLayout()
37 case SplitAttributes.LayoutDirection.RIGHT_TO_LEFT: in isReversedLayout()
38 case SplitAttributes.LayoutDirection.BOTTOM_TO_TOP: in isReversedLayout()
40 case SplitAttributes.LayoutDirection.LOCALE: in isReversedLayout()
DSplitPresenter.java936 case SplitAttributes.LayoutDirection.LEFT_TO_RIGHT: { in getPrimaryBounds()
940 case SplitAttributes.LayoutDirection.RIGHT_TO_LEFT: { in getPrimaryBounds()
944 case SplitAttributes.LayoutDirection.LOCALE: { in getPrimaryBounds()
953 case SplitAttributes.LayoutDirection.TOP_TO_BOTTOM: { in getPrimaryBounds()
957 case SplitAttributes.LayoutDirection.BOTTOM_TO_TOP: { in getPrimaryBounds()
976 case SplitAttributes.LayoutDirection.LEFT_TO_RIGHT: { in getSecondaryBounds()
980 case SplitAttributes.LayoutDirection.RIGHT_TO_LEFT: { in getSecondaryBounds()
984 case SplitAttributes.LayoutDirection.LOCALE: { in getSecondaryBounds()
993 case SplitAttributes.LayoutDirection.TOP_TO_BOTTOM: { in getSecondaryBounds()
997 case SplitAttributes.LayoutDirection.BOTTOM_TO_TOP: { in getSecondaryBounds()
[all …]
DDividerPresenter.java374 case SplitAttributes.LayoutDirection.LEFT_TO_RIGHT: in isVerticalSplit()
375 case SplitAttributes.LayoutDirection.RIGHT_TO_LEFT: in isVerticalSplit()
376 case SplitAttributes.LayoutDirection.LOCALE: in isVerticalSplit()
378 case SplitAttributes.LayoutDirection.TOP_TO_BOTTOM: in isVerticalSplit()
379 case SplitAttributes.LayoutDirection.BOTTOM_TO_TOP: in isVerticalSplit()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DPaddingValuesExt.kt21 import androidx.compose.ui.unit.LayoutDirection
29 override fun calculateLeftPadding(layoutDirection: LayoutDirection) = in horizontalValues()
34 override fun calculateRightPadding(layoutDirection: LayoutDirection) = in horizontalValues()
41 override fun calculateLeftPadding(layoutDirection: LayoutDirection) = 0.dp
45 override fun calculateRightPadding(layoutDirection: LayoutDirection) = 0.dp
DDrawablePainter.kt45 import androidx.compose.ui.unit.LayoutDirection in <lambda>()
121 override fun applyLayoutDirection(layoutDirection: LayoutDirection): Boolean { in applyLayoutDirection()
125 LayoutDirection.Ltr -> View.LAYOUT_DIRECTION_LTR in applyLayoutDirection()
126 LayoutDirection.Rtl -> View.LAYOUT_DIRECTION_RTL in applyLayoutDirection()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DActivityEmbeddingMainActivity.java30 import androidx.window.embedding.SplitAttributes.LayoutDirection;
161 private static LayoutDirection parseLayoutDirection(@NonNull String layoutDirectionStr) { in parseLayoutDirection()
162 if (layoutDirectionStr.equals(LayoutDirection.LEFT_TO_RIGHT.toString())) { in parseLayoutDirection()
163 return LayoutDirection.LEFT_TO_RIGHT; in parseLayoutDirection()
165 if (layoutDirectionStr.equals(LayoutDirection.BOTTOM_TO_TOP.toString())) { in parseLayoutDirection()
166 return LayoutDirection.BOTTOM_TO_TOP; in parseLayoutDirection()
168 if (layoutDirectionStr.equals(LayoutDirection.RIGHT_TO_LEFT.toString())) { in parseLayoutDirection()
169 return LayoutDirection.RIGHT_TO_LEFT; in parseLayoutDirection()
171 return LayoutDirection.LOCALE; in parseLayoutDirection()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/scaffold/
DSettingsScaffoldTest.kt28 import androidx.compose.ui.unit.LayoutDirection in <lambda>()
88 assertThat(actualPaddingValues.calculateLeftPadding(LayoutDirection.Ltr)).isEqualTo(0.dp) in <lambda>()
89 assertThat(actualPaddingValues.calculateLeftPadding(LayoutDirection.Rtl)).isEqualTo(0.dp) in <lambda>()
90 assertThat(actualPaddingValues.calculateRightPadding(LayoutDirection.Ltr)).isEqualTo(0.dp) in <lambda>()
91 assertThat(actualPaddingValues.calculateRightPadding(LayoutDirection.Rtl)).isEqualTo(0.dp) in <lambda>()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java21 import com.android.resources.LayoutDirection;
30 private final LayoutDirection mDirection;
35 public IconLoader(String iconName, Density density, int platformVersion, LayoutDirection in IconLoader()
108 if (mDirection == LayoutDirection.RTL) { in getIcon()
DSysUiResources.java26 import com.android.resources.LayoutDirection;
71 LayoutDirection dir = isRtl ? LayoutDirection.RTL : null; in loadIcon()
/frameworks/base/core/java/android/util/
DLayoutDirection.java24 public final class LayoutDirection { class
27 private LayoutDirection() {} in LayoutDirection() method in LayoutDirection
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/material/
DIcon.kt27 import androidx.compose.ui.unit.LayoutDirection
47 rtlMode == IconRtlMode.Mirrored && LocalLayoutDirection.current == LayoutDirection.Rtl in Icon()
73 rtlMode == IconRtlMode.Mirrored && LocalLayoutDirection.current == LayoutDirection.Rtl in Icon()
96 rtlMode == IconRtlMode.Mirrored && LocalLayoutDirection.current == LayoutDirection.Rtl in Icon()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/ui/graphics/painter/
DDrawablePainter.kt42 import androidx.compose.ui.unit.LayoutDirection in <lambda>()
112 override fun applyLayoutDirection(layoutDirection: LayoutDirection): Boolean { in applyLayoutDirection()
116 LayoutDirection.Ltr -> View.LAYOUT_DIRECTION_LTR in applyLayoutDirection()
117 LayoutDirection.Rtl -> View.LAYOUT_DIRECTION_RTL in applyLayoutDirection()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DPunchHole.kt43 import androidx.compose.ui.unit.LayoutDirection
95 private var lastLayoutDirection: LayoutDirection = LayoutDirection.Ltr
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DFadingBackground.kt33 import androidx.compose.ui.unit.LayoutDirection
72 private var lastLayoutDirection: LayoutDirection? = null
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DSplitPresenterTest.java379 .setLayoutDirection(SplitAttributes.LayoutDirection.LEFT_TO_RIGHT) in testGetRelBoundsForPosition_splitVertically()
396 .setLayoutDirection(SplitAttributes.LayoutDirection.RIGHT_TO_LEFT) in testGetRelBoundsForPosition_splitVertically()
413 .setLayoutDirection(SplitAttributes.LayoutDirection.LOCALE) in testGetRelBoundsForPosition_splitVertically()
445 .setLayoutDirection(SplitAttributes.LayoutDirection.LEFT_TO_RIGHT) in testGetRelBoundsForPosition_splitVertically_isRelativeToParent()
462 .setLayoutDirection(SplitAttributes.LayoutDirection.RIGHT_TO_LEFT) in testGetRelBoundsForPosition_splitVertically_isRelativeToParent()
479 .setLayoutDirection(SplitAttributes.LayoutDirection.LOCALE) in testGetRelBoundsForPosition_splitVertically_isRelativeToParent()
506 .setLayoutDirection(SplitAttributes.LayoutDirection.TOP_TO_BOTTOM) in testGetRelBoundsForPosition_splitHorizontally()
523 .setLayoutDirection(SplitAttributes.LayoutDirection.BOTTOM_TO_TOP) in testGetRelBoundsForPosition_splitHorizontally()
549 )).setLayoutDirection(SplitAttributes.LayoutDirection.LEFT_TO_RIGHT) in testGetRelBoundsForPosition_useHingeFallback()
613 )).setLayoutDirection(SplitAttributes.LayoutDirection.LEFT_TO_RIGHT) in testGetRelBoundsForPosition_fallbackToExpandContainers()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsPopupMenu.java22 import android.util.LayoutDirection;
114 if (getAnchorView().getLayoutDirection() == LayoutDirection.LTR) { in show()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DProgressBar.kt37 import androidx.compose.ui.unit.LayoutDirection
71 val isLtr = layoutDirection == LayoutDirection.Ltr in DrawScope()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java29 import android.util.LayoutDirection;
216 if (layoutDirection == LayoutDirection.RTL) { in shouldMirrorDrawable()
/frameworks/base/tools/aapt2/
DConfiguration.proto26 enum LayoutDirection { enum
144 LayoutDirection layout_direction = 4;
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardQuickAffordanceRepository.kt23 import android.util.LayoutDirection in <lambda>()
213 if (appContext.resources.configuration.layoutDirection == LayoutDirection.RTL) { in <lambda>()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/
DWindowExtensionsTest.java110 .isEqualTo(SplitAttributes.LayoutDirection.LOCALE); in testSplitAttributes_default()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DSignalDrawable.java36 import android.util.LayoutDirection;
205 boolean isRtl = getLayoutDirection() == LayoutDirection.RTL; in draw()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandableController.kt42 import androidx.compose.ui.unit.LayoutDirection
132 private val layoutDirection: LayoutDirection,
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/binder/
DScreenshotShelfViewBinder.kt23 import android.util.LayoutDirection in <lambda>()
258 if (scrollablePreview.layoutDirection == LayoutDirection.LTR) scrollableRect.left in <lambda>()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/
DEntry.kt53 import androidx.compose.ui.unit.LayoutDirection
351 LayoutDirection.Rtl -> graphicsLayer(scaleX = -1f) in <lambda>()

12