summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2019-01-25 11:12:18 -0800
committerNathan Harold <nharold@google.com>2019-01-28 18:54:08 -0800
commit18f18aaeb80849a0ec23dcf2886051c6aadbc498 (patch)
treeef8dd3bd2cc2af11474f38af2cc2f26c46a06819 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent38a641d29f40e23c416b758e845e0a1117abc7e9 (diff)
Coerce Unreported BER from ASU=99 to UNAVAILABLE
Modems inconsistently use 99 or UNAVAILABLE to report that BER measurements are unavailable; this causes the new strict logic in SignalStrength to conclude that a SignalStrength type has been reported when in fact it's just the modem choosing the ASU out-of-range value instead of the Android "unreported" value. We can't force older modems to change, so this patch simply coerces 99's to INT_MAX. It means that the ASU 99 will never be returned on older HALs, which should have no practical implication. Bug: 123088652 Test: cts - atest SignalStrengthTest Change-Id: I4c8610356a81e2190e475d789138b2d2c344fa36
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions