commit | ef0904eac06a3ad43125d5f259c2d2f619bb846c | [log] [tgz] |
---|---|---|
author | Ruchir Rastogi <ruchirr@google.com> | Wed Jun 03 17:29:46 2020 -0700 |
committer | Ruchir Rastogi <ruchirr@google.com> | Fri Jun 05 14:08:37 2020 -0700 |
tree | 12d053eaef623860ace62bffb31fe91a0d69805d | |
parent | 5ea18c9036f07633c0fd091c94329573fa588d7b [diff] |
Move GnssStats puller to binder thread Pass direct executor to setPullAtomCallback. This causes the puller to run directly on the binder thread, as opposed to the Background thread, which could be busy with other work. This change means that the puller can be executed concurrently. To properly handle that, the Statistics class is made thread-safe. Test: adb shell cmd stats pull-source 10074 Bug: 157186182 Change-Id: I6c0940fd4ed231f9d962981cc1f9e8c983c48f7f