blob: edc54a4140055136ea8272b02ede690e374813b0 [file] [log] [blame]
Joe Onoratof9225f82009-05-05 18:34:31 -07001/*
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 Onorato8ad02812009-05-13 01:41:44 -040017package com.android.backuptest;
Joe Onoratof9225f82009-05-05 18:34:31 -070018
Christopher Tatecc84c692010-03-29 14:54:02 -070019import android.app.backup.BackupAgentHelper;
Christopher Tate45281862010-03-05 15:46:30 -080020import android.app.backup.FileBackupHelper;
21import android.app.backup.SharedPreferencesBackupHelper;
Joe Onoratof9225f82009-05-05 18:34:31 -070022
Christopher Tatecc84c692010-03-29 14:54:02 -070023public class BackupTestAgent extends BackupAgentHelper
Joe Onoratof9225f82009-05-05 18:34:31 -070024{
Joe Onorato06290a42009-06-18 20:10:37 -070025 public void onCreate() {
26 addHelper("data_files", new FileBackupHelper(this, BackupTestActivity.FILE_NAME));
Joe Onoratoaae628b2009-06-26 12:57:45 -040027 addHelper("more_data_files", new FileBackupHelper(this, "another_file.txt", "3.txt",
28 "empty.txt"));
Joe Onoratodc355a92009-06-26 14:45:25 -040029 addHelper("shared_prefs", new SharedPreferencesBackupHelper(this, "settings", "raw"));
Joe Onoratof9225f82009-05-05 18:34:31 -070030 }
31}
32