diff options
author | Vova Sharaienko <sharaienko@google.com> | 2021-05-05 19:43:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-05-05 19:43:01 +0000 |
commit | bb1b1bf55b3914e9bd73973de032d7e2a1c2903d (patch) | |
tree | 55d88cff3c655e8ecf3d2b67ea70714318fb47b2 /health | |
parent | 42dc13c16da1d230de2f2514009f4d67d3c07ceb (diff) | |
parent | e1df6f4ef2dedb5013b3b649b9e9366bc4b9e7f7 (diff) | |
download | pixel-bb1b1bf55b3914e9bd73973de032d7e2a1c2903d.tar.gz |
Merge "health: IStats service obtained via unblocking call" into sc-dev
Diffstat (limited to 'health')
-rw-r--r-- | health/StatsHelper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/health/StatsHelper.cpp b/health/StatsHelper.cpp index 51cb2d6e..6986d6a0 100644 --- a/health/StatsHelper.cpp +++ b/health/StatsHelper.cpp @@ -42,7 +42,10 @@ std::shared_ptr<IStats> getStatsService() { return nullptr; } } - return IStats::fromBinder(ndk::SpAIBinder(AServiceManager_waitForService(instance.c_str()))); + /* TODO stayfan@: b/187221893 Review implementing separate thread to log atoms + * to prevent data loss at device boot stage, while IStats might not be ready + */ + return IStats::fromBinder(ndk::SpAIBinder(AServiceManager_getService(instance.c_str()))); } void reportBatteryHealthSnapshot(const std::shared_ptr<IStats> &stats_client, |