summaryrefslogtreecommitdiff
path: root/libhwc2.1/pixel-display.cpp
AgeCommit message (Collapse)Author
2023-06-06libhwc2.1: Skip redundant onRefresh in histogramSampleLeo Chen
DPU driver maintains always-on histogram engine state with up to date histogram data. Therefore we don't have explicitly to trigger onRefresh in case histogram configuration does not change. Test: aidl_hist_client 500 500 1000 1999 340 340 344 POST 1000000 Bug: 261376040 Change-Id: I44824ee836adb66aeb214c371a11ed350d13b069 Signed-off-by: Leo Chen <yinchiuan@google.com>
2023-05-26libhwc2.1: histogram: pass parameters as referencesOleg Matcovschi
Bug: 277948998 Bug: 261376040 Change-Id: I7021e0445e4b938b98eaa7dab54d5622ada2957b Merged-In: I7021e0445e4b938b98eaa7dab54d5622ada2957b Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
2023-02-02Merge "libhwc2.1: add display id for onRefresh" into tm-qpr-dev am: ↵TreeHugger Robot
effac65ab3 am: a1f4e3f6b4 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/common/+/20605493 Change-Id: Id89151d0e03c8c8cb62ce636d2db8c90f2ff554f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31libhwc2.1: add display id for onRefreshlinpeter
Bug: 257422563 test: check on refresh call Change-Id: I00584237bf2b8b26c86a8964dc8a15b6324f74c5
2022-12-27libhwc2.1: support display panel operation rate featureShiyong Li
Bug: 202181466 Signed-off-by: Shiyong Li <shiyongli@google.com> Change-Id: I3362c868bdee34369513b2a6ccbc9abe5b8beb59
2022-10-03hwc: dim brightness supportlinpeter
Bug: 241969007 test: enable/disable dim brightness mode adb shell vndservice call Exynos.HWCService 1009 i32 0 i32 1 adb shell vndservice call Exynos.HWCService 1009 i32 0 i32 0 Change-Id: I2d5a3c75ef78c18779b4fe4b51c9e6b23c023cf8
2022-09-19libhwc2.1: don't change refresh rate throttle when setting idle delayMidas Chien
Display idle delay is used to set minimum delay for display go into the idle state when DISPLAY_IDLE_TIMER is supported. Refresh rate throttle is used to prevent refresh rate switch from high to low doesn't happen earlier than the provided throttle. Bug: 240258369 Test: refresh rate switch, AoD, dumpsys SF Test: VtsHalGraphicsComposer3_TargetTest Change-Id: Ia57601b899270e867a501483fe5d607b5e2a919d
2022-07-15hwc: IDisplay interface support for displayslinpeter
Bug: 210380703 test: test pixel display interface Change-Id: I2c60a9407ddf1debc541596ab7c95ee07e073512
2022-07-06libhwc2.1: resolving histogram_request_ioctl error logsusi_su
When screen in idle, DRM driver would not respond and the DRM request would not be satisfied. Later on, when another histogram client calls, DRM driver will complain histogram already registered error log. Skip the request call if the previous one is there. Bug: 236907095 Test: local test and verified without error log Change-Id: I285204a499077e56ff929aac8f56eaeefaaa8588
2022-06-19libhwc2.1: fix incorrect operator to clear histogrambufferMidas Chien
Use std:fill() to reset and clear() to remove all elements. Bug: 235782215 Test: enroll face Change-Id: If16589e95a18ee4f496379512e5ff9f0de704471
2022-06-08libhwc2.1: add roi calculation for display RRSsusi_su
This patch calculates roi for histogram sampling accoring to display RRS mode setups Bug: 233136164 Test: local test with a hist_client code by setting different display resolution switch Change-Id: I35aab6b776b1687c8ae1d37ca439a9409205932c
2022-06-07libhwc2.1: histogram screen refresh controlsusi_su
Use simple frame counter, and record the histogram sampled frame counter value to control screen When the 2 values differ, issue invalidate() Bug: 229578705 Test: local test with a histogram aidl client, sampling histogram continuously every 50ms, select Setting , clicking power on/off, also keep the screen on for a while Change-Id: Ie23387d8f2d3271867f2f5dd6b44cee359c1282d
2022-05-31libhwc2.1: expose panel calibration statusJeremy DeHaan
A function to get a panel's calibration status was added to HWC. This is exposed over an AIDL interface to other services. Bug: 228113713 Change-Id: I1c276226b510c772410e619a62812afa4f6fb680
2022-05-24libhwc2.1: histogram aidl backendsusi_su
This patch contains 1. stogram_mediator aidl backend code (synchronous call) 2. return power-off error code when screen is off 3. return secure-playing error code when there is any secure layer on screen 4. histogramSample timeout at 50ms 5. support histogram sample position at : PRE-DQE and POST-DQE 6. simple client test code for histogram_mediator aidl 7. cherry pick histogram HWC DRM patches The histogram_mediator aidl code is tested by a simple client program aidl_hist_client Bug: 176922790, 225171544 test: local test with a histogram client program Change-Id: I923d66e45cca03901277bb9fc6d829dd026f455b
2021-12-06libhwc2.1: Update pixel-display V4 interfacejoenchen
Added the interface for refresh rate change Bug: 202567084 Test: run test-surface ag/16284000 Change-Id: If980e5cc99d0550c7b015b0b25efa0fb8211ccd5
2021-12-02libhwc2.1: add calibrated display checklinpeter
Return ALS shadow compensation images if calibrated display. Bug: 186057327 test: check ALS shadow compensation images return Change-Id: I6c29ac46cb862db095bc9e9ad3ea173cab6c6a19
2021-07-29Merge "Revert "libhwc2.1: LHBM On Constraint"" into sc-devTreeHugger Robot
2021-07-29Revert "libhwc2.1: LHBM On Constraint"Nancy Wu
This reverts commit 46ed0bcd8cdc7f31b1016ccc8f5861d0f660e07e. Bug: 191426007 Reason for revert: regression issue LHBM not work Change-Id: I5225b3db371fb551ad060b1a4dde30af429925bc
2021-07-23Merge "libhwc2.1: LHBM On Constraint" into sc-devTreeHugger Robot
2021-07-23libhwc2.1: LHBM On Constraintlinpeter
Only allow to set LHBM on when state ON and max refresh rate. And force to turn off when Doze mode. Bug: 191426007 Test: check lhbm/refresh rate Change-Id: Ibf884294272abc1af947a322b9694061e06d9834
2021-07-22libhwc2.1: pixel-display V3 interface implementWeizhung Ding
Add support for loading the shadow compensation images. Bug: 184697262 Test: app side can load the correct image Change-Id: Ie90fd74deb85a927a5fa4fa939dc5e53bea2741b
2021-06-03libhwc2.1: pixel-display V2 interface implementlinpeter
Bug: 184768835 Bug: 185087460 test: test lhbm function call Change-Id: I924d162713d95954855c706287f10f8cb696f763
2021-03-17libhwc2.1: Add IDisplay/default interface to HWCPeter Lin
IDisplay is for local brightness enhancement. Bug: 168848203 Bug: 182959727 test: service list Change-Id: Ie1f8b0be9a03eaa296d70bb9a2a2c238bf9cd8d7
2021-03-17Revert "libhwc2.1: Add IDisplay/default interface to HWC"Adam Shih
Revert submission 13427428-hwc_lbe Reason for revert: build line broken Reverted Changes: I5d1781532:hwc/gs101: parse atc profile Id2bfe06cb:hwc/gs101: ATC mode/ambient light control Ie5a1270e7:libhwc2.1: Add IDisplay/default interface to HWC Bug: 182959727 Test: full build pass Change-Id: Ie1a03d6b92fa403e843e76b63004c4328e1f904d
2021-03-16libhwc2.1: Add IDisplay/default interface to HWClinpeter
IDisplay is for local brightness enhacement. Bug: 168848203 test: service list Change-Id: Ie5a1270e7d4a9b469e0d2681c32f022db89fd8fe