Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.window.testing.layout\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/window/testing/layout/package-summary \"View this page in Kotlin\") \\|Java\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DisplayFeatureTesting](/reference/androidx/window/testing/layout/DisplayFeatureTesting) | |\n| [WindowLayoutInfoPublisherRule](/reference/androidx/window/testing/layout/WindowLayoutInfoPublisherRule) | A [TestRule](https://junit.org/junit4/javadoc/4.12/org/junit/rules/TestRule.html) to help test consuming a stream of [WindowLayoutInfo](/reference/androidx/window/layout/WindowLayoutInfo) values. |\n| [WindowLayoutInfoTesting](/reference/androidx/window/testing/layout/WindowLayoutInfoTesting) | |\n| [WindowMetricsCalculatorRule](/reference/androidx/window/testing/layout/WindowMetricsCalculatorRule) | A [TestRule](https://junit.org/junit4/javadoc/4.12/org/junit/rules/TestRule.html) that will sub out the actual [WindowMetricsCalculator](/reference/androidx/window/layout/WindowMetricsCalculator) with a more simple one that will support testing independent of the current platform. |\n| [WindowMetricsTesting](/reference/androidx/window/testing/layout/WindowMetricsTesting) | |\n| [FoldingFeatureTestingConstants](/reference/androidx/window/testing/layout/FoldingFeatureTestingConstants) | A class to contain all the constants related to testing [androidx.window.layout.DisplayFeature](/reference/androidx/window/layout/DisplayFeature)s. |"]]