commit | eb52a694445a7fd5d9267d400995ebf2e53bbc67 | [log] [tgz] |
---|---|---|
author | Gavin Corkery <gavincorkery@google.com> | Fri Apr 17 00:56:38 2020 +0100 |
committer | Gavin Corkery <gavincorkery@google.com> | Fri Apr 17 14:41:21 2020 +0100 |
tree | 3691a62d62a1a7141d3a8007a10bbaff5bd13ef8 | |
parent | c0fe0ae29f7de3cfeaad22563cf1e501235b4693 [diff] |
Ensure userspace reboot is supported before logging Ensure that userspace reboot is supported before performing any actions. Any call into UserspaceRebootLogger in the case that userspace reboot is not supported should be a no-op. It is unexpected to call into this class on an unsupported device, so log with ASSERT priority in this case. Test: atest UserspaceRebootHostTest Bug: 153648276 Change-Id: Ic3041ff3abe0d2641d3d99fc8e816f1f5c491a34