blob: 7e3f67b875e559840d98b935d0f84688ef8ec2e0 [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";
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 Zhang9c9e364a2016-11-04 12:53:46 -070039 public static final String CATEGORY_SYSTEM_INPUT = "com.android.settings.category.ia.input";
40 public static final String CATEGORY_SYSTEM_LANGUAGE =
41 "com.android.settings.category.ia.language";
Fan Zhange9bb36c2016-11-16 15:26:06 -080042 public static final String CATEGORY_SYSTEM_DEVELOPMENT =
43 "com.android.settings.category.ia.development";
Fan Zhang31f4c542016-11-01 15:02:46 -070044
45 public static final Map<String, String> KEY_COMPAT_MAP;
46
47 static {
48 KEY_COMPAT_MAP = new HashMap<>();
49 KEY_COMPAT_MAP.put("com.android.settings.category.wireless", CATEGORY_NETWORK);
50 KEY_COMPAT_MAP.put("com.android.settings.category.device", CATEGORY_SYSTEM);
51 KEY_COMPAT_MAP.put("com.android.settings.category.personal", CATEGORY_SYSTEM);
52 KEY_COMPAT_MAP.put("com.android.settings.category.system", CATEGORY_SYSTEM);
53 }
Fan Zhang22a56d72016-09-27 17:52:00 -070054}