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/InputMethodService.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/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 1bafcaec280a..f510b3687bf2 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -25,6 +25,7 @@ import android.annotation.IntDef; import android.annotation.MainThread; import android.annotation.NonNull; import android.annotation.Nullable; +import android.annotation.UnsupportedAppUsage; import android.app.ActivityManager; import android.app.Dialog; import android.content.Context; @@ -266,10 +267,12 @@ public class InputMethodService extends AbstractInputMethodService { InputMethodManager mImm; + @UnsupportedAppUsage int mTheme = 0; LayoutInflater mInflater; TypedArray mThemeAttrs; + @UnsupportedAppUsage View mRootView; SoftInputWindow mWindow; boolean mInitialized; @@ -314,8 +317,10 @@ public class InputMethodService extends AbstractInputMethodService { boolean mFullscreenApplied; boolean mIsFullscreen; + @UnsupportedAppUsage View mExtractView; boolean mExtractViewHidden; + @UnsupportedAppUsage ExtractEditText mExtractEditText; ViewGroup mExtractAccessories; View mExtractAction; @@ -336,6 +341,7 @@ public class InputMethodService extends AbstractInputMethodService { */ boolean mShouldClearInsetOfPreviousIme; + @UnsupportedAppUsage final Insets mTmpInsets = new Insets(); final int[] mTmpLocation = new int[2]; @@ -725,6 +731,7 @@ public class InputMethodService extends AbstractInputMethodService { mService.getContentResolver().unregisterContentObserver(this); } + @UnsupportedAppUsage private boolean shouldShowImeWithHardKeyboard() { // Lazily initialize as needed. if (mShowImeWithHardKeyboard == ShowImeWithHardKeyboardType.UNKNOWN) { @@ -764,6 +771,7 @@ public class InputMethodService extends AbstractInputMethodService { return "SettingsObserver{mShowImeWithHardKeyboard=" + mShowImeWithHardKeyboard + "}"; } } + @UnsupportedAppUsage private SettingsObserver mSettingsObserver; /** @@ -2317,6 +2325,7 @@ public class InputMethodService extends AbstractInputMethodService { /** * @hide */ + @UnsupportedAppUsage public void onExtractedDeleteText(int start, int end) { InputConnection conn = getCurrentInputConnection(); if (conn != null) { @@ -2329,6 +2338,7 @@ public class InputMethodService extends AbstractInputMethodService { /** * @hide */ + @UnsupportedAppUsage public void onExtractedReplaceText(int start, int end, CharSequence text) { InputConnection conn = getCurrentInputConnection(); if (conn != null) { @@ -2340,6 +2350,7 @@ public class InputMethodService extends AbstractInputMethodService { /** * @hide */ + @UnsupportedAppUsage public void onExtractedSetSpan(Object span, int start, int end, int flags) { InputConnection conn = getCurrentInputConnection(); if (conn != null) { |
