summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2016-11-15 11:25:52 +0900
committerLorenzo Colitti <lorenzo@google.com>2017-01-18 19:08:37 +0900
commitde7002ef0dc3ad689cb64aa53fc981731dda2499 (patch)
tree16a93d7c86bfa82b09e23f2b6e3b331541d1a3bb /tools/aapt2/diff/Diff.cpp
parent389b853bc88fd77a7dceecbb9fb02c0c05d90e6a (diff)
DO NOT MERGE: Fix ConnectivityServiceTest testRequestBenchmark
This patch fixes flakyness of testRequestBenchmark by adjusting time limit for callback registration from 100ms to 180ms, and time limits for onAvailable and onLost triggers from 30ms to 40ms. With these timeouts the test succeeds 100% over 5000 iterations. When using 150ms for registration timeout, running the test 5000 times fails 2 times. When using 30ms for onLost timeout, running the test 5000 times fails 1 times. In addition, this patch also cleans testRequestBenchmark and uses the more stable SystemClock.elapsedRealtime() for duration measurements. Test: $ runtest frameworks-net Bug: 32561414 (cherry picked from commit 38be57b438a0c1754091f045317db2049304e16f) (cherry picked from commit cbf8ff83a8b342e6ebeaa83794dace3c6d0b1488) Change-Id: I3caf10025f203156a297c0b522f24768a18accc9
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions