IME tracing integration with bugreport

IME tracing information is added to bugreport if tracing was
previously enabled. IME tracing is reenabled after data is
dumped in the bugreport.

InputMethodManagerService state information is also dumped
in proto format.

Bug: 167948910, 154348613
Test: start trace by calling "adb shell ime tracing start"
      create a bugreport by calling "adb bugreport"
      check info in the bugreport zip file or upload to Winscope
Change-Id: Ie87eb8423e2bb70f28c330983d45b95e2e07062d
4 files changed