commit | f792c8cf2c6bab8ae38f7964c5bedc7b657d12b8 | [log] [tgz] |
---|---|---|
author | Fabián Kozynski <kozynski@google.com> | Mon May 13 10:41:26 2024 -0400 |
committer | Fabián Kozynski <kozynski@google.com> | Mon May 13 10:41:26 2024 -0400 |
tree | 06833ce40c5befa91bac721f37c2e66a5b3b0b28 | |
parent | b464f1531aa0a0bf954e5d335d3d31d677a9c38d [diff] |
Add support for removeCallbacks in MockExecutorHandler If the handler is constructed with a DelayableExecutor, it adds support for cancelling runnables scheduled with postDelayed and postAtTime. It has the same behavior as in Handler: calling it with a Runnable will remove all pending instances of that runnable. Test: atest MockExecutorHandlerTest Bug: 339290820 Flag: NA Change-Id: I47d68931ac9225efd3f1b6a211fe6475fcddaf06