Commit d3bdc63 reuse canBeOrganized to decide whether to
show task surface on creation. But canBeOrganized doesn't
check supported type that causes the surface of freeform
(unsupported type) task not to show.
Bug: 185400889
Test: Enable freeform in developer options. Enter recents
and select freeform. The task should be visible.
Change-Id: Id534918998acf2a3c1f8c9b97fb9c8fb6b386996
The initial value of WindowState#mRedrawForSyncReported is false.
Then even if mSyncState is none and mPendingDrawHandlers is empty
and Task#mMainindowSizeChangeTransaction is null, it still forces
client to relayout.
This change aligns the condition in updateResizingWindowIfNeeded
that also checks shouldSendRedrawForSync. So if there is no
explicit sync request, there won't be an extra relayout.
Bug: 189915038
Test: CtsWindowManagerDeviceTestCases
Test: Check trace of adding a new simple window. There should be
only one traversal.
Change-Id: Iad10034e29b9db50ec4221ac1a25f26ce6464393
This reverts commit e41b029d85.
Reason for revert: b/189985437
com.android.tradefed.targetprep.TargetSetupError[APK_INSTALLATION_FAILED|520001|DEPENDENCY_ISSUE]: Failed to install com.android.devicehealthchecks with ...
Change-Id: I06fe7d94f6dab474c74b093de8692f08d4031b62
ACTION_USER_STARTED is dispatched a bit earlier than
ACTION_USER_SWITCHED.
Test: atest ThemeOverlayControllerTest
Bug: 189075412
Change-Id: Iabd6e3bffede4caa53c6bcc61fbf17a2b8de9c55
This CL reduces the number of awkward overlaping frames, where the scrim
is partially visible on top of the app while notifications are also
semi-transparent.
One great benefit of this CL, as well, is that it avoids overdraw,
drawing notifications after the shade window becomes opaque.
Test: using jank scripts
Test: manual
Fixes: 189964129
Change-Id: Ie2fe23aba101bc4c4a5692f999d672e79ddf8e0a
Modified EdgeEffect to be disabled if the global
ValueAnimator#areAnimatorsEnabled flag is false
Fixes: 189870180
Test: Added CTS test
Change-Id: I7adb00342f6f89655719d6c5b64316fc58589e0a
ongoing call chip, rather than the notification's template.
See b/188491504#comment32 for rationale.
Test: Manual + new unit tests
Fixes: 188491504
Bug: 183229367
Change-Id: Ic3c02f0b6b4742d66c58459d5999e841bbf378c0
ResourcesHardeningTest is not a test module name.
This is a partial revert of ag/14505818
Bug: 189953380
Test: none
Change-Id: Iebf50714918d64eb52183c1f140ac8dba38b2ae5
After a reboot,
ephemeral users are currently slated for deletion upon
UserManager.onBootPhase(PHASE_ACTIVITY_MANAGER_READY).
However, ephemeral users are already somewhat removed prior
to this, without it being reported, which can cause severe
problems.
Here, we slate ephemeral users for deletion slightly earlier,
in UserManager.systemReady().
Bug: 181291095
Test: atest android.host.multiuser.EphemeralTest#testRebootAndRemoveEphemeralUser_withAccount
Test: manual:
adb shell pm create-user --ephemeral Ephy
switch to the user, connect to the internet, and set up an account
reboot the device (from within that ephemeral user)
observe no boot-loop
Change-Id: I0f60785a1e67945f42d8332ca4d09d06145a3347
This facilitates autogranting to the default dialer role holder.
Test: Added CTS test to verify
Fixes: 149731110
Change-Id: I63928133915e3f623dffaf606d100a4f614f1633
On the keyguard, the orientation is always portrait, even when the
rotation of the device doesn't indicate portrait. Previously, the
location of the lock icon was updated based on rotation and was
offscreen. Instead, don't update based on orientation.
Test: manual
Fixes: 187470345
Change-Id: Ie7355fddfef32c6c75d91a1e9da8b49fb301dc93
A new field short_name_hash is added to atom ForegroundServiceStateChanged.
This field is SHA-1 hashed ServiceRecord#shortInstanceName combined with ANDROID_ID.
Bug: 187857932
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I959d50205f72ea3ed7b2a0b0ed2df77bd393ed1c
Prevent unnecessary use of HBM. This change decouples illumination
state from touch state. onFingerUp should always be called whenever
the finger leaves the HBM area, and not only when illumination was
requested (isFingerDown was actually isIlluminationRequested()).
Moves the check to onFingerUp to stop illumination only if illumination
was actually happening.
Bug: 187460696
Test: atest UdfpsControllerTest
Change-Id: I2eebe32990761d2fbf86cab228e4a7221a209b42