Previously, we only started tracking unknownVisibility in
`realStartActivity` which happens after completePause. This is
too late since there can be an arbitrary amount of time before
we get pause and launchBehind apps lifetime shouldn't be
tied to a different task anyways. This CL starts tracking it
on start so that the transition system doesn't interpret it
as syncFinished before we know if it will be visible or not.
Bug: 277759491
Test: Launch home from dream multiple times.
Change-Id: Ifabc089e396717565d351139d761bb967c8946ae
Leak report email was set to be nullable in some modules and not
nullable in others. This was causing undeterministic build failures when
building SystemUI with gradle.
Removing nullable annotation from leak report email dependency and using
empty string instead of null.
Only setting the email in leak report email intent when the email string
is not null or empty.
Bug: 281537214
Test: full build: m -j
Change-Id: Ic798ae8aba76ba29f9ded8dd8a549fd4c31962a6
Disable the debug flag for logging in HandwritingModeController.
When its on, it may log very verbose, not relevant to users/developers.
Bug: 210039666
Test: Manually build and test
Change-Id: I6ec5d93864f6bf365ef420f38ac3f059fe70b987
Update letterbox education dialog to use colours assigned based on
the system theme.
Force letterbox education dialog component to be recreated if the system theme
has been change or device is docked while the dialoge is visible
Fixes: 270936761
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Change-Id: I3422c4ca7d7abdc085b28b341f7d539bc1447f66
Mute events are logged separately from volume events as
those happen more often and would cause older mute events
to roll off the logging window
Log an error when trying to unmute a stream that should
stay muted due to the set of muted streams by ringer and
zen mode.
Also invert muting and updating mask of muted streams
so the state always precedes the update of the stream,
in order to identify incorrect mute state changes.
Bug: 278661956
Test: adb shell dumpsys audio | grep -A 30 "mute commands"
Change-Id: I6091b0e2a449aea4e21167678304811ca8a4ef53
Limit namespace length to 1000 characters to avoid memory or other
potential issues.
Bug: 281553712
Test: atest CtsJobSchedulerTestCases
Change-Id: I8c99ce6c5e9a23a38f91a00bdf22e80d08389f32
Add metrics to track how often apps fail to schedule jobs.
Bug: 138239687
Bug: 279935506
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest
Change-Id: I05fec96feb4ab8b78a0e896b84a31512b4f84fe5
In the case where the `CARRIER_CONFIG_CHANGED` broadcast is sent out
before the default data sub RAT config is read, it will read the
system-defined default carrier config instead of the appropriate one for
the current default data sub.
This change is simple: make sure to always fetch the system current
carrier config when the flow starts.
Bug: 280390475
Test: MobileConnectionsRepositoryTest
Change-Id: I868a840ee8465b0313bc85e5c35c0d40ca9d509a
Split roots (either the single-top root or stage roots) were usually
excluded from having window decorations by the exclusion logic for
non-leafs that exists in FreeformTaskTransitionObserver. However,
once split is dismissed and the child tasks are reparented out of the
stages, the two stage roots become leafs and if they were included as
part of a transition, a window decoration was being created for each of
them. This change excludes split roots from having a window decoration.
Bug: 280499263
Test: enter split, dismiss split by dragging the divider, observe
there's no crash
Change-Id: I4d563176a75512232fc853232b3666d511e4c922
The recommended approach is to pass the class as a parameter.
Bug: 281549104
Test: atest NotificationManagerServiceTest
Change-Id: Ib363110fd2bdcf4d9974fde5f78df926940785bf
Bug: 273314977
Test: manual: trigger lockscreen to dream transition -> verify that the
status bar icons in the top left don't flicker visible for a few frames
(see video attached to bug)
Test: atest CollapsedStatusBarFragmentTest
CollapsedStatusBarViewModelTest
Change-Id: I3474a5c7f6f485e8d26ffc92eac31a9b08901d51
This reduces icon color flickering when disconnecting one of the devices
from a device group. Normally we use device address to pick a color but
in case we have a group id we should use it instead, so that the color
does not change when one of the devices disconnects.
Bug: 269067986
Test: manual
Tag: #feature
Change-Id: If72187d050e8ea531b8f2c39e22f3faf1ec14f7b
Merged-In: If72187d050e8ea531b8f2c39e22f3faf1ec14f7b
Moving input focus is required to show IME after calling
ANI#performAction(ACTION_CLICK) on an embedded text view's node.
ActivityTaskManager#setFocusedActivity does not transfer
window input focus to embedded views.
Bug: 278846790
Test: new test in AccessibilityEmbeddedHierarchyTest
Test: use TalkBack to click on embedded (same & cross-process) edit
texts, observe IME opens and `dumpsys input` shows the embedded
"window" as the input FocusedWindow.
Test: same as above, but in split screen mode with two apps each with
their own edit texts.
Change-Id: I7bd7783cd3426b547ddd2d0e71ad5b38281198c3
This change accounts for spacing from the layout edge in each
complication, rather than using the ViewGroup's padding setting. This
change resolves clipping during transitions due to an interaction
between the ViewGroup padding and alpha/translation animations.
This spacing calculated in margin calculation, now spread across each
logical complication container. The directional group applies margins
between each complication, while the position group applies margins
from the layout's edge.
Test: atest ComplicationLayoutEngineTest
Fixes: 280595239
Change-Id: Ibe4ba52b970337671fec0c0878e2686b5bac8fa2