Add a component to load category/tiles by key.

And switch between using SettingDrawerActivity.getDashboardCategories()
and the new CategoryManager in different conditions.

Test: SettingsRoboTests for regression. Will write tests for new feature
soon once we are set on the data structure.
Bug: 31781480

Change-Id: I864e5aea869071df63ca89002fb378c235d0a1fe
diff --git a/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryKey.java b/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryKey.java
new file mode 100644
index 0000000..9821fb8
--- /dev/null
+++ b/packages/SettingsLib/src/com/android/settingslib/drawer/CategoryKey.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.settingslib.drawer;
+
+public final class CategoryKey {
+
+    // Activities in this category shows up in Settings homepage.
+    public static final String CATEGORY_HOMEPAGE = "com.android.settings.category.homepage";
+
+    // Top level categor.
+    public static final String CATEGORY_NETWORK = "com.android.settings.category.wireless";
+    public static final String CATEGORY_DEVICE = "com.android.settings.category.device";
+    public static final String CATEGORY_APPS = "com.android.settings.category.apps";
+    public static final String CATEGORY_BATTERY = "com.android.settings.category.battery";
+    public static final String CATEGORY_DISPLAY = "com.android.settings.category.display";
+    public static final String CATEGORY_SOUND = "com.android.settings.category.sound";
+    public static final String CATEGORY_STORAGE = "com.android.settings.category.storage";
+    public static final String CATEGORY_SECURITY = "com.android.settings.category.security";
+    public static final String CATEGORY_ACCOUNT = "com.android.settings.category.accounts";
+    public static final String CATEGORY_SYSTEM = "com.android.settings.category.system";
+}