1// Signature format: 4.0 2package androidx.window.testing.embedding { 3 4 public final class ActivityEmbeddingRule implements org.junit.rules.TestRule { 5 ctor public ActivityEmbeddingRule(); 6 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 7 method public void overrideIsActivityEmbedded(android.app.Activity activity, boolean isActivityEmbedded); 8 method public void overrideSplitInfo(android.app.Activity activity, java.util.List<androidx.window.embedding.SplitInfo> splitInfoList); 9 method public void overrideSplitSupportStatus(androidx.window.embedding.SplitController.SplitSupportStatus status); 10 } 11 12 public final class TestActivityStack { 13 method public static androidx.window.embedding.ActivityStack createTestActivityStack(); 14 method public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess); 15 method public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess, optional boolean isEmpty); 16 } 17 18 public final class TestSplitAttributesCalculatorParams { 19 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics); 20 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration); 21 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration, optional androidx.window.layout.WindowLayoutInfo parentWindowLayoutInfo); 22 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration, optional androidx.window.layout.WindowLayoutInfo parentWindowLayoutInfo, optional androidx.window.embedding.SplitAttributes defaultSplitAttributes); 23 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration, optional androidx.window.layout.WindowLayoutInfo parentWindowLayoutInfo, optional androidx.window.embedding.SplitAttributes defaultSplitAttributes, optional boolean areDefaultConstraintsSatisfied); 24 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration, optional androidx.window.layout.WindowLayoutInfo parentWindowLayoutInfo, optional androidx.window.embedding.SplitAttributes defaultSplitAttributes, optional boolean areDefaultConstraintsSatisfied, optional String? splitRuleTag); 25 } 26 27 public final class TestSplitInfo { 28 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(); 29 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack); 30 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack, optional androidx.window.embedding.ActivityStack secondActivityStack); 31 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack, optional androidx.window.embedding.ActivityStack secondActivityStack, optional androidx.window.embedding.SplitAttributes splitAttributes); 32 } 33 34} 35 36package androidx.window.testing.layout { 37 38 public final class DisplayFeatureTesting { 39 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity); 40 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center); 41 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center, optional int size); 42 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center, optional int size, optional androidx.window.layout.FoldingFeature.State state); 43 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center, optional int size, optional androidx.window.layout.FoldingFeature.State state, optional androidx.window.layout.FoldingFeature.Orientation orientation); 44 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds); 45 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center); 46 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center, optional int size); 47 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center, optional int size, optional androidx.window.layout.FoldingFeature.State state); 48 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center, optional int size, optional androidx.window.layout.FoldingFeature.State state, optional androidx.window.layout.FoldingFeature.Orientation orientation); 49 } 50 51 public final class FoldingFeatureTestingConstants { 52 field public static final int FOLDING_FEATURE_CENTER_DEFAULT = -1; // 0xffffffff 53 field public static final androidx.window.testing.layout.FoldingFeatureTestingConstants INSTANCE; 54 } 55 56 public final class WindowLayoutInfoPublisherRule implements org.junit.rules.TestRule { 57 ctor public WindowLayoutInfoPublisherRule(); 58 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 59 method public void overrideWindowLayoutInfo(androidx.window.layout.WindowLayoutInfo info); 60 } 61 62 public final class WindowLayoutInfoTesting { 63 method public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(); 64 method public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(optional java.util.List<? extends androidx.window.layout.DisplayFeature> displayFeatures); 65 } 66 67 public final class WindowMetricsCalculatorRule implements org.junit.rules.TestRule { 68 ctor public WindowMetricsCalculatorRule(); 69 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 70 } 71 72} 73 74