summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Antonio Kantek <kanant@google.com> 2024-03-08 21:24:12 +0000
committer Antonio Kantek <kanant@google.com> 2024-03-08 21:36:06 +0000
commit339c8e192cd610e5b85bcfeb7c10578c6de7002b (patch)
tree0ad2be8d2a7a5b1ee3391bc41555c158b4a41b04
parent27decd8eb63921c8d08badd90f36d5f0fc70ba38 (diff)
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
-rw-r--r--core/java/com/android/internal/view/IInputMethodManager.aidl6
1 files 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,