Commit Graph

8504 Commits

Author SHA1 Message Date
Bill Yi
162275dbf0 Import translations. DO NOT MERGE
Change-Id: Ibcfb75e86fea0c2036f63c59ea3f95b24b6e40d5
Auto-generated-cl: translation import
2019-02-08 15:00:23 -08:00
TreeHugger Robot
a42845b025 Merge "Revert "Render ImageWallpaper with OpenGL ES and apply visual effects."" 2019-02-07 02:02:34 +00:00
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
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
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
Bill Yi
469fa1ffea Import translations. DO NOT MERGE
Change-Id: I8634898190413904bb0e5d5aa93b0233f0a68c6d
Auto-generated-cl: translation import
2019-02-02 14:19:25 -08: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
Selim Cinek
1f4459783c Merge "Render ImageWallpaper with OpenGL ES and apply visual effects." 2019-01-30 20:56:12 +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
TreeHugger Robot
dbdd6412e6 Merge "Import translations. DO NOT MERGE" 2019-01-30 04:45:39 +00:00
Bill Yi
934659d0b9 Import translations. DO NOT MERGE
Change-Id: Ia6420debcbae2bc9b1842ee32e301efdc629ca5d
Auto-generated-cl: translation import
2019-01-29 16:05:01 -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
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
Amin Shaikh
d20df8ea81 Remove unused systemui resources.
Bug: 122263617
Test: mp sysuig
Change-Id: If4681826ebe87ab193f96d90720b174a32efadca
2019-01-29 09:32:10 -05:00
TreeHugger Robot
eacd0d7ff6 Merge "Move SettingsLib icons to android." 2019-01-28 22:49:36 +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
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
Lucas Dupin
47904eeaad Merge "Invert custom views in dark mode" 2019-01-25 04:00:05 +00:00
TreeHugger Robot
a93cbcb6ae Merge "QSFooterImpl shows multiple carriers" 2019-01-25 02:30:51 +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
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
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
Nick Kralevich
56ed214f67 Merge "UsbDebuggingActivity.java: OK -> Allow"
am: f9718dbe17

Change-Id: I597e50b031334ff67641f9252d8081fbfca7f4b4
2019-01-22 15:19:11 -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
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