LED: Simplify logic

Removed settings observer for enabling custom led settings.

Change-Id: Ic5dfec96696ad5d2f7247b4a04a2df584dd35454
ZygoteInit: increase GC threshold amount when preloading to postpone GC

Patch Set 2: Hardcode it better to 1MB.

Change-Id: I7a6e195b82ebe2f4bd5bbb506e19200d452fa3e5
Keyguard: Set WIDGET_CATEGORY_KEYGUARD when AppWidgetHostView is created

Allows the default lockscreen widget to inherit the keyguard widget
host category.  Without this, only widgets added through
KeyguardActivityLauncher are assigned the correct
OPTION_APPWIDGET_HOST_CATEGORY.

Change-Id: Ic97818d85ca5f00da0ce43bb36006d66a6935363
Initialize pointer members to NULL to avoid illegal reference

mBitmap and mTexture is not initialized to NULL which causes
illegal address access when it fails to be created from
oversized bitmap.
Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/79320/

Change-Id: Iea54bec8788bc5f3a10040fdb43f416c0d41a14c
[1/2] Improve flash availability check.

* Use simple overlay, default false.

PS2: Add header and proper symbol.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I40458959d738fbd82941a19ff1ffcfa236bffcb9
[1/3] Base: Flip to Mute/Reject Call

Saving flip action value to settings container

Telephony: https://gerrit.omnirom.org/#/c/4670/
InCallUI: https://gerrit.omnirom.org/#/c/4669/

Change-Id: Ie72dda49d78b23b9bc7d8a886f6916f678c918d1

Conflicts:
	core/java/android/provider/Settings.java
Merge branch 'kitkat-remix' of github.com:AOSPAL/android_frameworks_base into kitkat-remix
Revert "[1/3] Base: Flip to Mute/Reject Call"

Not sure why it's already there

This reverts commit edcd9f675e7823d60a7a51e2ec9b04b1862074c6.
Fix double finger to pulldown statusbar when QuickPulldown is disabled

PS2: Better fix

Change-Id: I738d8113be5b6fd04417b7e2d2ba31a710bd7615
Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value

To be able to customize the "WiFi scan always available"
setting we need to set a default value.

Change-Id: I3673f2613ab9b6a947aed7e29d4cc876140c2180
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/pa_symbols.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
Remove PA beans

Change-Id: Icbc1bc67b41134362cc8a12b03b96b1f847460b6
Revert "Remove PA beans"

This reverts commit cf8322b44982bbc82c5a5ac0daa74ff459182aab.

I have a better idea

Change-Id: I97d7a25d241357fb1bf5cfcef34fa66f9f8f3544
Revert "[1/2] Frameworks: PA Version Easter Egg"

This reverts commit abb8d79d930f5e51283ef3a7c1d45416f53a15af.

Change-Id: Id7a64ed170e0feef68b46d4daa56d899f1836cbe
Merge "Revert "[1/2] Frameworks: PA Version Easter Egg"" into kitkat
Revert "Revert "Remove PA beans""

This reverts commit eb910d0125b2eaa72400634133bc1d1350d7093d.

I'm going to sleep now OK?

Change-Id: I0b26010b378903783c8b9806bcd0f9a6698132e9
Merge "Revert "Revert "Remove PA beans""" into kitkat
Quicksettings 3.1

Minor post update.

* Update Recents animation with new immersive modes. Continue this https://github.com/AOSPA/android_frameworks_base/commit/48be6b18bbf2d676da75eb031ee76b282635713a
* Sleep Tile
  Cleanup code.
  Add new holoish drawable.
  Long press now opens power menu (pure emulation of power button). Thanks to @cristianomatos
* Immersive
  Back on our first concept of having the tile dualized and change it:
  - Front: Toggles Global On/Off.
  - Back: Toggles modes (Full/Nav only/Status only).
  The tile now stores last immersive state, thanks @David96 for the idea.
  Fixed a critical bug with status bar hidden only, thanks to @David96.
* Rssi Tile
  Restore long press action to data usage on front rssi tile
  Fix icon overlay, restore blank overlay on disable and while wifi is on.
* Code indenting and cleanup.
* Update dual switch icons, less bright.
* Restore a previous fix that relays on immersive.
* Get rid of some useless imports and code in quick settings, make a class for battery tile.

PS2: Update dual switch icon brightness.
PS3: Spanish translations.
PS4: Translation fix.
PS5: Translation derp.
PS6: Cleanup.
     Add battery tile class.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I076d4c2be5f22df7cf1f04d5487c699d90d663f7
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix
DocumentsUI translations

Some translation from OmniROM DocumentsUI application