mondrian: Add Display nits map
fix logspam "requesting nits when no mapping exists"
This commit is contained in:
parent
abfbb64372
commit
0df850970c
2 changed files with 30 additions and 0 deletions
26
configs/display_id_0.xml
Normal file
26
configs/display_id_0.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
|
||||
|
||||
<!-- Copyright (C) 2022 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>373.0</nits>
|
||||
</point>
|
||||
</screenBrightnessMap>
|
||||
</displayConfiguration>
|
|
@ -50,6 +50,10 @@ PRODUCT_PACKAGES += \
|
|||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||
|
||||
# Display Device Config
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/display_id_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_0.xml
|
||||
|
||||
# Doze
|
||||
PRODUCT_PACKAGES += \
|
||||
SamsungDoze
|
||||
|
|
Loading…
Add table
Reference in a new issue