commit | 13e208cfce26cb080fe92a8ebabd434f07031b62 | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Mon Aug 07 18:50:39 2023 -0700 |
committer | Atneya Nair <atneya@google.com> | Mon Aug 07 19:26:44 2023 -0700 |
tree | 8015931b11f442ccbafa60f1be042b660e8d0377 | |
parent | b9dbeea2082db978118c3cf59c6c921fe9c43b4a [diff] |
Add getFutureForIntent Add helper function which gets a future associated with an intent broadcast matching a certain action and predicate. Automatically unregister the listener when the future is completed or cancelled. Add unit tests. Bug: 288333346 Bug: 294636572 Test: atest GetFutureForIntentTest Change-Id: Ie26487d3f727691d001b3d0392dc0fcdf5b5a2db