Add more logging for Wakelocks.

Adds a new in-memory wake lock log to store wake lock usage to dump
during bugreport collection.

Utilizes a preallocated ring-buffer to save the wake lock events.

Test: atest WakeLockLogTest
Change-Id: If3c054f9e689fe1d6535f6cad03e4f9e9a0aa8ee
4 files changed