Add support to InputManagerService for listening to lid switch events.

This extracts the notifyLidSwitchChanged() method from
WindowManagerCallbacks to allow services other than window manager to
receive lid switch notifications

Test: Manual, register callback and trigger lid switch
Bug: 159401801

Change-Id: I8967d4f2f5a9c56c2b7e0822224d1c0ea0f1bc06
2 files changed