Check for color modes support by Display, before marking layer as HDR.
Bug: 79541227
CRs-Fixed: 2102517
Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.
Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.
Bug: 79541227
CRs-Fixed: 2165926
Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
- Implement SET_STAND_BY_MODE binder support. SKGHAL
use this api to inform HWC about TWM entry/exit.
- Move to null display to drop all incoming calls
from surfaceflinger on TWM entry.
- Move to normal display on TWM exit.
- Add scope_lock for SET_STAND_BY_MODE API.
Bug: 79541227
CRs-Fixed: 2200577
Change-Id: I26ef3b1af53856f68f76b116988cc2a28c06b6ac
GetMaxVirtualDisplayCount returns a hard-coded value. Return virtual
display count based on a property that is target specific.
Return a value of 1 by default when the property is not found in the
target device.
Bug: 79541227
Change-Id: I4c9727ad1687fc7e53c89ce5e41973628022acec
This is a manual merge of CAF commit e7da5462bc8d7e8c2a8c1595ae12949237183979.
BUG: 76115647
Change-Id: I8b04ba1c130556613e2bf6b32affce4965f95b46
(cherry picked from commit a01e3f5f6d0905c14537cacebad296babc34b6d2)
For targets that do not support display post processing, setting of
color modes is a no-op. The inclusion of the default Identity color
mode in the color transform map will be avoided when the flag
TARGET_EXCLUDES_DISPLAY_PP is set in order to signify that no color
modes are supported when PP features are not supported in the target
Change-Id: If3929b38ec7a093498c404da1798eaccbc97a281
Validate values read from input parcel as part of handling of
few qclient methods
Change-Id: Icf928f409a5c2ac76a73e95de58cb0ebc59d24d5
CRs-Fixed: 2114346
- Legacy hal doesn't maintaining two different
modes like doze and doze_suspend.
- Legacy hal uses FB_BLANK_VSYNC_SUSPEND.
CRs-Fixed: 2140924
Change-Id: I080b43089d335eff65c29de60c67112d5a4f1dd9
removal of android.hidl.base@1.0 as it is already integrated into libhidltransport
Change-Id: I11cc06e8d144f82e819e6593b168b11fe189f768
(cherry picked from commit 66ee0dc5575b0b785e67d87686855f81c914e767)
MSM8909W display HAL code copied from CAF release LW.BR.3.0.1-04400-8x09w.0.
Created a new msm8909w_3100 subfolder as 3.0.1 releases are not compatible with
3.0.0.
Change-Id: I4eb9a1f5063ace1f27f35eb7e814bf82498493d3
(cherry picked from commit 5f5637ca395ebc17367279346bbd0b93f83ce6fb)