5003 Commits

Author SHA1 Message Date
John Spurlock
3332ba54ae Heads-up notifications for low battery warnings.
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
2014-06-11 19:38:00 -04:00
Winson Chung
91b7d2b4fb Merge "Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)" into lmp-preview-dev 2014-06-11 21:23:31 +00:00
Winson Chung
8175a7c2e6 Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)
Change-Id: Ic04dc2ef73c75d63e107e7b50842dd618d3a173a
2014-06-11 14:19:53 -07:00
Selim Cinek
1e119db1a3 Changed the visual appearance of the speedbump view.
The colorfulldots are replaced by a simple line to avoid
catching too much attention.

Bug: 15188625
Change-Id: I41be50dcc61d495f3bc88e4731388f770fda83d0
2014-06-11 19:53:18 +00:00
Dan Sandler
59c11b5dda Merge "NotificationListenerService: API updates" into lmp-preview-dev 2014-06-10 21:32:31 +00:00
Christoph Studer
d0694b6735 NotificationListenerService: API updates
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
2014-06-11 18:27:18 +02:00
Dianne Hackborn
6de057816f Merge "Implement control of auto power save mode." into lmp-preview-dev 2014-06-10 22:06:31 +00:00
Dianne Hackborn
14272302a8 Implement control of auto power save mode.
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
2014-06-11 10:34:26 -07:00
Jorim Jaggi
1a8e848dc4 Merge "Fix blank lockscreen." into lmp-preview-dev 2014-06-10 21:32:31 +00:00
Jorim Jaggi
0a27be899c Fix blank lockscreen.
Bug: 15281241
Change-Id: If315891274a97fa5cc579554b83b85cf3c87f0fb
2014-06-11 15:45:22 +02:00
Chris Wren
b6f4ba7a92 Merge "Only post interrupting notifications to the Heads Up." into lmp-preview-dev 2014-06-10 21:38:43 +00:00
John Spurlock
c830d8f3b1 Merge "SystemUI asset update." into lmp-preview-dev 2014-06-10 21:32:31 +00:00
John Spurlock
899f439a29 SystemUI asset update.
- Updated location icons.
- Updated no-sim, plumb up to QS.
- Updated zen mode synthetic notification icon.
- Updated color inversion icons.

Change-Id: I4849fbe11683feab37160c3d23502b01035de66a
2014-06-11 11:04:43 -04:00
John Spurlock
edbfd04060 Merge "Brightness slider no longer displays the automatic icon." into lmp-preview-dev 2014-06-10 21:32:31 +00:00
John Spurlock
6d20526adf Brightness slider no longer displays the automatic icon.
Bug:15414855
Change-Id: I3a1b8e7758e41abd172c20177f42452077bfc7a7
2014-06-10 19:28:03 -04:00
Winson Chung
6f6f273df6 Merge "Updating Recents to make the cards slightly more visible." into lmp-preview-dev 2014-06-10 22:00:10 +00:00
Jorim Jaggi
ce3d6c4c02 Merge "DO NOT MERGE: Fix paddings for user switch and status bar icons." into lmp-preview-dev 2014-06-10 21:21:32 +00:00
Selim Cinek
a32ab60bb0 Fixed a racecondition which could lead to invisible backgrounds
Notification backgrounds could become invisible when doubletapping
a permanent notification.

Bug: 15545215
Change-Id: I799439a368701042b39ca47bcac6fcce281349a7
2014-06-11 15:46:59 +02:00
Jorim Jaggi
80f5e3c08d DO NOT MERGE: Fix paddings for user switch and status bar icons.
Paddings approved by allysont@ for preview build.

Bug: 15540707
Change-Id: If7288d032b9625e0fbb5b657afcf680d178e63ee
2014-06-10 20:31:58 +00:00
Alan Viverette
eb29d330c3 Merge "Change ripple tint to color, remove tintMode" into lmp-preview-dev 2014-06-10 20:14:30 +00:00
Jorim Jaggi
598622df8c Merge "Do not override mColor with default color if none set" into lmp-preview-dev 2014-06-10 20:03:23 +00:00
Winson Chung
b13c46e8b7 Updating Recents to make the cards slightly more visible.
Change-Id: I876d39f4aac4007a3fe0c509ccb7db130f27a737
2014-06-10 12:56:24 -07:00
Jorim Jaggi
6d7a25f317 Merge "Fix black background for auto-redacted legacy notifications" into lmp-preview-dev 2014-06-10 19:01:32 +00:00
Jorim Jaggi
7441931462 Do not override mColor with default color if none set
Bug: 15163105
Change-Id: Ibb9507b24aeaae7a571d42eb411aff25449d48fe
2014-06-10 20:57:21 +02:00
Adrian Roos
88427b0c01 Merge "Fix broken tablet layout of QS on lockscreen" into lmp-preview-dev 2014-06-10 18:32:21 +00:00
Chris Wren
a4ef620326 Only post interrupting notifications to the Heads Up.
Pop them out to the shade if they haven't been dismissed.
Centralize bookkeeping into HeadsUpNotificationView.

Bug: 13397541
Change-Id: I350478ed954309773cfdd6970d58b22df6d223bc
2014-06-10 14:25:49 -04:00
Alan Viverette
a4eab42fe4 Change ripple tint to color, remove tintMode
Also fixes double ripple on list preferences, missing ripple on up
button, and adds the Toolbar style to public. Further improves
ripple performance.

BUG: 15523923
BUG: 15473856
Change-Id: I5e8bf417368b60fcc33c80852e12f27b8c580774
2014-06-10 11:00:25 -07:00
Adrian Roos
13dee43e6f Fix broken tablet layout of QS on lockscreen
Bug: 15536406
Change-Id: I6c075d0875cf78dff1938b5cfd49e6b1924bcc99
2014-06-10 19:43:13 +02:00
Selim Cinek
554f5406f3 Merge "Fixed several bugs with redaction." into lmp-preview-dev 2014-06-10 17:33:44 +00:00
Selim Cinek
429b1ab5cb Merge "Fixed an issue where holes in the notification shade could appear." into lmp-preview-dev 2014-06-10 17:33:21 +00:00
Jorim Jaggi
36b15237a6 Fix black background for auto-redacted legacy notifications
Also removes the wrongly implemented Froyo compatibility mode, as now
all the notifications are light and the background is provided by us,
it's again like in Froyo-world! :-)

Bug: 15295371
Bug: 14105711
Change-Id: Icbae15e690494465b0e63935d81d59edfa05e76e
2014-06-10 19:24:42 +02:00
Selim Cinek
295609a9a5 Merge "Delayed the highlighting of the statusbar header on drag down." into lmp-preview-dev 2014-06-10 16:44:39 +00:00
Selim Cinek
32b5f7a0e8 Merge "Added card elevation when card is clicked on the lockscreen" into lmp-preview-dev 2014-06-10 16:41:02 +00:00
Selim Cinek
2f0df8ae03 Fixed several bugs with redaction.
The Notification row was in most cases directly referring to
the private layout which lead to numerous bugs.

Bug: 15107339
Bug: 15536865
Bug: 15181880
Change-Id: Id1021eb853d67db168c9471d7dacbe5265c4ba2f
2014-06-10 17:40:42 +02:00
Baligh Uddin
6af88cc76f Merge "Import translations. DO NOT MERGE" into lmp-preview-dev 2014-06-10 15:37:56 +00:00
Selim Cinek
7d447726e2 Fixed an issue where holes in the notification shade could appear.
When redaction was turned on, holes could appear.

Bug: 15107339
Change-Id: I8c2830caaa78f03c8ccada1a7160f73c906365d7
2014-06-10 16:03:46 +02:00
Selim Cinek
c0ce82daa4 Delayed the highlighting of the statusbar header on drag down.
Also delayed the highlighing of buttons inside notifications.

Bug: 15184882
Change-Id: Ic3af7ec7c41232ac7f8ecfa4700659b1ca293894
2014-06-10 14:00:42 +02:00
Selim Cinek
b89de4ec49 Added card elevation when card is clicked on the lockscreen
Bug: 15381356
Bug: 15181880
Change-Id: I2dd08b80d2c6b7710d2772c8880b32ab23ec42f9
2014-06-10 10:47:05 +02:00
Dan Sandler
19dba9a37d Fix mangled XML.
Bug: 14588447
Change-Id: I95b46952dcba65cb71d8d28635f92554a1a128b7
2014-06-09 17:02:50 +00:00
Baligh Uddin
491ccba066 Import translations. DO NOT MERGE
Change-Id: I92313110fcade06b93f8f6ec830765ca646d34b8
Auto-generated-cl: translation import
2014-06-09 09:57:07 -07:00
Dan Sandler
44c0dfd52f Pour one out for the old notification ticker.
Heads-up notifications are what it always wanted to be,
anyway.

Bug: 14588447
Change-Id: I64aa1ed85fb162d8577468019e68df9de183a992
2014-06-09 16:55:02 +00:00
Baligh Uddin
d5cf4a6ff6 Merge "Import translations. DO NOT MERGE" into lmp-preview-dev 2014-06-07 03:10:23 +00:00
Alan Viverette
3cb07a462b DO NOT MERGE Material theme
BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
2014-06-06 14:19:53 -07:00
Selim Cinek
ece9de4466 Merge "When dragging down on the lockscreen, the lowest card could jump." into lmp-preview-dev 2014-06-06 16:15:52 +00:00
Selim Cinek
aef92efb10 When dragging down on the lockscreen, the lowest card could jump.
Bug: 15203895
Change-Id: I1a0a5a236490f12dba93700685be049d723b5339
2014-06-06 18:06:04 +02:00
Jorim Jaggi
b13d36d428 Always hide status bar icons when status bar is expanded
Also improve the animation when expanding/collapsing the shade for
a jank-free alpha fade animation.

Bug: 15448443
Bug: 15407838
Change-Id: Ieb0ce6d5bb1e5c1fb60d433b6989c52ec6924e8c
2014-06-06 18:03:52 +02:00
Kenny Guy
adf2ea2bfd Merge "Badge notification from managed profiles." into lmp-preview-dev 2014-06-06 10:06:41 +00:00
John Spurlock
7e984a953e Merge "VolumeZen: Only display active condition when entering." into lmp-preview-dev 2014-06-06 03:39:29 +00:00
John Spurlock
a2cd733c23 Merge "QuickSettings: Bluetooth updates." into lmp-preview-dev 2014-06-06 03:28:29 +00:00
John Spurlock
a625b74120 QuickSettings: Bluetooth updates.
- Use "Bluetooth" string when connecting.
- Use @hidden device alias (instead of name) for label.
- Use the same icon in the status bar.

Bug:15186962
Change-Id: I25613bebf069c91e76d6933f2512b3f0a8020474
2014-06-05 23:20:15 -04:00