Make dumpsys input_method multi-user aware

This change list adds the optional `--user` argument to `dumpsys input_method`.

In concurrent multi-user mode, if no specific user is specified, information for all existing users will be displayed.

No changes should be visible on phones and tablets. Without the `--user` argument, `dumpsys input_method` will display information for the current IME user (InputMethodManagerService#mCurrentImeUserId), which is the same as the current behavior.

Bug: 356239178
Flag: EXEMPT refactoring dump method
Test: atest android.view.inputmethod.cts.DumpTest
Test: atest --user-type secondary_user_on_secondary_display android.view.inputmethod.cts.DumpTest
Test: adb shell dumpsys input_method
Test: adb shell dumpsys input_method --user 10
Change-Id: I1fcfeb8263f64bc6c3cb764ea9c23e2cfab28c95
1 file changed