Commit Graph

18253 Commits

Author SHA1 Message Date
Matthew Ng
1e14e96167 Allow gestures to executed started from deadzone on nav bar
Set slippery to true when gesture starts from deadzone and when finished
set slippery to its correct state.

Change-Id: I035d12f9639ce4af00db9e0d25b514f074b5198c
Fixes: 78886558
Test: swipe up from deadzone on nav bar (just above home button)
2018-05-04 11:25:53 -07:00
Julia Reynolds
afbc128d57 Merge "Hide some previously exempt notifications" into pi-dev 2018-05-03 21:54:02 +00:00
android-build-team Robot
c0968edde2 Merge "Added more logging around failures in overview connecting to launcher" into pi-dev 2018-05-03 21:45:47 +00:00
Matthew Ng
e3c5af4807 Added more logging around failures in overview connecting to launcher
Added onBindingDied, onNullBinding and logging if the user has not been
setup or if launcher component is disabled. Also added a defered
callback to reconnect after a couple of seconds even if binder says its
bound but has the possiblity of the service not connected.

Change-Id: I59919a66dea3bc61c014759ba03f1949abc055bd
Fixes: 78681054
Test: manual
2018-05-03 13:38:12 -07:00
android-build-team Robot
52edc7c2ad Merge "Enforce that the user switcher icons are circular" into pi-dev 2018-05-03 20:19:39 +00:00
Julia Reynolds
25926af537 Hide some previously exempt notifications
Some notifications are exempt from DND visual suppression,
like foreground services. If a notification is tagged as a
category that's explicitly mentioned in DND settings (like calls),
exempt that notification from DND exemption, or, hide it.

Test: atest SystemUITests
Change-Id: I661e6d99d09adcb381aef04cccdf93c9810d19b2
Fixes: 78908945
2018-05-03 19:26:18 +00:00
android-build-team Robot
6567c65fa1 Merge "Correct night light qs tile time formatting." into pi-dev 2018-05-03 17:39:43 +00:00
android-build-team Robot
979388c224 Merge "Fixes landscape quickscrub track position of rtl layout" into pi-dev 2018-05-03 17:32:16 +00:00
android-build-team Robot
2b9d205fbb Merge "Use current user for lockdown setting" into pi-dev 2018-05-03 16:27:58 +00:00
android-build-team Robot
60ea45eb67 Merge "Fix QS edit accessibility." into pi-dev 2018-05-03 16:17:36 +00:00
android-build-team Robot
31919fb232 Merge "Dismiss systemui QS dialogs on screen off." into pi-dev 2018-05-03 15:23:49 +00:00
android-build-team Robot
aeaefe91bc Merge "Revert "Update 'dnd is hiding notifications' view"" into pi-dev 2018-05-03 13:46:56 +00:00
Julia Reynolds
34f14968b6 Revert "Update 'dnd is hiding notifications' view"
This reverts commit 85bad9b5bb.

Change-Id: Ic68475a8df0ae377c4fc357017b7d2a6b5311433
Fixes: 79155510
Fixes: 79156480
2018-05-03 12:40:20 +00:00
android-build-team Robot
5ab7aa816e Merge "Turn on QuickStep onboarding" into pi-dev 2018-05-03 10:08:23 +00:00
Tracy Zhou
63b6275a2b Merge "Update QuickScrub tip according to the latest spec." into pi-dev 2018-05-03 01:01:58 +00:00
Matthew Ng
8df38830ae Fixes landscape quickscrub track position of rtl layout
Since paddingStart is the right side for rtl, it would push the track
away from the home button. Using padding left is more accurate
regardless of rtl.

Change-Id: I05077f3a0430893262d9f99743bc37656f455707
Fixes: 79111948
Test: landscape, with cutout, with rtl and do quickscrub
2018-05-02 17:27:38 -07:00
android-build-team Robot
56f39770ea Merge "Quickscrub will hide the most right buttons on nav bar" into pi-dev 2018-05-02 23:40:06 +00:00
Tracy Zhou
75418ccfaa Update QuickScrub tip according to the latest spec.
- Treat inreaction to the tip as 1st dismissal.
- Show tip after 1st dismissal based on Overview opened count instead of
app launch count.

Bug: 70180942
Test: manual test
Change-Id: I4410c78ac547ad49bd135dede71e79aaca2e1b10
2018-05-02 14:32:43 -07:00
Matthew Ng
6607c3dc25 Quickscrub will hide the most right buttons on nav bar
When scrub occurs, it will fade out the container of the navigation bar
menu buttons and animate them back when scrub ends.

Fixes: 77338303
Test: enable magnify in accessibility settings and drag home
Change-Id: Ic5df73b980c2cb20a135b20a9f84002f107db1c0
2018-05-02 14:18:40 -07:00
Selim Cinek
33540449fc Merge "Fix incorrect icon alignment on shelf" into pi-dev 2018-05-02 20:36:24 +00:00
Amin Shaikh
9ab788ce72 Correct night light qs tile time formatting.
Change-Id: Ia290634c52fb7c02aa5080c8b1bfda1fb37c9279
Fixes: 79157944
Test: visual
2018-05-02 16:22:38 -04:00
Lucas Dupin
9115d371c3 Merge "Fix NPE when casting" into pi-dev 2018-05-02 20:20:51 +00:00
Amin Shaikh
6be5368b67 Dismiss systemui QS dialogs on screen off.
CLOSE_SYSTEM_DIALOGS may not be sent if the user turns off and on the
screen quickly, resulting in systemui dialogs being displayed over the
lock screen. Dismissing these system dialogs when the SCREEN_OFF
broadcast is sent prevents this bug.

Change-Id: I097d0997d1538002b23bdd8f7aa32ecf4d32e0d4
Fixes: 78915648
Test: manual
2018-05-02 15:59:44 -04:00
android-build-team Robot
057698e511 Merge "Use Wi-Fi content description in StatusBarWifiView" into pi-dev 2018-05-02 19:22:15 +00:00
Amin Shaikh
9b65ea39ff Fix QS edit accessibility.
- Announce the correct QS tile positions when moving/adding tiles.
- Only insert a placeholder tile when adding tiles.
- Ensure all tiles are draggable, even if they are currently unavailable.
- Fix off by one error adding tiles into the last position.
- Remove tile remove a11y announcement as it is unnecessary.

Change-Id: Ia0bc1cb1559c2e46f9ddfe0f3ba0f50d5de56868
Fixes: 78608195
Fixes: 78611593
Fixes: 74253408
Test: manual
2018-05-02 15:11:36 -04:00
android-build-team Robot
ee18fb2112 Merge "Fix DemoMode icon spacing" into pi-dev 2018-05-02 18:30:13 +00:00
Lucas Dupin
0cf5e4a065 Fix NPE when casting
We didn't have any tests that guarantee that the keyguard casting flow
wouldn't be broken by updates on KeyguardStatusView.
Such test was created

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardPresentationTest.java
Change-Id: I44f66be770ea2263fbf183bc438d1cedaa6f589a
Fixes: 71696859
2018-05-02 11:22:05 -07:00
Evan Laird
2690a9d770 Use Wi-Fi content description in StatusBarWifiView
Test: turn on TalkBack, tap Wi-Fi
Change-Id: Ic8bea2c5643ff44dfb042fceba1e87e12462635f
Fixes: 78172399
2018-05-02 13:58:28 -04:00
Evan Laird
feec2ab2f0 Fix DemoMode icon spacing
- Use the same margin on the left of Wi-Fi (2.5dp)
- DemoMode uses the padding of the view it's replacing, and WRAP_CONTENT
for the width of its children
- Fix DemoMode etc dot color
- Don't constrain number of icons if DemoMode is replacing an
unconstrained container

Test: visual;
adb shell settings put global sysui_demo_allowed 1 && \
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 0900 && \
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 && \
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4 && \
adb shell am broadcast -a com.android.systemui.demo -e command status -e bluetooth disconnected && \
adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -e plugged false

Change-Id: I1d1389f9c6d6cb7d6078af5bbe4bc21e42771560
Fixes: 79094455
2018-05-02 12:47:26 -04:00
android-build-team Robot
12a1c46a67 Merge "Fix RTL TileLayout." into pi-dev 2018-05-02 14:42:49 +00:00
Daniel Sandler
a1c148fb1a Merge "SystemUI heap monitor & hprof dump tile." into pi-dev 2018-05-02 13:03:20 +00:00
Milo Sredkov
e433e9b5a2 Keep the notification shade open for smart replies
Currently when the user taps on a smart reply button from a locked
screen, we ask for a pattern/password and then close the notification
shade. This is inconsistent with the unlocked case and with how inline
replies are handled.

Set mLeaveOpenOnKeyguardHide to true when handling smart reply clicks.
Also simplify and rename the method in KeyguardDismissHandler to make
this new behaviour clearer.

Bug: 77841506
Test: Tap on a smart reply from the lockscreen, then unlock.
Change-Id: If1dab2a4b0d93a512c27e6d8a870289f64c7b63d
2018-05-02 10:39:56 +01:00
android-build-team Robot
a74dd692aa Merge "Request focus when pin is visible" into pi-dev 2018-05-02 07:28:33 +00:00
Felka Chang
c069ad6f21 Merge "Fix "Clear all" tap ripple is cut off" into pi-dev 2018-05-02 06:51:05 +00:00
Lucas Dupin
7065900289 Request focus when pin is visible
Change-Id: Idfa7f0ea7f989de95030ed9dbd0ac4b45abc8155
Fixes: 77963692
Fixes: 78187153
Fixes: 78235570
Fixes: 78887466
Test: atest tests/src/com/android/keyguard/KeyguardPinBasedInputViewTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: atest android.server.am.ActivityManagerDisplayLockedKeyguardTests#testDismissKeyguard_whileOccluded_secondaryDisplay
Test: atest -dt android.server.am.KeyguardLockedTests#testEnterPipOverKeyguard
Test: go/sysui-bouncer-tests
2018-05-01 23:01:08 -07:00
felkachang
79ca96d7fb Fix "Clear all" tap ripple is cut off
The view parent of "Clear all" button's view parent is FooterView.
FooterView has the paddingEnd that is 8dp. The "Clar all" button's
view parent is a Framelayout with android:layout_width="match_parent".
Because the layout parameter of Framelayout tells FooterView
"match_parent" and FooterView's super class is ExpandableView doesn't
consider the FooterView's paddings, the "Clear all" button right
boundary is cut off by FooterView.

To use paddingStart + paddingEnd instead of 0 padding in the onMeasure
phase. After considerating the padding of Expandableview-self padding,
the children of ExpandableView doesn't have the wrong drawing area.

The left boundary of "Manage notifications" should align with the left
bottom round corner end of the notification list. The first charactor
of "Manage notifications" should align the any of the first charactor
of the notification. The alignment is 16dp defined in
notification_content_margin_start.

The right boundary of "Clear all" should align with the right bottom
round corner end of the notification list. The total of padding that
counted from right boundary of notification list to the right text
boundary should be 16dp defined in notification_content_margin_end.

Bug: 77631994
Test: atest SystemUITests
Change-Id: I64a3489891bee993a1a2a0fd29e8d65823a36d63
2018-05-02 12:17:58 +08:00
shawnlin
4fbeac4381 Fix incorrect icon alignment on shelf
ExpandableNotificationRow set the scrollX of notification icon in shelf while the notification is
swiped, but didn't set it back when reset without animation(ex: screen
off device).

Reset the scrollX of icon in shelf.

Test: runtest systemui
Change-Id: I05a428a7502de1618a7929b71a832c9e945a6aff
Fixes: 77569193
2018-05-02 11:48:48 +08:00
android-build-team Robot
b9b0eaff9c Merge "Default keyguard scrim should be 45% transparent" into pi-dev 2018-05-02 02:40:06 +00:00
Lucas Dupin
932f3b9413 Default keyguard scrim should be 45% transparent
Wallpapers were barely visible on lock screen because value was set to
70%. The unlocked scrim (on the notification shade) was kept at 70% to
improve readability.

Also fixed a bug where scrim opacity wouldn't be overridden via overlay.

Bug: 63868547
Test: visual
Test: atest ScrimControllerTest
Change-Id: I17f277c917dc55604762420c0027b552993f1916
2018-05-01 15:43:06 -07:00
Chad Brubaker
02cd6cfdec Use current user for lockdown setting
Test: Manually verified lockdown works in secondary users
Change-Id: Id77d0680d8e387553ebebc1c6c770c51770afa2e
Fixes: 77476108
2018-05-01 14:59:33 -07:00
Dan Sandler
4d90d1ede7 SystemUI heap monitor & hprof dump tile.
Adding the tile to your active set will start a continuous memory tracker,
updating the tile every minute with the latest pss value. Tapping the tile
will pull a full heap dump, zip it, and share it via ACTION_SEND.

Additionally, @integer/watch_heap_limit can be set to the heap size (in KB)
at which ActivityManager will automatically generate a heap dump and notify
the user when it's ready.

Available only on IS_DEBUGGABLE builds. Supplies limited. Order now!

Bug: 76208386
Test: atest com.android.systemui.util.leak.GarbageMonitorTest
Test: runtest systemui
Change-Id: I0434dd7dc330784c750469b013e40b31ef92638d
2018-05-01 21:51:15 +00:00
Aarthi Balachander
e3110e4de0 Enforce that the user switcher icons are circular
Test: tested on Mojave
Bug: 78912796
Change-Id: I079af77658497e9b8bf7bd79974ef8ef70e87ba1
2018-05-01 14:44:11 -07:00
Amin Shaikh
a64bb52fb8 Fix RTL TileLayout.
Ensure QS tile columns are symmetrical for LTR and RTL layouts. Also
ensure that opening QS customizer does not shift tile positions.

Change-Id: I647e5af41ed505ed01420d8b735652bd80a1661e
Fixes: 79110384
Test: visual
2018-05-01 17:43:05 -04:00
Bingyu Zhang
3e169cac13 Merge "Accessibility change when Trusted Face icon shows." into pi-dev 2018-05-01 18:14:31 +00:00
android-build-team Robot
fd7d5779c3 Merge changes from topic "jr-onboard" into pi-dev
* changes:
  Update 'dnd is hiding notifications' view
  Update zen onboarding flow
  Change zen defaults for upgrade and new users
2018-05-01 17:26:26 +00:00
Rohan Shah
d53c5bb4f3 Merge "[Notif] Blocking helper basic metrics" into pi-dev 2018-05-01 15:30:05 +00:00
Julia Reynolds
85bad9b5bb Update 'dnd is hiding notifications' view
Add an icon and alawys show the view if DND is on and suppressing
notifications from the shade. 'Manage notifications',
'no notifications', and 'clear all'are hidden when this view is visible.

Bug: 78586809
Test: atest SystemUITests
Change-Id: I9d68fda8a3bc3213c20f9e57ca64d75eebdc1d94
2018-05-01 09:04:38 -04:00
android-build-team Robot
9f88bbc064 Merge "Secondary split screen app will be next to the navigation bar (1/2)" into pi-dev 2018-05-01 00:40:27 +00:00
Selim Cinek
a031ddd687 Merge "Fix bug that heads up notification appear even when disable_expand is set" into pi-dev 2018-04-30 23:54:45 +00:00
Rohan Shah
da5dcdd519 [Notif] Blocking helper basic metrics
Adding first pass of counters for basic actions taken with the blocking
helper. This includes:
- All notification dismissal events
- Shown event
- Dismissal via outside interaction
- Any button taps to dismiss
- Undo taps

Test: Via manual testing & updated tests (+added two new)
Bug: 74609669
Change-Id: I0adcfe03cfd10809ef7a2f13afbefcb420246a43
2018-04-30 16:53:21 -07:00