summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2015-06-08 17:05:44 -0700
committerYohei Yukawa <yukawa@google.com>2015-06-08 17:05:44 -0700
commit915e2c77317e594d12700c7c392ae91c16c0480d (patch)
tree6df56be4f72f19909cc4e3b241bd70fa1dc49a5e /core
parente37cf3b8d614019c5570f945110bfbc5a8b09713 (diff)
downloadframeworks_base-915e2c77317e594d12700c7c392ae91c16c0480d.zip
frameworks_base-915e2c77317e594d12700c7c392ae91c16c0480d.tar.gz
frameworks_base-915e2c77317e594d12700c7c392ae91c16c0480d.tar.bz2
Update JavaDoc of EditorInfo#packageName.
This CL does nothing but updates JavaDoc of EditorInfo#packageName about the changes made in M. Bug: 18931038 Change-Id: I8c94f6470d77e22daabb7caa0ea57e85e51b3ec5
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/inputmethod/EditorInfo.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/view/inputmethod/EditorInfo.java b/core/java/android/view/inputmethod/EditorInfo.java
index c0395cf..687f9d0 100644
--- a/core/java/android/view/inputmethod/EditorInfo.java
+++ b/core/java/android/view/inputmethod/EditorInfo.java
@@ -298,6 +298,19 @@ public class EditorInfo implements InputType, Parcelable {
/**
* Name of the package that owns this editor.
+ *
+ * <p><strong>IME authors:</strong> In API level 22
+ * {@link android.os.Build.VERSION_CODES#LOLLIPOP_MR1} and prior, do not trust this package
+ * name. The system had not verified the consistency between the package name here and
+ * application's uid. Consider to use {@link InputBinding#getUid()}, which is trustworthy.
+ * Starting from Android MNC, the system verifies the consistency between this package name
+ * and application uid before {@link EditorInfo} is passed to the input method as long as the
+ * application sets a non-empty package name.</p>
+ *
+ * <p><strong>Editor authors:</strong> Starting from Android MNC, the application is no longer
+ * able to establish input connections if the package name provided here is inconsistent with
+ * application's uid. Note that the system does accept an empty string for an arbitrary
+ * application uid.</p>
*/
public String packageName;