From 339c8e192cd610e5b85bcfeb7c10578c6de7002b Mon Sep 17 00:00:00 2001 From: Antonio Kantek Date: Fri, 8 Mar 2024 21:24:12 +0000 Subject: Add a note on IMM.aidl This CL adds a note to developers and code reviewers to ensure that the associated userId can be inferred from the arguments. Bug: 327704190 Test: m Change-Id: I07a9d3e1ff2a381216239303e021991c519e20ce --- core/java/com/android/internal/view/IInputMethodManager.aidl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/com/android/internal/view/IInputMethodManager.aidl b/core/java/com/android/internal/view/IInputMethodManager.aidl index dc3b5a8846cf..025703364f0f 100644 --- a/core/java/com/android/internal/view/IInputMethodManager.aidl +++ b/core/java/com/android/internal/view/IInputMethodManager.aidl @@ -33,8 +33,10 @@ import com.android.internal.inputmethod.IRemoteInputConnection; import com.android.internal.inputmethod.InputBindResult; /** - * Public interface to the global input method manager, used by all client - * applications. + * Public interface to the global input method manager, used by all client applications. + * + * When adding new methods, make sure the associated user can be inferred from the arguments. + * Consider passing the associated userId when not already passing a display id or a window token. */ interface IInputMethodManager { void addClient(in IInputMethodClient client, in IRemoteInputConnection inputmethod, -- cgit v1.2.3-59-g8ed1b