commit | f336f64a119c2ab538ad6eadca760117a40a127a | [log] [tgz] |
---|---|---|
author | Fiona Campbell <flc@google.com> | Fri May 26 14:03:09 2023 +0000 |
committer | Fiona Campbell <flc@google.com> | Fri May 26 14:58:05 2023 +0000 |
tree | eca1608eea1f21e2faa03c45efea63d1cda0a62a | |
parent | 4b4b8d7b085d669426c0d2f69fc9e20a080e4095 [diff] |
Ensure invalid brightness values aren't used Previously, we were adding invalid brightness values to the short term model; specifically, -1.0 was being added, causing the short term model to be very dark. This change ensures that we validate the values before adding them to the curve. Bug: 283055494 Test: atest com.android.server.display Test: atest AutomaticBrightnessControllerTest Change-Id: I4a53f5ea396c353c69b006dfda76e2f7acce7651