ManagedVirtualDevice.PageAlignment

Added in 8.9.0-alpha09

@Incubating
enum ManagedVirtualDevice.PageAlignment : Enum


Defines possible system image selection strategies based on the requested Page Alignment

This allows for testing on devices for both 4KB and 16KB page sizes. See Android Page Sizes for more information.

Summary

Enum Values

DEFAULT_FOR_SDK_VERSION

Selects the page alignment that would result in the certified system image for the given sdkVersion.

FORCE_16KB_PAGES

Selects the system image with 16KB aligned pages.

FORCE_4KB_PAGES

Selects the system image with 4KB aligned pages.

Public functions

ManagedVirtualDevice.PageAlignment
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<ManagedVirtualDevice.PageAlignment>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

DEFAULT_FOR_SDK_VERSION

@Incubating
val ManagedVirtualDevice.PageAlignment.DEFAULT_FOR_SDK_VERSIONManagedVirtualDevice.PageAlignment

Selects the page alignment that would result in the certified system image for the given sdkVersion. At present (API 35 and below), the certified image is always 4KB aligned.

FORCE_16KB_PAGES

@Incubating
val ManagedVirtualDevice.PageAlignment.FORCE_16KB_PAGESManagedVirtualDevice.PageAlignment

Selects the system image with 16KB aligned pages. If no such image exists, the setup for the managed device will fail.

FORCE_4KB_PAGES

@Incubating
val ManagedVirtualDevice.PageAlignment.FORCE_4KB_PAGESManagedVirtualDevice.PageAlignment

Selects the system image with 4KB aligned pages. If no such image exists, the setup for the managed device will fail.

Public functions

valueOf

Added in 8.9.0-alpha09
fun valueOf(value: String): ManagedVirtualDevice.PageAlignment

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 8.9.0-alpha09
fun values(): Array<ManagedVirtualDevice.PageAlignment>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.