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.os.ParcelFileDescriptor;
20 
21 import com.android.server.backup.utils.BackupEligibilityRules;
22 
23 public class AdbBackupParams extends AdbParams {
24 
25     public boolean includeApks;
26     public boolean includeObbs;
27     public boolean includeShared;
28     public boolean doWidgets;
29     public boolean allApps;
30     public boolean includeSystem;
31     public boolean doCompress;
32     public boolean includeKeyValue;
33     public String[] packages;
34     public BackupEligibilityRules backupEligibilityRules;
35 
AdbBackupParams(ParcelFileDescriptor output, boolean saveApks, boolean saveObbs, boolean saveShared, boolean alsoWidgets, boolean doAllApps, boolean doSystem, boolean compress, boolean doKeyValue, String[] pkgList, BackupEligibilityRules eligibilityRules)36     public AdbBackupParams(ParcelFileDescriptor output, boolean saveApks, boolean saveObbs,
37             boolean saveShared, boolean alsoWidgets, boolean doAllApps, boolean doSystem,
38             boolean compress, boolean doKeyValue, String[] pkgList,
39             BackupEligibilityRules eligibilityRules) {
40         fd = output;
41         includeApks = saveApks;
42         includeObbs = saveObbs;
43         includeShared = saveShared;
44         doWidgets = alsoWidgets;
45         allApps = doAllApps;
46         includeSystem = doSystem;
47         doCompress = compress;
48         includeKeyValue = doKeyValue;
49         packages = pkgList;
50         backupEligibilityRules = eligibilityRules;
51     }
52 }
53