Home
last modified time | relevance | path

Searched refs:FoldPosture (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/fold/ui/helper/
DFoldPosture.kt23 sealed interface FoldPosture { in <lambda>() interface
25 data object Folded : FoldPosture in <lambda>()
27 data object Book : FoldPosture in <lambda>()
29 data object Tabletop : FoldPosture in <lambda>()
31 data object FullyUnfolded : FoldPosture in <lambda>()
39 fun foldPostureInternal(layoutInfo: WindowLayoutInfo?): FoldPosture { in foldPostureInternal()
45 null -> FoldPosture.Folded in foldPostureInternal()
52 FoldPosture.FullyUnfolded in foldPostureInternal()
59 private fun FoldingFeature.Orientation.toHalfwayPosture(): FoldPosture { in FoldingFeature()
61 FoldingFeature.Orientation.HORIZONTAL -> FoldPosture.Tabletop in FoldingFeature()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/fold/ui/helper/
DFoldPostureTest.kt36 assertThat(foldPostureInternal(null)).isEqualTo(FoldPosture.Folded) in foldPosture_whenNull_returnsFolded()
49 .isEqualTo(FoldPosture.Tabletop) in foldPosture_whenHalfOpenHorizontally_returnsTabletop()
62 .isEqualTo(FoldPosture.Book) in foldPosture_whenHalfOpenVertically_returnsBook()
76 .isEqualTo(FoldPosture.FullyUnfolded) in foldPosture_whenFlatAndNotSeparating_returnsFullyUnfolded()
90 .isEqualTo(FoldPosture.Tabletop) in foldPosture_whenFlatAndSeparatingHorizontally_returnsTabletop()
104 .isEqualTo(FoldPosture.Book) in foldPosture_whenFlatAndSeparatingVertically_returnsBook()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/fold/ui/composable/
DFoldPosture.kt27 import com.android.systemui.fold.ui.helper.FoldPosture
32 fun foldPosture(): State<FoldPosture> { in foldPosture()
38 return produceState<FoldPosture>( in foldPosture()
39 initialValue = FoldPosture.Folded, in foldPosture()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DBouncerContent.kt105 import com.android.systemui.fold.ui.helper.FoldPosture in <lambda>()
513 val foldPosture: FoldPosture by foldPosture() in FoldAware()
515 val isSplitAroundTheFold = foldPosture == FoldPosture.Tabletop && isSplitAroundTheFoldRequired in FoldAware()