Frameworks: Add ability to control default value of DOZE_ENABLED

Devices can enable the doze feature. Devices without AMODLED screens can
use it
but it will use then of course more battery. This devices should disable
this feature
by default and let the user decide to turn it on.

to change the default behaviour add into device overlay

config_doze_enabled_by_default and set it to false
creds kufikugel
Code clean-up
pm: Add persist property to enable lazy dexopt

 * Add "persist.sys.lazy.dexopt" property to enable lazy dexopt
   on userdebug builds.  As much as I enjoy these 20 minute
   dexopt sessions, I prefer instant gratification.

Change-Id: I568692f04d67c3c0a1a138fb724eda41e24b1235
Framework: Forward port ADB over network (Part 2 of 2)

Includes:
- ADB Over Network, integration of the adb-host mode (already present)
  The feature can be used/tested without the Settings part:

    setprop service.adb.tcp.port 5555

  Note: This ADB setting is not persistent (for security purpose) and
  require init.rc implementation event like this : http://bit.ly/AdbTcpIP

  Author: Tanguy Pruvot
  Id: I5c61a53948349c785356cb5aae165110d75e3074

  Author: sssemil <suleymanovemil8@gmail.com>
  Show notification on adb over network too

  Screenshots - http://goo.gl/TgsRI6
  Id: I9ddc0aa9a4f330a06ab5d97a8645d1b31bb6f299

Change-Id: I101216c5b8ddff5040d9eeaf35afefc5cd98bbf3
Battery text mode (1/2)

Change-Id: I537c99827e78c796b4980ec7751e5f9b58a88251
Signed-off-by: kecinzer <kecinzer@gmail.com>
Revert "Revert "Settings: Change theme do Material (Dark), (1/3)""

This reverts commit 2c6b760d14bec39dbf5a5fa45b6d810b90788975.
Attempt to theme a lil more dark
KeyguardSimPinView: don't send dummy request to get remaining pin

I'm not sure of the behavior on QCOM RILs, but on Broadcom RIL
(and probably other RILs), this will eat into the user's PIN
remaining tries. Given that the user is only given ~3 tries, this
is a very bad idea.

In addition, if onAttachedToWindow is called multiple times before
the RIL replies, this can completely delete the retry quota leading
straight to the PUK screen.

Change-Id: I339f1b6d79d543ae8930a7bb95acf823fd5ae20e
fix build
Derp
experiment
Revert "Derp"

This reverts commit 7d61d38ffb7e646b5fbf073893c786283551d0e2.
???
Adjustment yet again
Change SQL to improve performance.

To know the number of images, use "COUNT(*)" instead of "_id" in SQL.
Using "_id" gets all result set. and when getCount() is called, CursorWindow is filled.
But using "COUNT(*)" gets just 1by1 data.
So using "COUNT(*)" is more faster than now.
And this SQL is called everytime per a file during a file transfer in MTP
The better way is by using "EXIST".
But if using "EXIST", modify MediaProvider.call() method.
So i applied just a "COUNT(*)"

Change-Id: Ic5882af0fad2304f836b7b7043a4746359391609
Signed-off-by: muzbit.kim <muzbit.kim@lge.com>
fix icon
bootanimation: allow preload the bootanimation

This patch implements one simple performance enhancement, which
might benefit devices. It is completely opt-in by setting
the following variable.

  * TARGET_BOOTANIMATION_PRELOAD: will preload the bootanimation
    zip to memory; this is handy on devices where the storage
    might be slow. By preloading it, we get quick access to the
    zip file, and the animation doesn't stutter.

Conflicts:
        cmds/bootanimation/BootAnimation.cpp

Signed-off-by: Andreas Blaesius <skate4life@gmx.de>
- picked for L, original commit only applyed partially: https://github.com/CyanogenMod/android_frameworks_base/commit/e6b54405aa70d7503a114d9c90ef7518abdd7133 >

Change-Id: Ie92d1b0aa90b43ba39c368a2a33657a60c3a64b5
bootanimation: allow using RGB565

RGB565 uses considerably less memory, and together with texture
cache, it allows us to offer a really smooth bootanimation on
not so powerful devices.

Signed-off-by: Andreas Blaesius <skate4life@gmx.de>
- changes for Android 5.0

Change-Id: Icbd6754cc608693c007ac92428e4aa711c32a59c
Forward Port: Add Camera sound toggle [1/3]
MediaScanner behavior on boot (1/3)

Lets you enable/disable/ask (with a notification) media scanning on
boot.
Can speed up boot and reduce initial boot lag from MediaScanner