Add check for kernel wake lock stats support

This change adds a check for the existence of either the /proc/wakelocks
or /d/wake_sources file in the testKernelWakelock CTS tests. If either
of these files aren't present the test doesn't run its logic and
implicitly passes.

Bug: 110795382
Test: atest android.cts.statsd.atom.HostAtomTests#testKernelWakelock.

Change-Id: I1738b4397a86667c6f9a0d5c3e7dd0531e08a6c6
2 files changed