assistant: Add power manager implementation

Desktop / Chromium - Abhishek Bhardwaj [chromium.org] - 27 February 2019 09:43 EST

This change adds power manager implementation to be used by libassistant on Chrome OS. This implementation implements the API
- To acquire and release Chrome OS wake locks.
- To set wake up alarms on Chrome OS.

BUG=chromium:913128 TEST=Set timers using assistant on Chrome OS.

Change-Id: Ia54cf6508e2dd695fd3c76ee6d732e7aab5d15aa Reviewed-on: https://chromium-review.googlesource.com/c/1372830

bed74fa851ff assistant: Add power manager implementation
chromeos/services/assistant/BUILD.gn | 11 +-
.../assistant/assistant_manager_service_impl.cc | 3 +-
.../platform/power_manager_provider_impl.cc | 197 +++++++++++++++++++++
.../platform/power_manager_provider_impl.h | 113 ++++++++++++
.../power_manager_provider_impl_unittest.cc | 156 ++++++++++++++++
.../assistant/platform/system_provider_impl.cc | 8 +-
.../assistant/platform/system_provider_impl.h | 11 +-
.../platform/system_provider_impl_unittest.cc | 6 +
chromeos/services/assistant/platform_api_impl.cc | 19 +-
chromeos/services/assistant/platform_api_impl.h | 3 +-
chromeos/services/assistant/public/cpp/manifest.cc | 1 +
chromeos/services/assistant/public/features.cc | 7 +
chromeos/services/assistant/public/features.h | 6 +
13 files changed, 530 insertions(+), 11 deletions(-)

Upstream: git.chromium.org


  • Share