LineageParts: Initial bring up of buttons settings

 * Make use of the new information architecture for the Settings app
   and place the status bar settings into System category.

 * Set intent priority to a value between those that Google uses for
   "Languages & input" and the one we use for "System profiles" entry
   in order to place our preference in between those two.

 * Use empty summary so that the title is centered vertically,
   matching "Developer options" and "Reset" entries.

 * Use new helpers in SDK and update for moved hardware key configs.

 * Minor things left disabled for now:
     - Button brightness settings (left out for a sepparate change)
     - OneHand feature (still missing rework in the frameworks)
     - Power menu actions (requires a huge revamp)

Change-Id: I6f3caea2cecf57e1d1df537d56186acf0c16f12b
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index f6bc086..8fd484f 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -129,31 +129,24 @@
         </activity-alias>
         -->
 
-        <!-- Button settings (dashboard) -->
-        <!--
+        <!-- Button settings (System category) -->
         <activity-alias
             android:name=".input.ButtonSettings"
             android:label="@string/button_pref_title"
+            android:icon="@drawable/ic_settings_buttons"
             android:targetActivity="PartsActivity">
-            <intent-filter android:priority="1">
-                <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
+            <intent-filter android:priority="256">
+                <action android:name="org.lineageos.lineageparts.action.SETTINGS" />
                 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
             <meta-data
                 android:name="com.android.settings.category"
-                android:value="com.android.settings.category.device" />
+                android:value="com.android.settings.category.ia.system" />
             <meta-data
-                android:name="com.android.settings.icon"
-                android:resource="@drawable/ic_settings_buttons" />
-            <meta-data
-                android:name="org.lineageos.settings.summary.receiver"
-                android:value="org.lineageos.lineageparts.PartsUpdater" />
-            <meta-data
-                android:name="org.lineageos.settings.summary.key"
-                android:value="button_settings" />
+                android:name="com.android.settings.summary"
+                android:value="@string/summary_empty" />
         </activity-alias>
-        -->
 
         <!--
         <activity android:name=".gestures.KeyHandler" />