Also fixes a bug where notifications would be wrongly padded
on Keyguard after rotating the screen.
Bug: 15244051
Change-Id: I2418692c3d2ffdd5fe642361f2924629bf9a75eb
Falls back to dialogs when heads-up are N/A.
Add new ongoing notification if battery saver mode
is active. Offer to start battery saver on warnings,
if not already started.
True up BatteryMeterView's levels to the latest threshold
levels. 15% for first warning.
Bug:13329308
Change-Id: Id8ad11a1997079ee7165ae003a8fa1c744462ab3
The colorfulldots are replaced by a simple line to avoid
catching too much attention.
Bug: 15188625
Change-Id: I41be50dcc61d495f3bc88e4731388f770fda83d0
The clipTopAmount was calculated with a cached value and not the
calculated one which could lead to weird holes in the shade.
Bug: 15588355
Change-Id: I281858e5b955c8846af8ab63e58211091559621b
The full-screen intents simply fire broadcasts to open fallback
dialogs. This means the warning notifications are left visible
under the dialog on the lockscreen, or after the dialog is
quickly dismissed.
Once we launch the fallback dialogs, there is no reason for the
notification form to exist.
Bug:13329308
Change-Id: I5735c65d7e8eb620493d3ef3a2cfc27f75cecbb5
No longer need to cancel and repost notifications when
transitioning from/to heads-up.
Bug:15534198
Change-Id: I93e5433e51410c80c2e183976e0041ca1bfeb3c7
Similar logic is required for the replacement case, as is already in place
for the update case, although the actions are different.
Bug: 15588056
Change-Id: I9ad115237c589716772e569fa1979a206b77097b
Introduce RankingMap holding single notification Rankings
indexed by SBN keys.
Also, pass RankingMap with notification event callbacks so
subclasses don't have to call getCurrentRanking() unnecessarily.
Bug: 15415840
Change-Id: Id41e174f00c06c86359c03646abc3db78028b324
Follow the setting for auto power save mode in both
battery service and battery UI. Default level is 15 when
setting is not set; otherwise it is whatever the setting
gives, with 0 meaning auto battery save is off.
Change how we define the "turn off warn" level to be
an adjustment from the warn level, so we can have a good
value for whatever auto setting is set.
Fix power manager to never go in to power save mode when
plugged in, even if the user has manually turned it on.
Add new delete option to settings command, because I needed
it for testing.
Change-Id: I512b691df84399d50b8e751fd50732c6093ebe85
Notifications can now get the heads up slot on updates.
FLAG_ONLY_ALERT_ONCE suppresses this behavior.
Bug: 15534198
Change-Id: Ie27b7c7d93c590d777670c538fb796a04252046f
Notification backgrounds could become invisible when doubletapping
a permanent notification.
Bug: 15545215
Change-Id: I799439a368701042b39ca47bcac6fcce281349a7