1 /* 2 * Copyright (C) 2017 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 17 package com.android.server.backup.params; 18 19 import android.app.backup.IBackupManagerMonitor; 20 import android.app.backup.IBackupObserver; 21 22 import com.android.server.backup.internal.OnTaskFinishedListener; 23 import com.android.server.backup.transport.TransportClient; 24 25 import java.util.ArrayList; 26 27 public class BackupParams { 28 29 public TransportClient transportClient; 30 public String dirName; 31 public ArrayList<String> kvPackages; 32 public ArrayList<String> fullPackages; 33 public IBackupObserver observer; 34 public IBackupManagerMonitor monitor; 35 public OnTaskFinishedListener listener; 36 public boolean userInitiated; 37 public boolean nonIncrementalBackup; 38 39 public BackupParams(TransportClient transportClient, String dirName, 40 ArrayList<String> kvPackages, ArrayList<String> fullPackages, IBackupObserver observer, 41 IBackupManagerMonitor monitor, OnTaskFinishedListener listener, boolean userInitiated, 42 boolean nonIncrementalBackup) { 43 this.transportClient = transportClient; 44 this.dirName = dirName; 45 this.kvPackages = kvPackages; 46 this.fullPackages = fullPackages; 47 this.observer = observer; 48 this.monitor = monitor; 49 this.listener = listener; 50 this.userInitiated = userInitiated; 51 this.nonIncrementalBackup = nonIncrementalBackup; 52 } 53 } 54