commit | 4f13a604088be86b9df607655d75b039aa5da4d2 | [log] [tgz] |
---|---|---|
author | Daniel Erat <derat@google.com> | Fri Oct 16 11:10:05 2015 -0600 |
committer | Daniel Erat <derat@google.com> | Fri Oct 16 11:58:53 2015 -0600 |
tree | ae6b1c9c2cf7d9fe0c83e76b8e78e07c3ebf4c1e | |
parent | 78132a0e300173bf3b738c9caf30f3941ff31cd2 [diff] |
Look up callers' UIDs when wake locks are acquired. Update PowerManager::acquireWakeLock() to get the calling process's actual UID instead of just storing -1. (The UID isn't used for anything, though.) Also do some related refactoring that came up while adding tests: to avoid duplicated code, make PowerManagerStub use WakeLockManagerStub instead of recording wake lock requests itself. Bug: 24988639 Change-Id: If2d2d2935052ab268f6b21dd72a7b1f02a66d799