AttentionDetector should not be called when the screen policy is DIM.
Bug: 150338359
Test: atest AttentionDetectorTest + manually confirmed with logging
Change-Id: Ia58f9f5618fd1aca71e55e3299412cde16308da2
Previously, it was difficult to tell when a notification was inflated
before trying to show the heads up, and we got around it with a (now
flawed) heuristic based off if a notification was just inflated and
it has a heads up view.
This issue stems from having two control classes that are not really
communicating with each other. By combining these classes into one
heads up controller, the logic becomes more readable and we can directly
put a callback to show the HUN when the HUN content is inflated.
Bug: 149028421
Test: HUN smoke test
Change-Id: Ibb75597cfe26ccaf7e4d5247dc69d69bdf421ee6
To alert the NotificationStackScroller of QS expansion so it can animate
appropriately
Test: manual
Fixes: 141655677
Change-Id: I78c8704d7fd2ed6bdc824d3021d2c91c1e049733
Implement puller code in StatsPullAtomService & ProcessStats that will
output new pre-aggregated proto form of ProcStats data.
Change-Id: Id3d28b0ec135b1b25f3b70a5eb29bec67d71805d
Test: local debugging, see b/152397079
Bug: b/152397079
Bug: b/145203981
Merged-In: Id3d28b0ec135b1b25f3b70a5eb29bec67d71805d
(cherry picked from commit 3b428af57f)
Currently if we have 0 browser apps in work profile and >1 in personal,
and we try open a link from the work profile, the personal profile
intent resolver is launched. We handle this gracefully by showing the
work tab and the no apps found empty state screen, instead of the
cross profile intents disabled.
Other changes in this commit:
- Handle all empty state screens from a single method
- All empty state screens are now shown from ResolveActivity#onPostListReady.
This was needed to guarantee consistency when showing the header.
- Always create the header exactly once for the lifetime of the intent
resolver/share sheet. Before it was re-created when swiping back to
the initial tab.
- Always show the header text when the tabbed view is enabled.
Fixes: 148536209
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I737f1e8f864ae1108af7ec3ba8a1fa0f10b383b0
Was just re-assigning to itself (which was undefined) so it'd
remain undefined.
Bug: 154145745
Test: added testActivityAndTaskGetsProperType
Change-Id: I36183057a5d43f6845336d0e6bb6fc8101a1ecff
See http://b/153525851#comment5 for context.
Test: have bubbles and pip, repeatedly dismiss and add PIP and notice you can happily bubble as usual instead of them flying away or hiding under the nav bar
Fixes: 153525851
Change-Id: I0b107c4cad6caada1a93a9c1fe69302d637e305b
Need to return early when there is no preferred component to seed
controls from.
Bug: 154037512
Test: manual
Change-Id: I5aad8bfb90453cdc97fc75575390d16cd2824c05