Home
last modified time | relevance | path

Searched refs:FoldingFeature (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/fold/ui/helper/
DFoldPostureTest.kt22 import androidx.window.layout.FoldingFeature
44 state = FoldingFeature.State.HALF_OPENED, in foldPosture_whenHalfOpenHorizontally_returnsTabletop()
45 orientation = FoldingFeature.Orientation.HORIZONTAL, in foldPosture_whenHalfOpenHorizontally_returnsTabletop()
57 state = FoldingFeature.State.HALF_OPENED, in foldPosture_whenHalfOpenVertically_returnsBook()
58 orientation = FoldingFeature.Orientation.VERTICAL, in foldPosture_whenHalfOpenVertically_returnsBook()
70 state = FoldingFeature.State.FLAT, in foldPosture_whenFlatAndNotSeparating_returnsFullyUnfolded()
71 orientation = FoldingFeature.Orientation.HORIZONTAL, in foldPosture_whenFlatAndNotSeparating_returnsFullyUnfolded()
84 state = FoldingFeature.State.FLAT, in foldPosture_whenFlatAndSeparatingHorizontally_returnsTabletop()
86 orientation = FoldingFeature.Orientation.HORIZONTAL, in foldPosture_whenFlatAndSeparatingHorizontally_returnsTabletop()
98 state = FoldingFeature.State.FLAT, in foldPosture_whenFlatAndSeparatingVertically_returnsBook()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/fold/ui/helper/
DFoldPosture.kt20 import androidx.window.layout.FoldingFeature in <lambda>()
42 ?.firstNotNullOfOrNull { it as? FoldingFeature } in foldPostureInternal()
46 FoldingFeature.State.HALF_OPENED -> foldingFeature.orientation.toHalfwayPosture() in foldPostureInternal()
47 FoldingFeature.State.FLAT -> in foldPostureInternal()
59 private fun FoldingFeature.Orientation.toHalfwayPosture(): FoldPosture { in FoldingFeature() method
61 FoldingFeature.Orientation.HORIZONTAL -> FoldPosture.Tabletop in FoldingFeature()
62 FoldingFeature.Orientation.VERTICAL -> FoldPosture.Book in FoldingFeature()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitPresenter.java55 import androidx.window.extensions.layout.FoldingFeature;
824 final FoldingFeature foldingFeature = getFoldingFeatureForHingeType( in sanitizeSplitAttributes()
904 final FoldingFeature foldingFeature = getFoldingFeatureForHingeType( in getRelBoundsForPosition()
929 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getPrimaryBounds()
969 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getSecondaryBounds()
1020 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getLeftContainerBounds()
1031 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getRightContainerBounds()
1042 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getTopContainerBounds()
1053 @NonNull SplitAttributes splitAttributes, @Nullable FoldingFeature foldingFeature) { in getBottomContainerBounds()
1083 @Nullable FoldingFeature foldingFeature) { in computeBoundaryBetweenContainers()
[all …]
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DEmbeddingTestUtils.java44 import androidx.window.extensions.layout.FoldingFeature;
216 final FoldingFeature foldingFeature = new FoldingFeature( in createWindowLayoutInfo()
223 FoldingFeature.TYPE_HINGE, in createWindowLayoutInfo()
224 FoldingFeature.STATE_HALF_OPENED); in createWindowLayoutInfo()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DDreamUniverse.kt30 import androidx.window.layout.FoldingFeature
34 private var foldState = mutableStateOf<FoldingFeature?>(null) // unused
DMainActivity.kt76 import androidx.window.layout.FoldingFeature in <lambda>()
293 private var foldState = mutableStateOf<FoldingFeature?>(null)
363 layoutInfo.displayFeatures.filterIsInstance<FoldingFeature>().firstOrNull() in onWindowLayoutInfoChange()
462 foldState: MutableState<FoldingFeature?> = mutableStateOf(null) in Spaaaace()
486 val halfFolded = foldState.value?.let { it.state == FoldingFeature.State.HALF_OPENED } ?: false in Spaaaace()
488 foldState.value?.let { it.orientation == FoldingFeature.Orientation.HORIZONTAL } ?: false in Spaaaace()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/layout/
DWindowLayoutComponentImpl.java252 return FoldingFeature.STATE_FLAT; in convertToExtensionState()
254 return FoldingFeature.STATE_HALF_OPENED; in convertToExtensionState()
399 features.add(new FoldingFeature(featureRect, baseFeature.getType(), state)); in getDisplayFeatures()