63a89f28d6e86844eea242a0175db21df1624db1 |
|
09-Dec-2015 |
Brad Ebinger <breadley@google.com> |
Mock WakeLocks in Telecom for Unit Testing Currently, the proximity and in-call wakelock controllers use PowerManager and PowerManager.WakeLock, which are final and can not be mocked. A container named TelecomWakeLock has been introduced, which encapsulates WakeLock logic for Unit Testing. Unit tests are added for the ProximitySensorManager and InCallWakeLockControllerTest. Change-Id: I4a894d4cd8d9d8952144a41a4d0a4bf4dac4de46
/packages/services/Telecomm/src/com/android/server/telecom/TelecomWakeLock.java
|