SystemUI: refactor fast charge toggle

Device trees need to set a path to enable the toggle.
It will not show otherwise.

Moved all file operations off the main thread and use a
preference to save the last state so it persists.

	<!-- empty string to disable, or like: /sys/kernel/fast_charge/force_fast_charge
         it is disabled by default so devices need to add an overlay to enable-->
    <string name="config_fastChargePath" translatable="false"></string>

PS8: Lower delay to 250

Change-Id: Ib1465a98893ec8e7854c8b80f8352016ff6248ad
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Memory leak due to bad destroy sequence

During the destroy sequence, it happens that the mWebViewClassic was
set to null in the transferMessages function and consequently, the
call to WebCoreThreadWatchdog.unregisterWebView(mWebViewClassic) is
not really removing the view from the watchdog's list; creating a
memory leak.

picked from master branch https://android-review.googlesource.com/#/c/48087/

Change-Id: I2bae7c8d7c473e2af25e62a485699f88269d6658
Author: Jean-Christophe PINCE <jean-christophe.pince@intel.com>
Signed-off-by: Jean-Christophe PINCE <jean-christophe.pince@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: 57869
SystemUI: don't add tint to app icons or custom images

Change-Id: Ie5a4e308f10d2045f33b1621eac7870712e5d11f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: add statusbar slider preference

Change-Id: Ibad11cd0495aa5fc2aa31e6f6c1e1cf85b8a582b
Signed-off-by: Roman Birg <romanbirg@gmail.com>
LED Notification: Force update on SCREEN_OFF

Also replace com.android.phone with com.android.contacts to allow customization.

Change-Id: I52e129e6987f17a3e92f65a96c9ad79a2b4a5a05
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
SystemUI: ram bar and recents performance improvements

PS2: add SettingsObserver to eliminate the need for SysUI restart
PS3: tab derp
PS4: stop jumpy behavior when clicking recents fast!
PS5: more reasonable timeout
PS7: restore :)

Change-Id: Iee304142285757656129ab92542013196615a404
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Option to hide Adb notification icon (framework)

Change-Id: I023ef8454955eef93f36ede467e2da0da07c176c
Base: Fixed czech translation

Shorten some very long translations for quicksettings

Change-Id: Ia796a4114585f480d3a134e0d35099e90cdb4a8d
Signed-off-by: kecinzer <kecinzer@gmail.com>
Possible leak in android_emoji_EmojiFactory_newInstance

jchars is not released correctly if factory is NULL.
In addition, unnecessary string conversion removed.

Change-Id: I3ea58391dfe7a96ea6d6ae61bb0867a2d8d49fb0
SystemUI: fix bt toggle

If BT was on and the toggle isn't visible, it would try and refresh it anyways.

Change-Id: I6fd85d8bd7bc6edf20d02d92a2b3f3d6a6ef7e0f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Fix: Handle switching between Wifi & Wifi Tether in QuickSettings

PS2: Split some long lines

Change-Id: Id428c8c040d9aebfb3ee731841250bd50805b580
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Recents: Fix Recents for MultiUser

Its actually the rambar thats causing the crash, running state needed
to be updated.

Change-Id: I081803e77c247fbaa6d8bf75dec889200e618f75
Merge "SystemUI: fix bt toggle" into jb-mr1
CDMA RIL: add SVDO support (1/2)

based on Richard Ross's commit

Change-Id: I313edd3c52d1d0b397ca519757470b87882424d7
Toast: fix force close if called from system service

If a toast is created from a system service, an application context
will not be available, use the service context instead.

Fixes
http://code.google.com/p/android/issues/detail?id=40058
http://code.google.com/p/android/issues/detail?id=40075

Change-Id: Ic643f4557fa04476819cd2c3ee640b735eeae429
Merge "Fix: Handle switching between Wifi & Wifi Tether in QuickSettings" into jb-mr1
Fix "Search" as a long press navigation bar target.

PS2: Boomtabgone

Change-Id: Ibec6a93d215f789684e1be61219b76adc4a62048
Fix reboot dialog causing hot reboot if user long presses power button more than once.

Change-Id: I7c41f4d9bc1c264d063cc5302678ee5079013540
Add config_speed_up_audio_on_mt_calls option

Bug: 7612431
Change-Id: Id2ce52cd39e5e7958268a1d7fc78ab26169dff23
Signed-off-by: rohan <rohanmathur34@gmail.com>
Merge "Fix "Search" as a long press navigation bar target." into jb-mr1