Joe Onorato | f9225f8 | 2009-05-05 18:34:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Joe Onorato | 8ad0281 | 2009-05-13 01:41:44 -0400 | [diff] [blame] | 17 | package com.android.backuptest; |
Joe Onorato | f9225f8 | 2009-05-05 18:34:31 -0700 | [diff] [blame] | 18 | |
Christopher Tate | cc84c69 | 2010-03-29 14:54:02 -0700 | [diff] [blame] | 19 | import android.app.backup.BackupAgentHelper; |
Christopher Tate | 4528186 | 2010-03-05 15:46:30 -0800 | [diff] [blame] | 20 | import android.app.backup.FileBackupHelper; |
| 21 | import android.app.backup.SharedPreferencesBackupHelper; |
Joe Onorato | f9225f8 | 2009-05-05 18:34:31 -0700 | [diff] [blame] | 22 | |
Christopher Tate | cc84c69 | 2010-03-29 14:54:02 -0700 | [diff] [blame] | 23 | public class BackupTestAgent extends BackupAgentHelper |
Joe Onorato | f9225f8 | 2009-05-05 18:34:31 -0700 | [diff] [blame] | 24 | { |
Joe Onorato | 06290a4 | 2009-06-18 20:10:37 -0700 | [diff] [blame] | 25 | public void onCreate() { |
| 26 | addHelper("data_files", new FileBackupHelper(this, BackupTestActivity.FILE_NAME)); |
Joe Onorato | aae628b | 2009-06-26 12:57:45 -0400 | [diff] [blame] | 27 | addHelper("more_data_files", new FileBackupHelper(this, "another_file.txt", "3.txt", |
| 28 | "empty.txt")); |
Joe Onorato | dc355a9 | 2009-06-26 14:45:25 -0400 | [diff] [blame] | 29 | addHelper("shared_prefs", new SharedPreferencesBackupHelper(this, "settings", "raw")); |
Joe Onorato | f9225f8 | 2009-05-05 18:34:31 -0700 | [diff] [blame] | 30 | } |
| 31 | } |
| 32 | |