"adb shell am wait-for-broadcast-idle" calls BroadcastDispatcher's isEmpty() method, which return false if there is any deferred BOOT_COMPLETED broadcast. This is wrong because deferred BOOT_COMPLETED is deferred until first time the uid's process is started, this can be indefinitely.
The fix is to create a BroadcastDispatcher.isIdle() method which does not count deferred BOOT_COMPLETED broadcast.
Bug: 229426300
Test: restart device, unlock screen, issue "adb shell am wait-for-broadcast-idle"
Change-Id: Ic660982e0d6daa0728b9eabfd4808f137677e037
Move fractionToShade to AmbientState so it's accessible from both
StackScrollAlgorithm and NotificationShelf.
Fixes: 229112693
Test: StackScrollAlgorithmTest
Test: swipe down on lockscreen to go to shade
=> section gap widens smoothly
Change-Id: I860d250986fd77643e67947e4b642e5bccf1dc29
Remove unneeded return when mPublicLayout does not have children
Fixes: 228112945
Test: toggle between show all/sensitive/show none
press power button twice to go to lockscreen
=> correct lockscreen notification layouts shown
Change-Id: I24147461875d7e2322f790b57889c75f1aee5016
This is a follow-up of ag/17527240 in which we do not cover the case
that a Task in pinned mode is directly removed via Task#moveTaskToBack
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/cMG5Uh1kLC7EyAs2EbDVkM
Bug: 228793904
Test: follow the reproduce step in bug, see video
Test: atest WMShellUnitTests:PipTaskOrganizerTest
Change-Id: Ib7472908a81d56d34216ca272afbd9f1a2668b89
Set onLockscreen false during transition to shade
so that #computeHeight
- uses the intrinsic height (increases with swipe open)
- instead of min height (which kept stack height the same)
Fixes: 228511165
Test: NotificationStackSizeCalculatorTest
Test: swipe down on lockscreen notification
=> notification expands during lockscreen-to-shade transition
Change-Id: I9cb065727cbb82c1dd70999f91f88d6eec132c91
The color was being passed down all the way from MediaDataManager to
ColorSchemeTransition when it doesn't need to be. This moves the
background color fetch to ColorSchemeTransition, which groups it with
all the other color fetching.
Bug: 228960370
Test: atest SystemUITests
Test: manual: verify media player still looks good
Change-Id: I0a542fd68847b942c3cb1e3c4576344068a06a07
Otherwise it's possible to hit a concurrent modification exception
when the data structures are edited while a snapshot is being taken.
Bug: 229326910
Test: presubmit
Change-Id: Ib15551a5096c47f5a238863466af08a4a88f82b9
And turn it OFF by default, will turn it ON in teamfood now.
Also move the alert threshold to 4% again.
Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: Iff485b1795c9cf4e5ade847a8dac6a223c3bfd65
When a bubble gets dismissed while the stack is expanded, we should
select the next available bubble. Instead, we are collapsing.
This is because we get an onTaskMovedToFront event for the app
behind bubbles moving to the front, which causes the stack to
collapse. To fix this I add a check to see if the switch animation
is running, and if so we skip the collapse in onTaskMovedToFront.
Bug: 208648025
Test: manual - have multiple bubbles, expand the stack, visit each
bubble
- dismiss each bubble by dragging to dismiss target
=> observe that after dismissing each bubble, the next
bubble is selected (if available)
Change-Id: If82c004ecd1ec8920e934dbae2107b4c37853cb5
Also add additional tests for when hint animation should run.
Fixes: 228420035
Test: NotificationPanelViewControllerTest
Test: tap empty space on lockscreen during aod=ls transition
=> notification unfurl completes with no hint animation
tap again after unfurl has completed
=> hint animation runs fine
Change-Id: I1e34d17f692a88b708b0233f02229acbb5270fae