Commit Graph

26625 Commits

Author SHA1 Message Date
TreeHugger Robot
ceeba4f6d6 Merge "Change status bar icons upon capability changes in the default network." into pi-dev 2018-05-17 06:46:39 +00:00
Anarghya Mitra
678722f9d0 Change status bar icons upon capability changes in the default network.
SysUI status bar updates currently happen upon receiving either the
CONNECTIVITY_ACTION broadcast (which is deprecated) and
INET_CONDITION_ACTION broadcast (which is sent upon validation state
change of networks only).

This leads to status bar showing stale connectivity state. The correct
fix for this is to listen to changes in network state by registering
NetworkCallbacks (see more details in http://b/79286300#comment9).

In the P timeframe, not listening to the broadcasts completely is out of
scope. So this CL just listens for changing network capabilities of the
default data network, which should fix all the cases where the
broadcasts are not getting sent.

Later, when we stop relying on the broadcasts, we will also have to
override onAvailable and onLost (and perhaps the other callbacks too).

Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
Bug: 71904788
Change-Id: I2e58b9cfceb9937a0b54874dee116ead5339b37b
2018-05-16 22:23:56 -07:00
Tracy Zhou
7b7f6fcb5b Add contentDescription to close button of recents onboarding tip view.
Change-Id: I4fe8a7fce78ca7d572a5fc4259c0329963a0e461
Fixes: 79689820
Test: N/A
2018-05-16 20:50:23 -07:00
TreeHugger Robot
8b49b9f736 Merge "Count app launch correctly." into pi-dev 2018-05-17 02:12:23 +00:00
TreeHugger Robot
645c8671ed Merge "Hide overlay windows when requesting media projection permission." into pi-dev 2018-05-17 01:56:42 +00:00
Selim Cinek
88bac47c75 Merge "Removing notifications that were kept around longer on click" into pi-dev 2018-05-17 01:35:27 +00:00
TreeHugger Robot
25e3827517 Merge "Do not reset security message when pattern resumes" into pi-dev 2018-05-17 01:28:36 +00:00
Selim Cinek
5f259a7d90 Merge "Fixed an issue where icons could remain white" into pi-dev 2018-05-17 01:22:41 +00:00
Selim Cinek
25185596cf Merge "Removing unused invert helpers" into pi-dev 2018-05-17 01:22:41 +00:00
Tracy Zhou
60cd1d96a9 Count app launch correctly.
Previously we mis-count each different activity, regardless of the app
it belongs, as one app launch. We should instead count each different
app open, either created, or brought front as a different app launch,
but different tasks created from the same app is considered one launch.

Fixes: 79885137
Test: Manual test
Change-Id: I5b4b8bee9b0ed4aa23a4ea9eefdfa112b6442455
2018-05-16 17:25:04 -07:00
Wale Ogunwale
d6bb8e958e Hide overlay windows when requesting media projection permission.
Done by setting PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS

Bug: 34170870
Test: manual
Change-Id: I57cb0f390d9a78e721c5ddce49a377d385002753
2018-05-16 16:42:29 -07:00
Lucas Dupin
94a1e01f7c Do not reset security message when pattern resumes
Change-Id: Ia18b98c97612a4998eda52356ef9eafd1c3ad48d
Fixes: 78235570
Test: manual
2018-05-16 16:24:20 -07:00
TreeHugger Robot
9e04425f9e Merge "Add contentDescription to status bar alarm" into pi-dev 2018-05-16 21:02:45 +00:00
TreeHugger Robot
8f4bed7de7 Merge "Fix KeyguardUpdateMonitor test" into pi-dev 2018-05-16 20:50:25 +00:00
TreeHugger Robot
98c2f7f9de Merge "Remove total_silence dnd icon" into pi-dev 2018-05-16 20:05:03 +00:00
Evan Laird
bee3eb8a38 Add contentDescription to status bar alarm
Test: turn on talkback; tap alarm; listen
Bug: 66964503
Change-Id: If416e7f96de0873dd6e920c7dcf6f23f88ce2204
2018-05-16 15:58:49 -04:00
Sunny Goyal
ce42933ae3 Merge "Adding utility method to dump encoded view hierarchy" into pi-dev 2018-05-16 19:56:45 +00:00
TreeHugger Robot
8776299ea9 Merge "Check mStatusBarWindowHidden bit when deciding to hide status bar" into pi-dev 2018-05-16 19:49:48 +00:00
Lucas Dupin
7ff82b0a92 Fix KeyguardUpdateMonitor test
KeyguardUpdateMonitor's Handler runs on the main looper by design,
we need to ensure that whenever we're processing messages, that
they will also be received on the main looper.

Also unregistered a broadcast listener to avoid a possible race
condition

Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
Bug: 79550837
Change-Id: I14a319da5c6bc46fd32675ae205e14a6228efaa4
2018-05-16 12:40:30 -07:00
Selim Cinek
2325aa27ac Removing unused invert helpers
In AOD the notifications aren't actually inverted
anymore and it was creating problems as in bordercases
it would still be invoked.

Test: add group, normal notification on aod, normal layout
Merged-In: Id01b7624162ff17d0e4cad6479d486683f7e5b33
Change-Id: Id01b7624162ff17d0e4cad6479d486683f7e5b33
Fixes: 77024183
2018-05-16 18:33:06 +00:00
TreeHugger Robot
befd06af14 Merge "ScreenDecor: Set touchable region in windows coordinate space" into pi-dev 2018-05-16 17:19:46 +00:00
Sunny Goyal
40f658625d Adding utility method to dump encoded view hierarchy
Test: Verified the library change with launcher (after generating a bug report)
Bug: 79861035
Change-Id: Id1eabbfd293ee43c46cbecae82442fc77b661744
2018-05-16 10:14:19 -07:00
Adrian Roos
134e1cb862 ScreenDecor: Set touchable region in windows coordinate space
Also restricts the region to the frame of the view. This
is important for double cutouts, would go to the wrong view,
and having a touchable region spanning the entire screen
breaks some a11y services.

Change-Id: I824e5fb9b2f2e765ee9b6da4fcaf2c6840d8f51d
Fixes: 79533418
Test: turn on double cutout emulation; adb shell dumpsys window ScreenDecor, verify touchable region for each decor looks right.
2018-05-16 15:38:09 +00:00
Evan Laird
a9adbd5807 Remove total_silence dnd icon
It's not cool anymore

Test: "shush, phone" -> look at status bar -> see wireframe dnd icon
Change-Id: I5ffbb6ae97dfc321c2404caeabd5e201fde7f4c3
Fixes: 79853559
2018-05-16 11:32:08 -04:00
TreeHugger Robot
e79d905577 Merge "Make clock and battery clickable in QS status bar." into pi-dev 2018-05-16 13:44:13 +00:00
TreeHugger Robot
3884c102a8 Merge "Do not dismiss QS toggling mobile data." into pi-dev 2018-05-16 13:29:15 +00:00
shawnlin
4ef7ca5a9a Fixed regression on jank test of changeBrightness
Replace using hardware layer for alpha animation with drawing
transparent color with MULTIPLY mode.

Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests-Trace:android.platform.systemui.tests.jank.SystemUiJankTests#testChangeBrightness
Change-Id: I9615af89c4418dd90ccc86e9e7c71d88e7121826
Fixes: 79266233
2018-05-16 15:06:31 +08:00
Amin Shaikh
39bdc5079f Make clock and battery clickable in QS status bar.
Change-Id: Id96253cb034305337cb2e34b45ca032e5cf8c7ac
Fixes: 79472358
Test: manual
2018-05-15 23:43:34 -04:00
Amin Shaikh
13a06bb0d3 Do not dismiss QS toggling mobile data.
Change-Id: I2691b95b182fa16b943338d86b6e49a1b2362fca
Fixes: 79371609
Test: visual
2018-05-15 23:07:57 -04:00
TreeHugger Robot
a0b6b5033d Merge "Fix issue where panel wouldn't collapse" into pi-dev 2018-05-16 02:24:42 +00:00
TreeHugger Robot
c5da588ff8 Merge "Revert "When ringer changes to vibrate, phone vibrates" Fixes: 79773317 Bug: 78665512" into pi-dev 2018-05-16 01:03:33 +00:00
Beverly Tai
efd8e08dd3 Revert "When ringer changes to vibrate, phone vibrates"
Fixes: 79773317
Bug: 78665512

This reverts commit d253f98c0e.

Reason for revert: b/79773317

Change-Id: I6f3eebd64b94436748986422906006686351cc4b
2018-05-15 23:49:05 +00:00
Lucas Dupin
213d705fed Fix issue where panel wouldn't collapse
Notification panel would not collapse after clicking on a notification
when the keyguard is occluded.

Collapsing is necessary because otherwise the afterKeyguardGoneRunnable
would not be reached.

Test: manual
Change-Id: I15f997e0181e9af0c322834ad3357d26f9c38c1b
Fixes: 78907161
2018-05-15 16:43:38 -07:00
TreeHugger Robot
8b418b00e3 Merge "Added a debug flag to turn on the AOD animation" into pi-dev 2018-05-15 22:59:56 +00:00
TreeHugger Robot
80b03d227e Merge "Center QS icons (wifi, invert colors, night light)" into pi-dev 2018-05-15 22:44:36 +00:00
Selim Cinek
653c139e39 Fixed an issue where icons could remain white
Test: code inspection
Change-Id: Ib2d2e5f5a638bd86fcd17e8c3dfe28501de75bad
Fixes: 77024183
2018-05-15 15:23:02 -07:00
Evan Laird
f24aff4171 Check mStatusBarWindowHidden bit when deciding to hide status bar
Ensures that we unhide status bar icons when (for instance), showing the
status bar in the camera from the keyguard

Change-Id: Ica1b622dd9e0a913575664b98825bc67809e5e72
Fixes: 79511463
Bug: 79700037 (possibly related)
Test: launch camera from keyguard, swipe status bar down, see icons
2018-05-15 17:32:15 -04:00
Selim Cinek
0dd5a6b6ac Added a debug flag to turn on the AOD animation
Test: adb shell setprop debug.force_no_blanking true
Bug: 78205990
Change-Id: I372770e9ee40c221d4d2db8d8c4e5644b04ce9fc
2018-05-15 13:15:42 -07:00
TreeHugger Robot
75402c371b Merge "Made sure that the ambient single line view remains invisible" into pi-dev 2018-05-15 19:42:39 +00:00
TreeHugger Robot
97d17a7774 Merge "[Notif] Safeguard animation start" into pi-dev 2018-05-15 19:12:38 +00:00
Selim Cinek
fbdd1f7d09 Merge "Fixed an issue where the wrong notification would be heads upped" into pi-dev 2018-05-15 19:04:01 +00:00
TreeHugger Robot
49cb81658d Merge "Blacklist doze setting from tuner reset" into pi-dev 2018-05-15 18:38:36 +00:00
Selim Cinek
c5926c3602 Made sure that the ambient single line view remains invisible
The single line views are visible by default when they are inflated
and not all calls to it actually ensure that the visibility is
updated. We therefore make sure that the view is appropriately
hidden.

Change-Id: Ied7641347d910fff5c8f1f0b38d349e7f3b56b76
Fixes: 77290485
Test: add second notification to group, observe no overlapping text
2018-05-15 11:25:39 -07:00
TreeHugger Robot
fd165bb5dd Merge "When ringer changes to vibrate, phone vibrates" into pi-dev 2018-05-15 18:00:11 +00:00
Selim Cinek
a1f417caf0 Merge "Hiding all views when the notification shade is collapsed" into pi-dev 2018-05-15 17:38:31 +00:00
Selim Cinek
bb24c6b501 Merge "Fixed notification shelf not fully visible on lockscreen" into pi-dev 2018-05-15 17:07:56 +00:00
Jason Monk
960625ae9e Blacklist doze setting from tuner reset
Test: manual
Change-Id: I934cfcd65552c9998eb95ecfed65670ec73dde8d
Fixes: 78512759
2018-05-15 12:50:57 -04:00
Selim Cinek
2cfd9fb99c Merge "Keeping the header hidden while the hun is going away" into pi-dev 2018-05-15 16:47:44 +00:00
Selim Cinek
f81ad4b94c Merge "Fixed that views could be stuck transiently at times" into pi-dev 2018-05-15 16:47:17 +00:00
Selim Cinek
d29a9ab1b6 Hiding all views when the notification shade is collapsed
Non-heads up views could still be visible when the shade
was collapsed. Therefore they would briefly peak out
after heads up views would be swiped away leading
to ugly flickering.

Test: add hun (with notch enabled) and swipe away hun with other views present
Change-Id: I794693d7d5af5591490df7c2f4b95c01043897d2
Fixes: 	76150837
2018-05-15 09:28:42 -07:00