Commit Graph

872 Commits

Author SHA1 Message Date
Winson Chung
6519c1b0fe Moving some recents logic into the shared lib.
- Creating com.android.system.shared library with recents model code and
  corresponding recents tests
- Removing notion of blacklisted apps since that is now obsolete.

Bug: 67510855
Test: It builds, Recents runs

Change-Id: Ib1f5eefa6e4d4964366061246002509e2e15b19e
2017-10-17 12:24:41 -07:00
Jason Monk
ca1b2ee217 Merge "Auto-dim refinements" into oc-mr1-dev am: 2806975bfb
am: a739d220fc

Change-Id: I4c0fb646b7f2593cf579b0958fa1222dd1c55864
2017-10-16 21:37:54 +00:00
Jason Monk
2044e6e377 Auto-dim refinements
- Don't auto-dim while wallpaper is showing
 - Up alpha to 60%

Change-Id: Ie5fc33279ca46f7de37befacbbd7b42b7d4e5d15
Fixes: 67735001
Test: manual
2017-10-16 11:21:38 -04:00
Winson Chung
2db3557064 Pull out TaskStackListener into its own class.
Bug: 67510855
Test: Code removal
Change-Id: I103ccc690f577dbeba9c3568614d9f4041fff7df
2017-10-13 14:25:26 -07:00
Winson Chung
fb44d212f2 3/Removing unnecessary filtering logic for recent tasks in SystemUI
- Remove all code related to last-stack-active-time, quiet profile task
  handling, and visible task range filtering
- Remove the notion of firstActiveTime since that was only used to filter
  tasks in SystemUI, also convert lastActiveTime to elapsed real time since
  it is only used in the system to order active tasks, and in SystemUI as
  a part of the TaskKey for caching purposes (it is no longer used to
  determine the last visible task based on time)

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java
Change-Id: I44d494a521f60f302e0976fcf33490fe837f7cdb
2017-10-12 11:26:15 -07:00
TreeHugger Robot
0e186ac3f0 Merge "Removed sys-ui's use of static stack ids." 2017-10-08 18:31:43 +00:00
Wale Ogunwale
89be5761bc Removed sys-ui's use of static stack ids.
Test: Existing tests pass
Test: go/wm-smoke
Bug: 64146578
Change-Id: Ia74b363358cbae383e74dbc33fdcbb37191f0419
2017-10-06 16:34:43 -07:00
Geoffrey Pitsch
05b81b4791 Fix test flake in AutoTileManagerTest
Use TestableLooper instead of default BG_LOOPER so no messages
will post while other tests are re-initializing Dependencies.

Test: runtest systemui
Change-Id: Ib2878120fadda9869f4dd721d961671224fb17a6
2017-10-06 13:47:46 -04:00
Charles He
aff38adc43 Merge "StatusBar: add DISABLE2_NOTIFICATION_SHADE flag." 2017-10-05 07:52:47 +00:00
Charles He
2eda242fbc StatusBar: add DISABLE2_NOTIFICATION_SHADE flag.
Previously, DISABLE_EXPAND would disable the expansion of the status
bar. But this was only limited to the unlocked case. The status bar (and
thus the quick settings panel) could still be expanded on the lock
screen (keyguard), by swiping down from either the status bar or the
notification cards.

We introduce a new flag which would disable notification shade on all
surfaces, which will be used by DevicePolicyManager to enforce LockTask
restrictions, etc.

Bug: 65813398
Test: runtest systemui
Test: manual, by using a modified version of TestDPC and
      DevicePolicyManager

Change-Id: I364567422e0ca8837ecffa3037adc131c3cef691
2017-10-04 21:11:02 +01:00
Chris Wren
5a860604e3 Merge "Enable experimentation on notification snooze options" into oc-mr1-dev am: 9cb14a0c95
am: 4706c262fa

Change-Id: Ic99064fcb8a51b8d66ce5b55e4e2da52cbc1557b
2017-10-03 00:28:16 +00:00
Chris Wren
e901a7e0ed Enable experimentation on notification snooze options
Bug: 67003813
Test: runtest systemui

Change-Id: Id46ef3938e2edc633f64cec7b66e10d80c9a0bff
2017-10-02 17:38:16 -04:00
Jason Monk
b3d059764b Merge "Don't show no sim when a sim has been detected." into oc-mr1-dev am: dddbb2261c
am: 5eea2700b5

Change-Id: I0a3b744623f5c372ae3be24064c63d455bd1a2c1
2017-09-29 19:00:13 +00:00
Jason Monk
1ff77669e1 Don't show no sim when a sim has been detected.
Instead indicate a lack of signal until we have a subscription to
tell us what to show.

Test: updated existing tests
Change-Id: I170f3782597584e5e761b5c9f9fce3cdbdc26a4f
Fixes: 65744290
2017-09-29 11:17:05 -04:00
Evan Laird
9b120d5a08 Merge "Fix wifi tile animating full-dark when slashing/unslashing" into oc-mr1-dev 2017-09-26 14:09:09 +00:00
Charles He
6a79b0dff1 StatusBar: add DISABLE2_SYSTEM_ICONS flag
Add a StatusBarManager flag to control the visibility of system icons
such as connectivity info, battery, etc. Note that the clock is
controlled separately through DISABLE_CLOCK.

Also note that this flag differs from DISABLE_SYSTEM_INFO, which
controls the system icons and the clock as a whole, but only works for
the collapsed status bar (CollapsedStatusBarFragment).

Bug: 65813398
Test: runtest systemui
Test: manual, by using a modified version of TestDPC and
      DevicePolicyManagerService

Change-Id: Icb61c7bb1a625edd818be7a66d7f15c3e812237b
2017-09-25 21:29:27 +01:00
Evan Laird
369ded0cf1 Fix wifi tile animating full-dark when slashing/unslashing
WifiTile now owns a specific tile view that will animate the tint/alpha
of the slash but not the underlying drawable. Becasue we always animate
from the disconnected icon <-> disabled icon, this fixes the problem
where the disabled icon will start off as full-dark and appear to flash.

Fixes: 63534380
Test: turn wifi on/off; runtest -x
tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java

Change-Id: I824572fdf00e122b7c17104b727171d81ff104c5
2017-09-21 16:07:47 -04:00
Evan Laird
6026b057e7 Fix wifi tile animating full-dark when slashing/unslashing
WifiTile now owns a specific tile view that will animate the tint/alpha
of the slash but not the underlying drawable. Becasue we always animate
from the disconnected icon <-> disabled icon, this fixes the problem
where the disabled icon will start off as full-dark and appear to flash.

Fixes: 63534380
Test: turn wifi on/off; runtest -x
tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java

Change-Id: I824572fdf00e122b7c17104b727171d81ff104c5
2017-09-21 14:11:00 -04:00
TreeHugger Robot
4480fc78af Merge "Make NetworkController tests more deterministic" 2017-09-19 21:02:10 +00:00
Jason Monk
2515f4725a Make NetworkController tests more deterministic
Test: runtest systemui
Fixes: 63386204

Change-Id: I371c6897c929e70e61a44e116c5a508f494eff0c
2017-09-19 14:35:18 -04:00
Selim Cinek
64c31a374e Merge "Merge "Fix NPE which could occur when showing notification guts" into oc-mr1-dev am: cf6a6d244e" into oc-mr1-dev-plus-aosp
am: a464532b92

Change-Id: Ifa801951b0d4f02567eaab0ce43f1611b2757c74
2017-09-18 18:33:02 +00:00
Selim Cinek
cf6a6d244e Merge "Fix NPE which could occur when showing notification guts" into oc-mr1-dev 2017-09-18 18:08:29 +00:00
Kensuke Matsui
efa1a74bb8 Fix NPE which could occur when showing notification guts
SystemUI keeps shown heads-up notification for minimum display time
even if the notification is canceled right after it's posted.

This is intentional behavior but causes inconsistency between
mEntry and mRankingMap in NotificationData.
That inconsistency could cause NPE when showing notification guts.

To avoid this, update an Entry only when the corresponding Ranking
is available.

Fixes: 65567562
Test: manual - long press a missed call notification
               immediately after receiving an incoming call
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java

Change-Id: I6dc70d8e57efa7af0f23862a00d0e18cf39dfebb
2017-09-15 17:21:08 -07:00
Evan Laird
0dd2f36ea4 Merge "Show mobile signal strength in QS edit panel" into oc-mr1-dev am: a76a1e8842
am: 9ccc1dcd4d

Change-Id: I87d0af5c6e447473e96d22bde909d795e1552aab
2017-09-15 07:21:48 +00:00
Andrew Lehmer
647d626494 Merge "AOD: Prewarm display while waiting for brightness sensor" into oc-mr1-dev am: 1952fcffc3
am: b4fe0c9fa5

Change-Id: I876c2d0afee23254b129a8694b3021085d35701d
2017-09-14 21:40:18 +00:00
TreeHugger Robot
a76a1e8842 Merge "Show mobile signal strength in QS edit panel" into oc-mr1-dev 2017-09-14 18:34:55 +00:00
Lucas Dupin
52ec920914 Merge "Do not play sounds when unlocking from AoD." into oc-mr1-dev am: dd68a88a51
am: 2124e129c0

Change-Id: I908440191acf3269fe26b52ac64ab044bb88c696
2017-09-14 02:12:18 +00:00
Evan Laird
9d4d73b9cc Show mobile signal strength in QS edit panel
Apparently ImageView#setImageDrawable() will take the drawable you give
it and reset its level. Pre-empting that by setting the ImageView level
first fixes that.

Change-Id: I4233241df1e4425ad2c4f5c32599608354a10c30
Fixes: 63690824
Test: visual; runtest -x \
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/SlashImageViewTest.java
2017-09-13 16:34:14 -04:00
Andrew Lehmer
1952fcffc3 Merge "AOD: Prewarm display while waiting for brightness sensor" into oc-mr1-dev 2017-09-13 18:59:00 +00:00
Lucas Dupin
cecc7c233a Do not play sounds when unlocking from AoD.
Playing tap target sounds when unlocking from AoD
make them overlap. Let's skip taps and only play
the "unlock" sound.

Change-Id: I381e13604c61938ceceac903a8e2a52bf9192bbe
Fixes: 64411995
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
2017-09-12 16:53:02 -07:00
Lucas Dupin
f3fcf5abdd Merge "Fixed keyguard inflation problem" into oc-mr1-dev am: 3163ba7458
am: 8584468862

Change-Id: I57474e7da639afb306b98fe75f462d6d5d72c332
2017-09-12 00:06:45 +00:00
Lucas Dupin
6865b71e1a Fixed keyguard inflation problem
Inflating a keyguard while dettached from window would
raise a NullPointerException since window insets wouldn't
be available at the time.

Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Change-Id: I7f48a62807877537814e6f34db1e6fa6fbec7923
Fixes: 65495303
2017-09-11 14:20:51 -07:00
Selim Cinek
8808a31ed3 Merge "Fixed a flakey test" into oc-mr1-dev am: e501718337
am: 7b5b481c57

Change-Id: I67aa0b4ef26dd077add14e39ec02d11ec9223c98
2017-09-09 01:24:48 +00:00
TreeHugger Robot
e501718337 Merge "Fixed a flakey test" into oc-mr1-dev 2017-09-08 23:08:45 +00:00
Jason Monk
bb9d0aa60c Merge "Update QS if the content gets stale" into oc-mr1-dev am: b98eeb2552
am: 15ad1251f0

Change-Id: Icc4ae2bfe20f3d606bb8fc2a7f22fae21d0c92a3
2017-09-08 21:18:32 +00:00
Selim Cinek
21f336614c Fixed a flakey test
Since the test could be off the UI thread, cancelling
would not be synchronized properly.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
Change-Id: Icfb02b637b76cdfb853c88130eabddf75203909b
Fixes: 65031224
2017-09-08 13:24:21 -07:00
Jason Monk
1c6116cbbb Update QS if the content gets stale
For system tiles this is more often, but for 3P tiles its pretty rare
except for on boot.

Test: runtest systemui
Fixes: 34804413

Change-Id: I166e2ab6a609acd63b9b4f19579bab12beabba27
2017-09-08 10:33:11 -04:00
Jason Monk
fc43e89ed9 Merge "Fix crash in presubmit tests" into oc-mr1-dev am: bd50122a2d
am: d82bed1c74

Change-Id: Id354cb3d1df430a9e4994c25f1441f510707e3bf
2017-09-07 22:41:19 +00:00
Jason Monk
535a37da6a Merge "Fix presubmit tests" into oc-mr1-dev am: d0d045575d
am: 3ef2442d5f

Change-Id: I7ec5412af03f1cb0e37862b0057c6334f88cea97
2017-09-07 22:20:12 +00:00
Julia Reynolds
925fda7473 Merge "Correctly block system work profile notifications." into oc-mr1-dev am: 0be3f49560
am: 58cb08d742

Change-Id: I21574a60864e87a8dc1bad39cb37f3efc266b60f
2017-09-07 22:15:27 +00:00
Jason Monk
3f97fd9db7 Merge "Fix disabled views with nearest touch frame" into oc-mr1-dev am: 2602127d55
am: 0394eb0e5f

Change-Id: I8dfe81ce7a7d38e64ea308881e3ade7fac5d777c
2017-09-07 21:53:59 +00:00
Jason Monk
2ef8ed6532 Fix crash in presubmit tests
Test: runtest systemui
Bug: 65289824
Change-Id: Ibbce459e5e87ea667e91d546b7568f9addbb1c66
2017-09-07 14:51:41 -04:00
Jason Monk
d0d045575d Merge "Fix presubmit tests" into oc-mr1-dev 2017-09-07 16:11:24 +00:00
Jason Monk
b16ae4ac94 Fix presubmit tests
Test: runtest systemui
Bug: 65289824
Change-Id: Ibf2b61670d09a76eb908bd9d322ae36e0f7af3e0
2017-09-07 12:09:37 -04:00
Julia Reynolds
0be3f49560 Merge "Correctly block system work profile notifications." into oc-mr1-dev 2017-09-07 15:40:28 +00:00
Jason Monk
2602127d55 Merge "Fix disabled views with nearest touch frame" into oc-mr1-dev 2017-09-07 12:48:02 +00:00
Jason Monk
aa60c74f5d resolve merge conflicts of 64e19de569 to master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I485e2fd5ef4e449223e1c095652ee5b596a8d77c
2017-09-07 08:26:28 -04:00
Jason Monk
f8c2f7bd7b Add metrics for status bar
Test: runtest systemui
Fixes: 65289824
Change-Id: Ife5ce98862fc6a92740eaf80cdc0b74cb01dd04e
2017-09-06 15:03:41 -04:00
Julia Reynolds
33bef2c8eb Correctly block system work profile notifications.
Test: runtest systemui
Change-Id: I22a89b985a114485237f5ed8832d1a9c17789ca8
Fixes: 64951994
2017-09-06 14:31:49 -04:00
Jason Monk
3dd17a786c Fix disabled views with nearest touch frame
Test: runtest systemui
Change-Id: I83fe0483d2d45c05750cb52fa66c579be0194091
Fixes: 65158062
2017-09-06 14:10:39 -04:00