The use case I'm looking at is for the seek bar in media controls. While
playing, the elapsed time needs to be continuously checked with a fixed
delay (ie. polling the elapsed time).
Bug: 154352658
Test: Added RepeatableExecutorTest
Change-Id: I142545e9a405c38fda6002a85fa3c47343f2fce4
Reworks some of the CurrentUserContextTracker and test its
functionality, and consequently fixes some NotificationConversationInfo
tests
Test: atest CurrentUserContextTrackerTest NotificationConversationInfoTest
Bug: 151843296
Fixes: 154332812
Change-Id: I0e3d4b1c64cba2cab581abca4ce9377a7c4676de
When swiping down from the top of the screen to dismiss the bouncer,
the input field should hide the keyboard, otherwise it would get stuck
on the lock screen.
Test: manual
Test: atest KeyguardHostViewTest
Test: atest KeyguardBouncerTest
Fixes: 154245193
Fixes: 152882608
Change-Id: I99ee2cff85df1ab0b6544e9b5b472e105fca7b72
- The region sampling listener is already constantly updating the tint
based on the actual content beneath the bar
Change-Id: Ia521bd3c5c8507fd97e22dd12e8102dfc2368320
Bug: 154002408
Test: Open up the settings "opening links" activity and ensure it
the tint doesn't get clobbered
> Sending different insets to the app during user setup
> Keeping the back butotn visible and not handling edge swipe
> Fixing bug where EdgeBackGestureHandler is not updated with correct
edge scale when user switches
Bug: 150004073
Bug: 148492421
Test: Manual
Change-Id: I112465a634de2c85d613c071b66f8c099c2c78e3
This removes the dependency on the following Sticky broadcasts:
* ConnectivityManager.CONNECTIVITY_ACTION
* ConnectivityManager.INET_CONDITION_ACTION
* TelephonyIntents.ACTION_SIM_STATE_CHANGED
* TelephonyIntents.ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED
* WifiManager.NETWORK_STATE_CHANGED_ACTION
* WifiManager.WIFI_STATE_CHANGED_ACTION
In general, we fetch the state to populate data.
Also, fixed some bubbles tests that were creating KeyguardUpdateMonitor
down the line.
Test: atest SystemUITests
Bug: 151641451
Change-Id: Ib4b1fba6a09766565cd21f96453bd2d056f74f70
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
Entering resumption on STATE_NONE from NotificationMediaManager
causes flicker because it sends STATE_NONE to often. Instead, we can
listen for PlaybackState changes from the MediaController directly.
For cast, we need to enter the resumption state on STATE_CONNECTING,
because that is the resulting state after ending a cast session.
Fixes: 153937833
Test: manual - play music and toggle play / pause. Look for flicker
caused by action buttons rapidly switching in and out of the
resumption state.
Test: manual - cast from YT to TV. End cast session. Verify that player
is in the resumption state.
Change-Id: Ie7f577d1b06719a1ce2ae5927b2ee20745076303
Support setting a logical child count on the notification group view.
Since we are filtering out the notifications and their views entirely in
the new pipeline, we can't just use the number of children views on the
notification group view to determine the "+X" value in the group view UX
for how many children are in the unexanded group. So instead we set this
value directly.
Bug: 145748993
Test: add notification group and see overflow values are accurate in
both old and new pipeline
Change-Id: I60bc58994a77bc3801f062dedc41faaee1d48494
Don't bother inflating group children that won't be visible and filter
it from the notification list we give to
NotificationViewHierarchyManager.
Bug: 145748993
Test: atest SystemUITests
Change-Id: I97696070aea93f5cf3c188a391db651ba802d080
- Support 'all conversations bubble'
- Only the selected button text should be colorful
Test: atest
Bug: 153471239
Fixes: 153885391
Change-Id: Ideb7cf6c853095cc6c55fa1b7f651aa7a0259f4e
Since we have blur and zoom effect, the desaturation transition of
ImageWallpaper is no longer necessary, so we remove related logic.
Bug: 153511553
Test: Manually test
Test: atest com.android.systemui
Change-Id: Id88fd5931f9168b7c4821dfdbb84165523c7dfa9
Test: atest GlobalActionsDialogTest
Test: Power menu items beyond the 3rd will appear in a dropdown menu instead of being truncated when controls are available. If controls are disabled (ex. 'adb shell settings put secure systemui.controls_available 0'), all items should still display in older versions of GlobalActions. Items in power overflow menu are both short- and long-pressable.
Fixes: 152625023
Change-Id: Icdbf8eb7e79a61d490d484f207eeedc47c4882c5
The relevant logic has been moved to KeyguardViewController instead so
that phone and car can define this separately.
Bug: 140423092
Bug: 147455109
Test: atest SystemUITests, manual for automotive
Change-Id: I9473c2ec6993808cd41c0c1021250dbf550f60c2
The current use cases for NotificationRowBinderImpl and NotifInflater's
API don't really need a persistent inflation callback stored as opposed
to a one-shot callback. By explicitly putting the callback in the
inflate methods, it also makes it more clear which calls inflate and
expect a callback to be called.
Bug: 145749521
Test: atest SystemUITests
Test: smoke test (add, update, remove notification)
Change-Id: I001413f17b7472ea2ef637be21d9d454ee17015e
Clean up a few things in NotificationRowBinderImpl
*Remove a bunch of dead parameters and methodsd
*Split logic into three main helper methods
1) bindRow - called once when row is made
2) updateRow - called to update row view state whenever the
notification is updated
3) inflateContentViews - called to initiate row content inflation
whenever notification is updated
*Try to move other logic to appropriate places
-Mainly move targetSdk resolution to be right after setting the sbn
instead of after the row is inflated. This also makes icons neater to
manage since we can immediately set the tag
Bug: 145749521
Test: atest SystemUITests
Change-Id: Id59a28c0fbbe1df5ffc4ec8eef58d760b8c6df05