1 /* Copyright 2020 Braden Farmer
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 package com.farmerbb.taskbar.util;
18 public class Constants {
20 private Constants() {}
24 public static final String ACTION_ACCESSIBILITY_ACTION = "com.farmerbb.taskbar.ACCESSIBILITY_ACTION";
25 public static final String ACTION_ADD_WIDGET_COMPLETED = "com.farmerbb.taskbar.ADD_WIDGET_COMPLETED";
26 public static final String ACTION_ADD_WIDGET_REQUESTED = "com.farmerbb.taskbar.ADD_WIDGET_REQUESTED";
27 public static final String ACTION_CONTEXT_MENU_APPEARING = "com.farmerbb.taskbar.CONTEXT_MENU_APPEARING";
28 public static final String ACTION_CONTEXT_MENU_DISAPPEARING = "com.farmerbb.taskbar.CONTEXT_MENU_DISAPPEARING";
29 public static final String ACTION_DASHBOARD_APPEARING = "com.farmerbb.taskbar.DASHBOARD_APPEARING";
30 public static final String ACTION_DASHBOARD_DISAPPEARING = "com.farmerbb.taskbar.DASHBOARD_DISAPPEARING";
31 public static final String ACTION_ENTER_ICON_ARRANGE_MODE = "com.farmerbb.taskbar.ENTER_ICON_ARRANGE_MODE";
32 public static final String ACTION_FINISH_DIM_SCREEN_ACTIVITY = "com.farmerbb.taskbar.FINISH_DIM_SCREEN_ACTIVITY";
33 public static final String ACTION_FINISH_FREEFORM_ACTIVITY = "com.farmerbb.taskbar.FINISH_FREEFORM_ACTIVITY";
34 public static final String ACTION_FORCE_TASKBAR_RESTART = "com.farmerbb.taskbar.FORCE_TASKBAR_RESTART";
35 public static final String ACTION_FREEFORM_PREF_CHANGED = "com.farmerbb.taskbar.FREEFORM_PREF_CHANGED";
36 public static final String ACTION_HIDE_CONTEXT_MENU = "com.farmerbb.taskbar.HIDE_CONTEXT_MENU";
37 public static final String ACTION_HIDE_DASHBOARD = "com.farmerbb.taskbar.HIDE_DASHBOARD";
38 public static final String ACTION_HIDE_START_MENU = "com.farmerbb.taskbar.HIDE_START_MENU";
39 public static final String ACTION_HIDE_START_MENU_NO_RESET = "com.farmerbb.taskbar.HIDE_START_MENU_NO_RESET";
40 public static final String ACTION_HIDE_START_MENU_SPACE = "com.farmerbb.taskbar.HIDE_START_MENU_SPACE";
41 public static final String ACTION_HIDE_TASKBAR = "com.farmerbb.taskbar.HIDE_TASKBAR";
42 public static final String ACTION_IMPORT_FINISHED = "com.farmerbb.taskbar.IMPORT_FINISHED";
43 public static final String ACTION_KILL_HOME_ACTIVITY = "com.farmerbb.taskbar.KILL_HOME_ACTIVITY";
44 public static final String ACTION_LAUNCHER_PREF_CHANGED = "com.farmerbb.taskbar.LAUNCHER_PREF_CHANGED";
45 public static final String ACTION_NOTIFICATION_COUNT_CHANGED = "com.farmerbb.taskbar.NOTIFICATION_COUNT_CHANGED";
46 public static final String ACTION_QUIT = "com.farmerbb.taskbar.QUIT";
47 public static final String ACTION_RECEIVE_SETTINGS = "com.farmerbb.taskbar.RECEIVE_SETTINGS";
48 public static final String ACTION_REFRESH_DESKTOP_ICONS = "com.farmerbb.taskbar.REFRESH_DESKTOP_ICONS";
49 public static final String ACTION_REMOVE_DESKTOP_WALLPAPER = "com.farmerbb.taskbar.REMOVE_DESKTOP_WALLPAPER";
50 public static final String ACTION_REMOVE_WIDGET_COMPLETED = "com.farmerbb.taskbar.REMOVE_WIDGET_COMPLETED";
51 public static final String ACTION_REMOVE_WIDGET_REQUESTED = "com.farmerbb.taskbar.REMOVE_WIDGET_REQUESTED";
52 public static final String ACTION_REQUEST_NOTIFICATION_COUNT = "com.farmerbb.taskbar.REQUEST_NOTIFICATION_COUNT";
53 public static final String ACTION_RESET_START_MENU = "com.farmerbb.taskbar.RESET_START_MENU";
54 public static final String ACTION_RESTART = "com.farmerbb.taskbar.RESTART";
55 public static final String ACTION_SEND_SETTINGS = "com.farmerbb.taskbar.SEND_SETTINGS";
56 public static final String ACTION_SHOW_HIDE_TASKBAR = "com.farmerbb.taskbar.SHOW_HIDE_TASKBAR";
57 public static final String ACTION_SHOW_START_MENU_SPACE = "com.farmerbb.taskbar.SHOW_START_MENU_SPACE";
58 public static final String ACTION_SHOW_TASKBAR = "com.farmerbb.taskbar.SHOW_TASKBAR";
59 public static final String ACTION_SORT_DESKTOP_ICONS = "com.farmerbb.taskbar.SORT_DESKTOP_ICONS";
60 public static final String ACTION_START = "com.farmerbb.taskbar.START";
61 public static final String ACTION_START_MENU_APPEARING = "com.farmerbb.taskbar.START_MENU_APPEARING";
62 public static final String ACTION_START_MENU_DISAPPEARING = "com.farmerbb.taskbar.START_MENU_DISAPPEARING";
63 public static final String ACTION_TEMP_HIDE_TASKBAR = "com.farmerbb.taskbar.TEMP_HIDE_TASKBAR";
64 public static final String ACTION_TEMP_SHOW_TASKBAR = "com.farmerbb.taskbar.TEMP_SHOW_TASKBAR";
65 public static final String ACTION_TOGGLE_DASHBOARD = "com.farmerbb.taskbar.TOGGLE_DASHBOARD";
66 public static final String ACTION_TOGGLE_FREEFORM_MODE = "com.farmerbb.taskbar.TOGGLE_FREEFORM_MODE";
67 public static final String ACTION_TOGGLE_START_MENU = "com.farmerbb.taskbar.TOGGLE_START_MENU";
68 public static final String ACTION_TOUCH_ABSORBER_STATE_CHANGED = "com.farmerbb.taskbar.TOUCH_ABSORBER_STATE_CHANGED";
69 public static final String ACTION_UNDIM_SCREEN = "com.farmerbb.taskbar.ACTION_UNDIM_SCREEN";
70 public static final String ACTION_UPDATE_FREEFORM_CHECKBOX = "com.farmerbb.taskbar.UPDATE_FREEFORM_CHECKBOX";
71 public static final String ACTION_UPDATE_HOME_SCREEN_MARGINS = "com.farmerbb.taskbar.UPDATE_HOME_SCREEN_MARGINS";
72 public static final String ACTION_UPDATE_SWITCH = "com.farmerbb.taskbar.UPDATE_SWITCH";
73 public static final String ACTION_WALLPAPER_CHANGE_REQUESTED = "com.farmerbb.taskbar.WALLPAPER_CHANGE_REQUESTED";
75 // SharedPreference keys
77 public static final String PREF_ABOUT = "about";
78 public static final String PREF_ACCENT_COLOR = "accent_color";
79 public static final String PREF_ACCENT_COLOR_PREF = "accent_color_pref";
80 public static final String PREF_ADD_ICON_TO_DESKTOP = "add_icon_to_desktop";
81 public static final String PREF_ADD_SHORTCUT = "add_shortcut";
82 public static final String PREF_ADDITIONAL_SETTINGS = "additional_settings";
83 public static final String PREF_ALT_BUTTON_CONFIG = "alt_button_config";
84 public static final String PREF_ANCHOR = "anchor";
85 public static final String PREF_ANDROID_X86_PREFS = "android_x86_prefs";
86 public static final String PREF_APP_DRAWER_ICON = "app_drawer_icon";
87 public static final String PREF_APP_INFO = "app_info";
88 public static final String PREF_APP_SHORTCUTS = "app_shortcuts";
89 public static final String PREF_ARRANGE_ICONS = "arrange_icons";
90 public static final String PREF_AUTO_HIDE_NAVBAR = "auto_hide_navbar";
91 public static final String PREF_AUTO_HIDE_NAVBAR_CATEGORY = "auto_hide_navbar_category";
92 public static final String PREF_AUTO_HIDE_NAVBAR_DESKTOP_MODE = "auto_hide_navbar_desktop_mode";
93 public static final String PREF_BACKGROUND_TINT = "background_tint";
94 public static final String PREF_BACKGROUND_TINT_PREF = "background_tint_pref";
95 public static final String PREF_BACKUP_SETTINGS = "backup_settings";
96 public static final String PREF_BLACKLIST = "blacklist";
97 public static final String PREF_BLISS_OS_PREFS = "bliss_os_prefs";
98 public static final String PREF_BLOCK_APP = "block_app";
99 public static final String PREF_BUTTON_BACK = "button_back";
100 public static final String PREF_BUTTON_HOME = "button_home";
101 public static final String PREF_BUTTON_RECENTS = "button_recents";
102 public static final String PREF_CENTERED_ICONS = "centered_icons";
103 public static final String PREF_CHANGE_WALLPAPER = "change_wallpaper";
104 public static final String PREF_CHANGE_WALLPAPER_DESKTOP = "change_wallpaper_desktop";
105 public static final String PREF_CHANGE_WALLPAPER_GLOBAL = "change_wallpaper_global";
106 public static final String PREF_CHROME_OS_CONTEXT_MENU_FIX = "chrome_os_context_menu_fix";
107 public static final String PREF_CLEAR_PINNED_APPS = "clear_pinned_apps";
108 public static final String PREF_COLLAPSED = "collapsed";
109 public static final String PREF_DASHBOARD = "dashboard";
110 public static final String PREF_DASHBOARD_GRID_SIZE = "dashboard_grid_size";
111 public static final String PREF_DASHBOARD_HEIGHT = "dashboard_height";
112 public static final String PREF_DASHBOARD_TUTORIAL_SHOWN = "dashboard_tutorial_shown";
113 public static final String PREF_DASHBOARD_WIDTH = "dashboard_width";
114 public static final String PREF_DESKTOP_ICONS = "desktop_icons";
115 public static final String PREF_DESKTOP_MODE = "desktop_mode";
116 public static final String PREF_DIM_SCREEN = "dim_screen";
117 public static final String PREF_DISABLE_ANIMATIONS = "disable_animations";
118 public static final String PREF_DISABLE_SCROLLING_LIST = "disable_scrolling_list";
119 public static final String PREF_DISPLAY_DENSITY = "display_density";
120 public static final String PREF_DONATE = "donate";
121 public static final String PREF_DONT_SHOW_DOUBLE_TAP_DIALOG = "dont_show_double_tap_dialog";
122 public static final String PREF_DONT_SHOW_UNINSTALL_DIALOG = "dont_show_uninstall_dialog";
123 public static final String PREF_DONT_STOP_DASHBOARD = "dont_stop_dashboard";
124 public static final String PREF_DOUBLE_TAP_DIALOG_SHOWN = "double_tap_dialog_shown";
125 public static final String PREF_DOUBLE_TAP_TO_SLEEP = "double_tap_to_sleep";
126 public static final String PREF_ENABLE_ADDITIONAL_SETTINGS = "enable_additional_settings";
127 public static final String PREF_ENABLE_RECENTS = "enable_recents";
128 public static final String PREF_FILE_MANAGER = "file_manager";
129 public static final String PREF_FIRST_RUN = "first_run";
130 public static final String PREF_FORCE_NEW_WINDOW = "force_new_window";
131 public static final String PREF_FREEFORM_HACK = "freeform_hack";
132 public static final String PREF_FREEFORM_HACK_OVERRIDE = "freeform_hack_override";
133 public static final String PREF_FULL_LENGTH = "full_length";
134 public static final String PREF_GRIP_REJECTION_TOAST_SHOWN = "grip_rejection_toast_shown";
135 public static final String PREF_HAS_CAPTION = "has_caption";
136 public static final String PREF_HEADER = "header";
137 public static final String PREF_HIDE_DONATE = "hide_donate";
138 public static final String PREF_HIDE_FOREGROUND = "hide_foreground";
139 public static final String PREF_HIDE_ICON_LABELS = "hide_icon_labels";
140 public static final String PREF_HIDE_TASKBAR = "hide_taskbar";
141 public static final String PREF_HIDE_WHEN_KEYBOARD_SHOWN = "hide_when_keyboard_shown";
142 public static final String PREF_HSL_ID = "hsl_id";
143 public static final String PREF_HSL_NAME = "hsl_name";
144 public static final String PREF_ICON_PACK = "icon_pack";
145 public static final String PREF_ICON_PACK_LIST = "icon_pack_list";
146 public static final String PREF_ICON_PACK_USE_MASK = "icon_pack_use_mask";
147 public static final String PREF_INVISIBLE_BUTTON = "invisible_button";
148 public static final String PREF_IS_HIDDEN = "is_hidden";
149 public static final String PREF_IS_RESTARTING = "is_restarting";
150 public static final String PREF_KEYBOARD_SHORTCUT = "keyboard_shortcut";
151 public static final String PREF_LAUNCH_GAMES_FULLSCREEN = "launch_games_fullscreen";
152 public static final String PREF_LAUNCHER = "launcher";
153 public static final String PREF_LOCK_DEVICE = "lock_device";
154 public static final String PREF_MANAGE_APP_DATA = "manage_app_data";
155 public static final String PREF_MAX_NUM_OF_RECENTS = "max_num_of_recents";
156 public static final String PREF_NAVIGATION_BAR_BUTTONS = "navigation_bar_buttons";
157 public static final String PREF_NOTIFICATION_COUNT = "notification_count";
158 public static final String PREF_NOTIFICATION_SETTINGS = "notification_settings";
159 public static final String PREF_OPEN_TASKBAR_SETTINGS = "open_taskbar_settings";
160 public static final String PREF_PIN_APP = "pin_app";
161 public static final String PREF_POSITION = "position";
162 public static final String PREF_POWER_BUTTON_WARNING = "power_button_warning";
163 public static final String PREF_POWER_MENU = "power_menu";
164 public static final String PREF_PREF_SCREEN_ADVANCED = "pref_screen_advanced";
165 public static final String PREF_PREF_SCREEN_APPEARANCE = "pref_screen_appearance";
166 public static final String PREF_PREF_SCREEN_DESKTOP_MODE = "pref_screen_desktop_mode";
167 public static final String PREF_PREF_SCREEN_FREEFORM = "pref_screen_freeform";
168 public static final String PREF_PREF_SCREEN_GENERAL = "pref_screen_general";
169 public static final String PREF_PREF_SCREEN_RECENT_APPS = "pref_screen_recent_apps";
170 public static final String PREF_PRIMARY_LAUNCHER = "primary_launcher";
171 public static final String PREF_QUIT_TASKBAR = "quit_taskbar";
172 public static final String PREF_RECENTS_AMOUNT = "recents_amount";
173 public static final String PREF_REFRESH_FREQUENCY = "refresh_frequency";
174 public static final String PREF_REMOVE_DESKTOP_ICON = "remove_desktop_icon";
175 public static final String PREF_REMOVE_DESKTOP_WALLPAPER = "remove_desktop_wallpaper";
176 public static final String PREF_RESET_COLORS = "reset_colors";
177 public static final String PREF_RESTORE_SETTINGS = "restore_settings";
178 public static final String PREF_SAMSUNG_DIALOG_SHOWN = "samsung_dialog_shown";
179 public static final String PREF_SAVE_WINDOW_SIZES = "save_window_sizes";
180 public static final String PREF_SCROLLBAR = "scrollbar";
181 public static final String PREF_SECONDSCREEN = "secondscreen";
182 public static final String PREF_SET_LAUNCHER_DEFAULT = "set_launcher_default";
183 public static final String PREF_SHORTCUT_1 = "shortcut_1";
184 public static final String PREF_SHORTCUT_2 = "shortcut_2";
185 public static final String PREF_SHORTCUT_3 = "shortcut_3";
186 public static final String PREF_SHORTCUT_4 = "shortcut_4";
187 public static final String PREF_SHORTCUT_5 = "shortcut_5";
188 public static final String PREF_SHORTCUT_ICON = "shortcut_icon";
189 public static final String PREF_SHOW_BACKGROUND = "show_background";
190 public static final String PREF_SHOW_FREEFORM_DISABLED_MESSAGE = "show_freeform_disabled_message";
191 public static final String PREF_SHOW_SEARCH_BAR = "show_search_bar";
192 public static final String PREF_SHOW_WINDOW_SIZES = "show_window_sizes";
193 public static final String PREF_SKIP_AUTO_HIDE_NAVBAR = "skip_auto_hide_navbar";
194 public static final String PREF_SKIP_DISABLE_FREEFORM_RECEIVER = "skip_disable_freeform_receiver";
195 public static final String PREF_SKIP_DISABLE_HOME_RECEIVER = "skip_disable_home_receiver";
196 public static final String PREF_SKIP_QUIT_RECEIVER = "skip_quit_receiver";
197 public static final String PREF_SORT_BY_NAME = "sort_by_name";
198 public static final String PREF_SORT_ORDER = "sort_order";
199 public static final String PREF_START_BUTTON_IMAGE = "start_button_image";
200 public static final String PREF_START_MENU_APPS = "start_menu_apps";
201 public static final String PREF_START_MENU_LAYOUT = "start_menu_layout";
202 public static final String PREF_START_ON_BOOT = "start_on_boot";
203 public static final String PREF_SYS_TRAY = "sys_tray";
204 public static final String PREF_SYSTEM_SETTINGS = "system_settings";
205 public static final String PREF_TASKBAR_ACTIVE = "taskbar_active";
206 public static final String PREF_TASKER_ENABLED = "tasker_enabled";
207 public static final String PREF_THEME = "theme";
208 public static final String PREF_TIME_OF_SERVICE_START = "time_of_service_start";
209 public static final String PREF_TRANSPARENT_START_MENU = "transparent_start_menu";
210 public static final String PREF_UNINSTALL = "uninstall";
211 public static final String PREF_UNINSTALL_DIALOG_SHOWN = "uninstall_dialog_shown";
212 public static final String PREF_VISUAL_FEEDBACK = "visual_feedback";
213 public static final String PREF_VOLUME = "volume";
214 public static final String PREF_WINDOW_SIZE = "window_size";
215 public static final String PREF_WINDOW_SIZE_FULLSCREEN = "window_size_fullscreen";
216 public static final String PREF_WINDOW_SIZE_HALF_LEFT = "window_size_half_left";
217 public static final String PREF_WINDOW_SIZE_HALF_RIGHT = "window_size_half_right";
218 public static final String PREF_WINDOW_SIZE_LARGE = "window_size_large";
219 public static final String PREF_WINDOW_SIZE_PHONE_SIZE = "window_size_phone_size";
220 public static final String PREF_WINDOW_SIZE_STANDARD = "window_size_standard";
221 public static final String PREF_DASHBOARD_WIDGET_PREFIX = "dashboard_widget_";
222 public static final String PREF_DASHBOARD_WIDGET_PROVIDER_SUFFIX = "_provider";
223 public static final String PREF_DASHBOARD_WIDGET_PLACEHOLDER_SUFFIX = "_placeholder";
225 // SharedPreference values
227 public static final String PREF_RECENTS_AMOUNT_APP_START = "app_start";
228 public static final String PREF_RECENTS_AMOUNT_PAST_DAY = "past_day";
229 public static final String PREF_RECENTS_AMOUNT_RUNNING_APPS_ONLY = "running_apps_only";
230 public static final String PREF_RECENTS_AMOUNT_SHOW_ALL = "show_all";
232 // TaskbarPosition values
234 public static final String POSITION_BOTTOM_LEFT = "bottom_left";
235 public static final String POSITION_BOTTOM_RIGHT = "bottom_right";
236 public static final String POSITION_BOTTOM_VERTICAL_LEFT = "bottom_vertical_left";
237 public static final String POSITION_BOTTOM_VERTICAL_RIGHT = "bottom_vertical_right";
238 public static final String POSITION_TOP_LEFT = "top_left";
239 public static final String POSITION_TOP_RIGHT = "top_right";
240 public static final String POSITION_TOP_VERTICAL_LEFT = "top_vertical_left";
241 public static final String POSITION_TOP_VERTICAL_RIGHT = "top_vertical_right";
245 public static final String EXTRA_IS_LAUNCHING_SHORTCUT = "is_launching_shortcut";
246 public static final String EXTRA_APPWIDGET_ID = "appWidgetId";
247 public static final String EXTRA_CELL_ID = "cellId";
248 public static final String EXTRA_CONTEXT_MENU_FIX = "context_menu_fix";