Commit Graph

1199 Commits

Author SHA1 Message Date
TreeHugger Robot
96b4b4bd4e Merge "Clock padding and motion adjustments" into pi-dev 2018-04-20 00:43:53 +00:00
TreeHugger Robot
8a87e9ddd8 Merge "Update wifi enabled state when connected." into pi-dev 2018-04-19 23:30:08 +00:00
TreeHugger Robot
7468d361e3 Merge "Update notification shade text on zen change" into pi-dev 2018-04-19 17:11:25 +00:00
Lucas Dupin
60661a6dd8 Clock padding and motion adjustments
Fixes: 73830624
Test: manual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/PropertyAnimatorTest.java
Change-Id: I9b7785cfbc610db9e4b920eef518ab24b97a6bbc
2018-04-20 01:08:21 +08:00
Amin Shaikh
eddaf3f7a0 Update wifi enabled state when connected.
Change-Id: Ib0be6b3ab8139781868781c370688d70cef22553
Fixes: 78242165
Test: runtest systemui
2018-04-19 11:20:21 -04:00
Beverly
badf6e4cd6 Update notification shade text on zen change
Change-Id: I6b75af1a94f7da95ac78fac122651924db7c1308
Fixes: 76143428
Test: NotificationStackScrollLayoutTest
2018-04-19 14:52:48 +00:00
Amin Shaikh
45fb7a75cf Update bluetooth QS tile secondary text.
Only show detailed status when connected to exactly one device.
Otherwise show "X devices".
Also, listen for bluetooth profile service callbacks to initialize the
bluetooth device state after systemui crashes.

TODO: Update string to "X devices connected" after P

Change-Id: I99a3484c3dfa7eb0d6d8836336ebb84cbdaadbe5
Fixes: 76102598
Fixes: 77498698
Test: manual
2018-04-19 09:46:50 -04:00
Dieter Hsu
afc909d3ba Merge "Add rank & count event to notification clicks and dismisses" into pi-dev 2018-04-18 13:05:43 +00:00
Dieter Hsu
d39f0d52dc Add rank & count event to notification clicks and dismisses
For click/action click/dismiss, passing rank(0-based) and
count at the time of the actions to events.

Bug: 70724602
Test: runtest systemui-notification
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/notification
Change-Id: I07c440f84ccb745f744eb4e317881b72d2b41683
2018-04-18 03:28:48 +00:00
Julia Reynolds
aa96cf3460 Exclude system notifications from visual suppression
But silence them by saying them cannot bypass DND.

Test: atest SystemUITests
Bug: 77656914
Change-Id: I044696cfdcef0e4a14be21173949612480722236
2018-04-17 15:27:35 +00:00
TreeHugger Robot
bae834c061 Merge "Have doze update the scrim controller rather than the scrim state." into pi-dev 2018-04-17 15:13:27 +00:00
Michael Wright
cae88753b0 Have doze update the scrim controller rather than the scrim state.
Right now, when Doze wants to update the front alpha in AOD, it updates
the scrim state's front alpha value. Unfortunately, this is only looked
at when transitioning into the state, but entirely ignored once we're in
it. With this, we instead tell the scrim controller which tells the
scrim state but also updates the current front scrim alpha if we're
currently in the AOD state.

Bug: 78124574
Bug: 70939994
Test: atest ScrimControllerTest\#transitionToAod_withFrontAlphaUpdates
Change-Id: I09b33208bd3e3fd6d3829b33776364aa7b61a4f6
2018-04-17 19:44:53 +08:00
Amin Shaikh
2f6c45c9e3 Dismiss low battery warning on toggling saver.
Change-Id: If6988a67ce0e97c2c9df93648169b9c9b85da7ce
Fixes: 66987022
Test: runtest systemui
2018-04-16 14:21:04 -04:00
TreeHugger Robot
606440f142 Merge "Bouncer visibility fixes" into pi-dev 2018-04-16 11:30:37 +00:00
Lucas Dupin
15a6b6c6c5 Bouncer visibility fixes
Test: go/sysui-bouncer-tests
Change-Id: Iaf6e0ded57eb3b737cfd074bbc750aa6977e36b2
Fixes: 77921840
2018-04-16 18:23:34 +08:00
TreeHugger Robot
52842feb14 Merge "Respect light nav bar flag set by IME on keyguard" into pi-dev 2018-04-15 02:55:53 +00:00
Yohei Yukawa
795f0105c6 Respect light nav bar flag set by IME on keyguard
Currently LightBarController takes care of both ScrimBehind alpha and
ScrimInFront text color when finally deciding whether light navigation
bar mode should be enabled or not.

When IME is shown on the keyguard, however, light navigation bar flag
explicitly set by the IME actually needs to be used because
ScrimController does not put anything over the IME layer in that
state.

This CL addresses the above corner case, by also forwarding ScrimState
from ScrimController to LightBarController so that LightBarController
can change the behavior when scrim UI is in bouncer mode.

Test: atest CtsInputMethodTestCases
Test: atest com.android.server.policy.PhoneWindowManagerTest
Test: atest SystemUITests:com.android.systemui.statusbar.phone.ScrimControllerTest
Test: Manually tested Manually tested with ThemedNavBarKeyboard sample
  1. make -j ThemedNavBarKeyboard
  2. adb install -r $OUT/system/app/ThemedNavBarKeyboard/ThemedNavBarKeyboard.apk
  3. adb shell ime enable com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  4. adb shell ime set com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  5. Open Dialer app
  6. Focus in the top edit field.
  7. Tap "EXTENDED LIGHT NAVIGARION BAR" mode
  8. Make sure that the navigation button color is optimized for light navigation bar
  9. Swipe down the notification shade.
 10. Make sure that the navigation button color is inverted.
Fixes: 72940586
Change-Id: I7a9001888f9b2d74c84c384b6302706da7a2b4b2
2018-04-13 14:55:30 -07:00
Rohan Shah
590e1b2aa5 [Notif] Allow locking importance on notification
Currently locking  only works on channel - this CL allows doing
so on the overarching notification too. Added locking field in
appropriate places in record and surfaced it to other bits via
the RankingHelper.

Test: Visually, reproduced organically (+ deleting /data/ files)
Fixes: 77775657
Change-Id: Ie46093921dd6c1ae3533ded7b87faaa475a631e4
2018-04-11 21:57:49 -04:00
Kenny Guy
23991105bd Add logging for smart replies in notifications.
Log the first time a notification with smart
replies is visible.
Log each click on a smart reply.

Test: atest SystemUITests
Bug: 72153458
Change-Id: I6dc498871000dbb9af978567db3d258b20978781
2018-04-11 10:09:03 +01:00
TreeHugger Robot
258c743697 Merge "Shelf alignment and animation fixes" into pi-dev 2018-04-11 02:01:27 +00:00
Lucas Dupin
b561eda050 Shelf alignment and animation fixes
- Translate shelf after collapsing notification panel
- Fix issue where icon y translation would be off in AOD

Change-Id: Ibae5e7cd4cb989514a96d5edfd761b0c0201de03
Fixes: 77540062
Fixes: 77541059
Test: visual
2018-04-10 16:01:42 -07:00
TreeHugger Robot
a4dab5d1ea Merge "[Notif] Show block message for notif with multiple channels" into pi-dev 2018-04-10 19:06:42 +00:00
TreeHugger Robot
7cf18d5ec4 Merge "Hiding clear all when replying now" into pi-dev 2018-04-10 18:33:29 +00:00
Selim Cinek
7c6fe5b71f Hiding clear all when replying now
Change-Id: Id08084776967f85101b07d3a56b5dffe80af6dbc
Fixes: 75984847
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
2018-04-10 10:20:45 -07:00
Rohan Shah
ca0447e3f6 [Notif] Show block message for notif with multiple channels
Showing blocking message on notifications with multiple channels. Also,
the blocking helper was never committing the saveImportance logic...
Updated so it does that again.

Moved binder calls over to bg (for committing block/minimize rules).

Change-Id: I5042cf51a4700958c3cedbf5619fd1cbcb944a03
Fixes: 77320402
Test: Visually, atest {ENR|NotifInfo}Test
2018-04-10 13:20:16 -04:00
TreeHugger Robot
0e675bd901 Merge "Exempt tests for hidden APIs." into pi-dev 2018-04-10 16:34:05 +00:00
Sanry Huang
816d46f7d0 Merge "Fix the wrong tint state of Nav buttons" into pi-dev 2018-04-10 13:39:04 +00:00
shawnlin
317db378f6 Fix the wrong tint state of Nav buttons
Update the aphla value of scrimBehind in setPanelExpansion to display
the correct tint state of Nav buttons.

Test: runtest systemui
Change-Id: Ia17bbe71106900b764ec2f5ac4729b9770eac4bc
Fixes: 74578143
2018-04-10 10:38:17 +08:00
TreeHugger Robot
13276e7ebd Merge "[Notif] Disable "Customize" for blocking helper" into pi-dev 2018-04-10 01:25:40 +00:00
Lucas Dupin
373356b9bd Remove focus highlight from scrims
Change-Id: Ib51d8b1c6964716ac120f3567a8919decc513fbe
Fixes: 77591096
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
2018-04-07 19:31:39 -07:00
TreeHugger Robot
ee7bc05a03 Merge "Do not animate scrim when ColorFade" into pi-dev 2018-04-06 23:18:27 +00:00
Nicolas Geoffray
b0284fb5de Exempt tests for hidden APIs.
Bug: 64382372
Bug: 74963051
Test: m
Change-Id: I5234dd6230f2bdd6ffccbf12b25a02d929d20161
2018-04-06 14:54:39 +01:00
Lucas Dupin
7362e18a7b Merge "Misc bouncer fixes" into pi-dev 2018-04-05 17:21:26 +00:00
Lucas Dupin
ea0116eac2 Do not animate scrim when ColorFade
AOD scrims should only animate when sysui will control the screen-off
transition.

Test: manual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Bug: 77539750
Change-Id: Iba79ea09c149068e75163fabddd3608254dd83f3
2018-04-05 10:16:44 -07:00
Milo Sredkov
b0f55e993e Require screen to be unlocked for smart replies
Currently tapping on a smart reply works even when the screen is
locked. To make it consistent with inline replies, require the screen
to be unlocked before sending the reply.

Bug: 76217177
Test: atest SmartReplyViewTest
Change-Id: I3af8a0411537503650fb9f83cd99f65900e700e0
2018-04-05 13:41:48 +01:00
Lucas Dupin
d2ce46d5a7 Misc bouncer fixes
- IME flickers after dismissing a call
- IME not being triggered after rebooting
- Bouncer being shown during shade expansion animation

Test: go/sysui-bouncer-tests
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Fixes: 74523176
Fixes: 75001274
Change-Id: Iae2aa1534c34a4191311b85e81e80cea89711bf4
2018-04-04 17:32:02 -07:00
TreeHugger Robot
71c632367a Merge "WM Tests: Use a separate WindowManager instance per test" into pi-dev 2018-04-05 00:25:34 +00:00
TreeHugger Robot
f6f68802c9 Merge "Allow double tap when pulsing" into pi-dev 2018-04-04 22:48:22 +00:00
TreeHugger Robot
71436c639a Merge "Update for sdk drop" into pi-dev 2018-04-04 22:40:27 +00:00
TreeHugger Robot
a60cb52487 Merge "[DO NOT MERGE] Fix a11y action "expand notifications" when QS is open" into pi-dev 2018-04-04 20:26:23 +00:00
Jeff Gaston
c2100af2f6 Update for sdk drop
Bug: 77554455
Test: m -j checkbuild
Change-Id: Ia9255ae441d490276c7a9c498b75708f90bf84a1
2018-04-04 15:56:53 -04:00
TreeHugger Robot
ae26aa74a3 Merge "[Notif] Cache bool instead of manager/info" into pi-dev 2018-04-04 18:00:31 +00:00
Lucas Dupin
78949b8480 Allow double tap when pulsing
Change-Id: Ifd8d5a274981940c6dca21193dc26f9a74e0cfaa
Fixes: 75722320
Test: manual
Test: atest tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
2018-04-04 01:58:53 +00:00
Julia Reynolds
9159006d08 Only tag foreground notifications
With active permission icons

Test: atest SystemUITests
Change-Id: I31828f6239b1253794f9569d29dccdac5c10b0da
Fixes: 75276447
2018-04-03 20:00:24 +00:00
Evan Laird
4b68e2f785 Add DISABLE_CLOCK flags to status bar, fix transitions
- CollapsedStatusBarFragment now listens to DISABLE_CLOCK so that it can
be requested to hide with disable flags (fixes SUW)
- PhoneStatusBarTransitions cares about the entire left side as a unit
instead of just notifications.

Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragmentTest.java
Test: go through SUW, also change users from guest -> owner from lock
screen.

Change-Id: Ia693386b9ef0438a4fe341d056731e2ba6e973a0
Fixes: 71512617
Fixes: 71360226
2018-04-03 14:00:23 -04:00
Rohan Shah
4ed1b2ad49 [Notif] Cache bool instead of manager/info
Follow up to ag/3815403

Updated to cache bool instead of manager/info in order to reduce IPC
calls made thru packagemanager.

Also collapsed test setup for shade.

Change-Id: I8fa116b3f24eaa887d2139c0aab1996e3c95fbdc
Fixes: 74115090
Test: Visually & atest for ExpandableNR
2018-04-03 10:14:16 -07:00
Rohan Shah
7c6b37a73e [Notif] Disable "Customize" for blocking helper
Rolling forward ag/3824685.

Update UI to hide customize when blocking helper is showing. Fixed a
small problem with context.getString too where it was unnecessarily
passing in a format string argument.

Change-Id: I07feba206051f6804d2a537c468fcde8d85f0940
Test: Visually
Test: Ran atest NotifInfoTest with new test case (rebased this time)
Fixes: 77321231
2018-03-30 14:20:08 -07:00
Rohan Shah
13c78d15d8 Merge "Revert "[Notif] Disable "Customize" for blocking helper"" into pi-dev 2018-03-30 21:05:07 +00:00
Rohan Shah
35fe985a95 Revert "[Notif] Disable "Customize" for blocking helper"
This reverts commit 3cfc950708.

Reason for revert:
Apparently a breakage got through treehugger - I hadn't synced my changes and one of the params was incorrect. Reverting for now and rebasing before resubmit...

Bug: 77321231
Change-Id: Ib306759d6344a69f17331a6c3c9cc78d1345508b
2018-03-30 21:04:36 +00:00
TreeHugger Robot
eff51d566a Merge "Remove SignalClusterView in favor of IconManager" into pi-dev 2018-03-30 20:22:16 +00:00