• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2018 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.settings.backup;
18 
19 import android.content.Intent;
20 
21 public class PrivacySettingsConfigData {
22 
23     private static PrivacySettingsConfigData sInstance;
24 
25     private boolean mBackupEnabled;
26     private boolean mBackupGray;
27     private Intent mConfigIntent;
28     private String mConfigSummary;
29     private Intent mManageIntent;
30     private CharSequence mManageLabel;
31 
PrivacySettingsConfigData()32     private PrivacySettingsConfigData() {
33         mBackupEnabled = false;
34         mBackupGray = false;
35         mConfigIntent = null;
36         mConfigSummary = null;
37         mManageIntent = null;
38         mManageLabel = null;
39     }
40 
getInstance()41     public static PrivacySettingsConfigData getInstance() {
42         if (sInstance == null) {
43             sInstance = new PrivacySettingsConfigData();
44         }
45         return sInstance;
46     }
47 
isBackupEnabled()48     public boolean isBackupEnabled() {
49         return mBackupEnabled;
50     }
51 
setBackupEnabled(final boolean backupEnabled)52     public void setBackupEnabled(final boolean backupEnabled) {
53         mBackupEnabled = backupEnabled;
54     }
55 
isBackupGray()56     public boolean isBackupGray() {
57         return mBackupGray;
58     }
59 
setBackupGray(final boolean backupGray)60     public void setBackupGray(final boolean backupGray) {
61         mBackupGray = backupGray;
62     }
63 
getConfigIntent()64     public Intent getConfigIntent() {
65         return mConfigIntent;
66     }
67 
setConfigIntent(final Intent configIntent)68     public void setConfigIntent(final Intent configIntent) {
69         mConfigIntent = configIntent;
70     }
71 
getConfigSummary()72     public String getConfigSummary() {
73         return mConfigSummary;
74     }
75 
setConfigSummary(final String configSummary)76     public void setConfigSummary(final String configSummary) {
77         mConfigSummary = configSummary;
78     }
79 
getManageIntent()80     public Intent getManageIntent() {
81         return mManageIntent;
82     }
83 
setManageIntent(final Intent manageIntent)84     public void setManageIntent(final Intent manageIntent) {
85         mManageIntent = manageIntent;
86     }
87 
getManageLabel()88     public CharSequence getManageLabel() {
89         return mManageLabel;
90     }
91 
setManageLabel(final CharSequence manageLabel)92     public void setManageLabel(final CharSequence manageLabel) {
93         mManageLabel = manageLabel;
94     }
95 }
96