Commit Graph

8465 Commits

Author SHA1 Message Date
Lucas Dupin
98897ce6c5 Revert "Render ImageWallpaper with OpenGL ES and apply visual effects."
This reverts commit 9a8e260af1.
Bug: 118658627

Reason for revert:
I've received a few bug reports indicating that images were getting stretched, animations were gone and sometimes nothing would be rendered.

I'll revert the CL to have something for stable for Beta 1. We can then work on the fixes after the Taiwan team is back from vacation.

Change-Id: Id09ba3d7f372af9153c056a12e676c0227d19939
2019-02-06 20:43:36 +00:00
Ahan Wu
9a8e260af1 Render ImageWallpaper with OpenGL ES and apply visual effects.
We have to render image wallpaper with OpenGL ES to apply some amazing
visual effects.

Bug: 122803209
Test: Manually.
Change-Id: I8d702a59211de58f912f2a18cb54b6e807c6e457
2019-01-30 19:00:36 +08: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
Nick Kralevich
56ed214f67 Merge "UsbDebuggingActivity.java: OK -> Allow"
am: f9718dbe17

Change-Id: I597e50b031334ff67641f9252d8081fbfca7f4b4
2019-01-22 15:19:11 -08: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
TreeHugger Robot
76a0f2676b Merge "Add dock info view overlay" 2019-01-19 03:39:55 +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
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
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
TreeHugger Robot
134ba22f72 Merge "Import translations. DO NOT MERGE" 2019-01-12 16:57:08 +00:00
Bill Yi
1a253cc860 Import translations. DO NOT MERGE
Change-Id: Ic4bb3f1f5812b8b37a1b0bd56cedff1e26eb49e4
Auto-generated-cl: translation import
2019-01-12 02:19:58 -08:00
TreeHugger Robot
5955be84ae Merge "Move battery % down in QS, fix a lot of things" 2019-01-12 02:00:25 +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
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
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
Kevin Chyn
1bafe67c78 Merge changes from topic "face-small"
* changes:
  2/n: Add BiometricPrompt implicit UI
  1/n: Add BiometricPrompt#setRequireConfirmation(bool) API
2019-01-10 22:50:08 +00:00
Fabian Kozynski
959d407aa0 Merge "Sets clickability of QuickStatusBarHeader" 2019-01-10 19:58:30 +00:00
Kevin Chyn
e191271230 2/n: Add BiometricPrompt implicit UI
In small mode, tapping the gray are is ignored. Combined
StatusBar#showBiometricTryAgain into onBiometricAuthenticated(bool)

We now create a new BiometricDialogView object for each BiometricPrompt
authenticate call. This makes the view's lifecycle much easier to manage.

Bug: 111461540

Test: Small -> Big when error or rejected
Test: Small -> Authenticated looks good
Test: Try again button is shown when rejected
Test: Icon spacing looks good after animation
Test: Big/small state persists across configuration change

Change-Id: Id0157a7506cea9b0e7de079c43f8bd5ba3cbd8c5
2019-01-10 11:11:27 -08: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
Milo Sredkov
41dc4ba3c6 Make the tap-to-edit behaviour configurable
Add a new key-value pair to smart_replies_in_notifications_flags that
controls the default tap-to-edit behaviour.

Bug: 111437455
Test: atest SmartReplyConstantsTest
Test: Try "adb shell settings put global smart_replies_in_notifications_flags edit_choices_before_sending=true" and observe
Change-Id: Ida90b98c28f4183697e84a6722768d41c72dd9cf
2019-01-10 10:44:26 +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
TreeHugger Robot
ef65858221 Merge "Remove rounded_corner_radius from SystemUI dimens" 2019-01-04 00:52:50 +00:00
Kevin Chyn
2e425c6fb7 Merge changes Ibff5b56f,I24f48aef
* changes:
  Add null checks in BiometricService
  Update BiometricPrompt icons and logic
2019-01-04 00:32:45 +00:00
Beverly
4d1113d801 Remove rounded_corner_radius from SystemUI dimens
It only pointed to the framework attribute

Test: atest ScreenDecorationsTest
Change-Id: Ic60b9d760a552bd0c1ae363188b8f95f721cfebe
Fixes: 120600397
2019-01-03 17:00:23 -05:00
Kevin Chyn
6bb2077fe2 Update BiometricPrompt icons and logic
Bug: 111461540
Fixes: 120157910

Test: Icons looks good
Test: Taps in gray area after authenticated/confirmed don't send errors
Test: Negative button isn't shown after state == AUTHENTICATED

Change-Id: I24f48aefbabb53ffbb1864679c50afb110efb71b
2019-01-03 11:41:26 -08:00
Amin Shaikh
4f06c93ed5 Delete unused SystemUI icons.
List taken from evanlaird's unusedfiles.txt.

Bug: 120856800
Test: mp sysuig

Change-Id: I4548fbeefe1a009fe61b12a4b5a61f6f748edd63
2019-01-02 21:00:40 +00:00
Lucas Dupin
55b655c881 Delete hollow pill flag
Bug: 111405682
Test: compile, enter AOD, unlock
Change-Id: Iff2054420844099fdbb879ecef9af6ee218383b9
2018-12-26 19:49:43 +00:00
Bill Yi
c025fc453d Import translations. DO NOT MERGE
Change-Id: I723e9e0995f6e32e45287961079ef65156e05156
Auto-generated-cl: translation import
2018-12-25 07:32:30 -08:00
Lucas Dupin
6a03a9ff0a Song name in KeyguardSliceProvider
This CL also includes synchronization bugfixes, since
SliceProvider#onBindSlice can be called from any thread.

Test: atest KeyguardSliceProviderTest
Test: manual
Bug: 111405682
Change-Id: Ief19625cba96b0c17f7444b2b2acc8f27c24597e
2018-12-21 18:10:45 +00:00
TreeHugger Robot
a1c142a87d Merge "Filters apps with uid 1000 as Device Services" 2018-12-21 13:58:31 +00:00