libsuspend: compile as a static library

Compile libsuspend as a static library as well, currently needed by the charger
code in some cases.

Related-to-bug: 7429504
Change-Id: I113017c2c855f915b77c76d8934b6e57c0bb532c
Signed-off-by: Iliyan Malchev <malchev@google.com>
charger: suspend enable in charger mode

To reduce power consumption after charging completion, enable suspend when LCD
is turned off.

Bug: 7429504
Change-Id: I34731dc392661c9051a20cea74f70d94a8aaeb42
Signed-off-by: Iliyan Malchev <malchev@google.com>
charger: Do not suspend when disconnecting from charger

The device should be power off when disconnecting from charger.
If the device enter to suspend, the device couldn't handle the power off
process. So the device shouldn't suspend to handle the power off at that time

Bug: 7429504
Change-Id: I9a0a60e53f315cd83550dc730a33bc7bd464ef67
am fdf2f337: libsuspend: compile as a static library

# Via Iliyan Malchev
* commit 'fdf2f337805b0b9c6ebdf57540b2b70bb1eb64dd':
  libsuspend: compile as a static library
am dec27f6e: (-s ours) charger: suspend enable in charger mode

# Via Iliyan Malchev
* commit 'dec27f6e11c2bdfe35791d0d25a3b1bb2204d194':
  charger: suspend enable in charger mode
am cf5c32c2: charger: Do not suspend when disconnecting from charger

# Via Iliyan Malchev
* commit 'cf5c32c26c3b458cd9f8d8f7ba07f1fbb8b496e5':
  charger: Do not suspend when disconnecting from charger
fix build

Change-Id: I760c9a1be3e59026bf18362ee773c5ba783db8d5
fix build with gcc 4.8

Change-Id: If753e8f7224a43aa29acbeced69dc0fe7dbb30f5
Add OkHttp to the boot classpath.

Change-Id: I9a0e76f7986bdcd72a22ef0e198ffab09739ff13
Revert "init: Set ADDR_COMPAT_LAYOUT before spawning processes."

This logic has been moved to platform/frameworks/base commit and is no longer needed
here.

Change-Id: Ib07ac49bb7ba593484a56c8569c1e25f926ac297
revert

Change-Id: Idfffe64355a4973b48826c6dedf0b6a4cf0bdf2f
core: Fix build in ISO C++11 mode

Fix compatibility with ISO C++11 compilers

Change-Id: I0c33458657dd9ae405f31403a62087367d265b94
Merge remote-tracking branch 'aosp/jb-mr1.1-dev' into jb-dev