OSDN Git Service

Remove IInputMethodManager#finishInput(), which is NOP
authorYohei Yukawa <yukawa@google.com>
Wed, 17 Oct 2018 08:14:34 +0000 (16:14 +0800)
committerYohei Yukawa <yukawa@google.com>
Wed, 17 Oct 2018 08:14:34 +0000 (16:14 +0800)
Currently InputMethodManagerService#finishInput() does nothing. Until
we fully understand what is the right approach on how and when
InputMethodService#finishInput() (Bug 9216494), let's remove this
unnecessary IPC from the IME client to InputMethodManagerService.

Bug: 9216494
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: I614050d20f4a7d9611dc0502e55e6ca3458a836e

core/java/android/view/inputmethod/InputMethodManager.java
core/java/com/android/internal/view/IInputMethodManager.aidl
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java

index e8e4b4a..a401c6d 100644 (file)
@@ -1052,13 +1052,6 @@ public final class InputMethodManager {
         mNextServedView = null;
         if (mServedView != null) {
             if (DEBUG) Log.v(TAG, "FINISH INPUT: mServedView=" + dumpViewInfo(mServedView));
-            if (mCurrentTextBoxAttribute != null) {
-                try {
-                    mService.finishInput(mClient);
-                } catch (RemoteException e) {
-                    throw e.rethrowFromSystemServer();
-                }
-            }
             mServedView = null;
             mCompletions = null;
             mServedConnecting = false;
index dceacda..34e8501 100644 (file)
@@ -46,7 +46,6 @@ interface IInputMethodManager {
     // Currently there is a bug that aidl doesn't accept List<Parcelable>
     List getShortcutInputMethodsAndSubtypes();
 
-    void finishInput(in IInputMethodClient client);
     boolean showSoftInput(in IInputMethodClient client, int flags,
             in ResultReceiver resultReceiver);
     boolean hideSoftInput(in IInputMethodClient client, int flags,
index 862ea9d..fc76b46 100644 (file)
@@ -2015,10 +2015,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
     }
 
     @Override
-    public void finishInput(IInputMethodClient client) {
-    }
-
-    @Override
     public void onServiceConnected(ComponentName name, IBinder service) {
         synchronized (mMethodMap) {
             if (mCurIntent != null && name.equals(mCurIntent.getComponent())) {