code: def input_methods(self):
          
          imes = []
          for line in self.adb_shell(['ime', 'list', '-s', '-a']).splitlines():
              line = line.strip()
              if re.match('^.+/.+$', line):
                  imes.append(line)
          return imes
docs: Get all input methods
  
          Return example: ['com.sohu.inputmethod.sogou/.SogouIME', 'android.unicode.ime/.Utf7ImeService']