blob: 03e17de9111035112c36e23313930e72b15c2ae6 [file] [log] [blame]
Naseer Ahmed726b5d32018-12-18 15:48:41 -05001# Display product definitions
2PRODUCT_PACKAGES += \
Naseer Ahmedc24a6c12018-11-22 14:06:47 -05003 android.hardware.graphics.composer@2.3-impl \
4 android.hardware.graphics.composer@2.3-service \
Naseer Ahmed726b5d32018-12-18 15:48:41 -05005 android.hardware.graphics.mapper@2.0-impl-qti-display \
Tharaga Balachandrand3331da2019-06-06 11:33:29 -04006 vendor.qti.hardware.display.allocator-service \
Naseer Ahmed726b5d32018-12-18 15:48:41 -05007 android.hardware.memtrack@1.0-impl \
8 android.hardware.memtrack@1.0-service \
9 android.hardware.light@2.0-impl \
10 android.hardware.light@2.0-service \
Naseer Ahmed082f2282019-04-15 19:49:29 -040011 gralloc.$(TARGET_BOARD_PLATFORM) \
12 lights.$(TARGET_BOARD_PLATFORM) \
13 hwcomposer.$(TARGET_BOARD_PLATFORM) \
14 memtrack.$(TARGET_BOARD_PLATFORM) \
Ravikanth Tunikiabe9d8d2019-04-01 10:15:54 -070015 libqdMetaData \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050016 vendor.display.config@1.0.vendor \
17 vendor.display.config@1.1.vendor \
18 vendor.display.config@1.2.vendor \
19 vendor.display.config@1.3.vendor \
20 vendor.display.config@1.4.vendor \
21 vendor.display.config@1.5.vendor \
Ramkumar Radhakrishnan2f8ebf42019-02-28 16:50:08 -080022 vendor.display.config@1.6.vendor \
23 vendor.display.config@1.7.vendor \
24 vendor.display.config@1.8.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050025 modetest
26
27#QDCM calibration xml file for 2k panel
28PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml
29PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_video_mode_dsi_truly_panel_with_DSC.xml
30#QDCM calibration xml file for 4k panel
31PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml
32PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.xml
33#QDCM calibration xml file for amoled panel
34PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml
35PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_video_mode_dsi_boe_panel_with_DSC.xml
Qing Huang04de0302019-05-16 15:04:42 +080036PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_boe_fhd+_panel_with_DSC.xml
37#QDCM calibration xml file for dual panel
38PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.xml
39PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_command_mode_dsi_panel.xml
Naseer Ahmed726b5d32018-12-18 15:48:41 -050040
41PRODUCT_PROPERTY_OVERRIDES += \
42 persist.demo.hdmirotationlock=false \
43 persist.sys.sf.color_saturation=1.0 \
44 debug.sf.hw=0 \
45 debug.egl.hw=0 \
46 debug.sf.latch_unsignaled=1 \
47 debug.mdpcomp.logs=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050048 vendor.gralloc.disable_ubwc=0 \
Alex Sarraf5705bcb2019-03-21 09:38:54 -070049 vendor.display.disable_scaler=0 \
Alex Sarraf51797cd2019-03-01 10:03:54 -080050 vendor.display.disable_offline_rotator=1 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050051 vendor.display.disable_excl_rect=0 \
52 vendor.display.comp_mask=0 \
Xu Yang6a42e012019-05-09 13:57:51 +080053 vendor.display.enable_default_color_mode=1 \
Ray Zhang9bace4c2019-05-22 20:11:00 +080054 vendor.display.enable_posted_start_dyn=1 \
55 vendor.display.use_smooth_motion=1
Naseer Ahmed726b5d32018-12-18 15:48:41 -050056
Naseer Ahmedb84b31d2019-02-28 19:36:23 -050057#Set WCG properties
58PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
59PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
60PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
61PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
62
Naseer Ahmed726b5d32018-12-18 15:48:41 -050063ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
64# Recovery is enabled, logging is enabled
65PRODUCT_PROPERTY_OVERRIDES += \
66 vendor.display.disable_hw_recovery_dump=0
67else
68# Recovery is enabled, logging is disabled
69PRODUCT_PROPERTY_OVERRIDES += \
70 vendor.display.disable_hw_recovery_dump=1
71endif
72
Alex Sarraf51797cd2019-03-01 10:03:54 -080073QMAA_ENABLED_HAL_MODULES += display
74ifeq ($(TARGET_USES_QMAA),true)
75ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),true)
76PRODUCT_PROPERTY_OVERRIDES += \
77 vendor.display.enable_null_display=0
78else
79PRODUCT_PROPERTY_OVERRIDES += \
80 vendor.display.enable_null_display=1
81endif
82endif
83
Naseer Ahmed726b5d32018-12-18 15:48:41 -050084# Properties using default value:
85# vendor.display.disable_hw_recovery=0
86
87# This matrix should be in column major order, per SurfaceFlinger requirement
88# 1.0 0.0 0.0
89# 0.0 1.0 0.0
90# 0.0 0.0 1.0
91PRODUCT_PROPERTY_OVERRIDES += \
92 vendor.display.dataspace_saturation_matrix=1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0