Commit Graph

2709 Commits

Author SHA1 Message Date
TreeHugger Robot
bad6832623 Merge "Add char limits to block helper button labels" 2019-02-15 06:38:31 +00:00
Ned Burns
7553215949 Add char limits to block helper button labels
With text size turned up, things weren't fitting.

Test: none
Bug: 123643210
Change-Id: I9c064e1e40b0a1f2d021ac5edda1e483bbfe1400
2019-02-14 18:00:39 -05:00
Fabian Kozynski
d008b76c4f Merge "Changes char limit for Privacy Settings string" 2019-02-13 20:20:45 +00:00
Fabian Kozynski
b3aee9ceff Changes char limit for Privacy Settings string
Test: manual, use large font and size
Change-Id: Ida7d7aa5ed934dcbcbc2b033a8437faba6b9d763
Fixes: 124094783
2019-02-13 11:22:44 -05:00
Beverly
7d7f699f4a Update keyguard charging text to indicate wireless
- Keyguard charging text indicates the device is wirelessly charging

Test: manual
Change-Id: I9cce8ecaf07f8870164d9ef8a569fcf30db69d85
Fixes: 124084552
2019-02-11 15:19:51 -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
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
Beth Thibodeau
db4223b808 Merge "Adding seekbar to media notifications" 2019-02-05 17:32:28 +00:00
TreeHugger Robot
c5f8397f0f Merge "Implement screen edge swipe for prototype" 2019-02-04 22:44:22 +00:00
Beth Thibodeau
cb395358c5 Adding seekbar to media notifications
Test: manually tested, screenshots at https://drive.google.com/open?id=1rbiNM_2PG_Kyd4MWnDFUdQy-K3dAVKz3
Bug: 123698590

Change-Id: Ieb7bc6b379f78d1611f7a97615a13a3c0a993f9e
2019-02-04 15:42:02 -05:00
Matthew Ng
b831fb4fd1 Implement screen edge swipe for prototype
Removed nav bar edge swipes and replaced for screen edge swipe. The two
new gestures always stay left and right of the screen except for
landscape where only the side opposite of the navigation bar will exist.
The gestures will only activate past a second slop or if user executes
gesture really quickly (less than a tap timeout 100ms).

Bug: 112934365
Test: atest QuickStepControllerTest

Change-Id: I8ae98bd638943d9f76e455bc000a601f96e68d2c
2019-02-01 16:47:25 -08:00
Lucas Dupin
e7ee1542ac Disable force-dark
It might invert the status bar and lock screen.

Test: visual
Change-Id: Ifbf68d7dbacb7e97ad441b90be182081619e8f18
Fixes: 123752554
2019-02-01 09:17:16 -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
Fabian Kozynski
d419c75c20 Merge "Fixes in OngoingPrivacyDialog" 2019-01-31 22:22:45 +00:00
Fabian Kozynski
eac70d8e8e Fixes in OngoingPrivacyDialog
Changes intent and text on secondary button

Bug: 123415277
Test: manual
Change-Id: I9c55b2a36d9c35cb98c5abefaeb9f075f1f181a7
2019-01-31 15:04:56 -05: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
Gustav Sennton
4bf5ff5859 Add experiment flag for maximum number of smart actions per notification
We here add an experiment flag to limit the number of smart actions
shown per notification (including turning all small actions off) from
the System UI.

Bug: 122506860
Test: atest SystemUITests
Test: call "adb shell settings put global
    smart_replies_in_notifications_flags enabled=true,max_num_actions=X" for
    different values of X and ensure the behaviour is correct.
Change-Id: I2759f4bc297386d20f3a6d1cb2975165e5c87c38
2019-01-29 16:31:15 +00:00
Gustav Sennton
d6a69968b3 Merge "Update smart reply/action sizes to follow mocks." 2019-01-28 17:56:52 +00:00
Fabian Kozynski
0d03da3723 Added tap behavior to rows in OngoingPrivacyDialog
The rows now direct to Permission Hub information for that app.

Test: manual
Test: previous Unit tests passing
Change-Id: I09e1205ee2340f5095c9c59414ddd9db440915b7
Fixes: 123415277
2019-01-28 10:48:26 -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
Lucas Dupin
e1bb998611 Invert custom views in dark mode
Invert custom view colors (in Y'UV space) if its background isn't dark,
we're in dark mode, and app doesn't target Q.

Change-Id: I74f557315c5e7e91ee7ec01d1535dac40f921524
Fixes: 112767229
Test: send custom notification from pre Q app with black background
Test: send custom notification from pre Q app with white background
Test: send custom notification from pre Q app with green background
Test: send custom notification from Q app with white background
2019-01-24 18:30:26 -08: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
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
Gustav Sennton
3c5fcca4c3 Update smart reply/action sizes to follow mocks.
The smart suggestion mocks show buttons with rounded sides - with this
CL we update the button dimensions to make their sides rounded.
This CL also changes a couple other button dimensions to follow the
mocks.

Screenshots:
One-line buttons before this CL:
https://screenshot.googleplex.com/yzMXZ3Djrmy.png
One-line buttons after this CL:
https://screenshot.googleplex.com/3rBDmTXzkch.png

Two-line buttons after this CL:
https://screenshot.googleplex.com/s1HfEsyTFFU.png
Two-line buttons after this CL:
https://screenshot.googleplex.com/Z2bCLgXCJJu.png

Bug: 121186803
Test: build Android and check how smart suggestions look.

Change-Id: Idac328c4e5e108e4af99e1de16e4db2dcb404bd2
2019-01-24 13:57:54 +00:00
Badhri Jagan Sridharan
7e60f8efe0 Merge changes from topic "117330206"
* changes:
  UsbContaminant dialog
  Add test commands to spoof presence of contaminants
  Contaminant detection notification
  Support USB V1.2 HAL
2019-01-24 02:03:20 +00:00
Badhri Jagan Sridharan
392b747d4b UsbContaminant dialog
Bug: 119642987
Bug: 117330206
Bug: 77606903

Test: Ran the following sequence:
1. Add simulated port: dumpsys usb add-port "matrix" ufp
2. Set contaminant present to true:
   dumpsys usb set-contaminant-status "matrix" true
   Contaminant present notifcation shows up and dialog pops up upon
   clicking the notification.
3. Set contaminant present to false:
   dumpsys usb set-contaminant-status "matrix" false
   Contaminant present notification is dismissed and the safe to use
   notification shows up.

Change-Id: I33d22caafbedb2a21a0f61f663ebddf5c9e3f84b
2019-01-23 10:43:15 -08:00
Fabian Kozynski
704fdc0609 Merge "Increase char limit for translation" 2019-01-23 18:42:57 +00:00
Nick Kralevich
2280c5d8ae Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17 am: 56ed214f67
am: 889ff4966b

Change-Id: I54ce67321abe0d058920c96298d97e6cc2834b09
2019-01-22 15:38:34 -08:00
Nick Kralevich
889ff4966b Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17
am: 56ed214f67

Change-Id: Ieec3c59499c3a3770d92a52866aa324df1ce0473
2019-01-22 15:28:39 -08:00
Fabian Kozynski
9399b491b9 Increase char limit for translation
Test: None
Bug: 122929700
Change-Id: I0febe4a74087db71e87c4f6fcbcefddb4190857a
2019-01-22 12:11:41 -05:00
Gustav Sennton
a31f6aede1 Add exp flag for min number of sys gen smart replies in notifications
For system (assistant) generated smart replies we want to ensure the
replies don't seem biased (see example [1]). Therefore we here add an
experiment flag that determines the minimum number of replies N to show
in a notification. If we can't fit N replies into the notification we
remove all replies from that notification (i.e. we show zero replies).

[1] Example of biased replies:
Message: "Hi, how are you?"
Replies: "Good", "Great!", "Bad"
using only one reply here ("Good") might be seen as biased.

Bug: 120779592
Test: atest SystemUITests
Test: call "adb shell settings put global
smart_replies_in_notifications_flags enabled=true,min_num_replies=X" for
different values of X and ensure the behaviour is correct.
Change-Id: I898850f7895d0fd43ec6788095162f3138cd62cb
2019-01-21 15:03:26 +00:00
Lucas Dupin
00be88f1fd New pulsing notification layout
Test: wake up with power
Test: look at shelf on lock screen
Test: lock device w/ notifications from home screen
Test: receive notification on AOD
Test: atest KeyguardClockPositionAlgorithmTest
Test: atest NotificationRoundnessManagerTest
Test: atest ScrimControllerTest
Test: atest NotificationContentViewTest
Bug: 111405682
Change-Id: I9b4f2febd56a62256124567bffebc9f5f8255847
2019-01-18 13:57:04 -08:00
Michael Groover
152c20259d Merge "Add Sensors Off tile to default list of QS Tiles" 2019-01-17 17:29:59 +00:00
Aaron Heuckroth
184af56de9 Merge "Extract GlobalActionsLayout to an abstract class." 2019-01-17 15:31:38 +00: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
Michael Groover
6c58efb256 Add Sensors Off tile to default list of QS Tiles
Bug: 110842805
Test: Manually verify tile is in default QS page
Change-Id: I713c27b74ffe60f2bc2221c466ce98e671d845b7
2019-01-15 18:07:58 -08: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
cf136dd1ff Merge "Add experiment flag for smart suggestions in heads-up notifications." 2019-01-14 11:42:49 +00:00
Nick Kralevich
f9d2a85323 UsbDebuggingActivity.java: OK -> Allow
Per UI review, change the label of the ADB allow button.

Test: Manual
Bug: 111852244
Change-Id: If6663c742aa1f3fc9c8025fdd9f17c69400ae486
2019-01-11 14:31:09 -08: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
Gustav Sennton
3f3eaff7c0 Add experiment flag for smart suggestions in heads-up notifications.
With this CL we add a new key-value pair to
smart_replies_in_notifications_flags to control whether smart
suggestions should be turned on for heads-up notifications. By default
the suggestions are turned ON.

Bug: 122351821
Test: atest SmartReplyConstantsTest
Test: Run "adb shell settings put global
smart_replies_in_notifications_flags show_in_heads_up=false" and ensure
heads-up notifications do not contain smart suggestions.
Change-Id: I84292c10a4545112b0e993af33bb01a8cc18ce23
2019-01-11 12:20:41 +00: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
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