Commit Graph

18209 Commits

Author SHA1 Message Date
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
Matthew Ng
62c7846bf8 Secondary split screen app will be next to the navigation bar (1/2)
Refactored docked position code into PhoneWindowManager to determine
which side the docked app should go based on the position of the nav bar
in landscape (as portrait will only have top). Fixed the split screen
entrance animation for quick step's overview.

Change-Id: I30f1be9d791c23f4cd197f17487609964f78fac0
Fixes: 73250406
Test: play around with splitscreen and minimized mode
Test: atest com.android.server.policy.PhoneWindowManagerTest
2018-04-30 16:25:15 -07:00
e.min
30d3651f86 Fix bug that heads up notification appear even when disable_expand is set
Fixes: 78880433
Test: execute app which setting a disable_expand flag to statusbar.
Test: after that, get a headsup notification.
Test: then, headsup appear and it would be presented as status bar height
Test: runtest systemui

Change-Id: I97cc77ad197ca5bc74ab03cc86f02083608549ba
2018-04-30 14:57:11 -07:00
Phil Weaver
326ab68a65 Merge "Make system dialogs' a11y events like Activity's" into pi-dev 2018-04-30 18:12:37 +00:00
android-build-team Robot
74f5aa0237 Merge "Update clock format when locale list changes" into pi-dev 2018-04-30 18:12:16 +00:00
Selim Cinek
39bd79258d Merge "Fix showing a cut off notification when QS is expanded" into pi-dev 2018-04-30 15:05:20 +00:00
android-build-team Robot
b4e0b6413b Merge "Keyguard: Fix threading issues in KeyguardUpdateMonitor" into pi-dev 2018-04-30 11:29:56 +00:00
shawnlin
8e4e92c846 Fix showing a cut off notification when QS is expanded
Collapse Notification shade to shelf size when QS is expanded

Test: runtest systemui
Test: go/sysui-stackscroll-test
Change-Id: I5fe0f4d615488f528d17388174915c0a0f5a2917
Fixes: 62202313
2018-04-30 02:53:52 +00:00
Selim Cinek
216eea7470 Merge "FalsingManager: Only use for touchscreen input" into pi-dev 2018-04-28 16:24:48 +00:00
Lucas Dupin
08c013e2f0 Update clock format when locale list changes
Isolated clock refresh logic into refreshTime() and refreshFormat().

refreshFormat() makes 2 binder calls and should only called when
necessary: switching users, updating locale list or initialization.

Test: manual
Change-Id: Ia8a3a7655479d44b02c636c3c84ce8cc84e6f210
Fixes: 78535670
2018-04-28 03:56:13 +00:00
Lucas Dupin
3d7ccaf8b5 AOD clock and notification animation
Better transitions for pulsing notifications and other keyguard
messages.

Fixes: 77601057
Fixes: 67641732
Test: visual
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/util/wakelock/KeepAwakeAnimationListenerTest.java
Merged-In: I3e3ec844834bf7f5d9ab341f308e78a002248a87
Change-Id: I1e6d95c62dc7463e8084a64f04c6dee3173967a6
2018-04-27 18:07:49 -07:00
Phil Weaver
9054e09c7f Make system dialogs' a11y events like Activity's
The window_state_changed events are populated by
Activity with the Activity title. Replicating that
behavior for volume and power dialogs.

Bug: 78775496
Test: Used a test a11y service to observe events,
and started TalkBack, which was less consistent
about announcing them.

Change-Id: Icd4cd8317544c127e44e403162512e2385ff4176
2018-04-27 16:28:50 -07:00
android-build-team Robot
8785209fd7 Merge "Support arrow down animation" into pi-dev 2018-04-27 20:18:36 +00:00
Lucas Dupin
72d85d2a4c Merge "Hide low-power mode black frame" into pi-dev 2018-04-27 15:37:11 +00:00
Adrian Roos
30a2ae6209 Keyguard: Fix threading issues in KeyguardUpdateMonitor
Fixes a bug where KeyguardViewMediator called into KeyguardUpdateMonitor
on the wrong thread. Also adds assertions to make sure we only touch
mCallbacks on the right thread.

Change-Id: I9524b6c182cb70134fbc9a28df8148043fec8c1e
Fixes: 78128789
Test: Device boots successfully.
2018-04-27 15:00:56 +02:00
TreeHugger Robot
1186fb76ba Merge "Fix bluetooth state updated in systemui." into pi-dev 2018-04-27 03:15:33 +00:00
Lin Guo
a65cf94800 Support arrow down animation
1. No need to use a FrameLayout for PagedListView.
2. Support arrow drop down animation.

BUG: 78474304,73134851
Test: manual

Change-Id: Iec4e046f1abca40d76bd76ab3d5dc2a02e4dfcc2
2018-04-27 02:14:11 +00:00
TreeHugger Robot
abdbc64c5a Merge "Fixed a leak of preDrawlisteners when an icon was animating when detached" into pi-dev 2018-04-27 01:16:39 +00:00
TreeHugger Robot
87d71db19a Merge "Shared touch and drag slops for quick step changes with density (1/3)" into pi-dev 2018-04-27 00:06:01 +00:00
Lucas Dupin
cbe0596c4d Hide low-power mode black frame
Hide the wallpaper earlier and wait a little longer to
switch to low power mode.

This way the flickering area is less noticeable, since
less pixels will be visible, and users are less likely
to be looking at the screen.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/DozeParametersTest.java
Change-Id: I24f2d64f580d7fdc63f6c768446d06140c29cfa5
Fixes: 78302022
2018-04-26 16:44:05 -07:00
Phil Weaver
24fd435070 Merge "Handle accessibility button state on user switch" into pi-dev 2018-04-26 23:26:51 +00:00
TreeHugger Robot
29d9832db7 Merge "Use view order when iterating icons in a slot" into pi-dev 2018-04-26 22:37:46 +00:00
TreeHugger Robot
bd8fedee75 Merge "Adjust vol dnd icon layout width" into pi-dev 2018-04-26 20:49:48 +00:00
Phil Weaver
a858c5f60f Handle accessibility button state on user switch
Bug: 78196203
Test: Enable Magnification with button, switch to guest,
see accessibility button disappear

Change-Id: I4feda07243a6c17a5985f29dbea9d4ad0adcb0cf
2018-04-26 13:27:30 -07:00
Evan Laird
eae911d8f6 Use view order when iterating icons in a slot
Before, slots handed out holders in the order they were added, meaning
you may try to insert the N+1th icon before the Nth

Change-Id: If993cf7233989ff22633f9b026aa3627bbc72d6b
Fixes: 69527817
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/StatusBarIconListTest.java
2018-04-26 16:07:59 -04:00
Jovana Knezevic
8491304cf6 Merge "Fixes null-ref when trying to start Guest session." into pi-dev 2018-04-26 19:40:02 +00:00
Matthew Ng
f29ad756f6 Shared touch and drag slops for quick step changes with density (1/3)
All shared touch and drag slops are not static anymore but are computed
for the current system density if the user were to switch density of
device.

Test: change density and use quick scrub
Fixes: 78244075
Change-Id: If593568404c00bc1fbccd8a31379bb5fd03beefd
2018-04-26 12:17:19 -07:00
Amin Shaikh
c548340ba9 Fix bluetooth state updated in systemui.
- Update both bluetooth and bluetooth connection state when bluetooth
state changes. This ensures that connection state is not stale when
bluetooth is turning off when establishing a connection.
- Display "Connecting..." when bluetooth is actively trying to establish
a connection instead of "Turning on..."

Change-Id: I16463f3f57c8adb6d9401fe478acaad5f987fa76
Fixes: 77528964
Test: runtest systemui
2018-04-26 14:43:28 -04:00
Beverly
0099195b36 Adjust vol dnd icon layout width
When only one volume row is visible, adjust the
width of the volume dnd icon FrameLayout so the
icon floats on the top right.  Icon was previously
inset by padding introcued by volume_dialog_rows minWidth
attribute.

Test: visual inspection (with 1+ streams)
Fixes: 78275139
Change-Id: I8f34ba21545823ac8431396696adb4e9347b40db
2018-04-26 13:42:02 -04:00
Mike Digman
412a362c74 Merge "Only ripple rotate btn if attached to window" into pi-dev 2018-04-26 16:07:18 +00:00
TreeHugger Robot
032ab15256 Merge "QQS visual fixes." into pi-dev 2018-04-26 14:16:29 +00:00
Adrian Roos
004437e5d0 FalsingManager: Only use for touchscreen input
Change-Id: I267974dd1f05fc17177aa189390ccde63a6b8fa9
Fixes: 29121607
Test: Try unlocking with a mouse, verify it works
2018-04-26 11:22:46 +00:00
Mike Digman
f4c989962c Only ripple rotate btn if attached to window
Change-Id: I164ba4ed9166941fe5b8fb96539d4b8e70beb6f7
Fixes: 78532076
Fixes: 78568790
Test: boot test without crash
2018-04-26 00:05:14 +00:00
jovanak
6639c4dfa1 Fixes null-ref when trying to start Guest session.
CarUserSwitchingDialog threw null-ref because Guest didn't have
a default avatar.

1. Adds null guard in case default avatar is not set.
2. Populates default Guest avatar correctly.

Fixes:77546931
Fixes:78588087
Test: Manual, observing the default icon when starting a guest session.
       Manual, observing the switching dialog icon without a default icon.

Change-Id: Iacbfcc65147fdbc5515c0d96eb613fb17543f6b3
2018-04-25 16:10:59 -07:00
Amin Shaikh
50d2d1e77c QQS visual fixes.
- Allow QQS header status icon / date view header to expand with larger
font sizes.
- Ensure alarm icon in QQS header does not show without the
corresponding alarm text.
- Fix QQS status bar, icons and QS tile margins.

Change-Id: Icf11fc5c581cb6d3254f6223ba4bcac2879c7f16
Fixes: 78571967
Fixes: 78536526
Fixes: 77123524
Test: visual
2018-04-25 16:34:38 -04:00
TreeHugger Robot
336076b2a2 Merge "Rounded corners can be different on top/bottom" into pi-dev 2018-04-25 19:37:37 +00:00
TreeHugger Robot
c8836d82b1 Merge "Revert "Reset SIM state if the subscription is no longer active."" into pi-dev 2018-04-25 18:55:03 +00:00
TreeHugger Robot
b1a3a5f582 Merge "Always copy SignalIconState when keeping a reference" into pi-dev 2018-04-25 18:43:03 +00:00
Beverly
a5f7a30bd0 Rounded corners can be different on top/bottom
Test: manual, visual inspection
Bug: 75949920
Change-Id: I1e9a9df0767aa5235e67b752a19c8e4b32701ed1
2018-04-25 13:38:37 -04:00
Richard Chou
e0381b893b Revert "Reset SIM state if the subscription is no longer active."
This reverts commit b1b24e71f5.

Reason for revert: This commit will cause side effects with Project Fi. It'd be too risky to solve this issue at the current stage of Android P. Revert first.

Bug: 77579824
Bug: 77702165
Change-Id: I07035a2854427021ac0bfaa9c696daabefe6fd64
2018-04-25 17:23:48 +00:00
Bingyu Zhang
bfe6dcf3fc Accessibility change when Trusted Face icon shows.
When unlocking device, if Trusted Face is on, "Scanning face" should be
automatically announced.
Also change the contentDescription for face icon, then when clicking the face icon,
instead of "unlock button", "Scanning face" will be talked back.

Test: manual
Bug:74328543
Change-Id: I94f9faa45bf5f6f7ceaf7df5acab0a970f651395
2018-04-25 10:20:36 -07:00
TreeHugger Robot
d60e8836f3 Merge "Revert "Reset SIM state if the subscription/slot is no longer active."" into pi-dev 2018-04-25 17:12:20 +00:00
Makoto Onuki
6f79bd0019 Merge "DO NOT MERGE Make "Want to start battery saver?" dialog better." into pi-dev 2018-04-25 16:58:20 +00:00
TreeHugger Robot
1848f1e384 Merge "Ellipsize long QS labels." into pi-dev 2018-04-25 16:56:37 +00:00