Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.
QuietHours cleanup.  Remove duplicate code

See original code here: https://github.com/RasSaber/platform_frameworks_base/blob/71fd93f91b709c82d569492ef0b6778ae7d158aa/services/java/com/android/server/BatteryService.java#L693
Option to toggle LED charge notification Patchset 1/2 (see also platform_packages_apps_Settings)

Signed-off-by: Paul Beeler <sparksco@gmail.com>