Refactor utilities for InputMethodManagerSerivce that we want to share with the Settings application

Bug: 7872918

Change-Id: I0bc9954f163a3ec38d08b9ba842a8a31176eb6a6
2 files changed