Fix weird backlight behavior

Revert "fix button backlight"

This reverts commit d812800d723ca0db4493e64542cba8db738aa49f.

Change-Id: I8c3758c20075d292de2e51159d2fc3c7a5bd6f7b
(cherry picked from commit 6b669d7eeb13f43299c08ead5601aaffb2e3a0d8)
Forward port Volume panel style and Linked volumes

Original author ptunstal

Change-Id: I4359550fabd110ced6359d2bdcd321561b08fae0
(cherry picked from commit 923dc6906c7c3674f3f4deb8ce078bbc06d5c047)
Fix build error

Change-Id: I7dc8bbf7e1d3c7f27ac308edcea7e2283c67632b
(cherry picked from commit 0d150a81b3a0dfb9286c82641e0292757cad8db0)

Conflicts:
	media/java/android/media/AudioService.java
orig file
Revert "orig file"

This reverts commit 17eebe5a9808966c7c8edecac00a8c6e7dd00c32.
Merge tag 'android-4.3_r3' into jb43

Android 4.3 release 3.0

Signed-off-by: Evan Anderson <evan1124@gmail.com>

Conflicts:
	core/java/android/net/ConnectivityManager.java
	core/java/android/net/IConnectivityManager.aidl
	services/java/com/android/server/AppOpsService.java
	services/java/com/android/server/ConnectivityService.java

Change-Id: Ifd6e64cc0abc2817d26a54649f651b7eee054553
(cherry picked from commit 0ece4dea1c54c5a793113d030675dc3208f122bf)
Audioservice: Fix Theme engine support

A few more instances of mVolumePanel.postXXXX had to be enclosed in a
null pointer avoidance wrapper.

Change-Id: I60a0544b5a785417af1ea61e7322b06f2748876b

Conflicts:
	media/java/android/media/AudioService.java

(cherry picked from commit 6ab31fe54bd211bdab2db69ae108d3b024bd69ac)

Conflicts:
	media/java/android/media/AudioService.java
orig file
Revert "orig file"

This reverts commit ca613c811a16ed862651cd741abed52eb525c623.
AudioService : Fix NPE

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

Change-Id: I8d00f0886b603d52bc55cba5fd3ba1d86f7ea56c
(cherry picked from commit 4414bd354c2ac517221383b69ff335b2650a2f07)
"Clear all" button on recent apps

    Ported from ParanoidAndroid by zigackly:
    https://github.com/ParanoidAndroid/android_frameworks_base/commit/f8c44e6ef667a3ebe9b658f148fa78a8d4f9a8dd

    Add button to tablet layout ported from Codename Android by zigackly:
    https://github.com/CNA/android_frameworks_base/commit/8d259fe3588c261baa5a17c361255cf28cc82bfe

    Patch set 2: Make the layout consistent, with the button at the top right.

    Patch set 3: Remove the redundant use of removeTask()

    Patch set 4: Top right layout does not work in tablet mode: make it top left for tablets only.

    Patch set 5: Different implementation (No need to keep track of views) - Danesh M

    Patch set 6: Top left layout no longer works for tablet mode with new implementation.
                 Make it bottom left for tablets only.

Change-Id: Iceb86eef41160f1c17e51463b37fd97e27acfb2e

Conflicts:
	packages/SystemUI/res/layout-port/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: I5f3827299866a951e657ce64bea7c5f31c34ef9e

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

(cherry picked from commit 513d37d2a4d558b491b1ead0f6a4ae81d3f26f44)
Recents : Fix clear all layout

Fixes the clear button from getting cut off due to the added
fitsSystemWindows in aosp

Change-Id: Id43a3d0640f66c1d7c587cb272bc3a6ad520628b
(cherry picked from commit cc2e054bad03dcc623b2db6820c6f58bb28e21ea)
Show "Clear all" button only if the navbar height is 0

Change-Id: I23efca306b97ebf3835223b3b3a5db6d44306df2
(cherry picked from commit 73f87f618b38fb6d55fb06c8aeba917a6e5cf2fc)
gps: LocationManager CTS proximity test fix

CTS proximity tests needs to use GeoFenceManager
for GeoFences to be able to see mock locations
CRs-Fixed: 452172

Change-Id: Ie7fca5e8078340e8fbbce6f9bb6a4cc62b72866d
(cherry picked from commit d58bd2bed067bb82a81db17d3eac7c592b1301e7)
StorageManager: fix android.process.media process stop while plug a discontinuous partitioned SD Card

While get volume state, throw an IllegalArgumentException, catch
this exception in StorageManager and return null to MtpService to
avoid process stoping.

Change-Id: Iebb5c38e375d3f54505d9b9d64fcd0f02a2b60c1
Author: Li Gang <gang.g.li@intel.com>
Signed-off-by: Li Gang <gang.g.li@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 47459
(cherry picked from commit 1bbe75e9ec19706e023d16fc8d6a6dd11e1f14b8)
Memory leak in IInputMethodSessionWrapper executeMessage

In some cases the executeMessage is called with
mInputMethodSession == null. For the messages

DO_UPDATE_SELECTION, DO_APP_PRIVATE_COMMAND

memory is leaked. This commit recycles the args freeing
the allocated memory.

(cherry picked from commit f3263b5fe474d8e9e1eddf0346a07012a5b01307)
Statusbar: TabletUI: Hack to show statusbar icons while Halo is active

When halo is active the ticker window is created as before halo implementation, to avoid to show it we don't stop the methods but set the transition/delay to 0.
That's a kind of hack (awful) but works :)

(cherry picked from commit 2289306a35bb9ce19577d62dcaa86aae811eb761)