Frameworks: InputMethodService: Auto Keyboard Rotation (1/2)

Force auto-rotate when keyboard is shown.
Configurable auto-rotate sensor timeout after keyboard is hidden.