diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-08-03 09:00:25 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-03 09:00:25 +0000 |
| commit | d609a403426118498ea17ec4ca3bc4ab9d4d057b (patch) | |
| tree | ac8ef47fd7791f547677b4a9e0643b0565d67f00 /core/java/android/inputmethodservice/KeyboardView.java | |
| parent | bb67bab55fb7fc8a94be7189fe8cbf910d4bbc5c (diff) | |
| parent | 6be794927bc61115df8d3873481642efe8bb055b (diff) | |
Merge "Add @UnsupportedAppUsage annotations"
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); |
