summaryrefslogtreecommitdiffstats
path: root/tests/backup
Commit message (Collapse)AuthorAgeFilesLines
* BackupManager wrapper class improvementsChristopher Tate2009-07-071-8/+6
| | | | | | | | | | | | | + 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.
* Add a test for SharedPreferencesBackupHelperJoe Onorato2009-06-263-6/+20
| | | | | (which nobody had ever tested. I like it when stuff just works the first time).
* Test that we correctly back up an empty file.Joe Onorato2009-06-263-1/+4
| | | | | (It turns out that we do. It didn't used to work, I'm not sure what changed)
* Add some helpful tests scripts for backup and make bmgr restore wait until ↵Joe Onorato2009-06-253-1/+67
| | | | the backup is done.
* Make the BackupHelperDispatcher properly handle multiple helpers.Joe Onorato2009-06-251-0/+1
|
* Pass the originating app's versionCode along with a restore setChristopher Tate2009-06-221-1/+2
| | | | | | | 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.
* Helper API cleanup. Allows multiple helpers to function,Joe Onorato2009-06-222-45/+11
| | | | | because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
* Make RestoreHelper and friends also write out the snapshot state.Joe Onorato2009-06-182-2/+7
|
* backup fixes:Joe Onorato2009-06-172-7/+23
| | | | | | - BackupTestAgent calls the DispatchHelper - Make BackupAgent.onRestore take a BackupDataInput, not just a generic ParcelFileDescriptor.
* FileRestoreHelper and RestoreHelperDispatcher work.Joe Onorato2009-06-171-3/+57
|
* Add RestoreFileHelper, BackupDataInput, and add java wrappers for the ↵Joe Onorato2009-06-121-1/+2
| | | | methods on BackupDataOutput.
* Make the file backup helper not crash if a file you requestedJoe Onorato2009-06-111-0/+1
| | | | | can't be stated. This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
* Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-0/+1
| | | | This took quite a bit of refactoring.
* rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-041-1/+17
|
* Retool the backup process to use a new 'BackupAgent' classChristopher Tate2009-05-312-9/+4
| | | | | | | | | | | | | | | 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.
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-201-2/+2
|
* Add the backup data file writer C++ class.Joe Onorato2009-05-151-0/+1
|
* Implement the C++ class to write the backed up file data.Joe Onorato2009-05-151-0/+3
|
* Get the backup calling through to the file backup helper.Joe Onorato2009-05-142-3/+28
| | | | | This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
* With this, the BackupService onBackup method is called.Joe Onorato2009-05-131-1/+1
| | | | | | It took a bunch of refactoring inside BackupManagerService, which is unfortunately all temporary anyway, but it unblocks a bunch of stuff.
* fix the sim build. disables the tests for now.Joe Onorato2009-05-081-3/+10
|
* More backup testsJoe Onorato2009-05-073-3/+47
|
* Add a test app for the backupJoe Onorato2009-05-054-0/+164
|
* Add some C++ code to do raw files for backupJoe Onorato2009-05-052-0/+123