summaryrefslogtreecommitdiff
path: root/core/java/android/os/SynchronousResultReceiver.java
Commit message (Collapse)AuthorAgeFilesLines
* BatteryStats: Cleanup external stats collectionAdam Lesinski2017-06-091-0/+14
| | | | | | | | | | | Create a BatteryStatsWorker that internalizes the stats collection, and returns a Future<?> so that uses-cases requiring synchronous results can still wait on the async task. Bug: 37645919 Bug: 38296815 Test: manual Change-Id: I5b935e1877d9a17d2617f01478faa77e8a52a258
* BatteryStats: Introduce Async external stats requestsAdam Lesinski2016-04-151-0/+80
Instead of calling out to external processes with a blocking IPC, pass along a Binder on which the external process can pass back the response. The calling process can then wait for the reply with a timeout. This eliminates watchdog restarts of the system_server when an external process like telephony or bluetooth hangs. Bug:26842468 Change-Id: I1b242e4ed22a63f1a4a0be8c78de8ac4d7bf56c5