Skip to content

Commit

Permalink
Add display config file for sunfish
Browse files Browse the repository at this point in the history
Bug: no
Test: manual - check dumpsys display for DisplayDeviceConfig
Change-Id: I831eec84340cf381485dbd67466648b82b6b1f33
  • Loading branch information
Fiona Campbell committed Dec 15, 2020
1 parent 2d8faef commit ecac2bd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device-sunfish.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ include device/google/sunfish/device-common.mk

DEVICE_PACKAGE_OVERLAYS += device/google/sunfish/sunfish/overlay

# Display Device Config
PRODUCT_COPY_FILES += \
device/google/sunfish/displayconfig/display_id_4630946475097398401.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946475097398401.xml

# Audio XMLs for sunfish
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
Expand Down
29 changes: 29 additions & 0 deletions displayconfig/display_id_4630946475097398401.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ecac2bd

Please sign in to comment.