Commit Graph

1939 Commits

Author SHA1 Message Date
Fabian Kozynski
42596b1762 Merge "Vis fixes to Privacy chip" 2019-02-15 23:36:04 +00:00
Fabian Kozynski
b10ef8ddff Vis fixes to Privacy chip
Test: manual
Fixes: 124467719
Change-Id: Iaba017cee0992cbebe153d70c0bddbee44b553ec
2019-02-15 15:10:47 -05:00
Aaron Heuckroth
75e249f637 Add rotation support to grid-based global actions menu.
Test: All automated tests should pass. Rotating the phone with the GAM displayed should result in both the container and icon views staying in the same physical position relative to the device.
Change-Id: Ia1ba6265fb954ea9908ddb618569ca018297c82d
2019-02-13 16:08:14 -05:00
Nadia Benbernou
c3a11501a5 Merge "Style changes to blocking helper for Q. Bug:123900539 Test: Manual testing on device and unit tests." 2019-02-11 19:15:15 +00:00
Nadia Benbernou
3b4a93a38e Style changes to blocking helper for Q.
Bug:123900539
Test: Manual testing on device and unit tests.

Change-Id: I56951b65139b3bc3ba0118972ba2b1dc09cdeba7
2019-02-08 15:18:57 -05:00
Fabian Kozynski
216812e981 Change Chip between QS and QQS
Chip animates via fade out and fade in. No redlines for margins and
padding.

Test: manual

Change-Id: I10f024eb06f88b6493687febdbb0d5ccbba450b8
2019-02-07 11:20:34 -05:00
Mady Mellor
3d82e68dfd Rename: Drop 'Container' from BubbleExpandedViewContainer
Test: atest BubbleControllerTest / it compiles
Bug: 123543995
Change-Id: I4ff194966edffd7d314bd9aade1ebb2bb6d2f7d2
2019-02-05 18:26:53 -08:00
Mady Mellor
e8e07712e0 Add permission prompt to bubble expanded header view
Test: manual / coming soon
Bug: 111236845
Change-Id: Ie616d2215c495e8b30ba7fa8ebb1abdc8e5ebd7e
2019-02-05 13:08:48 -08:00
TreeHugger Robot
c6da7a9f3d Merge "New lock iconography" 2019-02-01 03:10:29 +00:00
Lucas Dupin
c9e5d76952 New lock iconography
Change-Id: Ie8b269a2bdfa1946e0c3591717142a34c1b15c67
Fixes: 122058242
Test: visual
2019-01-31 16:43:35 -08:00
Mady Mellor
9801e85396 Update header to have content intent & settings buttons
* Sets notification entry on BubbleExpandedViewContainer and use that to
  to populate the contents
* Adds settings + app deeplink buttons to header
* Header will use bubble metadata text if it exists or the app name

Bug: 111236845
Test: manual - tested with notify activity view based bubble that
      (1) - tapping deep link button opens content intent
      (2) - tapping settings button opens notif settings for app
Change-Id: I07d6beced7da001e233237b91053b0fc4b18505b
2019-01-30 15:34:02 -08:00
Amin Shaikh
f3a942751a Consolidate 3 phone icons into one.
ic_bt_cellphone, ic_volume_voice, ic_phone_24dp -> ic_phone

Bug: 122263617
Test: make
Change-Id: Id3a518209e78d1f51b3cc1945bcbeba1bdcb2e23
2019-01-29 18:23:55 -05:00
TreeHugger Robot
06dc2c3c1e Merge "Remove unused systemui resources." 2019-01-29 21:23:06 +00:00
Amin Shaikh
d20df8ea81 Remove unused systemui resources.
Bug: 122263617
Test: mp sysuig
Change-Id: If4681826ebe87ab193f96d90720b174a32efadca
2019-01-29 09:32:10 -05:00
Amin Shaikh
10f363bb18 Move SettingsLib icons to android.
Bug: 122263617
Test: make
Change-Id: I11ce02f3f65f429fd4375a5522c060c8080f4813
2019-01-25 15:26:41 -05:00
Josh Tsuji
3e6de26e7a Merge "Adds DynamicAnimation-based movement to the bubbles." 2019-01-25 16:04:51 +00:00
Aaron Heuckroth
5d1f0e0058 Merge "Creates a new grid-based global actions menu on power button hold." 2019-01-25 15:19:07 +00:00
Joshua Tsuji
b1a796b155 Adds DynamicAnimation-based movement to the bubbles.
See go/bubble-stack-design for a high level overview of these changes. This is a large CL, but required in order to allow continued development and team testing without breaking functionality over the course of multiple CL submissions.

To integrate the new animations, the following changes have been made to existing code:
* (BubbleStackView) The bubble container (and thus, the stack view) are MATCH_PARENT to allow the bubbles to independently translate anywhere on the screen.
* (BubbleStackView) Start position is set by the stack controller, not BubbleStackView.
* (BubbleStackView) Expand positon is set by the expansion controller, not BubbleStackView.
* (BubbleStackView/BubbleTouchHandler) Added the methods onDragStart/onDragged/onDragFinish, and onBubbleDragStart/onBubbleDragged/onBubbleDragFinish, for cleaner dispatch of touch events to the appropriate animation controller.
* (BubbleStackView/BubbleController) The stack view's getBoundsOnScreen returns the first bubble's bounds, if the stack is not expanded.
* (BubbleStackView) applyCurrentState no longer manages translation of bubbles, or the expanded view, these are controlled by animation.
* (BubbleMovementHelper) Deleted, no longer needed.
* (Everywhere) Changed uses of Point to PointF, since translation values are floats anyway.

Known issues to be fixed in subsequent, far smaller CLs:
* (b/123022862) Bubble dragging out/dismissing is not animated, and the bubbles can be deposited anywhere. Tap outside the stack to collapse them back to normal.
* (b/123023502) New bubbles added while the stack is expanded are not positioned properly.
* (b/123022982) Expanded view arrow is sometimes in the wrong position.
* (b/123023410) If the stack is expanded while animating, it collapses to its original position even if not along the edge of the screen.
* (b/123023904) The expanded view doesn't animate out, it disappears instantly.
* (b/123026584) Bounds in landscape are a bit wonky.

Bug: 111236845
Test: atest SystemUITests
Test: physics-animation-testing.md
Change-Id: Icaca09e5db89c635c9bb7ca82d7d2714362e344e
2019-01-24 19:23:17 -05:00
Fabian Kozynski
1823f11ddf QSFooterImpl shows multiple carriers
QSFooter now shows up to two subscriptions with corresponding signal
rate graphic.

Modified CarrierTextCallback to pass an info struct.

Pending design guidelines.

Test: manual using DSDS
Bug: 113343186
Change-Id: Ic98d52ae59139132533a86fcc279a4f64c98c91e
2019-01-24 17:13:55 -05:00
Aaron Heuckroth
166392ff24 Creates a new grid-based global actions menu on power button hold.
Test: Automated tests should pass. Menu should render at correct size, shape, and position for 0-9 action items.

Bug: 121385065

Change-Id: I3448e7e333ea8fdaeb09a241249ce7521920169e
2019-01-24 20:06:54 +00:00
TreeHugger Robot
76a0f2676b Merge "Add dock info view overlay" 2019-01-19 03:39:55 +00:00
Aaron Heuckroth
184af56de9 Merge "Extract GlobalActionsLayout to an abstract class." 2019-01-17 15:31:38 +00:00
Jerry Chang
f5ec09e661 Add dock info view overlay
Bug: 122806326
Test:  atest SystemUITests
Change-Id: Ic2a35b34fcb560e36e784fa0d0a962e9dae9b962
2019-01-17 13:08:12 +08:00
Aaron Heuckroth
f708d47e4b Extract GlobalActionsLayout to an abstract class.
Test: Automated tests pass.
Change-Id: I5898723737e8c4355ff2de2c6535f6c81df9136f
2019-01-16 13:45:57 -05:00
TreeHugger Robot
8eb6be8133 Merge "Fixes styles of App Ops dialog" 2019-01-15 18:44:13 +00:00
Mady Mellor
344731a8aa Merge "Closer to notification model & updates on bubbles" 2019-01-14 17:28:31 +00:00
TreeHugger Robot
5955be84ae Merge "Move battery % down in QS, fix a lot of things" 2019-01-12 02:00:25 +00:00
Fabian Kozynski
ba2197280f Fixes styles of App Ops dialog
* Changes color and size of "+" sign.
* Adds shadow to icons

Test: manual, layout inspector & HotDog overlay
Bug: 122472385
Change-Id: I116f5a62d7f182717b5d850e338f1fbe27c4feaa
2019-01-11 16:35:02 -05:00
Mady Mellor
3f2efdbf5d Closer to notification model & updates on bubbles
* Introduces BadgedImageView / BadgeRenderer for icon & badging
  -> These are both semi-temporary until I move things over to using
     icon library

* Introduces "shouldShowInShade" bit on NotificationData, this is used
  to indicate whether a bubble's notification should display in the
  shade or not
* BubbleController uses NotificationEntryListener to annotate notifs
  bubble state & add / update / remove bubbles
* Cleans up expansion / dismissing / visibility in BubbleController

General notif / dot / bubble behaviour:
* When a bubble is posted, the notification is also in the shade and
  the bubble displays a 'dot' a la notification dots on the launcher
* When the bubble is opened the dot goes away and the notif goes away
* When the notif is dismissed the dot will also go away
* If the bubble is dismissed with unseen notif, we keep the notif in shade

go/bubbles-notifs-manual has more detailed behavior / my manual tests

Bug: 111236845
Test: manual (go/bubbles-notifs-manual) and atest BubbleControllerTests
Change-Id: Ie30f1666f2fc1d094772b0dc352b798279ea72de
2019-01-11 12:53:32 -08:00
Evan Laird
a5a73c5a9e Move battery % down in QS, fix a lot of things
- Move the battery percentage next to the system icons in quick settings
- Always show the percentage, and optionally show the estimate text
based on battery settings
- Move the estimate text into the BatteryMeterView
- Move the fetching of the estimate off of the main thread

Test: visual
Change-Id: Ie37952079b2394c67464f69eb8a2f0089b08875d
Fixes: 119799219 - padding
Fixes: 120996084 - moving estimate fetch off main thread
Bug: 116481529
2019-01-11 15:20:37 -05:00
Wu Ahan
1153b78033 Merge "Enable AOD image wallpaper and apply aod mask view." 2019-01-11 08:21:59 +00:00
TreeHugger Robot
959468ca6e Merge "Remove SignalClusterView and signal_cluster_view" 2019-01-11 00:07:51 +00:00
Fabian Kozynski
959d407aa0 Merge "Sets clickability of QuickStatusBarHeader" 2019-01-10 19:58:30 +00:00
Evan Laird
e626cdac2e Remove SignalClusterView and signal_cluster_view
These are unused since P, when the icons all moved into the same icon
container and are all managed by StatusBarIconController

Also remove an unused class StatusBarIconContainer

Test: atest SystemUITests
Change-Id: I636449b51c009ccfaeebc559b1f7fb31487cc5fe
2019-01-10 13:44:04 -05:00
Fabian Kozynski
18464087a5 Merge "Changed style in Device Management Dialog" 2019-01-10 17:12:55 +00:00
Fabian Kozynski
9a15b7c5ae Sets clickability of QuickStatusBarHeader
Sets the clickability based on QS expansion. Then, when it's expanded,
it is not clickable as QSPanel captures clicks. The top status bar is
always clickable

Test: manual, including brightness slider
Change-Id: Id41473f823285f115240effbea7a2d52596b9bfe
Fixes: 120873445
2019-01-10 11:13:27 -05:00
TreeHugger Robot
ccfc793fe2 Merge "Enable ActivityView in bubbles" 2019-01-10 16:03:24 +00:00
Fabian Kozynski
217e435223 Merge "Battery Percentage uses same font as clock" 2019-01-10 14:04:11 +00:00
Fabian Kozynski
9ec687ac0f Battery Percentage uses same font as clock
Test: visual
Change-Id: I657a99204b9620bd1175a50c726cc81ee312d9d5
Fixes: 122504829
2019-01-09 16:44:05 -05:00
Fabian Kozynski
058155f2af Changed style in Device Management Dialog
Test: visual (VPN and forced subtitle)
Change-Id: Ia212b27c5890d700062397c4dc2d1acd316e7d5a
Fixes: 122374864
2019-01-09 16:25:58 -05:00
Mark Renouf
89b1a4af26 Enable ActivityView in bubbles
Test: manually
Bug: 111236845
Change-Id: I9ed749c2bfe0c883c85a32514f087785b9d63719
2019-01-09 16:17:00 -05:00
TreeHugger Robot
3b20f73b80 Merge "Revert "Sets views clickable according to their visibility"" 2019-01-09 18:22:35 +00:00
Fabian Kozynski
f3a770104b Revert "Sets views clickable according to their visibility"
This reverts commit 1c36a5c708.

Reason for revert: This CL added bugs b/122371174, b/122035663

Change-Id: Id7f68ecab60f47fbf481601c5dc6c12093d78cda
Fixes: 122371174
Fixes: 122035663
2019-01-09 15:37:30 +00:00
Ahan Wu
723a80e4fd Enable AOD image wallpaper and apply aod mask view.
1. Enables image wallpaper in AOD.
2. Enables a mask with 70% black scrim and vignette effects.
3. Add feature flag in developer options which is default disabled.

Bug: 111861907
Bug: 118470430
Test: Manually test the flow
Test: runtest systemui
Test: atest ImageWallpaperTransformerTest
Test: atest AodMaskViewTest

Change-Id: Iff2642d52264e88012f4759842a59aaf5bc45b38
2019-01-08 15:17:53 +08:00
Fabian Kozynski
0bdf01888f Merge "Sets views clickable according to their visibility" 2018-12-20 22:36:50 +00:00
Robert Snoeberger
6a0140ab95 Add container for big clock behind NSSL and KeyguardStatusView.
Bug: 120497585
Test: Added tests to KeyguardClockSwitchTest, pass locally.
Change-Id: Icc1199a67b9a4728e4d0f0b50ea98f5221de904d
2018-12-20 13:20:39 -05:00
Fabian Kozynski
1c36a5c708 Sets views clickable according to their visibility
Captures clicks on QuickStatusBarHeader so they don't go through and
collapse QS (broken in ag/4773943). This includes the black status bar
(therefore, it's independent of expansion).

Small targets in QSFooterImpl that were obscured were registering
clicks, as QSFooterImpl is VISIBLE even if its elements are not.

Test: Manual
Change-Id: Ie36096355c8a0e8417194ef0f123d5e7b95a7e95
Fixes: 120873445
Fixes: 120677657
2018-12-14 15:12:39 -05:00
Fabian Kozynski
d47ea36181 Set importantForAccessibility NO on QSDetail
Test: Manual (Talkback)
Change-Id: I0515290dc8073a131c5ee2921d9dd0d0a2c0bb61
Fixes: 120819343
2018-12-13 12:26:21 -05:00
Mady Mellor
dea7ecf04b Add a triangluar pointer to indicate the currently expanded bubble
Introduces BubbleExpandedViewContainer to wrap the currently expanded
view and render the triangle
   * This view should also handle rendering the header
   * ActivityView will live here too eventually maybe

Test: visual - enable bubbles, open a bubble, note the pointer
Bug: 111236845
Change-Id: I49569a0355eab29c9f1b6bb9abe1cd2d10b9b27b
2018-12-10 15:59:34 -08:00
Brad Stenning
8d1a51c4da Move car related code from SystemUI to CarSystemUI
Test: Emulator phone and Car
Change-Id: Ia64a23c1d3643899118e578b82c665c034af1c8e
2018-12-04 09:19:36 -08:00