diff options
author | Robert Horvath <robhor@google.com> | 2020-03-19 17:09:50 +0100 |
---|---|---|
committer | Robert Horvath <robhor@google.com> | 2020-03-19 17:16:53 +0100 |
commit | fc6e42f3263aaf415bdb0fbd22897d90e4db0916 (patch) | |
tree | 31b3b24dfcbac0b7befb87cdaedb6c860da944f3 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 711ba26816dc2102578ab087c7919dcc9cc9be9f (diff) |
Deflake InattentiveSleep tests
Some inattentive sleep tests showed flakiness because of timing issues.
Adjusting sleeps helps increase chance scheduled messages have been
handled.
The change in PowerManagerService is for the case when
now == mLastUserActivityTime + attentiveTimeout.
updateAttentiveStateLocked considered this time as time to go to sleep,
but isAttentiveTimeoutExpired would report false for another millisecond
as it used > comparison instead of >= comparison.
Bug: 149340215
Test: atest --iterations 200 PowerManagerServiceTest#testInattentive*
Change-Id: Ibe5168664c1e01c6e480610686e19573c8df6c6f
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions