commit | 1a5d14050ff818c30f04a7b84527eada5543b03c | [log] [tgz] |
---|---|---|
author | Roshan Pius <rpius@google.com> | Fri Mar 05 18:10:27 2021 -0800 |
committer | Roshan Pius <rpius@google.com> | Mon Mar 08 16:52:47 2021 +0000 |
tree | 219281aeaff27c1c9fcb3a2a252ee8538f50b1c8 | |
parent | 95eb9c398a5aabd4a51db837a9f3bd7b68ced64b [diff] |
WifiUsabilityStatsEntry: Throw exception if duty cyle not present If the device is running an old HAL (or the value is not populated by the HAL for some reason), throw NoSuchElementException to indicate that we don't have a valid value. We could alternatively, change the IntRange to include -1, but that seems ugly. Bug: 181809456 Test: atest android.net.wifi Change-Id: I6e5d840c1afe35ed6d4e5ac4776dc667ea9d47e7