1// Signature format: 4.0 2package androidx.window.testing { 3 4 public final class WindowSdkExtensionsRule implements org.junit.rules.TestRule { 5 ctor public WindowSdkExtensionsRule(); 6 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 7 method public void overrideExtensionVersion(@IntRange(from=0L) int version); 8 } 9 10} 11 12package androidx.window.testing.embedding { 13 14 public final class ActivityEmbeddingRule implements org.junit.rules.TestRule { 15 ctor public ActivityEmbeddingRule(); 16 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 17 method public void overrideIsActivityEmbedded(android.app.Activity activity, boolean isActivityEmbedded); 18 method public void overrideSplitInfo(android.app.Activity activity, java.util.List<androidx.window.embedding.SplitInfo> splitInfoList); 19 method public void overrideSplitSupportStatus(androidx.window.embedding.SplitController.SplitSupportStatus status); 20 } 21 22 public final class TestActivityStack { 23 method public static androidx.window.embedding.ActivityStack createTestActivityStack(); 24 method public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess); 25 method public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess, optional boolean isEmpty); 26 } 27 28 public final class TestSplitAttributesCalculatorParams { 29 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics); 30 method public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration); 31 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); 32 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); 33 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); 34 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); 35 } 36 37 public final class TestSplitInfo { 38 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(); 39 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack); 40 method public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack, optional androidx.window.embedding.ActivityStack secondActivityStack); 41 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); 42 } 43 44} 45 46package androidx.window.testing.layout { 47 48 public final class DisplayFeatureTesting { 49 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity); 50 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center); 51 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center, optional int size); 52 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); 53 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); 54 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds); 55 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center); 56 method public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center, optional int size); 57 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); 58 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); 59 } 60 61 public final class FoldingFeatureTestingConstants { 62 property public static int FOLDING_FEATURE_CENTER_DEFAULT; 63 field public static final int FOLDING_FEATURE_CENTER_DEFAULT = -1; // 0xffffffff 64 field public static final androidx.window.testing.layout.FoldingFeatureTestingConstants INSTANCE; 65 } 66 67 public final class WindowLayoutInfoPublisherRule implements org.junit.rules.TestRule { 68 ctor public WindowLayoutInfoPublisherRule(); 69 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 70 method public void overrideWindowLayoutInfo(androidx.window.layout.WindowLayoutInfo info); 71 } 72 73 public final class WindowLayoutInfoTesting { 74 method public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(); 75 method public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(optional java.util.List<? extends androidx.window.layout.DisplayFeature> displayFeatures); 76 } 77 78 public final class WindowMetricsCalculatorRule implements org.junit.rules.TestRule { 79 ctor public WindowMetricsCalculatorRule(); 80 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 81 method public void overrideCurrentWindowBounds(androidx.window.layout.WindowMetrics windowMetrics); 82 method public void overrideCurrentWindowBounds(int left, int top, int right, int bottom); 83 } 84 85 public final class WindowMetricsTesting { 86 method public static androidx.window.layout.WindowMetrics createWindowMetrics(android.graphics.Rect bounds); 87 method public static androidx.window.layout.WindowMetrics createWindowMetrics(android.graphics.Rect bounds, optional float density); 88 method public static androidx.window.layout.WindowMetrics createWindowMetrics(int left, int top, int right, int bottom); 89 method public static androidx.window.layout.WindowMetrics createWindowMetrics(int left, int top, int right, int bottom, optional float density); 90 } 91 92} 93 94