summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-15Snap for 7550930 from 0a879b6b6129723320e53564d5d91011af08ee59 to ↵android-mainline-12.0.0_r6android-mainline-12.0.0_r23android12-mainline-captiveportallogin-releaseAndroid Build Coastguard Worker
mainline-captiveportallogin-release Change-Id: I17abcfd1f588791440768ac441f6404f9c450d72
2021-07-14Merge "SF: Avoid promoting parent layer in binder thread" into sc-dev am: ↵Vishnu Nair
aff187c337 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15276211 Change-Id: I463456553ece9da19064633bd22e325d5fddf59a
2021-07-14Merge "SF: Avoid promoting parent layer in binder thread" into sc-devVishnu Nair
2021-07-13Merge "SF: don't skip draw for clearContent" into sc-dev am: 311ea1b9e8Ady Abraham
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15276470 Change-Id: Ie7167cc2ae4d32844f717d40f76dd89e83affd95
2021-07-13Merge "SF: don't skip draw for clearContent" into sc-devAdy Abraham
2021-07-13SF: don't skip draw for clearContentAdy Abraham
Layers that needs to punch a hole using clearContent (HWC request) should not be skipped for drawing, as we need to draw the punch hole. Bug: 190765526 Test: Force all non-SurfaceViews to client composition Change-Id: I891f697b0cea1bcbe9782714acd6b8f88ecc99b3
2021-07-13SF: Avoid promoting parent layer in binder threadVishnu Nair
Some components in SF extend the life cycle of layer objects causing them to be destroyed without the state lock held. If a binder thread promotes a layer, there is a chance it will be left holding the last reference. This will cause the layer to be destroyed in the binder thread, resulting in invalid accesses and crashes. Fix this by tracking root layers with a variable to avoid promoting parent layer in binder thread. Test: presubmit, manually test refresh rate overlay Test: go/wm-smoke Fixes: 186412934 Change-Id: Icd9f4e851bbd92c887e113e52505ce4d8eb3ea0c
2021-07-13Merge "Fix SF blur to be as blurry as Gaussian blur" into sc-dev am: e78acd5b6aGalia Peycheva
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15164243 Change-Id: I7440e27a8bea6d183bb4d0d4226901b3d224150b
2021-07-13Merge "Fix SF blur to be as blurry as Gaussian blur" into sc-devGalia Peycheva
2021-07-13Fix SF blur to be as blurry as Gaussian blurGalia Peycheva
The current SF blur is using an approximation of Gaussian blur. The blur radius has to be 3.2 times higher in order the create the same effect that Gaussian blur would. This CL corrects that, making the SF blur as blurry as a Gaussian blur. This way, the effect that a certain blur radius creates with Android cross-window blur resembles closely what Gaussian blur would do with the same radius. This also aligns the effect created by in-app blurs and cross-app blurs with the same blur radius. Bug: 192241610 Test: atest BlurTests Test: manual, comparing in-app blur and cross-app blur Change-Id: I5fe428ddf01dbe3d2bd6df18957165588848235e
2021-07-13Merge "Don't use LOG() in code that runs post-fork." into sc-dev am: 40214cbd17TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15259876 Change-Id: Iefef4b9f3d12df375f9004824e2f4d00f8576394
2021-07-13Merge "Don't use LOG() in code that runs post-fork." into sc-devTreeHugger Robot
2021-07-13Don't use LOG() in code that runs post-fork.Martijn Coenen
To prevent deadlocks. Bug: 188393100 Test: N/A Change-Id: Icf7a04c8f9d244b7bdd94b2111f41ce489d39302 Merged-In: Icf7a04c8f9d244b7bdd94b2111f41ce489d39302
2021-07-12Merge "dex2oat: add a new task profile for dex2oat boot_complete policy" ↵TreeHugger Robot
into sc-dev am: b0eecadde9 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15226977 Change-Id: I68fa8c9c436e85b0c680a809d36b5af3ddfbe771
2021-07-12Merge "dex2oat: add a new task profile for dex2oat boot_complete policy" ↵TreeHugger Robot
into sc-dev
2021-07-12Merge "Increase meminfo dumpsys timeout" into sc-dev am: b058a60401Gavin Corkery
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15243093 Change-Id: Iafbbcf43b2e8c7978c7652e60c81fdcf56f1b24c
2021-07-12Merge "Increase meminfo dumpsys timeout" into sc-devGavin Corkery
2021-07-10Merge "Fix HDR layer info listener to use the right area" into sc-dev am: ↵TreeHugger Robot
e565bb8181 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15245286 Change-Id: I05fafb99b6244bfc86777b26e3a5537fe6ffbbf0
2021-07-10Merge "Fix HDR layer info listener to use the right area" into sc-devTreeHugger Robot
2021-07-09Fix HDR layer info listener to use the right areaJohn Reck
Use the display frame instead of the buffer size as we care about how much screen-space an HDR layer is occupying, not how big the video buffer is. Fixes: 193229521 Test: logs added while watching HDR videos in youtube Change-Id: I25f9d4cfef14cb550b9db7ce57b508d2cad876b4
2021-07-09Merge "SF: fix BufferTX counter for null buffers" into sc-dev am: 90b688e087Ady Abraham
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15240586 Change-Id: Ib4b14063dd4a2f8c8b3919cf27d8b84c8a9ee9bd
2021-07-09Merge "SF: fix BufferTX counter for null buffers" into sc-devAdy Abraham
2021-07-09SF: fix BufferTX counter for null buffersAdy Abraham
Don't increment the BufferTX counter is the transaction includes a buffer change but that buffer is null. Test: Open https://jsfiddle.net/8q7nuwh9/show in Chrome and scroll up down Bug: 192352790 Change-Id: Ia0a27ff32fb20f20a1ac671f2b4fdb3ae22a8aea
2021-07-09dex2oat: add a new task profile for dex2oat boot_complete policyWei Wang
Since installation time is also critical and sometime we want a finer control on its behavior for vendor. Instead of setting dex2oat to background group, add a new task profile (by default same as background group). Test: Boot Bug: 188947181 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I37a36050a338f9eba8d605a00a32b99a4a590bac
2021-07-09Merge "SF: Set dirty region bit if transparent region hint changes" into ↵Vishnu Nair
sc-dev am: 5b20104681 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15240432 Change-Id: I6a0e2a516dc6b40b4e1e9a501eff19b1a8f9f0f6
2021-07-09Merge "SF: Set dirty region bit if transparent region hint changes" into sc-devVishnu Nair
2021-07-09Increase meminfo dumpsys timeoutGavin Corkery
Increases the meminfo dumpsys timeout from 30s to 60s, since 30s is sometimes not enough. Test: Check that longer timeout is used in writeDump call Bug: 191615258 Change-Id: Ic270a81f3dde1329881023d533ffbff43a82127c Merged-In: Ic270a81f3dde1329881023d533ffbff43a82127c (cherry picked from commit fac7e2b57ba6b9d461ed779a7fe6a620335d16c8)
2021-07-09Merge "BlastBufferQueue: Keep transform hint in Surface consistent" into ↵Vishnu Nair
sc-dev am: 4c969b34bb Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15226224 Change-Id: Ia02821a64d65e46e9e2e74134c9a2345f0dfcf68
2021-07-09Merge "BlastBufferQueue: Keep transform hint in Surface consistent" into sc-devVishnu Nair
2021-07-08SF: Set dirty region bit if transparent region hint changesVishnu Nair
We need to recompute visible regions if the transparent hint changes. Previously we were relying incorrectly on metadata change to recompute visible region. Since we set metadata every frame, we were always forcing visible regions to be recomputed. Test: check steps in bug does not repro Fixes: 191954056 Change-Id: Idd3adf7cf950a3655a5d8593da2f5aa0adcbbca1
2021-07-09Merge "Actually use texture bounds in CachedSet::getTextureBounds" into ↵Alec Mouri
sc-dev am: a910271057 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15238149 Change-Id: I9cb65b578f066e64d35c5bb0db7d59eedddcb71b
2021-07-09Merge "Actually use texture bounds in CachedSet::getTextureBounds" into sc-devAlec Mouri
2021-07-08Actually use texture bounds in CachedSet::getTextureBoundsAlec Mouri
Virtual displays may be projected onto a display area that is a subrectangle of the display size. Because the flattened buffer for a CachedSet is display-size, we need to use the display size as the display frame instead of the framebuffer output rectangle. Otherwise, we would be blitting the contents of the display-sized texture onto a smaller area, which causes an unintended scale. Bug: 191328868 Test: Simulating secondary displays does not squash the content. Test: libcompositionengine_test Change-Id: I79d56a998e4f7fc030191fed50002354c3c18561
2021-07-08BlastBufferQueue: Keep transform hint in Surface consistentVishnu Nair
We should only update the transform hint in Surface when connecting to the queue or queuing a buffer. Otherwise, the transform hint value used when dequeuing the buffer will not align with the value queried from the Surface. This inconsistency was causing BBQ to reject buffers and we suspect this was causing an issue where BBQ will remain in this inconsistent state rejecting all buffers until the app changed orientation. Test: rotate device, check for rejected buffers, run through scenario in bug Bug: b/191841127 Change-Id: Id84a3a650ce68878e5638b942249c11558fd29eb Merged-In: Id84a3a650ce68878e5638b942249c11558fd29eb
2021-07-08Merge "Added API changes for sensor privacy toggle source." into sc-dev am: ↵Pyuli Naithani
7b86b176d0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15193434 Change-Id: I848260fa617b85162c2251814d61a841e8b1e804
2021-07-08Merge "Added API changes for sensor privacy toggle source." into sc-devPyuli Naithani
2021-07-08Merge "Add an utility function to convert RotationFlags to Rotation" into ↵Vishnu Nair
sc-dev am: 6a5e8c4adb Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15191746 Change-Id: I29a7332a85fbb4399be7f55bf950b504afe8d9c0
2021-07-08Merge "Add an utility function to convert RotationFlags to Rotation" into sc-devVishnu Nair
2021-07-07Merge "Exclude LargeTests from presubmit." into sc-dev am: c45b3a871cKweku Adams
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15174796 Change-Id: I336fb847ca2b64015701119db6915d83af660c1a
2021-07-07Merge "Exclude LargeTests from presubmit." into sc-devKweku Adams
2021-07-07Merge "Cache shadow shaders for showing shadier shapes without shaky ↵Nathaniel Nifong
shinanigans" into sc-dev am: 3f3b607d34 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15189838 Change-Id: Ib6de467bceea9d1b9f33f32642514e4d918ec613
2021-07-07Merge "Cache shadow shaders for showing shadier shapes without shaky ↵Nathaniel Nifong
shinanigans" into sc-dev
2021-07-06Merge "Fix AMOTION_EVENT_FLAG_IS_ACCESSIBILITY_EVENT for non-linux builds" ↵Diego Perez
into sc-dev am: 199ca20ef4 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15215271 Change-Id: I632ee5994d3c4c30e92530048c35077a6588ff70
2021-07-06Merge "Fix AMOTION_EVENT_FLAG_IS_ACCESSIBILITY_EVENT for non-linux builds" ↵Diego Perez
into sc-dev
2021-07-06Drop runtime argument from profman invocation am: 2d7db5747fOrion Hodson
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15215411 Change-Id: I3d2d14d66120fa18678537e8976e9de1c73558ef
2021-07-06Drop runtime argument from profman invocationOrion Hodson
(cherry picked from commit c47757ca9c91266e7ec0c23207379ef2fff8716c) Bug: 192871419 Test: atest installd_dexopt_test Ignore-AOSP-First: cherry pick of https://r.android.com/1757092 Merged-In: I7aeef7465f3617393ede43b24b142d7149942b3d Change-Id: I3f93f2c1079fe6a44326f60b29a088e4eb6bac97
2021-07-06Fix AMOTION_EVENT_FLAG_IS_ACCESSIBILITY_EVENT for non-linux buildsDiego Perez
Remove semicolon as there are more enum elements. Bug: 192643379 Test: build for non-linux host Change-Id: Ia9e90f382d50ec52f0bad9c186031fd7ca29053a
2021-07-05Merge "Prevent processing touch after receiving an invalid tracking id" into ↵Arthur Hung
sc-dev am: 10d57c6cfa Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15023701 Change-Id: Idf72d2b888c845f0675b68520140d96c4926ab72
2021-07-05Merge "Prevent processing touch after receiving an invalid tracking id" into ↵Arthur Hung
sc-dev
2021-07-03Merge "Fix color sampling for landscape" into sc-dev am: 16d968616fHuihong Luo
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15185035 Change-Id: Ie182436eee9f25a8aa02c6fb75fab7d10317131f