blob: f11fa22069bbb14fd679b4239df8119388bf86f6 [file]
// Signature format: 4.0
package androidx.window.testing {
public final class WindowSdkExtensionsRule implements org.junit.rules.TestRule {
ctor public WindowSdkExtensionsRule();
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void overrideExtensionVersion(@IntRange(from=0L) int version);
}
}
package androidx.window.testing.area {
public final class TestWindowArea {
method @KotlinOnly public static androidx.window.area.WindowArea WindowArea(optional androidx.window.layout.WindowMetrics metrics, optional androidx.window.area.WindowArea.Type type, optional android.os.IBinder token);
method @InaccessibleFromKotlin public static androidx.window.area.WindowArea createTestWindowArea();
method @InaccessibleFromKotlin public static androidx.window.area.WindowArea createTestWindowArea(optional androidx.window.layout.WindowMetrics metrics);
method @InaccessibleFromKotlin public static androidx.window.area.WindowArea createTestWindowArea(optional androidx.window.layout.WindowMetrics metrics, optional androidx.window.area.WindowArea.Type type);
method @InaccessibleFromKotlin public static androidx.window.area.WindowArea createTestWindowArea(optional androidx.window.layout.WindowMetrics metrics, optional androidx.window.area.WindowArea.Type type, optional android.os.IBinder token);
method @BytecodeOnly public static androidx.window.area.WindowArea! createTestWindowArea$default(androidx.window.layout.WindowMetrics!, androidx.window.area.WindowArea.Type!, android.os.IBinder!, int, Object!);
}
}
package androidx.window.testing.embedding {
public final class ActivityEmbeddingRule implements org.junit.rules.TestRule {
ctor public ActivityEmbeddingRule();
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void overrideIsActivityEmbedded(android.app.Activity activity, boolean isActivityEmbedded);
method public void overrideSplitInfo(android.app.Activity activity, java.util.List<androidx.window.embedding.SplitInfo> splitInfoList);
method public void overrideSplitSupportStatus(androidx.window.embedding.SplitController.SplitSupportStatus status);
}
public final class TestActivityStack {
method @KotlinOnly public static androidx.window.embedding.ActivityStack TestActivityStack(optional java.util.List<android.app.Activity> activitiesInProcess, optional boolean isEmpty);
method @InaccessibleFromKotlin public static androidx.window.embedding.ActivityStack createTestActivityStack();
method @InaccessibleFromKotlin public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess);
method @InaccessibleFromKotlin public static androidx.window.embedding.ActivityStack createTestActivityStack(optional java.util.List<? extends android.app.Activity> activitiesInProcess, optional boolean isEmpty);
method @BytecodeOnly public static androidx.window.embedding.ActivityStack! createTestActivityStack$default(java.util.List!, boolean, int, Object!);
}
public final class TestSplitAttributesCalculatorParams {
method @KotlinOnly public static androidx.window.embedding.SplitAttributesCalculatorParams TestSplitAttributesCalculatorParams(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);
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics);
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration);
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitAttributesCalculatorParams createTestSplitAttributesCalculatorParams(androidx.window.layout.WindowMetrics parentWindowMetrics, optional android.content.res.Configuration parentConfiguration, optional androidx.window.layout.WindowLayoutInfo parentWindowLayoutInfo);
method @InaccessibleFromKotlin 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);
method @InaccessibleFromKotlin 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);
method @InaccessibleFromKotlin 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);
method @BytecodeOnly public static androidx.window.embedding.SplitAttributesCalculatorParams! createTestSplitAttributesCalculatorParams$default(androidx.window.layout.WindowMetrics!, android.content.res.Configuration!, androidx.window.layout.WindowLayoutInfo!, androidx.window.embedding.SplitAttributes!, boolean, String!, int, Object!);
}
public final class TestSplitInfo {
method @KotlinOnly public static androidx.window.embedding.SplitInfo TestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack, optional androidx.window.embedding.ActivityStack secondActivityStack, optional androidx.window.embedding.SplitAttributes splitAttributes);
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitInfo createTestSplitInfo();
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack);
method @InaccessibleFromKotlin public static androidx.window.embedding.SplitInfo createTestSplitInfo(optional androidx.window.embedding.ActivityStack primaryActivityStack, optional androidx.window.embedding.ActivityStack secondActivityStack);
method @InaccessibleFromKotlin 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);
method @BytecodeOnly public static androidx.window.embedding.SplitInfo! createTestSplitInfo$default(androidx.window.embedding.ActivityStack!, androidx.window.embedding.ActivityStack!, androidx.window.embedding.SplitAttributes!, int, Object!);
}
}
package androidx.window.testing.layout {
public final class DisplayFeatureTesting {
method @KotlinOnly public static androidx.window.layout.FoldingFeature FoldingFeature(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);
method @KotlinOnly public static androidx.window.layout.FoldingFeature FoldingFeature(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);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.app.Activity activity, optional @IntRange(from=-1L) int center, optional int size);
method @InaccessibleFromKotlin 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);
method @InaccessibleFromKotlin 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);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center);
method @InaccessibleFromKotlin public static androidx.window.layout.FoldingFeature createFoldingFeature(android.graphics.Rect windowBounds, optional @IntRange(from=-1L) int center, optional int size);
method @InaccessibleFromKotlin 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);
method @InaccessibleFromKotlin 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);
method @BytecodeOnly public static androidx.window.layout.FoldingFeature! createFoldingFeature$default(android.app.Activity!, int, int, androidx.window.layout.FoldingFeature.State!, androidx.window.layout.FoldingFeature.Orientation!, int, Object!);
method @BytecodeOnly public static androidx.window.layout.FoldingFeature! createFoldingFeature$default(android.graphics.Rect!, int, int, androidx.window.layout.FoldingFeature.State!, androidx.window.layout.FoldingFeature.Orientation!, int, Object!);
}
public final class FoldingFeatureTestingConstants {
property public static int FOLDING_FEATURE_CENTER_DEFAULT;
field public static final int FOLDING_FEATURE_CENTER_DEFAULT = -1; // 0xffffffff
field public static final androidx.window.testing.layout.FoldingFeatureTestingConstants INSTANCE;
}
public final class WindowLayoutInfoPublisherRule implements org.junit.rules.TestRule {
ctor public WindowLayoutInfoPublisherRule();
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void overrideWindowLayoutInfo(androidx.window.layout.WindowLayoutInfo info);
}
public final class WindowLayoutInfoTesting {
method @KotlinOnly public static androidx.window.layout.WindowLayoutInfo TestWindowLayoutInfo(optional java.util.List<androidx.window.layout.DisplayFeature> displayFeatures);
method @KotlinOnly @Deprecated public static androidx.window.layout.WindowLayoutInfo TestWindowLayoutInfo(optional java.util.List<androidx.window.layout.DisplayFeature> displayFeatures, java.util.Set<androidx.window.layout.WindowLayoutInfo.EngagementMode> engagementModes);
method @InaccessibleFromKotlin public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo();
method @InaccessibleFromKotlin public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(optional java.util.List<? extends androidx.window.layout.DisplayFeature> displayFeatures);
method @InaccessibleFromKotlin @Deprecated public static androidx.window.layout.WindowLayoutInfo createWindowLayoutInfo(optional java.util.List<? extends androidx.window.layout.DisplayFeature> displayFeatures, java.util.Set<androidx.window.layout.WindowLayoutInfo.EngagementMode> engagementModes);
method @BytecodeOnly public static androidx.window.layout.WindowLayoutInfo! createWindowLayoutInfo$default(java.util.List!, int, Object!);
method @BytecodeOnly @Deprecated public static androidx.window.layout.WindowLayoutInfo! createWindowLayoutInfo$default(java.util.List!, java.util.Set!, int, Object!);
}
public final class WindowMetricsCalculatorRule implements org.junit.rules.TestRule {
ctor public WindowMetricsCalculatorRule();
method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
method public void overrideCurrentWindowBounds(androidx.window.layout.WindowMetrics windowMetrics);
method public void overrideCurrentWindowBounds(int left, int top, int right, int bottom);
}
public final class WindowMetricsTesting {
method @KotlinOnly public static androidx.window.layout.WindowMetrics TestWindowMetrics(android.graphics.Rect bounds, optional float density);
method @KotlinOnly public static androidx.window.layout.WindowMetrics TestWindowMetrics(int left, int top, int right, int bottom, optional float density);
method @InaccessibleFromKotlin public static androidx.window.layout.WindowMetrics createWindowMetrics(android.graphics.Rect bounds);
method @InaccessibleFromKotlin public static androidx.window.layout.WindowMetrics createWindowMetrics(android.graphics.Rect bounds, optional float density);
method @InaccessibleFromKotlin public static androidx.window.layout.WindowMetrics createWindowMetrics(int left, int top, int right, int bottom);
method @InaccessibleFromKotlin public static androidx.window.layout.WindowMetrics createWindowMetrics(int left, int top, int right, int bottom, optional float density);
method @BytecodeOnly public static androidx.window.layout.WindowMetrics! createWindowMetrics$default(android.graphics.Rect!, float, int, Object!);
method @BytecodeOnly public static androidx.window.layout.WindowMetrics! createWindowMetrics$default(int, int, int, int, float, int, Object!);
}
}