Searched refs:FoldPosture (Results 1 – 4 of 4) sorted by relevance
23 sealed interface FoldPosture { in <lambda>() interface25 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 …]
36 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()
27 import com.android.systemui.fold.ui.helper.FoldPosture32 fun foldPosture(): State<FoldPosture> { in foldPosture()38 return produceState<FoldPosture>( in foldPosture()39 initialValue = FoldPosture.Folded, in foldPosture()
105 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()