commit | 4a9e8b8e2f5a24f0c2ddcb03a8ad989f717d5f31 | [log] [tgz] |
---|---|---|
author | Sarah Chin <sarahchin@google.com> | Fri Feb 10 21:10:57 2023 -0800 |
committer | Sarah Chin <sarahchin@google.com> | Sun Feb 12 20:58:47 2023 -0800 |
tree | a391d420b4cbc371e35d3da01fd7cbfae5900d7e | |
parent | 63d27b7e3f0acf29228da87485a6252f3a3d4e6e [diff] |
Support async void callbacks for SatelliteManager APIs Instead of blocking the main thread until we receive a result from the satellite service, call methods asynchronously and receive the result through a callback. If a value was requested, return the value and error through an OutcomeReceiver. If a value was not requested, return the error through an integer consumer. Test: atest SatelliteManagerTest Bug: 268791334 Change-Id: I0cd345e14d242735d6be5b193e48bc22bdf69704