PagedTileLayout respects MeasureSpec mode for height to decide on how many
rows to show. TilePage and PagedTileLayout only show as many rows as
they can up to the height of the screen. TileLayout can calculate the
maximum number of rows given a height limit.
Fixes: 113082314
Test: Visual, atest
Change-Id: I2860d71c9aeb2a8ac62fcdbc71a3041a91605bcb
This is a mechanical refactoring, which should have no observable
behavior difference at this moment.
We need this refactoring because InputMethodManager#getInstance() does
not work well on multi-display scenarios.
Bug: 115891476
Test: Manually made sure that IME still works on inline-reply
Change-Id: I266c17187c7faab4d436e19a4db7595cab4244ac
setKeyguardFadingAway will only be called again with false when
the scrim animation is over. This means that if AM takes to long
to start the animation, something else might have already tried
to fade out the scrim because the device woke up or changed state.
Change-Id: I46f87a4e72f8a8408365c2852df9d2c58d53fd9a
Fixes: 115332000
Test: unlock with PIP and breakpoints
ShadeViewRefactor's package java.lang.annotation was inconsistent
with its source directory; further, it broke taimen-userdebug-jdk9
because java.lang.annotation is a core library package and it's
no longer supported for framework to have code in such packages.
This CL fixes compilation by moving the annotation to the correct
package which corresponds to its source directory.
Test: make SystemUI-core
Bug: 115604102
Change-Id: I600e57da316f60855d71f69b1aa1939f2081d513
- The wallpaper visibility listener is only registered but never
unregistered, and the RemoteCallbackList isn't enough to manage this
since all instances belong to the same instance of the SysUI process.
Fixes: 79181718
Test: Change configuration to recreate the nav bar and ensure the old
nav bar transition wallpaper visibility listener is unregistered
first
Change-Id: I08e1600a016f1ddff51fc2f67eb4ddced42963b6
Reverted ag/4731597 since it was causing issue and instead hides the
menu container when none of its children are visible.
Change-Id: Ie48ef32f8a66392796cb0330faed6dff499bc1b1
Fixes: 114099654
Test: tap around the right edge
The root cause here is that some components
(NotificationKeyguardUserManager, NotificationStackScrollLayout,
NotificationShelf) have subtle dependencies about how they update based
on StatusBarState which used to be satisfied. When we migrated to
StatusBarStateController the dependencies were broken sometimes.
The fix here is multifactorial:
1. Introduce a ranking to StatusBarStateController listeners so that
we can unwind the dependencies for now. (This should be fixed
long-term)
2. Move NSSL's actual notification updating to a new
onStatePostChange() method of the listeners
3. Explicitly call updatePublicMode() when hiding the
keyguard because SbStateController does not give callbacks when
setting a state to the same value.
Will move updatePublicMode into NotificationKeyguardUserManager in a
later commit to reduce the surface area here.
Bug: 115739177
Change-Id: I97786619a1843922aeedcdb51e067a7c46cacaec
Fixes: 114297820
Test: manual
I don't see a reason why we would constrain mBarState.addListener to
happen only once, because the whole point is that other classes listen
to those changes as well, and will subscribe unless we mock literally
everything.
Change-Id: Id6aed68c48fbc4f94f78fcd38b9fe0ec83d49c7e
Fixes: 115742174
Test: `atest NotificationStackScrollLayoutTest`
We don't want to hide the bouncer when the SIM card is READY,
unless we were already at the bouncer because of the SIM PIN/PUK
Test: Insert locked SIM card on lock screen or launcher. Type PIN
Test: Insert unlocked SIM card after pulling up the bouncer
Fixes: 114740965
Change-Id: I4f781b47c1e2a12e5c6f064f303cd457ece01b67
SysUI must send protected broadcasts to avoid system impersonation.
Our tests should also allow these types of broadcasts, otherwise
they will be dropped/skipped on -user builds and functionality
will be broken.
This CL also protects the flashlight broadcast.
Fixes: 110825884
Test: atest com.android.systemui.qs.external.TileServicesTest
Change-Id: I5a3dfc569c1695366e5f0e48cda8a7a32e287e7d
In StatusBar, there are no spaces between Operator name and Clock,
so leaving spaces to improve design.
Bug: 114133664
Test: Manual, enable operator name in status row
config_showOperatorNameInStatusBar, insert sim card with operator name,
watch status row.
Change-Id: I1a2e33436ed50d429ae4b1769d0a72d501233a22
Add some unit tests for NotificationGroupManager testing some basic
functionality and also some of the complex heads up logic.
Bug: 79705024
Test: runtest systemui
Change-Id: I73f01827063d2704a4e1b1d18d479d4e9375447e