Fan Zhang | 22a56d7 | 2016-09-27 17:52:00 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2016 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 | package com.android.settingslib.drawer; |
| 17 | |
Fan Zhang | 31f4c54 | 2016-11-01 15:02:46 -0700 | [diff] [blame] | 18 | import java.util.HashMap; |
| 19 | import java.util.Map; |
| 20 | |
Fan Zhang | 22a56d7 | 2016-09-27 17:52:00 -0700 | [diff] [blame] | 21 | public final class CategoryKey { |
| 22 | |
| 23 | // Activities in this category shows up in Settings homepage. |
Fan Zhang | b12e197 | 2016-09-29 14:43:43 -0700 | [diff] [blame] | 24 | public static final String CATEGORY_HOMEPAGE = "com.android.settings.category.ia.homepage"; |
Fan Zhang | 22a56d7 | 2016-09-27 17:52:00 -0700 | [diff] [blame] | 25 | |
Fan Zhang | b12e197 | 2016-09-29 14:43:43 -0700 | [diff] [blame] | 26 | // Top level category. |
| 27 | public static final String CATEGORY_NETWORK = "com.android.settings.category.ia.wireless"; |
| 28 | public static final String CATEGORY_DEVICE = "com.android.settings.category.ia.device"; |
| 29 | public static final String CATEGORY_APPS = "com.android.settings.category.ia.apps"; |
Fan Zhang | e6bcfb0 | 2016-10-21 16:35:39 -0700 | [diff] [blame] | 30 | public static final String CATEGORY_APPS_DEFAULT = |
| 31 | "com.android.settings.category.ia.apps.default"; |
Fan Zhang | b12e197 | 2016-09-29 14:43:43 -0700 | [diff] [blame] | 32 | public static final String CATEGORY_BATTERY = "com.android.settings.category.ia.battery"; |
| 33 | public static final String CATEGORY_DISPLAY = "com.android.settings.category.ia.display"; |
| 34 | public static final String CATEGORY_SOUND = "com.android.settings.category.ia.sound"; |
| 35 | public static final String CATEGORY_STORAGE = "com.android.settings.category.ia.storage"; |
| 36 | public static final String CATEGORY_SECURITY = "com.android.settings.category.ia.security"; |
| 37 | public static final String CATEGORY_ACCOUNT = "com.android.settings.category.ia.accounts"; |
| 38 | public static final String CATEGORY_SYSTEM = "com.android.settings.category.ia.system"; |
Fan Zhang | 9c9e364a | 2016-11-04 12:53:46 -0700 | [diff] [blame] | 39 | public static final String CATEGORY_SYSTEM_LANGUAGE = |
| 40 | "com.android.settings.category.ia.language"; |
Fan Zhang | e9bb36c | 2016-11-16 15:26:06 -0800 | [diff] [blame] | 41 | public static final String CATEGORY_SYSTEM_DEVELOPMENT = |
| 42 | "com.android.settings.category.ia.development"; |
Julia Reynolds | 8d70a6e | 2017-04-17 17:24:07 -0400 | [diff] [blame^] | 43 | public static final String CATEGORY_NOTIFICATIONS = |
| 44 | "com.android.settings.category.ia.notifications"; |
Fan Zhang | 31f4c54 | 2016-11-01 15:02:46 -0700 | [diff] [blame] | 45 | |
| 46 | public static final Map<String, String> KEY_COMPAT_MAP; |
| 47 | |
| 48 | static { |
| 49 | KEY_COMPAT_MAP = new HashMap<>(); |
| 50 | KEY_COMPAT_MAP.put("com.android.settings.category.wireless", CATEGORY_NETWORK); |
| 51 | KEY_COMPAT_MAP.put("com.android.settings.category.device", CATEGORY_SYSTEM); |
| 52 | KEY_COMPAT_MAP.put("com.android.settings.category.personal", CATEGORY_SYSTEM); |
| 53 | KEY_COMPAT_MAP.put("com.android.settings.category.system", CATEGORY_SYSTEM); |
| 54 | } |
Fan Zhang | 22a56d7 | 2016-09-27 17:52:00 -0700 | [diff] [blame] | 55 | } |