sdm660-common: Add display config file

* DisplayPowerController[0]: Screen brightness nits configuration is unavailable; falling back
 * DisplayDeviceConfig: requesting nits when no mapping exists.

Signed-off-by: orges <me@orgesified.ml>
Change-Id: I1716319bb17b9236d07d44a2a7fa3c7640c54ddf
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
orges 2021-10-26 21:25:34 +08:00 committed by pix106
parent ebd421dc9a
commit 63db93d56b
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,29 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- Copyright (C) 2020 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<displayConfiguration>
<screenBrightnessMap>
<point>
<value>0.0</value>
<nits>2.0</nits>
</point>
<point>
<value>1.0</value>
<nits>450.0</nits>
</point>
</screenBrightnessMap>
</displayConfiguration>

View file

@ -217,6 +217,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
DeviceDoze
# Display Device Config
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/displayconfig/display_id_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_0.xml
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \