- Jan 24, 2024
-
-
Dominik Laskowski authored
Generalize SF::initializeDisplays (called on boot and restart) to: - Apply the transaction that clears DisplayState to all displays. - Power on all displays. The first change removes a special case for the primary display, setting the stage for multi-display boot animation. Each display is assigned its own LayerStack, and set up with a projection to its active resolution. The second change fixes a bug where DisplayCapability::BRIGHTNESS was not detected for secondary displays present during boot. SF queries capabilities when a display is first powered on, but DM asks SF about brightness when the display is hotplugged, regardless of power mode. The general fix (covering external displays) is for DM to defer its query, but this stopgap covers internal displays. Revert I3a2eae4efc4a5c6113700a9ca9e9b261e364a878, which let the initial power mode be std::nullopt. This effectively forced DM's first request to setPowerMode(<rear display>, OFF), which would otherwise be ignored because OFF had been the default power mode on DisplayDevice creation. However, that special case confusingly took the same branch as the OFF to ON transition, and is no longer needed now that all displays are ON (from SF's perspective, not just HWC's) until the boot animation ends. Fixes: 267633741 Fixes: 150889228 Bug: 269510347 Test: Boot unfolded and folded. Test: Induce system_server crash. Test: InitializeDisplaysTest.initializesDisplays Change-Id: I5277a629f39b3b285452aa84d49ff84e3dc957ca
-
- Jan 22, 2024
-
-
Chavi Weingarten authored
-
Jooyung Han authored
[automerger skipped] Merge "libinput: use libkernelconfigs insteadof libvintf" into main am: 0e622d7b am: bc7936f8 -s ours am skip reason: Merged-In I7630116345e1db736a8173467fc865cea6ec4e96 with SHA-1 3f669216 is already in history Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2858430 Change-Id: I51eda320f06920dc73ad65089ad53fd076bac9e0 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Jooyung Han authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2858430 Change-Id: I4a943adfdf78f089cfcdc359a95a84f4b47fdffb Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Jooyung Han authored
-
- Jan 20, 2024
-
-
Vishnu Nair authored
SF no longer creates IGBP for clients since blast was rolled out. This cl cleans up some dead code related to IGBPs. Test: presubmit Bug: 294915480 Change-Id: I60bae115b77527f31db514fe58c67bce4e2b3592
-
- Jan 19, 2024
-
-
Treehugger Robot authored
-
Chavi Weingarten authored
If a Layer wasn't visible and nothing else changed that vsync, the sortSnapshotsByZ function would return early and not update the z ordered list to include the non visible input layer. Since layers can have input even if they have no visible content, we need to include them Test: LayerSnapshotTest#NonVisibleLayerWithInput Bug: 320370937 Change-Id: I89dd0cdefbd0948f40089b6f7f321ad84b4ad357
-
Dmitri Plotnikov authored
Most error reports are completely benign and caused by minor race conditions leading to out-of-order timestamps, e.g. ``` 12-21 10:59:19.015 1579 1710 E system_server: setState is called with an earlier timestamp: 367395029, previous timestamp: 367406095 ``` Bug: 317382941 Test: atest libbattery_test Change-Id: I44002818fac47436cb87765e77a64565b25cfea8
-
Treehugger Robot authored
-
Jooyung Han authored
We'd like to limit the direct usage of libvintf. Bug: 270169217 Test: atest libinput_tests Merged-In: I7630116345e1db736a8173467fc865cea6ec4e96 Change-Id: I7630116345e1db736a8173467fc865cea6ec4e96 (cherry picked from commit 29db97cfa1e3347dc94db36fbba76384eed7f9aa)
-
Treehugger Robot authored
-
Rocky Fang authored
-
Dan Albert authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2902242 Change-Id: I7af6166c94b5fc4c11712f459813a2b9aec239eb Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
-
Trevor Black authored
-
Dan Albert authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2902242 Change-Id: Icedf73d04ba11a7106f1f50b5cb92b155652d7c7 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Rocky Fang authored
Test: on device test, not see the crash reported. Test: Enable logs on sensor notification service and see dynamic sensor broadcast event after HAL crashes. Fixes 307782607 Change-Id: I18ff67a86e8bf4da00aceb46bbab9714c7239ae8
-
Dan Albert authored
-
- Jan 18, 2024
-
-
Mohannad Farrag authored
Merge "[Cherry-pick] Add sys/cdefs and __REMOVED_IN define to looper.h" into main am: 2e35452a am: a6604e10 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2917946 Change-Id: I8e3519372f23ef97b9f3d7a86947c642a320c19f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Mohannad Farrag authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2917946 Change-Id: Id03fea51de0c23b6e8e3dfdc634166689fd8befd Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Mohannad Farrag authored
-
Dan Albert authored
This enum is used in the ABI for the SurfaceControl APIs, but that's not safe without a defined backing type. Bug: None Test: treehugger Change-Id: Ifa52f69abacc370e91fd9a358f24a011fdbf0322
-
Treehugger Robot authored
[automerger skipped] Merge "Fix fs-verity API for secondary users" into main am: 7f358de7 am: 13dbdc0f -s ours am skip reason: Merged-In I4090792afaf05c3dff5cb34731ef7030243196c2 with SHA-1 9336614a is already in history Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2913524 Change-Id: I09dee3fa5f01008f224d0798eb1e1e8c6d7074b2 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Egor Pasko authored
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2913524 Change-Id: Ifc400e4ed3f62790d174d41a14194fbd6264295f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Prashanth Swaminathan authored
The looper.h header introduced __REMOVED_IN, which requires the sys/cdefs.h header to provide definitions for the macro. Add them here and update files that include looper.h to not provide their own definitions of __REMOVED_IN. Further, update comments to clarify that the additional defines are in place to satisfy builds that use glibc or Windows/MacOS libcs. Bug: 14257980 Change-Id: Ia524b7e180c5137e84c205a77dc219b9e9e41608
-
Treehugger Robot authored
-
Tomasz Wasilczyk authored
-
Siarhei Vishniakou authored
This code has already been disabled, and now we can remove it. Bug: 312714754 Test: atest inputflinger_tests Change-Id: Ie02687b770586b09c180f29adc0330981808e92d
-
Andy Hung authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2907818 Change-Id: Ic824759c37632e2a0c2092d897a1f972195476fb Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Andy Hung authored
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2907818 Change-Id: I22592e056415d16136a866c2b3fa89011cc94fdb Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
-
Andy Hung authored
-
Dominik Laskowski authored
-
Hiroki Sato authored
Loading kernel configs is needed when the specified layout has "requires_kernel_config". Otherwise, we don't need to load kernel configs. Bug: 320198280 Test: presubmit Change-Id: I7955d65d804ed4965235a1649c5f5f53996f4d3b
-
Andy Hung authored
Missing /data/anr/trace_dd files that are generated for example by the finalizer watchdog are now packaged in the bugreport zip file. Test: create Java anr trace and trigger bugreport Bug: 319729079 Change-Id: I3f23381c57e185540a47805f73795dac2c895eea
-
- Jan 17, 2024
-
-
Prabir Pradhan authored
The interface documents how the tracer will interact with InputDispatcher. Bug: 210460522 Test: Build Change-Id: Id97f9b0851f1248956b95e8b18b2302ecff1bff5
-
Dominik Laskowski authored
Rebased and modified from Iec154c488ef7af9b8e1d6386509e97c9ce85103b, patch set 3. Does not include I688b0c922747a80e881965a1dc243d11ba2c7438, which was reverted. DM currently always picks 1080p@60 for an external display. More work (tracked in b/318534874) needs to be done in SF in order to use that mode initially. In the meantime, have SF pick the same mode on hotplug so that it avoids extra mode switches. Move "force" into DisplayModeRequest. If a request is already pending this allows forcing the final request if a pending request forced it, even if the new request does not. This matches how emitEvent is handled. If a DisplayModeRequest is forced, don't early exit in initiateDisplayModeChanges, which does not honor "force". When loading display modes for an external display, look for 1080p@60 and treat it as the active mode. If the display does not have 1080p@60, pick a 60hz mode (if available) closest to 1080p. DM will pick an appropriate mode later. When adding that display, apply that active mode so it will be used by SF. Fixes: 305813445 Test: libsurfaceflinger_unittest Test: YouTube is not frozen or choppy on external display hotplug. Test: Remove the option of 1080p@60 and connect. Change-Id: Idd48fbb0aab1b500a1a074ce0984c0a253a865c0
-
Trevor David Black authored
Bug: 288286529 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.*' Change-Id: I2ee886b18b194016e638f44907aa8e2fdcb8fe6e
-