commit | 6b0331a03025f2ea8c966bf9406dd5788ffa176e | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Fri Jun 05 17:08:22 2015 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Fri Jun 05 17:47:07 2015 -0700 |
tree | 94ba40106157852a1d3fdf0812219748e3a548db | |
parent | 581cc1ee59d01fe4b4a31618ab4aedfa639e42b0 [diff] |
Wait for wakeup_reasons on first init Previously if we were initializing the wakeup callback for the first time, we would read the wakeup_reason file and ignore the contents, sending a wakeup_reason of "unknown" up to BatteryStats. Now we initialize the callback and wait on it immediately. Wakeup reasons are reset when we go into sleep, so when we wakeup, we will always have fresh wakeup reasons. Bug:21665793 Change-Id: I20832d8a143fc2715915fcecf4bb71980f279440