summaryrefslogtreecommitdiff
path: root/libs
AgeCommit message (Collapse)Author
2020-08-20Merge "Switch to callback animation"Treehugger Robot
2020-08-19Switch to callback animationLiam Harrington
Modified current animation logic to use callbacks from the controllers to further clean and modularize code. Test: Pixel 3XL device, atest PointerController_test, compile Change-Id: I1073bd78687cca491663c0349751dab4b30aa8e2
2020-08-19Correctly expose EGL_ANDROID_native_fence_sync to hwuiAlec Mouri
When we moved off of gui/SyncFeatures for retrieving this extension, we accidentally didn't include the eglQueryStringImplementationANDROID path for retrieving extensions. Fortunately this extension is only used for TextureView synchronization, but we should still use the extension when available. Bug: 159921224 Bug: 161767307 Test: Manually inject log statements to verify the extension is correctly visible. Change-Id: Idaa872778afc13e86bdea918da8631b4747fe9c1 Merged-In: Idaa872778afc13e86bdea918da8631b4747fe9c1 (cherry picked from commit 49d87e5c077fed85c48341be65e9eaff98654bef)
2020-08-19Merge "Remove unused #include." am: c235669ec2 am: 7d741780c9Elliott Hughes
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1402794 Change-Id: I200d242c3b73571f5b2ce5e4ee9289660066bc14
2020-08-17Merge "Fix CtsIncidentHostTestCases for RVC AAOS emulator" into rvc-qpr-devCalvin Huang
2020-08-17Remove unused #include.Elliott Hughes
The header is obsolete anyway: new code should just use static_assert. Test: treehugger Change-Id: I407ba6e90302557aa8e2604bdd2c6d9129353e9e
2020-08-14Do not leak dump objects.Florian Mayer
Bug: 163024455 Change-Id: Ia0710c3462f03a85bc22aaac7b190961da1f8be3 Merged-in: I9c1737647d762f478c0e452e5b72f98ec3d43c28 (cherry picked from commit 29154b178d6a672decfafbac41c232d8b0d33c88)
2020-08-13Merge "Do not leak dump objects." into rvc-dev am: 406dd94dd5Florian Mayer
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12316627 Change-Id: I7ee33c05511b22c1a3f22fb5864b7d1ffd38098e
2020-08-13Fix CtsIncidentHostTestCases for RVC AAOS emulatorZhiyin Luo (罗植尹)
Same failure in b/161656795, cherry pick the fix Fix uninitialization issue in JankTracker We should initialize mSwapDeadline in JankTracker, or it can be a very large randomized value and then makes jank tracker not collect concrete jank type of frames appropriately as expected. Bug: 158029827 Test: run cts -m CtsIncidentHostTestCases -t com.android.server.cts.GraphicsStatsValidationTest#testJankyDrawFrame Change-Id: I057a50a74502918619204f9164f6a954f8e9c5de (cherry picked from commit 7a0d224756195ce81875db0b481a77b87f860dd3) (cherry picked from commit 69525945b9f63fe45e2e1cfa7f63320748a3fc25)
2020-08-09Merge "Do not leak dump objects." into rvc-d1-dev am: 62c3a4f46bTim Murray
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12319481 Change-Id: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
2020-08-07Merge "Add alecmouri@ to libhwui OWNERS" am: 38edcd001a am: ea49092992Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392715 Change-Id: Ie00877e1205be422b467854bea36cc104ea777d9
2020-08-07Add alecmouri@ to libhwui OWNERSAlec Mouri
Also alphabetize Change-Id: Iadf6de2c2cec1ab50ef91c9b548b1087506dae9c
2020-08-07Merge "Refactor of PointerController" am: 3ca2400a53 am: adaedfa3faTreehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1364598 Change-Id: I46f3a14b56c18ae2977791e81ea5d768f5e163f3
2020-08-07Merge "Refactor of PointerController"Treehugger Robot
2020-08-07Do not leak dump objects.Florian Mayer
Bug: 163024455 Change-Id: Ia0710c3462f03a85bc22aaac7b190961da1f8be3 Merged-in: I9c1737647d762f478c0e452e5b72f98ec3d43c28
2020-08-07Do not leak dump objects.Florian Mayer
Bug: 163024455 Change-Id: Ia0710c3462f03a85bc22aaac7b190961da1f8be3 Merged-in: I9c1737647d762f478c0e452e5b72f98ec3d43c28
2020-08-06Refactor of PointerControllerLiam Harrington
Abstracted logic that applies to all pointer types into general PointerController class and moved implementation of logic specific to the mouse cursor and touch spots to MouseCursorController and TouchSpotController, respectively. Test: Pixel 3XL device, atest PointerController_test, compile Change-Id: Ia5825c37ca75951cc8bcd7d5102c986bd957e69f
2020-07-31Merge "Use blocklist sub-property in sanitize" am: 1d87df7859 am: 7f229e6523Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1375091 Change-Id: Icf51b0f7f9b40c90ca29708bf71287e2b398f4cf
2020-07-28Use blocklist sub-property in sanitizePirama Arumuga Nainar
Update language to comply with Android’s inclusive language guidance See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Bug: 162245450 Test: build topic Change-Id: I952732a034a660a6a6577195d33b2fc2f4f4c78c
2020-07-27fix uninitialization issue in JankTrackerZhiyin Luo (罗植尹)
We should initialize mSwapDeadline in JankTracker, or it can be a very large randomized value and then makes jank tracker not collect concrete jank type of frames appropriately as expected. Bug: 161656795 Test: run cts -m CtsIncidentHostTestCases -t com.android.server.cts.GraphicsStatsValidationTest#testJankyDrawFrame Change-Id: I057a50a74502918619204f9164f6a954f8e9c5de Merged-In: I057a50a74502918619204f9164f6a954f8e9c5de (cherry picked from commit 7a0d224756195ce81875db0b481a77b87f860dd3)
2020-07-23Merge "Update graphics language to comply with Android’s inclusive ↵Leon Scroggins
language guidance" am: da4dc882af am: a97e560c61 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1370379 Change-Id: I5d853a84c0fe1550d86d0f948f76e532af42e073
2020-07-22Update graphics language to comply with Android’s inclusive language guidanceLeon Scroggins III
Bug: 161896447 Test: make See https://source.android.com/setup/contribute/respectful-code for reference Change-Id: I57b81fb5fd2177fbf96f9cc900097f7da1955fca
2020-07-21Merge "Fuzzer for libandroidfw" am: 01e469da99 am: d117bf6d02Max Spector
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1365297 Change-Id: Ie7f14493a2df991c81693513fec48f2fa691497e
2020-07-21Merge "Fuzzer for libandroidfw"Max Spector
2020-07-21Fuzzer for libandroidfwEduardo Rocha
Bug: 161463861 Test: Builds and runs on host and device. Change-Id: I78b19376275dc5a29afcab48c70eea479bff8728
2020-07-17Merge "Fix TextureView calling eglCreateImage with a destructed buffer" into ↵TreeHugger Robot
rvc-dev am: 1ca53a0901 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12173850 Change-Id: I0bead030e1b6aa16ebfe569da4e870466d5143e1
2020-07-16Fix TextureView calling eglCreateImage with a destructed bufferStan Iliev
Fix an issue with hardware buffer passed from the SurfaceTexture being destroyed before an SkImage is created. This CL is matched by a change in frameworks/native I2e025e683052168546f2e271a20a857b1e556b64. Test: Ran TextureView CTS tests and a few apps that use TextureView. Test: Fix verified by partner Mediatek Bug: 160930384 Bug: 152781833 Bug: 153045874 Bug: 156047948 Bug: 160514803 Bug: 155545635 Bug: 155171712 Change-Id: I4d121f087fc842ce317745e7b7e2656f80a52b7d (cherry picked from commit d125b447d7e1c29cb97f59aa58fd6bff8769a19f)
2020-07-13Merge "Fix for WebView not drawing in a layer" into rvc-dev am: 70a24c3253TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12121325 Change-Id: I5be5f5df4b94b526044ef1383dd462f85150f87b
2020-07-10Fix for WebView not drawing in a layerStan Iliev
internal_private_accessTopLayerRenderTargetContext does not guarantee that a GrRenderTarget is created. Moving flush before internal_private_accessTopLayerRenderTargetContext resolves that issue. GrRenderTarget was often nullptr, when drawing WebView in a layer. Test: Passed CtsUiRenderingTestCases. Ran two tests apps attached to the bug Bug: 156413480 Change-Id: Ib3e23c4ab58eb3d02daa05979f545b75a8bfea07
2020-07-07Move PointerController enums to enum classes.Michael Wright
Bug: 160010896 Test: atest PointerController_test, compile Change-Id: I6c7bfc91023ce6cd2dc8f82b0d72731f871ad3ea Merged-In: I6c7bfc91023ce6cd2dc8f82b0d72731f871ad3ea (cherry picked from commit 676897dc11bda06261e12a23fb49ce7fcf5af850)
2020-07-07Move PointerController from sp to shared_ptrMichael Wright
Bug: 160010896 Test: atest PointerController_test, manual usage Change-Id: I4e665d00c56b44c9c1a4ea8cb27ffd10ade3315b Merged-In: I4e665d00c56b44c9c1a4ea8cb27ffd10ade3315b (cherry picked from commit 0cde5911bccf265932739f2428e0c8aa4d3359c1)
2020-07-07Move PointerController enums to enum classes.Michael Wright
Bug: 160010896 Test: atest PointerController_test, compile Change-Id: I6c7bfc91023ce6cd2dc8f82b0d72731f871ad3ea Merged-In: I6c7bfc91023ce6cd2dc8f82b0d72731f871ad3ea
2020-07-07Move PointerController from sp to shared_ptrMichael Wright
Bug: 160010896 Test: atest PointerController_test, manual usage Change-Id: I4e665d00c56b44c9c1a4ea8cb27ffd10ade3315b Merged-In: I4e665d00c56b44c9c1a4ea8cb27ffd10ade3315b
2020-06-24Update to use nativehelper/JNIPlatformHelp.hOrion Hodson
Reflects refactoring of JNI helper code that depends on private methods within libnativehelper. Bug: 151443957 Test: Treehugger Change-Id: I7af128f42ae89a77a8e3fb113ea533331153c535 Merged-In: I7af128f42ae89a77a8e3fb113ea533331153c535 Exempt-From-Owner-Approval: cherry pick (cherry picked from commit 329c612e3d5ae440bf13e1f5fc9a4012263524e9)
2020-06-23Merge "libafw: Use std::free explicitly for overlays" into rvc-dev am: ↵TreeHugger Robot
5dc36b2f9d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11959160 Change-Id: Id5877c6ff2a1b956aeba509ddf01213324621341
2020-06-23Merge "libafw: Use std::free explicitly for overlays" into rvc-devTreeHugger Robot
2020-06-22libafw: Use std::free explicitly for overlaysRyan Mitchell
Currently we rely on libc to call std::free on the malloced pointer to the overlay table entry. Rather than relying on the libc implementation to call std::free instead of trying to delete the pointer as if it was created using "new", explicitly pass std::free as the deleter to the data held by the std::shared_ptr. Bug: 159562360 Test: Observed no heap growth while looping infinitely and retrieving a string resource overlaid using an inline xml value Change-Id: I9a2ebaf9a993ad9c44fab8f052430c8142d4347d
2020-06-16Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-dev am: ↵John Reck
556fe0b9e5 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838959 Change-Id: I656f9bf0e04ed46c3e65dfd49fb0caa19b658b1e
2020-06-16Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-devJohn Reck
2020-06-15Merge "Downgrade Window JetPack" into rvc-dev am: ada8355bc5Diego Vela
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11618862 Change-Id: I154140d3bac6b64aed8d997513489c1aebcf1d38
2020-06-15Merge "Downgrade Window JetPack" into rvc-devDiego Vela
2020-06-12Merge "Add libincident_test to MTS" into rvc-dev am: 003ef4903aRuchir Rastogi
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11816592 Change-Id: Ibb041b389a8f2ce24f351c46bbe9500b877aeaf7
2020-06-11Add libincident_test to MTSRuchir Rastogi
+ remove GtsLibIncidentTests (the native GTS tests) from presubmit Test: m libincident_test Test: atest libincident_test Test: m mts && mts-tradefed run mts -m libincident_test Bug: 157142853 Change-Id: I5c6ea2edfbd29165ec65108c4a71a56698c76a27
2020-06-11Revert "Drop max texture cache size from 12x to 5x"Leon Scroggins
Bug: 155002050 Test: Manual - scroll Pchome app This reverts commit 05ac51641297ae2cbe9b186b8c369f3a23a156b9. Reason for revert: When running Pchome, this change resulted in poor performance while scrolling. Every frame appears to be uploading several textures, potentially the same textures over and over again. Change-Id: I0fc7216e16f783051d1bd87af764c1a6f361c138
2020-06-05Merge "Add policies and enforce overlayable to header" into rvc-dev am: ↵Ryan Mitchell
2201f8b626 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11481145 Change-Id: I71ff9f46e1e5a5016291a062dd5389078527588f
2020-06-05Merge "Add policies and enforce overlayable to header" into rvc-devRyan Mitchell
2020-06-03Downgrade Window JetPackDiego Vela
Add window sidecar aar. Add settings implementation of SidecarInterface. Bug: 157477145 Test: use a device with sidecar and not window extensions. atest CtsWindowManagerJetpackTestCases:ExtensionTest Change-Id: Iade7a4ba5a75ba7301cd151b54a95820a3d4bdde
2020-06-02Merge "Isolate SpriteIcon into its own file." am: 38a831c1e3Treehugger Robot
Original change: undetermined Change-Id: I136cf55c2fd1346dacb0774d8fb53383b2ae1202
2020-06-01Add policies and enforce overlayable to headerRyan Mitchell
If the fulfilled policies change without the contents of the target and overlay APKs changing, the idmap for the overlay should be regenerated. This change adds fulfilled policies and enforce overlayable to the idmap header so that idmap2d can determine if the polices or enforce overlayable changed from what was used to generate the idmap. Bug: 119328308 Test: idmap2_tests Test: atest RegenerateIdmapTest Change-Id: I96f970e82b5243be01b205ac2cb6ab249c6100bc
2020-06-01Isolate SpriteIcon into its own file.Garfield Tan
This is to isolate differences between internal master and AOSP so that the open source intern can work on a relatively new project. It also isolates a divergent piece of code into SpriteIcon.cpp. Bug: None Test: Pointer icons in ApiDemos still work. Change-Id: I1bf8f23411ad7170de2497d6fee0f70b015e9b5f Merged-In: I1bf8f23411ad7170de2497d6fee0f70b015e9b5f (cherry picked from commit 7e3457e593f417eb7a5a55d301b3d5f5dd1debdf)