androidx.test.backup.host


Interfaces

BackupRestoreController

Controls backup, restore, and verification workflows for a test device.

Classes

BackupActionResult

Represents the result of a delegated device payload execution.

BackupActionResult.Failure

Indicates that the device payload failed during execution or verification.

BackupActionResult.Success

Indicates that the device payload executed and verified successfully.

BackupRestoreExtension

A JUnit 5 Jupiter extension that resolves BackupRestoreController test parameters.

BackupTransportMode

Represents the platform-transport emulation mode utilized during the backup and restore phases.

StorageDomain

Defines target data coordinates in the device sandbox that are seeded and verified.

StorageDomain.BinaryFile

Targets local raw binary files stored within internal app storage.

StorageDomain.Database

Targets structured SQLite/Room database records.

StorageDomain.Preference

Targets on-device SharedPreferences XML files.

StorageDomain.TextFile

Targets local raw text files stored within internal app storage.

Annotations

BackupRestoreConfig

Defines global configuration parameters for the Automated Backup and Restore test runner suite.

Device

Qualifier annotation used for multi-device orchestration.

Isolation

Annotation to override the default automatic clear data behavior of the framework.

Enums

IsolationPolicy

Defines the sandbox isolation policy used between individual test methods.