Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24c396c1 authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Add tests for DisplayDeviceConfig

This CL can be reviewed patchset by patchset.

Patchset 1: test fallback to config resource
Patchset 2: test density mapping (only supported by DDC)
Patchset 3: move the density mapping test into a separate method, HBM data test (only supported in DDC)
Patchset 4: move the thermal brightness throttling data test into a separate method, fix the order of the methods
Patchset 5: test sensors
Patchset 6: rebase

Bug: 238992235
Test: atest DisplayDeviceConfigTest
Change-Id: I1910abb54b3bd8cb039615ef8a05706124df2126
parent 412ef1ad
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -222,8 +222,14 @@ import javax.xml.datatype.DatatypeConfigurationException;
 *          <minimum>120</minimum>
 *          <maximum>120</maximum>
 *        </refreshRate>
 *        <thermalStatusLimit>light</thermalStatusLimit>
 *        <allowInLowPowerMode>false</allowInLowPowerMode>
 *        <minimumHdrPercentOfScreen>0.6</minimumHdrPercentOfScreen>
 *        <sdrHdrRatioMap>
 *          <point>
 *            <sdrNits>2.000</sdrNits>
 *            <hdrRatio>4.000</hdrRatio>
 *          </point>
 *        </sdrHdrRatioMap>
 *      </highBrightnessMode>
 *
 *      <luxThrottling>
@@ -276,6 +282,10 @@ import javax.xml.datatype.DatatypeConfigurationException;
 *      <lightSensor>
 *        <type>android.sensor.light</type>
 *        <name>1234 Ambient Light Sensor</name>
 *        <refreshRate>
 *          <minimum>60</minimum>
 *          <maximum>120</maximum>
 *        </refreshRate>
 *      </lightSensor>
 *      <screenOffBrightnessSensor>
 *        <type>com.google.sensor.binned_brightness</type>
+305 −155

File changed.

Preview size limit exceeded, changes collapsed.