TestWindowArea

Added in 1.6.0-alpha03

public final class TestWindowArea


Summary

Public methods

static final @NonNull WindowArea
createTestWindowArea(
    @NonNull WindowMetrics metrics,
    @NonNull WindowArea.Type type,
    @NonNull IBinder token
)

Creates an WindowArea instance for testing.

Public methods

createTestWindowArea

public static final @NonNull WindowArea createTestWindowArea(
    @NonNull WindowMetrics metrics,
    @NonNull WindowArea.Type type,
    @NonNull IBinder token
)

Creates an WindowArea instance for testing. The default values are a default WindowMetrics object, a type of WindowArea.Type.TYPE_REAR_FACING and a default IBinder token.

Parameters
@NonNull WindowMetrics metrics

The WindowMetrics the WindowArea should represent.

@NonNull WindowArea.Type type

Indicates what type this WindowArea is.

@NonNull IBinder token

Identifying token for this WindowArea

Returns
@NonNull WindowArea

A WindowArea instance for testing.