Commit Graph

650742 Commits

Author SHA1 Message Date
TreeHugger Robot
93be1fb110 Merge "Fix broken launcher build to use the right import for ContextThemeWrapper." into sc-v2-dev 2021-07-30 18:32:37 +00:00
Dave Mankoff
764adfdcee Merge "Remove CommandQueueCallbacks interface from StatusBar." into sc-v2-dev 2021-07-30 17:59:45 +00:00
Evan Rosky
1f1bf94821 Merge "Add occlude/unocclude support in keyguard shell transitions" into sc-v2-dev 2021-07-30 17:54:29 +00:00
Riddle Hsu
eced4b3208 Merge "Use size compat bounds for window layout" into sc-v2-dev 2021-07-30 17:36:24 +00:00
Becky Qiu
2ee44db719 Fix broken launcher build to use the right import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ia36b77e3274191efa28c87cc0b2604a66906b604
Merged-In: Ia36b77e3274191efa28c87cc0b2604a66906b604
2021-07-30 17:32:35 +00:00
Li Li
d2aeb490a8 Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev am: ef12967b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15395534

Change-Id: I28f1b15ab636063727f02414a98896ee2679c6fc
2021-07-30 16:50:50 +00:00
Mady Mellor
57a3e448f6 Merge changes Ie7aaec55,I3053cdb6 into sc-v2-dev
* changes:
  Remove BUBBLE_EXPANDED state from ScrimController
  Manage menu changes
2021-07-30 16:47:43 +00:00
Li Li
ef12967b75 Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev 2021-07-30 16:35:16 +00:00
Chris Li
d31dbcf198 Merge "Do not call setReady(false) when finishing" into sc-v2-dev 2021-07-30 16:09:30 +00:00
Ryan Mitchell
a9e929d9f7 Merge "Apply overlay updates to widget provider info" into sc-dev am: f56550282e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15332156

Change-Id: Ic65e97362a717d66290074dd3340700f9a76ae9d
2021-07-30 16:08:39 +00:00
Evan Severson
76e817ae0b Merge "Check the current user in the system server for SensorPrivacyManager" into sc-dev am: 705c7539eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15420286

Change-Id: I2b4618d07ce9f957623a72d4da7d9f35bf09b581
2021-07-30 16:08:12 +00:00
Ryan Mitchell
f56550282e Merge "Apply overlay updates to widget provider info" into sc-dev 2021-07-30 16:04:00 +00:00
Evan Severson
705c7539eb Merge "Check the current user in the system server for SensorPrivacyManager" into sc-dev 2021-07-30 15:55:22 +00:00
Bill Yi
2601452f97 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7c6a1b2f87 -s ours am: 14a3d4f5ea -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430174

Change-Id: I47db08e7c563afe2b24bc3b436f4e0dbb74ff04c
2021-07-30 15:09:04 +00:00
Mariia Sandrikova
809e26fc6a Merge "Freeze live wallpaper for letterbox background." into sc-v2-dev 2021-07-30 15:00:37 +00:00
Bill Yi
14a3d4f5ea [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7c6a1b2f87 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430174

Change-Id: Ide9da06929ae5176883f2902e75c3b8f98c48d49
2021-07-30 14:53:59 +00:00
TreeHugger Robot
0b7f506aa9 Merge "[DO NOT MERGE] Full - Compatibilize winscope with master" into sc-v2-dev 2021-07-30 14:47:23 +00:00
Bill Yi
3cbd8169d0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ff530f0a8d -s ours am: ab93af3c44 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430176

Change-Id: I99d3e7585f38d34ba18b24a773a93c71531eaf66
2021-07-30 14:39:08 +00:00
Zimuzo Ezeozue
ce692ac89c Merge "Fix fd leak while bypassing transcoding in media APIs" into sc-dev am: 3fefc5c3ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15423590

Change-Id: I88486c8e7278e5899405a379034a453ed95b19f9
2021-07-30 14:39:01 +00:00
Bill Yi
ab93af3c44 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ff530f0a8d -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430176

Change-Id: I02d051ef3c6b009679a10c06cdc36d09c4a080e0
2021-07-30 14:32:28 +00:00
Zimuzo Ezeozue
3fefc5c3ed Merge "Fix fd leak while bypassing transcoding in media APIs" into sc-dev 2021-07-30 14:23:48 +00:00
TreeHugger Robot
32802209a1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-30 14:00:01 +00:00
Tiger Huang
a40dd9980b Merge "Refine updateSystemUiVisibilityLw for performance" into sc-v2-dev 2021-07-30 13:07:20 +00:00
Naomi Musgrave
a4bd8de95c Merge "MediaProjection captures DisplayArea" into sc-v2-dev 2021-07-30 12:50:20 +00:00
Jerry Chang
581d500ee6 Merge "Fix the content of the bottom split being truncated while showing IME" into sc-v2-dev 2021-07-30 12:17:48 +00:00
Thales Lima
6be85d8ee6 Merge "sysui: update wallet card widths on configuration changes" into sc-v2-dev 2021-07-30 12:04:54 +00:00
Mariia Sandrikova
a829124577 Freeze live wallpaper for letterbox background.
With this change, WallpaperController sends "freeze" / "unfreeze" commands when the app window is letterboxed / not letterboxed indicating that:
- "freeze": a screenshot of the wallpaper is taken by WallpaperServices and put on top of the main surface while the wallpaper host is notified through onVisibilityChanged(false) callback that it's no longer visible.
- "unfreeze": a screenshot of the wallpaper is removed and the wallpaper host is notified through onVisibilityChanged(true) callback if the wallpaper is visible again (e.g., if transitioned from an app to the Home screen).

Logic isn't applied to static wallpapers.

When wallpaper size changes while being frozen, the screenshot is scaled and cropped to adjust to the new size.

Fix: 177884751
Test: Manual, atest WallpaperServiceTest, WallpaperServiceTests
Change-Id: If0300478cdccc07d226117e01ce3d43aa0b432a0
2021-07-30 12:58:34 +01:00
Bill Yi
c4efa5bc2a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I37f07168199f51686306c1f831fb53a040db584d
2021-07-30 11:05:02 +00:00
Bill Yi
ff530f0a8d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifbd45d9bb55f6450da12428e7d14b4d3d2299d86
2021-07-30 10:52:22 +00:00
Bill Yi
7c6a1b2f87 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb46839ebfdd3cd2670a7218c5f3955399dc3097
2021-07-30 10:46:03 +00:00
Naomi Musgrave
45dd2a3202 MediaProjection captures DisplayArea
MediaProjection is used by apps to capture the contents of
a display. Apps consume the content from a surface passed
in to MediaProjection#createVirtualDisplay. The images
written out to the surface can be used for saving
screenshots of the current display, screen recording,
or casting to a different display.

MediaProjection is currently tied to capturing a physical
display. This change instead captures the DisplayArea
the app is launched on. This is consistent with Display API
sandboxing, which returns the DisplayArea bounds rather
than the physical display bounds.

Note that apps use the Display APIs to size the
VirtualDisplay and output surface.

Verified: screenshots, screen recording, and casting

Bug: 180624777
Test: atest WmTests:DisplayContentTests
Change-Id: I909e9d32f573aec33869d9f49d6caffc8d7420aa
2021-07-30 09:48:42 +00:00
Junyu Lai
f550c9efbd Add debug log for tracking NPE of mMobileIfaces am: b8364adc23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15406353

Change-Id: Iadff5460314fb70893212640d3d97fc211d0d9da
2021-07-30 08:17:30 +00:00
Junyu Lai
5e6d7895f0 Fix mMobileIfaces is not protected by lock am: f5dc09bc7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15283494

Change-Id: I39c8de09b21d2916b4254b96b4c7300147cc7f8d
2021-07-30 08:17:28 +00:00
Jerry Chang
da44526b9b Fix the content of the bottom split being truncated while showing IME
Freeze the configuration size when shifting split layout so that client
apps can calculate insets properly and won't get config or relaunch.

Fix: 192410210
Test: atest WMShellUnitTests
Test: verified the content of the bottom split won't be truncated when
adjusting split layout with IME and won't get relaunch.

Change-Id: I38da063ffacc19b691c14b74d118949293414492
2021-07-30 16:00:57 +08:00
Junyu Lai
b8364adc23 Add debug log for tracking NPE of mMobileIfaces
Test: TH
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1777887
Merged-In: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
Change-Id: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
2021-07-30 06:08:30 +00:00
Junyu Lai
f5dc09bc7c Fix mMobileIfaces is not protected by lock
Currently, mMobileIfaces is accessed from multiple threads, and
should be protected from concurrent accessing. However, since the
variable could be accessed frequently, holding the mStatsLock
would make this be blocked by network stats I/O operations.
Thus, protect the variable by making it volatile.

Test: Wifi on/off stress test
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1765686
Merged-In: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
2021-07-30 05:59:21 +00:00
Kevin Chyn
9e0dd92699 Merge "Disable face haptics during coex non-bypass by default" into sc-dev am: bf637195e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404309

Change-Id: I320df51da6978ac7f386c019e566572c504ad893
2021-07-30 05:35:22 +00:00
Kevin Chyn
bf637195e9 Merge "Disable face haptics during coex non-bypass by default" into sc-dev 2021-07-30 05:20:32 +00:00
Evan Rosky
8ba6a92dbe Add occlude/unocclude support in keyguard shell transitions
Creates and registers remote transitions that deal with situations
where keyguard might be occluded/unoccluded.

Bug: 191799478
Test: atest KeyguardInputTests
Change-Id: I625a810aef915de7a01ded9ddbe3042f0e124b52
2021-07-30 05:15:33 +00:00
Riddle Hsu
9d4a077de9 Use size compat bounds for window layout
When an app is in size compat mode, the configuration bounds
and layout bounds are not the same such as the app keeps
a larger configuration bounds and needs to be scaled when
drawing on screen. The size compat bounds are the scaled
bounds in screen coordinates so it should be used if available.

Fix: 194820928
Test: SizeCompatTests#testFixedScreenBoundsWhenDisplaySizeChanged
Change-Id: Ib97038560e65699f5275d6f5dc4b8e5881024e57
2021-07-30 12:27:20 +08:00
Wesley Wang
eccdf0ea08 Merge "Adjust SystemUI PowerModule" into sc-dev am: 614b1e94ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15390769

Change-Id: Iddf21b70bf28a022cb5903d0c855082e3c3ecede
2021-07-30 04:25:55 +00:00
Wesley Wang
614b1e94ae Merge "Adjust SystemUI PowerModule" into sc-dev 2021-07-30 04:10:00 +00:00
Chris Li
012697e5a7 Do not call setReady(false) when finishing
Before, when there is a collecting transition, finishing activity/task
will unset the ready state. It can cause issue if the existing
transition has already in ready, because there may not be other setReady
call for finishing.

Bug: 183993924
Test: manually on acloud with resolve activity for two launchers
Change-Id: Ibafaf0b9bd7842a30eedbeb02271ab6f96c838ff
2021-07-29 21:09:53 -07:00
Evan Rosky
cc3b202fab Merge "Add some more transition filter properties" into sc-v2-dev 2021-07-30 01:41:51 +00:00
Jay Aliomer
da8be68189 Merge "Reset patterned animations when solid ripple is reset" into sc-dev am: 70c0c93542
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15413252

Change-Id: Iaaf11e4690faf9b16ec4640850b213c7fecd137b
2021-07-30 00:49:18 +00:00
Michael Wachenschwanz
b4db3d2505 Merge "Log and skip noteEvent calls with null name" into sc-dev am: 0e1ba5a342
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15419007

Change-Id: Ie4baae18cc7495ae337142c99cede75f957bfdd4
2021-07-30 00:49:10 +00:00
Beverly Tai
a1089252cd Merge "Add gravity center to layout params" into sc-dev am: 98a4967908
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411507

Change-Id: I3b0609ebfa57aae1e02078331cbf5e2b43a3154f
2021-07-30 00:48:58 +00:00
Jeff DeCew
8f8facbbbc Merge "Fix bug removing semantic colors of CallStyle notification actions." into sc-dev am: 4203db854f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15405173

Change-Id: If6c4a857e6cc322f8071256bc2645bae74f1274a
2021-07-30 00:48:48 +00:00
Beverly Tai
7e67690b82 Merge "For devices with udfps, always show bg on udfps" into sc-dev am: d2e60974cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15392265

Change-Id: I1d0c75414634c4e2ddfc6dadde0bc5029d2962e9
2021-07-30 00:48:37 +00:00
Nate Myren
5d6791f0c6 Merge "Add |role to UPDATE_APP_OPS_STATS" into sc-dev am: 71a8968dcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15341655

Change-Id: I0e13cd7bcb3eca9525de9aba50e17a21147709ae
2021-07-30 00:48:07 +00:00