Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9af741d6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add missing JavaDoc for IMS.InputMethodImpl"

parents 39615fcc 16f04077
Loading
Loading
Loading
Loading
+26 −7
Original line number Diff line number Diff line
@@ -382,8 +382,9 @@ public class InputMethodService extends AbstractInputMethodService {
     */
    public class InputMethodImpl extends AbstractInputMethodImpl {
        /**
         * Take care of attaching the given window token provided by the system.
         * {@inheritDoc}
         */
        @Override
        public void attachToken(IBinder token) {
            if (mToken == null) {
                mToken = token;
@@ -392,10 +393,11 @@ public class InputMethodService extends AbstractInputMethodService {
        }
        
        /**
         * Handle a new input binding, calling
         * {@link InputMethodService#onBindInput InputMethodService.onBindInput()}
         * when done.
         * {@inheritDoc}
         *
         * <p>Calls {@link InputMethodService#onBindInput()} when done.</p>
         */
        @Override
        public void bindInput(InputBinding binding) {
            mInputBinding = binding;
            mInputConnection = binding.getConnection();
@@ -409,8 +411,11 @@ public class InputMethodService extends AbstractInputMethodService {
        }

        /**
         * Clear the current input binding.
         * {@inheritDoc}
         *
         * <p>Calls {@link InputMethodService#onUnbindInput()} when done.</p>
         */
        @Override
        public void unbindInput() {
            if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding
                    + " ic=" + mInputConnection);
@@ -419,11 +424,19 @@ public class InputMethodService extends AbstractInputMethodService {
            mInputConnection = null;
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public void startInput(InputConnection ic, EditorInfo attribute) {
            if (DEBUG) Log.v(TAG, "startInput(): editor=" + attribute);
            doStartInput(ic, attribute, false);
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public void restartInput(InputConnection ic, EditorInfo attribute) {
            if (DEBUG) Log.v(TAG, "restartInput(): editor=" + attribute);
            doStartInput(ic, attribute, true);
@@ -447,8 +460,9 @@ public class InputMethodService extends AbstractInputMethodService {
        }

        /**
         * Handle a request by the system to hide the soft input area.
         * {@inheritDoc}
         */
        @Override
        public void hideSoftInput(int flags, ResultReceiver resultReceiver) {
            if (DEBUG) Log.v(TAG, "hideSoftInput()");
            boolean wasVis = isInputViewShown();
@@ -465,8 +479,9 @@ public class InputMethodService extends AbstractInputMethodService {
        }

        /**
         * Handle a request by the system to show the soft input area.
         * {@inheritDoc}
         */
        @Override
        public void showSoftInput(int flags, ResultReceiver resultReceiver) {
            if (DEBUG) Log.v(TAG, "showSoftInput()");
            boolean wasVis = isInputViewShown();
@@ -495,6 +510,10 @@ public class InputMethodService extends AbstractInputMethodService {
            }
        }

        /**
         * {@inheritDoc}
         */
        @Override
        public void changeInputMethodSubtype(InputMethodSubtype subtype) {
            onCurrentInputMethodSubtypeChanged(subtype);
        }