Home
last modified time | relevance | path

Searched refs:enableBackup (Results 1 – 2 of 2) sorted by relevance

/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DBackupUtilsTest.java66 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
85 assertFalse(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
104 assertTrue(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
123 assertFalse(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
143 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
166 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandThrows_propagatesException()
194 backupUtils.enableBackup(true); in testEnableBackup_whenSetCommandThrows_propagatesException()
222 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandReturnsInvalidString_throwsException()
250 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandReturnsEmptyString_throwsException()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBackupUtils.java301 public boolean enableBackup(boolean enable) throws Exception { in enableBackup() method in BackupUtils