Revert "Get theme info for current user instead of user 0"

This reverts commit 1bc276158db9d76b79b9dd812894d7ad645b53ef.

(cherry picked from commit a3e62fbc28758398d1f6dbcf0edf543687b6e2ff)
Revert "ThemeUtils: Retain the original package name in themed UI context"

This reverts commit 58635f94984d766dbce7870a72ed66e47f19e9cf.

(cherry picked from commit 90e11305884bf5f1c68a192f23122e238b2dc121)
Theme Engine is not yet ready

Revert "Squashed commit of the theme engine support"

This reverts commit 7e6497bb678c38b4be0395d0fbdead011b4b639a.

(cherry picked from commit cf016831a9be36bc86f04d8c996a869007571dbd)

Conflicts:
	core/jni/AndroidRuntime.cpp
orig file
THEME ENGINE (1/2)

---Theme Engine Support for 4.3

TE AndroidRuntime.cpp: Missing register_android_content_res_PackageRedirectionMap

Update ZygoteInit.java

NotificationManagerService: Duplicate LED Custom Line

GlobalActions: Reboot Menu fix

Signed-off-by: ayysir <dresadd09691@gmail.com>

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

---Squashed commit of the theme engine support

Updated 4.2 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.

I'm finally dropping the 400+ commit history on this, since everybody
else keeps picking it up from CM as a single patch anyway... But
for the record, nothing of this would be possible without Josh, Ed,
and the rest of the TMo guys who wrote and maintained it until 2.2:

amit chabra <amit.chabra@t-mobile.com>
Amit Kohli <amit.kohli@t-mobile.com>
Chris Cogar <chriscogar@t-mobile.com>
Dirk Sigurdson <dirk.sigurdson@t-mobile.com>
Ed Carrigan <edward.carrigan@t-mobile.com>
Gaurav Sharma <gaurav.sharma3@t-mobile.com>
Hui Feng <hui.feng@t-mobile.com>
John Ritz <john.ritz1@t-mobile.com>
Josh Guilfoyle <josh.guilfoyle@t-mobile.com>
Mark Roberts <mark.roberts48@t-mobile.com>
Pankaj Kumar <Pankaj.kumar6@t-mobile.com>
Samuel Cheung <samuel.cheung@t-mobile.com>
Sergey Ten <sergey.ten6@t-mobile.com>

Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4

Signed-off-by: Ricardo Cerqueira <cyanogenmod@cerqueira.org>

---ThemeUtils: Retain the original package name in themed UI context

In order for themes to reflect on system elements, we're changing
their context, including the package name.

This breaks anything that tries to identify system elements,
most notably any users of the uiautomator. Trying to do
'UiSelector().packageName("android")' to find, for example,
a force-close dialog will fail.

Fixes com.android.cts.uiautomatortest.CtsUiAutomatorTest#testUiWatcher

Change-Id: Ic05c3024b20ac3772ed5597846fbfa4a184ebb0d

Signed-off-by: Ricardo Cerqueira <cyanogenmod@cerqueira.org>

---Get theme info for current user instead of user 0

Signed-off-by: travp624 <travp624@gmail.com>

---Remove IDeviceHandler reference

Change-Id: I2046e2b5ecca09bfbcc4e90ac447bdececda0405

Signed-off-by: JB <jaybob413@gmail.com>
(cherry picked from commit 8d79002acb52b52b3c6044d3f94cdca65909e5b1)

Conflicts:
	core/jni/AndroidRuntime.cpp
orig file
Revert "orig file"

This reverts commit 76c19a53c63d6e2881f07c1110b859b975e672d3.
Revert "orig file"

This reverts commit fb63b5642dc859ce860041e087d26bb95d8d58c5.