summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-03-20[SF] Backdoor to update the WorkDuration ramindani
Test: atest libsurfaceflinger_unittest Test: Verified with a trace that work duration updates after backdoor call. BUG: 398872242 Flag: EXEMPT Backdoor implementation. Change-Id: Icea9bebbb3366df09643dbe40fd7c986461262b8
2025-03-20Merge "InputDispatcher: Provide a way to transfer the entire gesture" into main Treehugger Robot
2025-03-20Merge "Introduce surfaceflinger_end2end_tests" into main Treehugger Robot
2025-03-20Revert^2 "Use TransactionState in SurfaceFlinger." Anton Ivanov
This reverts commit 4f8b4f371947dce3abece1c0d64af0b5c990e0c2. Reason for revert: Rolling forward with fix for use-after-move in SurfaceFlinger::setTransactionState Flag: EXEMPT refactor Bug: 385156191 Test: presubmit Change-Id: I66d45b1e125dcb50cbe7a3cfcefa8eaa02705419
2025-03-20Revert "Include stack traces from keystore2 in bugreports on debuggable builds" Todd Frederick
This reverts commit e846316a9f4e4cf35064267362e6d626e94d6a74. Dumping keystore is not allowed due to an SELinux neverallow rule most recently added in aosp/3311665. Bug: 376065666 Test: Check for denial after taking a bug report Flag: EXEMPT bugfix Change-Id: I0e6a2ff1578602f7616c12e8fc9253dddaa67779
2025-03-19Snap for 13241370 from 7d0d256b62dee09e04528c4244a4f7026fa0fb8c to 25Q2-release Android Build Coastguard Worker
Change-Id: I4eb6edbfe6f3c12120608a9978564d4d42d12720
2025-03-19Check mDataPos to see if the Parcel needs to grow Devin Moore
Flag: EXEMPT bug fix Ignore-AOSP-First: security fix Test: atest binderUnitTest Bug: 399155883 Change-Id: I38b755ca3381cfca3300292873f763823fbf169b
2025-03-19InputDispatcher: Provide a way to transfer the entire gesture Siarhei Vishniakou
In this CL, we modify the behaviour of 'transferTouchGesture' to also allow the caller to request that the entire gesture is transferred to the destination window. Suppose the original window receives ACTION_DOWN and calls transferTouchGesture to the destination window. Before this CL, the subsequent pointers would always be routed to the original window. In this CL, the caller of 'transferTouchGesture' can choose to transfer the 'entire gesture', meaning that subsequent pointers from the same gesture that land in the original window would automatically be sent to the destination window. Bug: 397979572 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Flag: com.android.input.flags.allow_transfer_of_entire_gesture Change-Id: I760ddb8aa8f329d0b21788e6d6e83c802015ee1d
2025-03-19Merge "add ScreenPartStatus to displayIdentification" into main Daniel Zheng
2025-03-19surfaceflinger formatting Daniel Zheng
no functionality changes here. just some clang-tidy formatting Flag: EXEMPT refactor Test: th Change-Id: I25cd53c40d4fde1edb29f4b8fee28df6f4b66235
2025-03-19add ScreenPartStatus to displayIdentification Daniel Zheng
composer Hal 3 adds screenPartStatus to the DisplayIdentification parcelable. The struct used in the client side should be updated to reflect this. Flag: EXEMPT refactor Test: th Change-Id: I8fb7ee099b2c54f3a4708aa19b3169d74e403e4b
2025-03-19Add border API to surface control YCairn Overturf
See go/sf-box-shadows-api for more details Bug: b/367464660 Flag: com.android.window.flags.enable_border_settings Test: atest SurfaceFlinger_test Change-Id: I1190edb97693004d9f46058fd0165451470a65b3
2025-03-19EventHub: Re-open Devices serially when AssociatedDevice changes Prabir Pradhan
This CL changes behavior so that when an AssociatedDevice changes, all affected Devices will be re-opened serially, where the DEVICE_REMOVED notification of one device closing is followed by the DEVICE_ADDED signal of its new counterpart, before proceeding with the re-opening of the next affected Device. This is to temorarily curb the side-effects of delayed AssociatedDevice changes by reducing the number of cases where we send device removed notifications immediately after an input device is first connected, followed by the addition of a new InputDevice. These kind of "hotplug" events are detrimental to many tests and may have side effects in production. This CL relies on some assumptions on how devices will be merged in InputReader, so it does not solve the problem for all cases. It only aims to reduce the likelihood of impact temporarily until AssociatedDevice changes can be processed separately in InputReader, which is backlogged as b/281822656. Bug: 397208968 Test: Presubmit Flag: EXEMPT bug fix Change-Id: I61818076a720a5474de8cbeb431ddbceec6e1545
2025-03-18Merge changes from topic "vkjson_fix" into main Nikita Gupta
* changes: Fix nullpointer dereference at VKJson Update vkjson codegen
2025-03-18Merge "Update thermal headroom listener API doc for NDK" into main Xiang Wang
2025-03-18Snap for 13235988 from 164160604604e09468a0d37e116e5afc13732cc6 to 25Q2-release Android Build Coastguard Worker
Change-Id: I070173f3db3350e1cdba66c0f813f30fabf12082
2025-03-18Merge "frameworks/native: Include stdint.h for int32_t type" into main am: ↵ Steven Moreland
1a8be4f98b am: d3418085a0 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3526633 Change-Id: I4bc7559197eadb25b81f44cb625c941a11bf78e0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "atrace.rc: remove mm_events support" into main am: d16c47b2ed am: ↵ Treehugger Robot
fd85121ac4 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3548185 Change-Id: I76ec7ca9d67100cc698f675f0aba27e509ba602b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "frameworks/native: Include stdint.h for int32_t type" into main am: ↵ Steven Moreland
1a8be4f98b Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3526633 Change-Id: Ic0ef9660935110becfab94840512592dec2e4f02 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "atrace.rc: remove mm_events support" into main am: d16c47b2ed Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3548185 Change-Id: Id49f3267494ab4063b1e1aa580039ecc9ee3382c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "frameworks/native: Include stdint.h for int32_t type" into main Steven Moreland
2025-03-18Merge "atrace.rc: remove mm_events support" into main Treehugger Robot
2025-03-18Introduce surfaceflinger_end2end_tests Lloyd Pique
Introduces a minimal surfaceflinger_end2end_test target, which will work by controlling both the "front-end" of surfaceFlinger via the libgui ISurfaceComposer.aidl interface, as well the "back-end" of surfaceflinger via the hardware Composer3 IComposer.aidl interface. There is only a minimal implementation for everything. To start out, the test registers a simple "fake" composer3 backend service that asserts if SurfaceFlinger actually uses it to create a client interface, and otherwise the initial test just tries to connect to the front end service. The main purpose of this CL is to introduce all the main framework classes, and otherwise set up the build target. For now this fails, with SurfaceFlinger establishing a connection to the service, but the test process aborts in the stub to create the client interface. SurfaceFlinger doesn't crash, but is in a bad state. The AndroidTest.xml file however brings the target back to a normal working state with tear-down commands meant for this purpose. Flag: TEST_ONLY Bug: 372735083 Test: atest surfaceflinger_end2end_tests Change-Id: I78be88a3eb3df9b6c700f78bdef66f9dc71399c7
2025-03-18Merge "TouchpadInputMapper: dedup successive swipe lift gestures in metrics" ↵ Treehugger Robot
into main
2025-03-18Merge "Add support for search modifier fallbacks" into main Treehugger Robot
2025-03-18EventHub: Process sysfs node changes from InputReader thread Prabir Pradhan
Before syfs node change notifications were processed by EventHub, all device openings and closings happened on the InputReader thread. The upper layer (InputReader) makes assumptions about EventHub Device states being synchronized with the notications of device additions and removals from EventHub to InputReader. The addition of sysfs node change processing moved some device openings and closings off of the InputReader thread, which can break the synchronization assumptions in InputReader. In this CL, we move sysfs node change processing to the InputReader thread. Bug: 397208968 Bug: 358694799 Test: Presubmit Flag: EXEMPT bug fix Change-Id: If6d70a12ddf74098c74b8360d31c4967ae6b3d03
2025-03-18InputReader: Add getter API for the sysfs node path of an InputDevice Prabir Pradhan
Bug: 397208968 Test: Presubmit Flag: EXEMPT bug fix Change-Id: I25f41f41ec1f1e47590eef21b982287caea193a6
2025-03-18EventHub: Close opening device before deleting on sysfs change Prabir Pradhan
We must unregister all fds from epoll before closing them to avoid the fds from remaining open and thus leaking. Prevent fd leaks by closing any opening device from epoll before closing the Device via its destructor when the sysfs node changes and triggers a device reopening. In this CL, we modify the closeDeviceLocked function to also look at mOpeningDevices when a device is being closed. Context: https://idea.popcount.org/2017-03-20-epoll-is-fundamentally-broken-22/ Bug: 397208968 Test: Presubmit Flag: EXEMPT bug fix Change-Id: I3de8a9413e68a0b7409e5d0bf56b9d76b7164b49
2025-03-18TouchpadInputMapper: dedup successive swipe lift gestures in metrics Harry Cutts
In tests, the Gestures library occasionally outputs two lift gestures in a row, which can cause inaccurate metrics reporting. To work around this, keep track of the previous gesture the metrics collector saw, and don't report additional swipe gestures if we see multiple lifts in a row. Bug: 397219482 Test: $ atest \ CtsInputHostTestCases:android.input.cts.hostside.InputAtomsTest Flag: TEST_ONLY Change-Id: Iac2b6ae68dc62e3a106a743b667eddd96a1a7a74
2025-03-18Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into ↵ Treehugger Robot
main am: 4212ea291e am: 93806e1a53 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3524953 Change-Id: Idd2ba75fed12813dd397d8d1da2ef67f40f5d977 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Ensure libgui classes that are held by sp<> are only constructed with ↵ Anton Ivanov
sp<>::make. Exception is SurfaceComposerClient, which is widely references in vendor code. Test: presubmit Flag: EXEMPT refactor Bug: 393217449 Change-Id: Ib1039a1f7bc5676d32a4067361f131fc79efad4d
2025-03-18Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into ↵ Treehugger Robot
main am: 4212ea291e Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3524953 Change-Id: I29e004d9d7be74244a6486430f61e88231304734 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "binderRpcTest: Fix sockaddr_storage handling" into main Devin Moore
2025-03-18Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into main Treehugger Robot
2025-03-18Merge "Prune logic from buffer stuffing recovery using UIDs" into main Melody Hsu
2025-03-18Merge changes I60d42f38,I25857739 into main Treehugger Robot
* changes: Ensure Choreographer is held as sp<> in SurfaceControl. Harden construction sites of android::StrongPointer in frameworks/native
2025-03-18Merge "Revert^2 "Explicitly include libgui as a shared library in ↵ Treehugger Robot
libgui_test."" into main
2025-03-18atrace.rc: remove mm_events support Ryan Savitski
See r.android.com/3544832 for context. Bug: 183037386 Change-Id: Ib7ab94de464fcd8190f9a048a48e2e31ec39a8e1
2025-03-18Merge "libvulkan: refactor for _FORTIFY_SOURCE=3 support." into main am: ↵ Elliott Hughes
7827597532 am: 6c65610f9f Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3542879 Change-Id: Ic14f61a8baa4f8b9f3d4c81eb38764957dd35817 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "libvulkan: refactor for _FORTIFY_SOURCE=3 support." into main am: ↵ Elliott Hughes
7827597532 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3542879 Change-Id: I390d6f24d160f747aeaa7cf24e0f1c1515fb29f0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "libvulkan: refactor for _FORTIFY_SOURCE=3 support." into main Elliott Hughes
2025-03-18Merge "Revert "Use TransactionState in SurfaceFlinger."" into main Treehugger Robot
2025-03-17Merge "libbinder: fix trusty cpp fd transport modes" into main am: ↵ Treehugger Robot
33da0c2368 am: 3ea3bd3ec2 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3547982 Change-Id: Ic37d6529d7060d0bc4982c7b88e5948d8eb34241 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-17Merge "libbinder: fix trusty cpp fd transport modes" into main am: 33da0c2368 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3547982 Change-Id: Ibb80745e113666be295a9d0b72ccd5a811023ff9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-17Merge "libbinder: fix trusty cpp fd transport modes" into main Treehugger Robot
2025-03-17Revert^2 "Explicitly include libgui as a shared library in libgui_test." Anton Ivanov
This reverts commit d6198bed29ffb56054490820e73ee30a718930d1. Reason for revert: Removed flag defines from Android.bp that caused linker errors. Verified libgui_test behaves identically with and without this revert on cf_x86_64_auto-next-userdebug Change-Id: Ibbbd201253fa09c18491bffca0b540c2c13df8d3
2025-03-17Revert "Use TransactionState in SurfaceFlinger." Anton Ivanov
This reverts commit ed63243743079eb4531cb4a9e5ed4dccb7965d6d. Reason for revert: Droidmonitor created revert due to Jank regression b/403375000. Change-Id: I558338084124764026028b21667b45afb73b9e06
2025-03-17Snap for 13226929 from b1fd1868e96a6b9455d784ad9fc31dcf1b6fd249 to 25Q2-release Android Build Coastguard Worker
Change-Id: Ic97986ab39433dee109e66b8922e226e6493eeb4
2025-03-17Ensure Choreographer is held as sp<> in SurfaceControl. Anton Ivanov
Test: ChoreographerTests pass Flag: EXEMPT refactor Bug: 393217449 Change-Id: I60d42f383d4b73b60de1a7a1bbeec5170b805ebb
2025-03-17Harden construction sites of android::StrongPointer in frameworks/native Anton Ivanov
Test: presubmit Flag: EXEMPT refactor Bug: 393217449 Change-Id: I25857739af659a52d2e33fc0e05799959f4024ab