omni: Add themes

This makes use of AOSP's theme settings under Display. Adds two themes,
a pixel one and a stock theme for users that want that AOSP look :-)

Thanks to @Viperusgit for the heads on this and the prebuilt apk that was
used to see how to go about recreating these type of themes

Change-Id: I6cf94aa261fe153b640dd2209aad700eab7835e6
diff --git a/config/packages.mk b/config/packages.mk
index 8ed2632..669c4e3 100644
--- a/config/packages.mk
+++ b/config/packages.mk
@@ -42,5 +42,10 @@
     OmniTheme \
     OmniSubs
 
+# Themes
+PRODUCT_PACKAGES += \
+    PixelTheme \
+    Stock
+
 # for easter fun
 #PRODUCT_PACKAGES += EggGame
diff --git a/google/Android.mk b/google/Android.mk
new file mode 100644
index 0000000..20bfbaf
--- /dev/null
+++ b/google/Android.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2011 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.
+#
+
+# WARNING: Everything listed here will be built on ALL platforms,
+# including x86, the emulator, and the SDK.  Modules must be uniquely
+# named (liblights.panda), and must build everywhere, or limit themselves
+# to only building on ARM if they include assembly. Individual makefiles
+# are responsible for having their own logic, for fine-grained control.
+
+LOCAL_PATH := $(call my-dir)
+
+# if some modules are built directly from this directory (not subdirectories),
+# their rules should be written here.
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/google/themes/Android.mk b/google/themes/Android.mk
new file mode 100644
index 0000000..20bfbaf
--- /dev/null
+++ b/google/themes/Android.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2011 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.
+#
+
+# WARNING: Everything listed here will be built on ALL platforms,
+# including x86, the emulator, and the SDK.  Modules must be uniquely
+# named (liblights.panda), and must build everywhere, or limit themselves
+# to only building on ARM if they include assembly. Individual makefiles
+# are responsible for having their own logic, for fine-grained control.
+
+LOCAL_PATH := $(call my-dir)
+
+# if some modules are built directly from this directory (not subdirectories),
+# their rules should be written here.
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/google/themes/Pixel/Android.mk b/google/themes/Pixel/Android.mk
new file mode 100644
index 0000000..7c260ae
--- /dev/null
+++ b/google/themes/Pixel/Android.mk
@@ -0,0 +1,11 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_PACKAGE_NAME := PixelTheme
+LOCAL_SDK_VERSION := current
+LOCAL_CERTIFICATE := platform
+LOCAL_PRIVILEGED_MODULE := false
+
+include $(BUILD_PACKAGE)
diff --git a/google/themes/Pixel/AndroidManifest.xml b/google/themes/Pixel/AndroidManifest.xml
new file mode 100644
index 0000000..c4b21f9
--- /dev/null
+++ b/google/themes/Pixel/AndroidManifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.google.android.theme.pixel"
+    platformBuildVersionCode="26"
+    platformBuildVersionName="8.0.0">
+
+    <overlay android:priority="1" android:targetPackage="android" />
+
+    <application android:hasCode="false"
+                 android:label="Pixel" />
+</manifest>
diff --git a/google/themes/Pixel/res/values/colors.xml b/google/themes/Pixel/res/values/colors.xml
new file mode 100644
index 0000000..a562edf
--- /dev/null
+++ b/google/themes/Pixel/res/values/colors.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="user_icon_1">#ff5e97f6</color>
+    <color name="user_icon_2">#ff5c6bc0</color>
+    <color name="user_icon_3">#ff26a69a</color>
+    <color name="user_icon_4">#ffec407a</color>
+    <color name="user_icon_5">#ff33ac71</color>
+    <color name="user_icon_6">#ff8bc34a</color>
+    <color name="user_icon_7">#ffff9800</color>
+    <color name="user_icon_8">#ffff7043</color>
+    <color name="system_error">#ffea4335</color>
+    <color name="primary_device_default_dark">#ff2d2d2d</color>
+    <color name="primary_device_default_settings">#ff2d2d2d</color>
+    <color name="primary_dark_device_default_dark">#ff242424</color>
+    <color name="primary_dark_device_default_settings">#ff242424</color>
+    <color name="secondary_device_default_settings">#ff3a3a3a</color>
+    <color name="tertiary_device_default_settings">#ff616161</color>
+    <color name="quaternary_device_default_settings">#ff9e9e9e</color>
+    <color name="accent_device_default_700">#ff3367d6</color>
+    <color name="accent_device_default_light">#ff4285f4</color>
+    <color name="accent_device_default_dark">#ff5e97f6</color>
+    <color name="accent_device_default_50">#ffe8f0fe</color>
+</resources>
diff --git a/google/themes/Stock/Android.mk b/google/themes/Stock/Android.mk
new file mode 100644
index 0000000..70322d8
--- /dev/null
+++ b/google/themes/Stock/Android.mk
@@ -0,0 +1,12 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_PACKAGE_NAME := Stock
+LOCAL_SDK_VERSION := current
+LOCAL_CERTIFICATE := platform
+LOCAL_PRIVILEGED_MODULE := false
+
+include $(BUILD_PACKAGE)
+
diff --git a/google/themes/Stock/AndroidManifest.xml b/google/themes/Stock/AndroidManifest.xml
new file mode 100644
index 0000000..1a8a18d
--- /dev/null
+++ b/google/themes/Stock/AndroidManifest.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.google.android.theme.stock"
+    platformBuildVersionCode="26"
+    platformBuildVersionName="8.0.0">
+
+    <overlay android:priority="1" android:targetPackage="android" />
+
+    <application android:hasCode="false"
+                 android:label="Stock" />
+</manifest>
+
diff --git a/google/themes/Stock/res/values/colors.xml b/google/themes/Stock/res/values/colors.xml
new file mode 100644
index 0000000..a078444
--- /dev/null
+++ b/google/themes/Stock/res/values/colors.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="user_icon_1">#ff00bcd4</color>
+    <color name="user_icon_2">#ff3f51b5</color>
+    <color name="user_icon_3">#ff4285f4</color>
+    <color name="user_icon_4">#ffe91e63</color>
+    <color name="user_icon_5">#ff0f9d58</color>
+    <color name="user_icon_6">#ff8bc34a</color>
+    <color name="user_icon_7">#ffff9800</color>
+    <color name="user_icon_8">#ffff5722</color>
+    <color name="system_error">#ffea4335</color>
+    <color name="primary_device_default_dark">#ff212121</color>
+    <color name="primary_device_default_settings">#ff263238</color>
+    <color name="primary_dark_device_default_dark">#ff000000</color>
+    <color name="primary_dark_device_default_settings">#ff212121</color>
+    <color name="secondary_device_default_settings">#ff37474f</color>
+    <color name="tertiary_device_default_settings">#ff455a64</color>
+    <color name="quaternary_device_default_settings">#ffb0bec5</color>
+    <color name="accent_device_default_700">#ff00796b</color>
+    <color name="accent_device_default_light">#ff009688</color>
+    <color name="accent_device_default_dark">#ff80cbc4</color>
+    <color name="accent_device_default_50">#ffe0f2f1</color>
+</resources>