blob: e067de1a5e7a5ee4964b3867109e3e29e8e2a0fc [file] [log] [blame]
Fan Zhang22a56d72016-09-27 17:52:00 -07001/**
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 */
16package com.android.settingslib.drawer;
17
Fan Zhang31f4c542016-11-01 15:02:46 -070018import java.util.HashMap;
19import java.util.Map;
20
Fan Zhang22a56d72016-09-27 17:52:00 -070021public final class CategoryKey {
22
23 // Activities in this category shows up in Settings homepage.
Fan Zhangb12e1972016-09-29 14:43:43 -070024 public static final String CATEGORY_HOMEPAGE = "com.android.settings.category.ia.homepage";
Fan Zhang22a56d72016-09-27 17:52:00 -070025
Fan Zhangb12e1972016-09-29 14:43:43 -070026 // 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 Zhange6bcfb02016-10-21 16:35:39 -070030 public static final String CATEGORY_APPS_DEFAULT =
31 "com.android.settings.category.ia.apps.default";
Fan Zhangb12e1972016-09-29 14:43:43 -070032 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";
Katsiaryna Naliukaa37ff5e2017-06-12 17:35:01 +020037 public static final String CATEGORY_SECURITY_LOCKSCREEN =
38 "com.android.settings.category.ia.lockscreen";
Fan Zhangb12e1972016-09-29 14:43:43 -070039 public static final String CATEGORY_ACCOUNT = "com.android.settings.category.ia.accounts";
40 public static final String CATEGORY_SYSTEM = "com.android.settings.category.ia.system";
Fan Zhang9c9e364a2016-11-04 12:53:46 -070041 public static final String CATEGORY_SYSTEM_LANGUAGE =
42 "com.android.settings.category.ia.language";
Fan Zhange9bb36c2016-11-16 15:26:06 -080043 public static final String CATEGORY_SYSTEM_DEVELOPMENT =
44 "com.android.settings.category.ia.development";
Julia Reynolds8d70a6e2017-04-17 17:24:07 -040045 public static final String CATEGORY_NOTIFICATIONS =
46 "com.android.settings.category.ia.notifications";
Fan Zhang31f4c542016-11-01 15:02:46 -070047
48 public static final Map<String, String> KEY_COMPAT_MAP;
49
50 static {
51 KEY_COMPAT_MAP = new HashMap<>();
52 KEY_COMPAT_MAP.put("com.android.settings.category.wireless", CATEGORY_NETWORK);
53 KEY_COMPAT_MAP.put("com.android.settings.category.device", CATEGORY_SYSTEM);
54 KEY_COMPAT_MAP.put("com.android.settings.category.personal", CATEGORY_SYSTEM);
55 KEY_COMPAT_MAP.put("com.android.settings.category.system", CATEGORY_SYSTEM);
56 }
Fan Zhang22a56d72016-09-27 17:52:00 -070057}