androidx.test.backup.host


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.

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.CustomData

Targets data that device actions of your own seed and verify, such as a restore credential that only the app's code can create and read.

StorageDomain.DataStorePreference

Targets a preference of an on-device Preferences DataStore.

StorageDomain.Database

Targets structured SQLite/Room database records.

StorageDomain.ExcludedData

Targets data that the restore doesn't bring back, such as data that the app's backup rules exclude.

StorageDomain.Preference

Targets on-device SharedPreferences XML files.

StorageDomain.TextFile

Targets local raw text files stored within internal app storage.

Enums

IsolationPolicy

Defines the sandbox isolation policy used between individual test methods.