9763 Commits

Author SHA1 Message Date
Adrian Roos
034a6c9667 QS: Enable availability listener for flashlight
Enables the availability listener now that the
underlying framwork is stable.

Bug: 16483222
Change-Id: I586a43941ade1ee8a8f3cb1a087e5356539703c1
2014-08-05 16:54:13 +02:00
Jorim Jaggi
05204dc227 Merge "Dismiss all layout updates." into lmp-dev 2014-08-05 00:15:52 +00:00
Jorim Jaggi
2ae259df68 Dismiss all layout updates.
Bug: 14826666
Change-Id: I19773d0afaf34f92d987a5292de861b5963a7d8a
2014-08-05 00:07:16 +02:00
Jorim Jaggi
ae44128776 Animate public/private notification layouts
This change move the boolean whether we hide sensitive contents into
AmbientState, which makes it consistent with the other stack states
and allows for a orchestrated transition between public/private
layouts. We need this transition when going into the full shade.

Bug: 16291973
Change-Id: I379a6119b5b73eca900a4a2ba9d5ec95b293e487
2014-08-03 18:55:33 +00:00
Jorim Jaggi
dbc3dce886 Handle go to full shade motion for redacted case
Bug: 16291973
Change-Id: Idc5ea93548e17ef9cd2d7c36416b293950554703
2014-08-03 18:52:28 +00:00
John Spurlock
19328fab0e QS: Fix detail clip reverse transition.
Give it a layer during the transition to workaround a recent
regression in the clip animation.

Also:
 - Dial down the transition alpha a bit
 - Do a delayed reverse transition on exit

Change-Id: I622d6eb863d6186293b0126dda8fca3a04a80a85
2014-08-03 11:47:35 -04:00
John Spurlock
1bb480a3a4 Battery saver: new policy changes + SystemUI tweaks.
- Service policy changes: allow the user to turn off (snooze)
   saver mode below the auto-trigger level.  Plugging in the
   device always exits saver mode.
 - Default trigger level is now 0 (never) instead of 15.
 - SystemUI now also listens to a new POWER_SAVE_MODE_CHANGING,
   since waiting for _CHANGED can take seconds.
 - Move shared feature description text into the framework so it
   can be shared.
 - Tweak dialog title + action strings.
 - Remove trigger-level from SystemUI, it no longer needs it.
 - Add the ability to turn off saver mode directly from the
   notification.
 - Migrate saver confirmation dialog to common system UI dialog
   helper, and add a few convenience methods.
 - Fix bug where the status bar area would be orange over the keyguard
   in SHADE_LOCKED mode.

Bug:16214395
Change-Id: I3d1ded1eec9e63e7d97469486f6a320e1bebbccd
2014-08-02 17:12:43 -04:00
John Spurlock
bc53cb41f4 Merge "QS: Fix detail flashing during transition." into lmp-dev 2014-08-01 18:14:18 +00:00
John Spurlock
8af525dd7d QS: Fix detail flashing during transition.
And modify the background a bit during the transition
to enhance the clip effect.

Change-Id: I2b4f4b18cb9c1b41efc2e6b38bc8f7d2a944511e
2014-08-02 10:56:05 -04:00
John Spurlock
494c590f94 QS: Update auto-rotation icon.
Bug:16739860
Change-Id: Id85beb935cbccbecf97a071f114b2eed3e5cc258
2014-08-02 09:24:26 -04:00
Winson Chung
b99b18e78e Fixing scrolling regression with layout changes.
Change-Id: Ic440d147ca13bf13d7f311b6d9876e3c02d4f189
2014-08-04 22:55:43 +00:00
Wink Saville
6d13bc8e3b Turn off extra debugging
Change-Id: I3d7c68d3d7bcef5be084398807389f4a485bedb0
2014-08-01 12:36:54 -07:00
Jason Monk
2daf62ce40 Don't show guest when user switcher is simple
Bug: 15729059
Change-Id: I9e88f0e7d01044a7096d6fc8d67bcd328014a625
2014-08-01 18:37:01 +00:00
John Spurlock
f379af581c QS: Add 8dp above and below the tile panel.
Change-Id: I5ca21cb46e87b8c3707216d0aad90131560d9a2e
2014-08-04 15:25:59 -04:00
Geoff Mendal
f6b0c2f31b Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-08-01 08:29:25 +00:00
Geoff Mendal
d809436c92 Import translations. DO NOT MERGE
Change-Id: I11a53b337e1607794c52fd0e60fd6fefac76f9ef
Auto-generated-cl: translation import
2014-08-04 18:21:48 +00:00
Geoff Mendal
2b2dc01b99 Import translations. DO NOT MERGE
Change-Id: I1060b2e4a480058c4949575c31cc2806d0d921bb
Auto-generated-cl: translation import
2014-08-04 11:11:44 -07:00
Jorim Jaggi
611393560e Merge "Faster timings when a notification comes out from more card" into lmp-dev 2014-08-01 17:53:35 +00:00
Jorim Jaggi
ff9c9c473f Faster timings when a notification comes out from more card
Change-Id: I1cc759aa8a2c235c4ca1962b41a406480b4277b2
2014-08-04 14:01:03 +02:00
Christoph Studer
ce2e23ff69 NoMan: Fix speedbump when no low-prio notifs
Bug: 16705179
Change-Id: I32329710c27052c35b64ba91759200341ed0b127
2014-08-04 12:54:21 +02:00
John Spurlock
d54da8a0c8 Doze: coordinate keyguard status bar visibility.
Play nice with recent NotificationPanelView changes that
also drive its visibility.

Bug: 15863249
Change-Id: I60021f415089d5508af7fe9ec792a2871a52910d
2014-08-03 23:32:46 -04:00
Geoff Mendal
fddc4e9578 Import translations. DO NOT MERGE
Change-Id: I9416cdb82f88c7cf05339c23a241100b0fb09bc4
Auto-generated-cl: translation import
2014-08-04 17:06:17 +00:00
John Spurlock
cb566aab57 Doze: Follow the notification light.
- Send the notification light info up to SystemUI from NoMan.
 - Doze mode will now periodically pulse the display (once)
   if the notification light is active.
 - Change "tease" terminology to "pulse", which is the singular.
   Maintain the multi-pulse on buzz-beep-blink for now as extra
   emphasis.
 - Scrim controller now always takes number of pulses as an arg,
   to support a single pulse (used for notification light, and
   eventually pickup once available).
 - Dial down the display brightness when pulsing.

Bug:15863249
Change-Id: Ifb208a27e82b66cff1d0c04e5b7f758098ea29cf
2014-08-04 11:32:18 -04:00
Jason Monk
3d5f551cd5 QS: Add security footer.
Adds a footer with notification of when a device owner is present
and when a VPN is active.

VPN portions still need some work for detecting when/what is
active, disconnecting, and launching the current VPN app.

Bug: 16153201
Bug: 14430719
Change-Id: I546f45895685b0120e03892539041b41430bb981
2014-08-04 10:01:29 -04:00
John Spurlock
2d28d6e1af Volume: Confirm unsafe media volume dialog on VOL_UP.
If the confirmation dialog is showing, consider a new
VOL_UP as a confirmation.

Bug:16540877
Change-Id: Ibdaa43ea423cc3b48d234bcaaa0c542178657b6c
2014-08-01 13:10:14 -04:00
John Spurlock
f7ae44258f QS: Back button closes detail (if showing)
Bug:16649931
Change-Id: I9748a0793e6a71d833f7c7f884c189e16cccb8f9
2014-08-01 12:45:18 -04:00
John Spurlock
c1d48a5b71 QS: New disabled icon states for wifi/cell tiles.
Bug:15988601
Change-Id: I82c1b0f80277a6529e8648708199c45c5226b81f
2014-08-01 12:12:32 -04:00
John Spurlock
41fef15495 QS: Fix datatype overlays.
- And simplify demo mode wiring.

Bug:15988601
Change-Id: I6827b87700cd88394b115e5e1609520b3afa8660
2014-08-01 11:26:44 -04:00
Winson Chung
19fc117c2f Unregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124)
Change-Id: I11ccc3cea41311d74811dc19e6950da3bbddbfe2
2014-08-01 14:40:58 +00:00
John Spurlock
be0f59ea65 QS: Update traffic indicator icons.
- New vectors, remove obsolete pngs.
- New datatype overlays that better handle RTL.

Bug:15988601
Change-Id: I39499f1289a7f4f8381d00653389ffedf9c33552
2014-08-01 10:31:01 -04:00
Jorim Jaggi
8b73006a36 Clean up speedbump handling when going to SHADE_LOCKED
Bug: 16291973
Change-Id: Ibaa127709ff7a1a001402bd958016998e2bd23bf
2014-08-01 13:15:28 +00:00
Jorim Jaggi
6ff837a95b Animate clock when going to SHADE_LOCKED or SHADE
Bug: 16291973
Change-Id: Idf2fa7bd26800be4df38d99993533069120e7075
2014-08-01 13:14:58 +00:00
Jorim Jaggi
60d07c597c Implement timings for go-to-full-shade transition.
Change-Id: Ib7c0f65b7e2565a6c30b9962e9f81547537b408a
2014-08-01 13:12:30 +00:00
Christoph Studer
a0506e72f5 SysUI: Fix notification leak
Fix bug where we kept a reference to the old Notification when
we re-use notification entries on updates.

Bug: 16513124
Change-Id: I066ff7447952516e27e122df57d4e6e67ee1cea3
2014-08-01 13:02:05 +00:00
Chris Wren
d2fafdda57 Merge "Optimize large preview from the screenshot notification." into lmp-dev 2014-07-31 19:45:19 +00:00
Chris Wren
f63185e7bd Optimize large preview from the screenshot notification.
Crop out a notification_panel_width by notification_max_height
section of the screenshot for the preview.

This will only save about 25% of the bytes on a phone-like device over
the existing square crop, but on a tablet-like device the savings will be
more significant: above 75%.

Bug: 16631778
Change-Id: I05d4d402e44f7700f17b8b97018f6c00c3b0196d
2014-08-01 09:56:51 +00:00
Narayan Kamath
11bfc2261f Don't assume languages are 2 letter codes.
Also, note that this method never worked. Locale
settings were stored with underscores (like Locale.toString)
but matched against AssetManager.getLocales() which
returned language-tag like output.

bug: 10090157

(cherry picked from commit fd138cd81a689ff46e6ae90e46adcdc53f3c5442)

Change-Id: Ifc81ac902c297387dba8c40aba0656e18af57c86
2014-08-01 13:32:12 +01:00
Chris Wren
396c07932d add event logs to track heads up status.
Bug: 16344259
Change-Id: Ib06c2473e6af7999b27723428a1182170129fdcd
2014-08-01 08:40:59 +00:00
Winson Chung
012ef36a6c Updating the stack layout to use a parameterized curve.
- Fixing issue with search box not being layered on top of the task stack view (Bug 16643875)
- Fixing issue with there being no animation when dismissing recents while the stack is scrolling.

Change-Id: I990f3c527de655d62fbf8a4539dcbaed3ed422c8
2014-08-01 04:32:08 +00:00
John Spurlock
b3eb89190c New wifi + radio icons.
- Replace old pngs with new vectors.
 - New problem indication, remove provisional color filters.
 - Remove spacing hacks in SignalClusterView.
 - Wire up QS tile icons to demo mode.

Bug:15988601
Change-Id: Ib785288eebfb09896a499d562eb56debbd89a456
2014-07-31 17:13:10 -04:00
Jorim Jaggi
9d8ca0f010 Fix a few StatusBarHeaderView regressions
Change-Id: Iae1af96f80caf4978c5a6ec6ef81b83543e9fe0e
2014-07-31 15:24:43 +00:00
Christoph Studer
70d26c2d9c Merge "SysUI: Respect "no notifs on lockscreen" setting" into lmp-dev 2014-07-25 23:00:08 +00:00
Christoph Studer
1529e019e1 SysUI: Respect "no notifs on lockscreen" setting
Setting the stack scroller to INVISIBLE didn't work. Now we just consider
all notifs as "not visible on lockscreen" instead.

Bug: 16650758
Change-Id: I4259c6ec2f663fc988377b8d5a259d6a0f827178
2014-07-31 16:42:16 +02:00
Jorim Jaggi
61d37f6d1c Implement nice QS expansion transition in Keyguard
Bug: 16010455
Bug: 15192264
Change-Id: I764652e73ea8e87ad12b9241e038bff843a0a221
2014-07-31 13:48:43 +00:00
Jorim Jaggi
4538027ded Factor out keyguard components of StatusBarHeaderView
Make the header on keyguard a separate view, and move all Keyguard
components from StatusBarHeader into KeyguardHeaderView.

Change-Id: I1e2400d5c91898df3824fd8f27b10750d576a62c
2014-07-31 15:02:59 +02:00
Christoph Studer
f660edb25a Merge "SysUI: Display group children when no summary is present" into lmp-dev 2014-07-25 23:01:28 +00:00
Christoph Studer
c8db24bc32 SysUI: Display group children when no summary is present
Also move common notification filtering into NotificationData
such that clients won't have to do it themselves anymore.

Probably also fixes a couple of multi-user issues.

Bug: 16302692
Bug: 16224431
Change-Id: Ic3c11cd1a224044486f5544e068ca5297d30c521
2014-07-30 21:43:17 +02:00
Geoff Mendal
f62af27846 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-07-30 16:17:51 +00:00
Geoff Mendal
aa31e475d2 Import translations. DO NOT MERGE
Change-Id: Iac3087ace0ea7c351d1606f37000bfa134249184
Auto-generated-cl: translation import
2014-07-30 12:36:23 -07:00
Chris Wren
65d630bad3 Merge "Add a log and statistics for notification expansion." into lmp-dev 2014-07-24 15:36:05 +00:00