2 * Copyright (C) 2008 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.settings;
19 import static com.android.settings.core.FeatureFlags.CONNECTED_DEVICE_V2;
21 import android.os.Bundle;
22 import android.util.FeatureFlagUtils;
24 import com.android.settings.enterprise.EnterprisePrivacySettings;
27 * Top-level Settings activity
29 public class Settings extends SettingsActivity {
32 * Settings subclasses for launching independently.
34 public static class AssistGestureSettingsActivity extends SettingsActivity { /* empty */}
35 public static class BluetoothSettingsActivity extends SettingsActivity { /* empty */ }
36 public static class SimSettingsActivity extends SettingsActivity { /* empty */ }
37 public static class TetherSettingsActivity extends SettingsActivity { /* empty */ }
38 public static class VpnSettingsActivity extends SettingsActivity { /* empty */ }
39 public static class DateTimeSettingsActivity extends SettingsActivity { /* empty */ }
40 public static class PrivateVolumeForgetActivity extends SettingsActivity { /* empty */ }
41 public static class PrivateVolumeSettingsActivity extends SettingsActivity { /* empty */ }
42 public static class PublicVolumeSettingsActivity extends SettingsActivity { /* empty */ }
43 public static class WifiSettingsActivity extends SettingsActivity { /* empty */ }
44 public static class WifiP2pSettingsActivity extends SettingsActivity { /* empty */ }
45 public static class AvailableVirtualKeyboardActivity extends SettingsActivity { /* empty */ }
46 public static class KeyboardLayoutPickerActivity extends SettingsActivity { /* empty */ }
47 public static class PhysicalKeyboardActivity extends SettingsActivity { /* empty */ }
48 public static class InputMethodAndSubtypeEnablerActivity extends SettingsActivity { /* empty */ }
49 public static class SpellCheckersSettingsActivity extends SettingsActivity { /* empty */ }
50 public static class LocalePickerActivity extends SettingsActivity { /* empty */ }
51 public static class LanguageAndInputSettingsActivity extends SettingsActivity { /* empty */ }
52 public static class UserDictionarySettingsActivity extends SettingsActivity { /* empty */ }
53 public static class DisplaySettingsActivity extends SettingsActivity { /* empty */ }
54 public static class NightDisplaySettingsActivity extends SettingsActivity { /* empty */ }
55 public static class NightDisplaySuggestionActivity extends NightDisplaySettingsActivity { /* empty */ }
56 public static class DeviceInfoSettingsActivity extends SettingsActivity { /* empty */ }
57 public static class MyDeviceInfoActivity extends SettingsActivity { /* empty */ }
58 public static class ApplicationSettingsActivity extends SettingsActivity { /* empty */ }
59 public static class ManageApplicationsActivity extends SettingsActivity { /* empty */ }
60 public static class ManageAssistActivity extends SettingsActivity { /* empty */ }
61 public static class HighPowerApplicationsActivity extends SettingsActivity { /* empty */ }
62 public static class BackgroundCheckSummaryActivity extends SettingsActivity { /* empty */ }
63 public static class StorageUseActivity extends SettingsActivity { /* empty */ }
64 public static class DevelopmentSettingsDashboardActivity extends SettingsActivity { /* empty */ }
65 public static class AccessibilitySettingsActivity extends SettingsActivity { /* empty */ }
66 public static class CaptioningSettingsActivity extends SettingsActivity { /* empty */ }
67 public static class AccessibilityInversionSettingsActivity extends SettingsActivity { /* empty */ }
68 public static class AccessibilityContrastSettingsActivity extends SettingsActivity { /* empty */ }
69 public static class AccessibilityDaltonizerSettingsActivity extends SettingsActivity { /* empty */ }
70 public static class SecurityDashboardActivity extends SettingsActivity { /* empty */ }
71 public static class UsageAccessSettingsActivity extends SettingsActivity { /* empty */ }
72 public static class LocationSettingsActivity extends SettingsActivity { /* empty */ }
73 public static class PrivacySettingsActivity extends SettingsActivity { /* empty */ }
74 public static class FactoryResetActivity extends SettingsActivity { /* empty */ }
75 public static class RunningServicesActivity extends SettingsActivity { /* empty */ }
76 public static class BatterySaverSettingsActivity extends SettingsActivity { /* empty */ }
77 public static class AccountSyncSettingsActivity extends SettingsActivity { /* empty */ }
78 public static class AccountSyncSettingsInAddAccountActivity extends SettingsActivity { /* empty */ }
79 public static class CryptKeeperSettingsActivity extends SettingsActivity { /* empty */ }
80 public static class DeviceAdminSettingsActivity extends SettingsActivity { /* empty */ }
81 public static class DataPlanUsageSummaryActivity extends SettingsActivity { /* empty */ }
82 public static class DataUsageSummaryActivity extends SettingsActivity { /* empty */ }
83 public static class MobileDataUsageListActivity extends SettingsActivity { /* empty */ }
84 public static class ConfigureWifiSettingsActivity extends SettingsActivity { /* empty */ }
85 public static class SavedAccessPointsSettingsActivity extends SettingsActivity { /* empty */ }
86 public static class TextToSpeechSettingsActivity extends SettingsActivity { /* empty */ }
87 public static class AndroidBeamSettingsActivity extends SettingsActivity { /* empty */ }
88 public static class WifiDisplaySettingsActivity extends SettingsActivity { /* empty */ }
89 public static class DreamSettingsActivity extends SettingsActivity { /* empty */ }
90 public static class NotificationStationActivity extends SettingsActivity { /* empty */ }
91 public static class UserSettingsActivity extends SettingsActivity { /* empty */ }
92 public static class NotificationAccessSettingsActivity extends SettingsActivity { /* empty */ }
93 public static class VrListenersSettingsActivity extends SettingsActivity { /* empty */ }
94 public static class PictureInPictureSettingsActivity extends SettingsActivity { /* empty */ }
95 public static class AppPictureInPictureSettingsActivity extends SettingsActivity { /* empty */ }
96 public static class ZenAccessSettingsActivity extends SettingsActivity { /* empty */ }
97 public static class ConditionProviderSettingsActivity extends SettingsActivity { /* empty */ }
98 public static class UsbSettingsActivity extends SettingsActivity { /* empty */ }
99 public static class TrustedCredentialsSettingsActivity extends SettingsActivity { /* empty */ }
100 public static class PaymentSettingsActivity extends SettingsActivity { /* empty */ }
101 public static class PrintSettingsActivity extends SettingsActivity { /* empty */ }
102 public static class PrintJobSettingsActivity extends SettingsActivity { /* empty */ }
103 public static class ZenModeSettingsActivity extends SettingsActivity { /* empty */ }
104 public static class ZenModeBehaviorSettingsActivity extends SettingsActivity { /* empty */ }
105 public static class ZenModeAutomationSettingsActivity extends SettingsActivity { /* empty */ }
106 public static class ZenModeScheduleRuleSettingsActivity extends SettingsActivity { /* empty */ }
107 public static class ZenModeEventRuleSettingsActivity extends SettingsActivity { /* empty */ }
108 public static class ZenModeExternalRuleSettingsActivity extends SettingsActivity { /* empty */ }
109 public static class SoundSettingsActivity extends SettingsActivity { /* empty */ }
110 public static class ConfigureNotificationSettingsActivity extends SettingsActivity { /* empty */ }
111 public static class AppNotificationSettingsActivity extends SettingsActivity { /* empty */ }
112 public static class ChannelNotificationSettingsActivity extends SettingsActivity { /* empty */ }
113 public static class ChannelGroupNotificationSettingsActivity extends SettingsActivity { /* empty */ }
114 public static class ManageDomainUrlsActivity extends SettingsActivity { /* empty */ }
115 public static class AutomaticStorageManagerSettingsActivity extends SettingsActivity { /* empty */ }
116 public static class GamesStorageActivity extends SettingsActivity { /* empty */ }
117 public static class MoviesStorageActivity extends SettingsActivity { /* empty */ }
118 public static class PhotosStorageActivity extends SettingsActivity {
121 public static class DirectoryAccessSettingsActivity extends SettingsActivity { /* empty */ }
123 public static class TopLevelSettings extends SettingsActivity { /* empty */ }
124 public static class ApnSettingsActivity extends SettingsActivity { /* empty */ }
125 public static class WifiCallingSettingsActivity extends SettingsActivity { /* empty */ }
126 public static class MemorySettingsActivity extends SettingsActivity { /* empty */ }
127 public static class AppMemoryUsageActivity extends SettingsActivity { /* empty */ }
128 public static class OverlaySettingsActivity extends SettingsActivity { /* empty */ }
129 public static class WriteSettingsActivity extends SettingsActivity { /* empty */ }
130 public static class AppDrawOverlaySettingsActivity extends SettingsActivity { /* empty */ }
131 public static class AppWriteSettingsActivity extends SettingsActivity { /* empty */ }
132 public static class AdvancedAppsActivity extends SettingsActivity { /* empty */ }
134 public static class ManageExternalSourcesActivity extends SettingsActivity {/* empty */ }
135 public static class ManageAppExternalSourcesActivity extends SettingsActivity { /* empty */ }
136 public static class WallpaperSettingsActivity extends SettingsActivity { /* empty */ }
137 public static class ManagedProfileSettingsActivity extends SettingsActivity { /* empty */ }
138 public static class DeletionHelperActivity extends SettingsActivity { /* empty */ }
140 public static class ApnEditorActivity extends SettingsActivity { /* empty */ }
141 public static class ChooseAccountActivity extends SettingsActivity { /* empty */ }
142 public static class IccLockSettingsActivity extends SettingsActivity { /* empty */ }
143 public static class TestingSettingsActivity extends SettingsActivity { /* empty */ }
144 public static class WifiAPITestActivity extends SettingsActivity { /* empty */ }
145 public static class WifiInfoActivity extends SettingsActivity { /* empty */ }
146 public static class EnterprisePrivacySettingsActivity extends SettingsActivity {
148 public void onCreate(Bundle savedInstanceState) {
149 super.onCreate(savedInstanceState);
150 if (!EnterprisePrivacySettings.isPageEnabled(this)) {
155 public static class WebViewAppPickerActivity extends SettingsActivity { /* empty */ }
157 // Top level categories for new IA
158 public static class NetworkDashboardActivity extends SettingsActivity {}
159 public static class ConnectedDeviceDashboardActivity extends SettingsActivity {
160 public static final boolean isEnabled() {
161 return FeatureFlagUtils.isEnabled(null /* context */, CONNECTED_DEVICE_V2);
164 public static class ConnectedDeviceDashboardActivityOld extends SettingsActivity {}
165 public static class PowerUsageSummaryActivity extends SettingsActivity { /* empty */ }
166 public static class PowerUsageSummaryLegacyActivity extends SettingsActivity { /* empty */ }
167 public static class AppAndNotificationDashboardActivity extends SettingsActivity {}
168 public static class StorageDashboardActivity extends SettingsActivity {}
169 public static class AccountDashboardActivity extends SettingsActivity {}
170 public static class SystemDashboardActivity extends SettingsActivity {}
171 public static class AdvancedConnectedDeviceActivity extends SettingsActivity {
172 public static final boolean isEnabled() {
173 return FeatureFlagUtils.isEnabled(null /* context */, CONNECTED_DEVICE_V2);