Remove IDeviceHandler reference

Change-Id: I2046e2b5ecca09bfbcc4e90ac447bdececda0405
Revert "Remove IDeviceHandler reference"

This reverts commit d05e03de0f8263dad32ab37651524731ac9e95fc.
Revert "Get theme info for current user instead of user 0"

This reverts commit 1bc276158db9d76b79b9dd812894d7ad645b53ef.
Revert "ThemeUtils: Retain the original package name in themed UI context"

This reverts commit 58635f94984d766dbce7870a72ed66e47f19e9cf.
Theme Engine is not yet ready
Revert "Squashed commit of the theme engine support"

This reverts commit 7e6497bb678c38b4be0395d0fbdead011b4b639a.
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>
AudioService : Fix NPE

Initialize mVolumePanel prior to registering the receiver,
since 4.3 now invokes the layoutDirection call on it.

Change-Id: I8d00f0886b603d52bc55cba5fd3ba1d86f7ea56c
frameworks/base: Add changes for Incall Music Delivery

- Add Flag and Stream type required for incall music delivery.
- Add Tone types for ToneGenerator

Change-Id: Ic05cd1af1172dda3c527af826c6e9a48d6ae20d5
Add 2 APIs (suspend and resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
- instead of release the whole player
- API:resume() will just init the decoders again
- Add a check in onVideoEvent()
- to make sure the first seek operation will seek the next i-frame

Change-Id: Ia4716f7fb3a412eb19c6ded9c0f3056d0490546c

Implement the suspend/resume operation in VideoView

- Using the new APIs in Mediaplayer
  to implement the suspend/resume operation in VideoView
- Add a new status "SUSPENDED"

Change-Id: I00f9daa2d34b3b125b8c3b968bc581708ab2cdf4

HTML5 VideoView change to use the new APIs: suspend/resume

- While suspend and resume, using the new APIs in Mediaplayer

Change-Id: I8530b533501607f681145853d7923fdf2009150b
AudioService: Go back to virtual SCO calls on multi-function units

Direct raw audio channels to these HFP devices is resulting in
dead audio on hangouts, on all devices. Until that is figured
out and/or fixed, go back to establishing a virtual call to open
up the audio channels

Change-Id: I794e75eed96ac09cfbb1c9d28c90d3161cfb7149
Fix ringer mode being unneededly changed by setting ringer mode volume to 0.

When having set the ringer mode to silent on a device with vibrator and
calling setStreamVolume() for the ringer stream again (e.g. in one of
the volume control dialogs in the settings app), the ringer mode is set
to vibrate, although there's no reason to do so.

Fix that by remembering the last non-normal (that is, either silent or
vibrate) ringer mode and using that when setting the stream volume to 0.

Change-Id: Idb4a34743c0db5da61b3354889212fbdc9e3ee81
JIRA: CYAN-1403
QuickSettings: Add LTE Tile (1 of 2)

Patchset 3 - Add proper drawables and update logic
Patchset 4 - Rebase
Patchset 5 - Fix build errors

Thank you to Bjorn Lunden for the drawables

Change-Id: Ia25d098020586e06d38589f84d3d1a581e7cbd9a

Conflicts:

	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java

Fixes for LTE Toggle

Additional fixes for LTE toggle...
Fix hardware home key behavior on wake-up

Change-Id: Ib489e4b8bb1d10591afc96c680c7865d61c959a0
Irda: Add Irda System Service

This is not a perfect solution yet, but it does work and should therefore be a starting point.
It needs work to be functional on devices other than the Galaxy S4

* The Irda service is not started by default. It can be enabled via overlay.
* Uses a HAL module to communicate with sysfs

Change-Id: If0c4b2e59144b1f199c44add399a3f528ac11e5b

Conflicts:
	core/java/android/app/ContextImpl.java
	core/res/res/values/config.xml
	services/java/com/android/server/SystemServer.java
Fix home key long press to work when assigned to recent app switcher.

Change-Id: Ibd16ff07b9910605c95180b54040f3e2b78939cb
Add PowerManager integration for button and keyboard backlight.

Allows setting button and keyboard backlight brightness as well as
button timeout.

Change-Id: I550cccafc0a8f90d6347de9261adb26b75955cc4

Conflicts:
	core/java/android/os/PowerManager.java
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java
Fix ringer mode being unneededly changed by setting ringer mode volum

Change-Id: Ic2f412c0fa3a9dc770308fba21f1039ce47e578a