Commit Graph

642921 Commits

Author SHA1 Message Date
Riddle Hsu
af0979cd40 Fix freeform task surface is not shown
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
2021-06-03 13:07:01 +08:00
TreeHugger Robot
d52baf860c Merge "Attempt to fix race of task surface visibility" into sc-dev 2021-06-03 04:37:23 +00:00
Yanting Yang
f995ce3c52 Merge "Deprecate silky flag for official release" into sc-dev 2021-06-03 04:05:26 +00:00
TreeHugger Robot
2498beaa3d Merge "Force relayout if sync operation is requested explicitly" into sc-dev 2021-06-03 02:59:00 +00:00
Riddle Hsu
6a0777a1d7 Force relayout if sync operation is requested explicitly
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
2021-06-03 02:58:32 +00:00
Lucas Dupin
2178808d93 Merge "Apply colors a bit earlier when switching users" into sc-dev 2021-06-03 02:20:24 +00:00
John Tsai
5d1934f765 Merge "Revert "Release cblocks back to the free pool"" into sc-dev 2021-06-03 02:13:03 +00:00
John Tsai
516cb2d025 Revert "Release cblocks back to the free pool"
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
2021-06-03 02:10:26 +00:00
Lucas Dupin
0ac508fa1f Merge "Crash in com.android.systemui.tests, java.lang.IllegalStateException" into sc-dev 2021-06-03 01:48:10 +00:00
Minche Li
a39327f045 Merge "Keeps the Y position with the same height ratio before the window height is changed" into sc-dev 2021-06-03 01:39:20 +00:00
Lucas Dupin
c50e8c3afe Merge "Avoid overlap when fading notifications in" into sc-dev 2021-06-03 00:37:02 +00:00
Lucas Dupin
e02895a32f Apply colors a bit earlier when switching users
ACTION_USER_STARTED is dispatched a bit earlier than
ACTION_USER_SWITCHED.

Test: atest ThemeOverlayControllerTest
Bug: 189075412
Change-Id: Iabd6e3bffede4caa53c6bcc61fbf17a2b8de9c55
2021-06-02 17:29:42 -07:00
Adam Bookatz
343c116a63 Merge "Slate ephemeral user deletion in systemReady()" into sc-dev 2021-06-03 00:26:15 +00:00
TreeHugger Robot
e36c773634 Merge "Add emergency app to power-save allowlist" into sc-dev 2021-06-02 23:47:04 +00:00
Antonio Kantek
1de80b1d70 Merge "Deleting DisplayContent#reparentDisplayContent and related code" into sc-dev 2021-06-02 23:23:41 +00:00
Svetoslav Ganov
1028eb2f62 Merge "Switch media fw permissions checks to AttributionSource" into sc-dev 2021-06-02 23:07:22 +00:00
Peiyong Lin
13b9214a17 Merge "Reduce log spam in GameManagerService." into sc-dev 2021-06-02 23:00:39 +00:00
Hui Yu
b7c4eb868e Merge "Generate new field short_name_hash for atom ForegroundServiceStateChanged." into sc-dev 2021-06-02 22:57:23 +00:00
Nader Jawad
ced65d71ae Merge "Updated EdgeEffect to respect accessibility settings" into sc-dev 2021-06-02 22:46:00 +00:00
TreeHugger Robot
dae10ef148 Merge "Add role annotation for READ_VOICEMAIL and WRITE_VOICEMAIL permission." into sc-dev 2021-06-02 22:45:25 +00:00
TreeHugger Robot
3ff294cd82 Merge "Make package handling in openContentUri more robust" into sc-dev 2021-06-02 22:24:17 +00:00
Lucas Dupin
0fb7f056de Avoid overlap when fading notifications in
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
2021-06-02 15:20:57 -07:00
Xiaoyu Jin
b7d75ad788 Merge "Add AppSearchConfig in AppSearch" into sc-dev 2021-06-02 22:13:37 +00:00
Adithya Srinivasan
c6273f7f15 Merge "Add TaskSurfaceHelper/Controller in WMShell to plumb game mode to SF" into sc-dev 2021-06-02 22:00:09 +00:00
Grace Cheng
1b89ad152b Merge "Update side-fps affordance to account for changes in device rotation, and derive params from sensorProps and WindowManager" into sc-dev 2021-06-02 21:40:53 +00:00
Caitlin Cassidy
2bc4662bc1 Merge "[Ongoing Call] Use the notification's key to identify when to remove the ongoing call chip, rather than the notification's template." into sc-dev 2021-06-02 21:11:06 +00:00
Beverly Tai
e9a03ecd5c Merge "Don't update lock icon location based on rotation" into sc-dev 2021-06-02 21:10:02 +00:00
Suprabh Shukla
a1812e90a3 Add emergency app to power-save allowlist
Test: Manually run:
adb shell dumpsys alarm
Should show 'com.android.emergency' under 'Exempted bucket packages'.

Bug: 189866352
Change-Id: I485dd3e4d9026e576b670a1a4439ea62eec987f3
2021-06-02 14:08:32 -07:00
Patrick Baumann
81858ab41c Merge "Release cblocks back to the free pool" into sc-dev 2021-06-02 20:35:15 +00:00
Jeff Sharkey
e6fb6087aa Merge changes from topic "may27-sdk" into sc-dev
* changes:
  Finalize resource IDs; script to help in future.
  platform/frameworks/base/ - S is now 31
2021-06-02 20:11:14 +00:00
Nader Jawad
7d0ed97427 Updated EdgeEffect to respect accessibility settings
Modified EdgeEffect to be disabled if the global
ValueAnimator#areAnimatorsEnabled flag is false

Fixes: 189870180
Test: Added CTS test
Change-Id: I7adb00342f6f89655719d6c5b64316fc58589e0a
2021-06-02 13:08:08 -07:00
Kevin Chyn
bc77821e7d Merge changes I2eebe329,I81f1dfc1 into sc-dev
* changes:
  Turn off HBM when AcquiredInfo#GOOD
  Do not handle requests on system_server thread
2021-06-02 20:06:11 +00:00
Dan Shi
82c953e97f Merge "Remove ResourcesHardeningTest from Test Mapping" into sc-dev 2021-06-02 19:48:14 +00:00
Lucas Dupin
327a271617 Merge "Correctly calculate top corner radius" into sc-dev 2021-06-02 19:23:34 +00:00
TreeHugger Robot
7a50ad7a88 Merge "Media control icon adjustments" into sc-dev 2021-06-02 19:19:24 +00:00
TreeHugger Robot
1cdc8379a8 Merge "camera2: Fix parcelling of sensor pixel modes." into sc-dev 2021-06-02 19:10:53 +00:00
Song Hu
2ab80e4562 Merge "Add sharesheet logging for empty direct share row and app share prediction timeout." into sc-dev 2021-06-02 19:03:16 +00:00
Matt Casey
44ef70af8d Merge "Fix rounded borders of save/edit to match spec" into sc-dev 2021-06-02 18:57:36 +00:00
Songchun Fan
9dbc816ac7 [SettingsProvider] revert max sdk restriction for mobile_data
BUG: 189872797
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I18b6cf90a79ffb6c28604c1967d7208c523f4b13
2021-06-02 18:55:14 +00:00
Caitlin Cassidy
9fc7708b5e [Ongoing Call] Use the notification's key to identify when to remove the
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
2021-06-02 18:45:08 +00:00
Hai Zhang
9e264163d4 Merge "Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING." into sc-dev 2021-06-02 18:38:47 +00:00
Dan Shi
4463194107 Remove ResourcesHardeningTest from Test Mapping
ResourcesHardeningTest is not a test module name.
This is a partial revert of ag/14505818

Bug: 189953380
Test: none
Change-Id: Iebf50714918d64eb52183c1f140ac8dba38b2ae5
2021-06-02 18:36:09 +00:00
TreeHugger Robot
9d1e7a6e8e Merge "Fix two location bugs" into sc-dev 2021-06-02 18:10:09 +00:00
Adam Bookatz
ef4023a308 Slate ephemeral user deletion in systemReady()
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
2021-06-02 10:57:37 -07:00
Tyler Gunn
5cff811f80 Add role annotation for READ_VOICEMAIL and WRITE_VOICEMAIL permission.
This facilitates autogranting to the default dialer role holder.

Test: Added CTS test to verify
Fixes: 149731110
Change-Id: I63928133915e3f623dffaf606d100a4f614f1633
2021-06-02 10:47:08 -07:00
Beverly
7d1b922b02 Don't update lock icon location based on rotation
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
2021-06-02 13:36:13 -04:00
Hui Yu
f88000f4bd Generate new field short_name_hash for atom ForegroundServiceStateChanged.
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
2021-06-02 10:11:37 -07:00
Jon Spivack
dd934371ae Merge "Allow AssistDataRequester to fetch AssistContent without AssistStructure" into sc-dev 2021-06-02 17:08:47 +00:00
Winson Chung
7a2b7fc43f Merge "Fix issue with system gesture areas being too large" into sc-dev 2021-06-02 16:50:57 +00:00
Kevin Chyn
f6ff170d53 Turn off HBM when AcquiredInfo#GOOD
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
2021-06-02 09:29:35 -07:00