diff options
author | Marin Shalamanov <shalamanov@google.com> | 2021-03-10 21:35:39 +0100 |
---|---|---|
committer | Marin Shalamanov <shalamanov@google.com> | 2021-03-24 21:31:31 +0100 |
commit | 41b3b73eceddac289a51b6f70b3ccf4d8d631885 (patch) | |
tree | ec0c6fafbb8ccb8a0af3ccd8a6162249dad0b9fa /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d96c8193e28c4f3a8e6068fdb7ebe4b9cd5d0faa (diff) |
DMD: Also consider no votes when calculating specs
Currently when DisplayModeDirector is calculating desired
display mode specs, we consider different ranges of vote
priorities. If we can't find allowed modes with the broadest
range we increase the lowest priority. However we always
take into account the vote with highes priority. It is
possible that even when we consider only that vote, we
end up with no allowed modes. This currently happens only in
tests when AlwaysRespectAppRequest is ON.
This CL changes the failure behaviour to from throwing ISE
to falling back to the default mode.
Bug: 182387031
Test: atest DisplayModeDirectorTest
Change-Id: I708d6bce0ceddd3c439e66eecd5193f82e272109
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions