summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2016-11-15 11:25:52 +0900
committerHugo Benichi <hugobenichi@google.com>2016-11-23 18:27:05 +0900
commit38be57b438a0c1754091f045317db2049304e16f (patch)
tree3b5041ac808c534a89fdd76d67ecb1d1bf693eb8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd4f9d37424752a0774cdf9190dc12887c70daec2 (diff)
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 Change-Id: I7601b2f1f11f83914f885a74c8a376173eed186b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions