charger: Draw battery percentage over charger screen

Let user know the exact battery capacity.

Change-Id: Ie2abaeee0e443cd2a730780488287ad4d9ea1e9a
charger: Toggle backlight while in charger mode.

The backlight is now toggled on/off in the charger mode via a sysfs
node. This is to compensate for the fact that on certain targets the
FBIOBLANK ioctl does not turn off the backlight.

Change-Id: I7c4531e7f1b0599b9a1f5ed6f95d13ee6a664066
CRs-fixed: 514940
charger: support alarm in power off charging

To implement this feature need to let the phone reboot some time
earlier than the alarm time.

CRs-fixed: 540039
Change-Id: I5001631114994f5bc29313bbd52395c43f7c4810
charger: modify usb unplugged shutdown time in power off charging

Previous value for this feature is 10 secs which is too long,
and now change it to 2 secs.

CRs-Fixed: 535857
Change-Id: If1d74a25e00f897833092262c49a9a07d18c0674
charger: press power key to turn off charging animation

When charging animation is on, press power key to turn it off.

CRs-Fixed: 535893
Change-Id: Iaac536351426a09cb23c6d77ff3229a8901aaf70
charger: Fix arguments to gr_text

 * CWM's minui is oldschool, so comment this out for now.

Change-Id: If88d2df820b164fbb02ce6c40cba42de7880e86a
audio: add EVRCWB EVRCB to supported audio formats

 compressed format should also include EVRCWB and EVRCB

 CRs-Fixed: 516138

Change-Id: I64f40d3380cb4fa055e0c3d79db3acf57929405c
init.rc: Restored TCP performance tuning

This patch tunes the TCP buffer sizes for high
performance data links including global max rmem
and wmem.

Change-Id: Ida0f9fd6ec23143b158284a019fd26672103c6ce
CRs-Fixed: 439205 435908
Camera: Add meta data types for meta data callback

Add meta data callback types in order to reuse same callback
path for diffrent data types.

Change-Id: If8c6079c8a9a1fa7b3e708b6c5d9d04240509e2e
system/core: Add support for EVRCNW audio format

This change is needed to support EVRCNW audio format.

Change-Id: I161c2c24ca764ed291f59d17d0a2be443818a7aa
Camera: Adds longshot commands

- This change adds two new camera commands
  for enabling/disabling longshot mode.

CRs-Fixed: 514199
Change-Id: I47e4211ca0306347b6546707ed43b90ee3693060
audio: Enumerations for audio usecases

-Add enumerations for audio usecases to handle concurrency

Change-Id: Ided13b37d269db3b4509f4058581d329b5f4739e
Camera: Adds auto HDR Metadata type

- This type is used during auto HDR
  Metadata callbacks.
init: Increase maximum number of Android properties to 496.

As more and more properties are created, 372 is not enough.

Change-Id: Iab793e9f6cf540551e9821f61c2aeee8fb6dafc3
CRs-fixed: 538187
system/core: Add support for telephony-msim

Add telephony-msim to BOOTCLASSPATH

Change-Id: I8f585fc8414705450a54127908f182c0eacf4c03
charger: Update to match AOSP recovery API

Change-Id: I2f8e0213e438c352dc5954faa287374e33985d65
Revert "charger: Update to match AOSP recovery API"

This reverts commit d00b7c086f89d519f679614790e6b3c27a398ee9.
charger: Allow home key on newer devices to wake device

 * On newer devices, the home key button is usually mapped
   to KEY_HOMEPAGE. Allow it to wake the device.

Change-Id: I6423e4c6fb7992c77dc052a9f0aadae1fa8055dd
debuggerd: Ignore SIGPIPE

The system server may prematurely close the connection to
/data/system/ndebugsocket if it's not interested in the data
from debuggerd.  If it does so, we don't want to die due to a
SIGPIPE.

Change-Id: Iec99ed1fe6254669b3b7554b4247353cd73b5e67
charger: change the order of backlight control and fb blank

Backlight is getting disabled after fb blank is done. Change
the order to avoid transients and other issues.

Change-Id: Ie659ca76ab85e22ea2a3bc0da9b025785cb42511