diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-07-31 14:49:38 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2018-07-31 14:49:38 +0100 |
| commit | 6be794927bc61115df8d3873481642efe8bb055b (patch) | |
| tree | 952789f19d866a15e2bad0711bfe90d65268dfc2 /core/java/android/inputmethodservice/KeyboardView.java | |
| parent | b6b8516ba0f44f2d234b825cc4d568c304e9f719 (diff) | |
Add @UnsupportedAppUsage annotations
For packages:
android.inputmethodservice
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug: 110868826
Test: m
Change-Id: I4b417b8257486fbdaa3b0f54a02ab70696d199e0
Diffstat (limited to 'core/java/android/inputmethodservice/KeyboardView.java')
| -rw-r--r-- | core/java/android/inputmethodservice/KeyboardView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/KeyboardView.java b/core/java/android/inputmethodservice/KeyboardView.java index 13b9206b12ee..befc2bb1de28 100644 --- a/core/java/android/inputmethodservice/KeyboardView.java +++ b/core/java/android/inputmethodservice/KeyboardView.java @@ -16,6 +16,7 @@ package android.inputmethodservice; +import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; @@ -135,6 +136,7 @@ public class KeyboardView extends View implements View.OnClickListener { private Keyboard mKeyboard; private int mCurrentKeyIndex = NOT_A_KEY; + @UnsupportedAppUsage private int mLabelTextSize; private int mKeyTextSize; private int mKeyTextColor; @@ -142,6 +144,7 @@ public class KeyboardView extends View implements View.OnClickListener { private int mShadowColor; private float mBackgroundDimAmount; + @UnsupportedAppUsage private TextView mPreviewText; private PopupWindow mPreviewPopup; private int mPreviewTextSizeLarge; @@ -219,6 +222,7 @@ public class KeyboardView extends View implements View.OnClickListener { private float mOldPointerX; private float mOldPointerY; + @UnsupportedAppUsage private Drawable mKeyBackground; private static final int REPEAT_INTERVAL = 50; // ~20 keys per second @@ -910,6 +914,7 @@ public class KeyboardView extends View implements View.OnClickListener { } } + @UnsupportedAppUsage private void showKey(final int keyIndex) { final PopupWindow previewPopup = mPreviewPopup; final Key[] keys = mKeys; @@ -1052,6 +1057,7 @@ public class KeyboardView extends View implements View.OnClickListener { key.x + key.width + mPaddingLeft, key.y + key.height + mPaddingTop); } + @UnsupportedAppUsage private boolean openPopupIfRequired(MotionEvent me) { // Check if we have a popup layout specified first. if (mPopupLayout == 0) { @@ -1357,6 +1363,7 @@ public class KeyboardView extends View implements View.OnClickListener { return true; } + @UnsupportedAppUsage private boolean repeatKey() { Key key = mKeys[mRepeatKeyIndex]; detectAndSendKey(mCurrentKey, key.x, key.y, mLastTapTime); |
