summaryrefslogtreecommitdiff
path: root/tests/backup/src
AgeCommit message (Collapse)Author
2010-03-29API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API CouncilChristopher Tate
Part of bug #2545514 Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
2010-03-05Refactor android.backup => android.app.backupChristopher Tate
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2009-07-07BackupManager wrapper class improvementsChristopher Tate
+ Now rechecks the cached IBinder each time the wrapper is used, and if it's still null (i.e. the BackupManager was constructed before the system service came up) it's refetched. This lets even system code cache a single BackupManager instance and just keep making calls through it without worrying about interactions with the life cycle of the backup service. + Added a static dataChanged(packageName) method as a convenience for code that needs to indicate that some other package needs a backup pass. This is useful even for third party code in the case of multiple packages in a shared-uid situation.
2009-06-26Add a test for SharedPreferencesBackupHelperJoe Onorato
(which nobody had ever tested. I like it when stuff just works the first time).
2009-06-26Test that we correctly back up an empty file.Joe Onorato
(It turns out that we do. It didn't used to work, I'm not sure what changed)
2009-06-25Add some helpful tests scripts for backup and make bmgr restore wait until ↵Joe Onorato
the backup is done.
2009-06-25Make the BackupHelperDispatcher properly handle multiple helpers.Joe Onorato
2009-06-22Pass the originating app's versionCode along with a restore setChristopher Tate
This change amends the doRestore() / onRestore() interface to backup agents to provide the integer android:versionCode of the app that stored the backup set. This should help agents figure out how to handle whatever historical data set they're handed at restore time.
2009-06-22Helper API cleanup. Allows multiple helpers to function,Joe Onorato
because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
2009-06-18Make RestoreHelper and friends also write out the snapshot state.Joe Onorato
2009-06-17backup fixes:Joe Onorato
- BackupTestAgent calls the DispatchHelper - Make BackupAgent.onRestore take a BackupDataInput, not just a generic ParcelFileDescriptor.
2009-06-17FileRestoreHelper and RestoreHelperDispatcher work.Joe Onorato
2009-06-12Add RestoreFileHelper, BackupDataInput, and add java wrappers for the ↵Joe Onorato
methods on BackupDataOutput.
2009-05-31Retool the backup process to use a new 'BackupAgent' classChristopher Tate
Backups will be handled by launching the application in a special mode under which no activities or services will be started, only the BackupAgent subclass named in the app's android:backupAgent manifest property. This takes the place of the BackupService class used earlier during development. In the cases of *full* backup or restore, an application that does not supply its own BackupAgent will be launched in a restricted manner; in particular, it will be using the default Application class rather than any manifest-declared one. This ensures that the app is not running any code that may try to manipulate its data while the backup system reads/writes its data set.
2009-05-14Get the backup calling through to the file backup helper.Joe Onorato
This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
2009-05-13With this, the BackupService onBackup method is called.Joe Onorato
It took a bunch of refactoring inside BackupManagerService, which is unfortunately all temporary anyway, but it unblocks a bunch of stuff.
2009-05-07More backup testsJoe Onorato
2009-05-05Add a test app for the backupJoe Onorato