commit | 3f7ecc5bad8005fb680909bd67ed06458ff58f14 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Wed Mar 25 23:57:08 2020 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Tue Apr 28 15:46:52 2020 +0100 |
tree | 46d54603c0fa42e380c3d693b881861b6e70b188 | |
parent | 3a6e47d2217d501dd18310d869de47a481bedcb2 [diff] |
Create controller for Power HAL handles. This controller is also a PowerHalWrapper and delegates each api call to the Power HAL currently connected. It is also responsible for reconnecting with it after any api call fails. This cl also introduces PowerHalConnector, to abstract away the logic to connect to a Power HAL. Bug: 150878220 Test: atest powermanager_test Change-Id: I24cd262ce40429cc1107a1f0184ed2719a7492d9