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.java67 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
86 assertFalse(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
105 assertTrue(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
124 assertFalse(backupUtils.enableBackup(false)); in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
144 assertTrue(backupUtils.enableBackup(true)); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
167 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandThrows_propagatesException()
195 backupUtils.enableBackup(true); in testEnableBackup_whenSetCommandThrows_propagatesException()
223 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandReturnsInvalidString_throwsException()
251 backupUtils.enableBackup(true); in testEnableBackup_whenQueryCommandReturnsEmptyString_throwsException()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBackupUtils.java275 public boolean enableBackup(boolean enable) throws Exception { in enableBackup() method in BackupUtils