Make IMMS#canInteractWithImeLocked() multi-user aware

With this CL,

  InputMethodManagerService#canInteractWithImeLocked()

starts taking userId into account.

For single-user IME mode, there must be no user observable behavior
change. for multi-user IME mode, which is

  IMMS#mExperimentalConcurrentMultiUserModeEnabled

enabled environement, this CL enables that IPC-based requests from IME
processes that are associated with visible background users will start
passing the virification.

Bug: 341558132
Bug: 350386877
Test: presubmit
Flag: android.view.inputmethod.concurrent_input_methods
Change-Id: I1a432d4d7505172579e28a6d5e6a1d6aae1062f5
1 file changed