diff options
| author | Yohei Yukawa <yukawa@google.com> | 2021-09-21 15:39:10 -0700 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2021-09-21 15:39:10 -0700 |
| commit | 380ec665efb4c7335464a9f36c8d9610efd87ca4 (patch) | |
| tree | 89930654ae6a8fe023a08f53c8f02a05c79a541c /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 3199efcef3ba5cfb688982b3754a4f27f9e4076a (diff) | |
Work around the timing resolution of Handler#postDelayed()
This is a follow up CL to my previous CL [1], which added unit tests
for CompletableFutureUtil.
It seems that the time resolution of Handler#postDelayed() is indeed
milliseconds, and one may observe that the scheduled task can be
triggered a bit earlier within the resolution.
This CL introduces a utility method so that all the tests in
CompletableFutureUtilTest that rely on Handler#postDelayed() can take
that behavior into account.
There should be no semantic changes in the test expectations.
[1]: I215bbc870f952effa262fa431064b36ace28e8f4
ba8cdf5dcf0f89239a306c11757c9c016434b669
Fix: 198735181
Test: atest -c FrameworksCoreTests:CompletableFutureUtilTest
Change-Id: I70f6c80398d9f97d17764a2aebbc86d9669a0272
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
