Home
last modified time | relevance | path

Searched refs:mBackupUtils (Results 1 – 16 of 16) sorted by relevance

/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java76 private BackupUtils mBackupUtils = field in PermissionTest
103 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testGrantDeniedRuntimePermission()
105 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testGrantDeniedRuntimePermission()
122 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testGrantDeniedRuntimePermission22()
124 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testGrantDeniedRuntimePermission22()
147 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testNoTriStateRuntimePermission()
149 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testNoTriStateRuntimePermission()
170 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testNoTriStateRuntimePermission22()
172 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testNoTriStateRuntimePermission22()
190 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testGrantForegroundRuntimePermission()
[all …]
DBaseBackupCtsTest.java47 private BackupUtils mBackupUtils = field in BaseBackupCtsTest
64 assertTrue("Backup not enabled", mBackupUtils.isBackupEnabled()); in setUp()
65 assertTrue("LocalTransport not selected", mBackupUtils.isLocalTransportSelected()); in setUp()
72 return mBackupUtils; in getBackupUtils()
DAppGrammaticalGenderBackupTest.java38 private final BackupUtils mBackupUtils = field in AppGrammaticalGenderBackupTest
65 mBackupUtils.restoreAndAssertSuccess(RESTORE_TOKEN, SYSTEM_PACKAGE); in testBackupRestore_setGenderBeforeRestoring_doesNotRestore()
78 mBackupUtils.backupNowAndAssertSuccess(SYSTEM_PACKAGE); in setAndBackupAppGender()
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsTest.java65 private BackupUtils mBackupUtils = field in SyncAdapterSettingsTest
95 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testMasterSyncAutomatically_whenOn_isRestored()
97 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testMasterSyncAutomatically_whenOn_isRestored()
114 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testMasterSyncAutomatically_whenOff_isRestored()
116 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testMasterSyncAutomatically_whenOff_isRestored()
139 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testIsSyncableChanged_ifTurnOnSyncEnabled()
141 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testIsSyncableChanged_ifTurnOnSyncEnabled()
165 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testIsSyncableIsZero_ifTurnOffSyncEnabled()
167 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, ANDROID_PACKAGE); in testIsSyncableIsZero_ifTurnOffSyncEnabled()
194 mBackupUtils.backupNowAndAssertSuccess(ANDROID_PACKAGE); in testIsSyncableIsOne_ifTurnOffSyncEnabled()
[all …]
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/
DOtherSoundsSettingsTest.java61 private BackupUtils mBackupUtils; field in OtherSoundsSettingsTest
68 mBackupUtils = in setUp()
103 mBackupUtils.backupNowAndAssertSuccess(SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_dialPadTones()
109 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_dialPadTones()
132 mBackupUtils.backupNowAndAssertSuccess(SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_touchSounds()
138 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_touchSounds()
169 mBackupUtils.backupNowAndAssertSuccess(SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_touchVibration()
175 mBackupUtils.restoreAndAssertSuccess(LOCAL_TRANSPORT_TOKEN, SETTINGS_PACKAGE_NAME); in testOtherSoundsSettings_touchVibration()
209 mBackupUtils.executeShellCommandSync("settings delete system " + setting); in clearSystemSettingState()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileScheduledJobHostSideTest.java69 private final BackupUtils mBackupUtils = getBackupUtils(); field in ProfileScheduledJobHostSideTest
122 String previousBufferSize = mBackupUtils.executeShellCommandAndReturnOutput( in testKeyValueBackupJobRunsSuccessfully()
127 mBackupUtils.executeShellCommandSync( in testKeyValueBackupJobRunsSuccessfully()
133 mBackupUtils.executeShellCommandSync(JOB_SCHEDULER_RUN_COMMAND + " " + jobId); in testKeyValueBackupJobRunsSuccessfully()
142 mBackupUtils.executeShellCommandSync(LOGCAT_BUFFER_SIZE_SET_COMMAND + previousBufferSize); in testKeyValueBackupJobRunsSuccessfully()
180 mBackupUtils.backupNowAndAssertSuccessForUser(PACKAGE_MANAGER_SENTINEL, profileUserId); in testFullBackupJobRunsSuccessfully()
182 String previousBufferSize = mBackupUtils.executeShellCommandAndReturnOutput( in testFullBackupJobRunsSuccessfully()
187 mBackupUtils.executeShellCommandSync( in testFullBackupJobRunsSuccessfully()
193 mBackupUtils.executeShellCommandSync(JOB_SCHEDULER_RUN_COMMAND + " " + jobId); in testFullBackupJobRunsSuccessfully()
202 mBackupUtils.executeShellCommandSync(LOGCAT_BUFFER_SIZE_SET_COMMAND + previousBufferSize); in testFullBackupJobRunsSuccessfully()
DBaseMultiUserBackupHostSideTest.java60 protected final BackupUtils mBackupUtils = getBackupUtils(); field in BaseMultiUserBackupHostSideTest
102 mBackupUtils.executeShellCommandAndReturnOutput( in createProfileUser()
126 mBackupUtils.activateBackupForUser(true, userId); in startUserAndInitializeForBackup()
130 mBackupUtils.waitUntilBackupServiceIsRunning(userId); in startUserAndInitializeForBackup()
132 mBackupUtils.enableBackupForUser(true, userId); in startUserAndInitializeForBackup()
133 assertThat(mBackupUtils.isBackupEnabledForUser(userId)).isTrue(); in startUserAndInitializeForBackup()
143 String localTransport = mBackupUtils.getLocalTransportName(); in switchUserToLocalTransportAndAssertSuccess()
152 mBackupUtils.setBackupTransportForUser(localTransport, userId); in switchUserToLocalTransportAndAssertSuccess()
153 assertThat(mBackupUtils.isLocalTransportSelectedForUser(userId)).isTrue(); in switchUserToLocalTransportAndAssertSuccess()
DAutoRestoreHostSideTest.java43 private BackupUtils mBackupUtils; field in AutoRestoreHostSideTest
51 mBackupUtils = getBackupUtils(); in setUp()
60 mBackupUtils.executeShellCommandSync( in tearDown()
118 mBackupUtils.backupNowAndAssertSuccess(PACKAGE); in backupAndReinstallPackage()
124 String output = mBackupUtils.executeShellCommandAndReturnOutput("dumpsys backup"); in isAutoRestoreEnabled()
DProfileFullBackupRestoreHostSideTest.java37 private final BackupUtils mBackupUtils = getBackupUtils(); field in ProfileFullBackupRestoreHostSideTest
97 mBackupUtils.backupNowAndAssertSuccessForUser(FULL_BACKUP_TEST_PACKAGE, profileUserId); in testFullBackupAndSystemRestore()
101 mBackupUtils.restoreAndAssertSuccessForUser( in testFullBackupAndSystemRestore()
124 mBackupUtils.backupNowAndAssertSuccessForUser(FULL_BACKUP_TEST_PACKAGE, profileUserId); in testFullBackupAndRestoreAtInstall()
DRestoreSessionHostSideTest.java66 private BackupUtils mBackupUtils; field in RestoreSessionHostSideTest
79 mBackupUtils = getBackupUtils(); in setUp()
80 mOldTransport = Optional.of(setBackupTransport(mBackupUtils.getLocalTransportName())); in setUp()
153 mBackupUtils.backupNowAndAssertSuccess(getPackageNameForTestApp(1)); in testRestorePackagesInternal()
154 mBackupUtils.backupNowAndAssertSuccess(getPackageNameForTestApp(2)); in testRestorePackagesInternal()
209 return mBackupUtils.setBackupTransportForUser(transport, USER_SYSTEM); in setBackupTransport()
DMultiUserBackupStateTest.java86 mBackupUtils.activateBackupForUser(true, profileUserId); in testBackupDeactivatedWhenUserIsRemoved()
88 assertTrue(mBackupUtils.isBackupActivatedForUser(profileUserId)); in testBackupDeactivatedWhenUserIsRemoved()
95 () -> !mBackupUtils.isBackupActivatedForUser(profileUserId)); in testBackupDeactivatedWhenUserIsRemoved()
DProfileKeyValueBackupRestoreHostSideTest.java44 private final BackupUtils mBackupUtils = getBackupUtils(); field in ProfileKeyValueBackupRestoreHostSideTest
105 mBackupUtils.backupNowAndAssertSuccessForUser(KEY_VALUE_TEST_PACKAGE, profileUserId); in testKeyValueBackupAndRestore()
137 mBackupUtils.backupNowAndAssertSuccessForUser(KEY_VALUE_TEST_PACKAGE, profileUserId); in testKeyValueBackupAndRestoreForInstallExistingPackage()
180 mBackupUtils.backupNowAndAssertSuccessForUser(KEY_VALUE_TEST_PACKAGE, profileUserId); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
DBackupPreparer.java71 private BackupUtils mBackupUtils; field in BackupPreparer
77 mBackupUtils = BackupHostSideUtils.createBackupUtils(mDevice); in setUp()
104 mBackupUtils.waitForBackupInitialization(); in setUp()
233 return mBackupUtils.isBackupActivatedForUser(USER_SYSTEM); in isBackupActiveForSysytemUser()
DParallelUserBackupRestoreHostSideTest.java53 private final BackupUtils mBackupUtils = getBackupUtils(); field in ParallelUserBackupRestoreHostSideTest
159 mBackupUtils.getShellCommandOutput( in backupCallableForUser()
181 mBackupUtils.getShellCommandOutput(
DBaseBackupHostSideTest.java66 private BackupUtils mBackupUtils = new BackupUtils() { field in BaseBackupHostSideTest
87 mBackupUtils.wakeAndUnlockDevice(); in setUp()
91 return mBackupUtils; in getBackupUtils()
/cts/hostsidetests/credentials/src/android/cts/credentials/backuprestore/
DCredentialManagerRestoreSettingsHostSideTest.java94 private BackupUtils mBackupUtils = field in CredentialManagerRestoreSettingsHostSideTest
116 mBackupUtils.enableBackup(true); in setUp()
117 mBackupUtils.activateBackupForUser(true, 0); in setUp()
118 mBackupUtils.setBackupTransportForUser(mBackupUtils.getLocalTransportName(), 0); in setUp()
123 mBackupUtils.isBackupEnabled()); in setUp()
128 mBackupUtils.wakeAndUnlockDevice(); in setUp()
147 mBackupUtils.backupNowAndAssertSuccess(SETTINGS_PACKAGE); in testSettingsAreRestoredCorrectly()
161 mBackupUtils.restoreAndAssertSuccess("1", SETTINGS_PACKAGE); in testSettingsAreRestoredCorrectly()
178 mBackupUtils.backupNowAndAssertSuccess(SETTINGS_PACKAGE); in testSettingsAreNotRestoredIfUserHasChangedThem()
186 mBackupUtils.restoreAndAssertSuccess("1", SETTINGS_PACKAGE); in testSettingsAreNotRestoredIfUserHasChangedThem()