Move IInputMethod to com.android.internal.inputmethod

This CL Moves IInputMethod from

  com.android.internal.view

to

  com.android.internal.inputmethod

to be consistent with other IME-related internal files.

This is a mechanical refactoring of internal details.  There should be
no user/developer observable behavior change in this CL.

Bug: 234882948
Test: presubmit
Change-Id: I1a43c2ad1f932ecb9201b3958becb475fb2d718d
This commit is contained in:
Yohei Yukawa
2022-06-10 11:34:30 -07:00
parent fd1580e341
commit 1508f37558
7 changed files with 8 additions and 12 deletions

View File

@@ -40,6 +40,7 @@ import android.view.inputmethod.InputMethodSubtype;
import android.window.ImeOnBackInvokedDispatcher;
import com.android.internal.inputmethod.CancellationGroup;
import com.android.internal.inputmethod.IInputMethod;
import com.android.internal.inputmethod.IInputMethodPrivilegedOperations;
import com.android.internal.inputmethod.IInputMethodSession;
import com.android.internal.inputmethod.IInputMethodSessionCallback;
@@ -48,7 +49,6 @@ import com.android.internal.inputmethod.InputMethodNavButtonFlags;
import com.android.internal.os.HandlerCaller;
import com.android.internal.os.SomeArgs;
import com.android.internal.view.IInlineSuggestionsRequestCallback;
import com.android.internal.view.IInputMethod;
import com.android.internal.view.InlineSuggestionsRequestInfo;
import java.io.FileDescriptor;

View File

@@ -39,7 +39,6 @@ import com.android.internal.inputmethod.IRemoteInputConnection;
import com.android.internal.inputmethod.IRemoteInputConnectionInvoker;
import com.android.internal.inputmethod.ImeTracing;
import com.android.internal.inputmethod.InputConnectionProtoDumper;
import com.android.internal.view.IInputMethod;
import java.lang.ref.WeakReference;
import java.util.concurrent.CompletableFuture;
@@ -90,7 +89,7 @@ final class RemoteInputConnection implements InputConnection {
* Signaled when the system decided to take away IME focus from the target app.
*
* <p>This is expected to be signaled immediately when the IME process receives
* {@link IInputMethod#unbindInput()}.</p>
* {@link com.android.internal.inputmethod.IInputMethod#unbindInput()}.</p>
*/
@NonNull
private final CancellationGroup mCancellationGroup;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.internal.view;
package com.android.internal.inputmethod;
import android.os.IBinder;
import android.os.ResultReceiver;
@@ -32,9 +32,7 @@ import com.android.internal.view.IInlineSuggestionsRequestCallback;
import com.android.internal.view.InlineSuggestionsRequestInfo;
/**
* Top-level interface to an input method component (implemented in a
* Service).
* {@hide}
* Top-level interface to an input method component (implemented in a Service).
*/
oneway interface IInputMethod {
void initializeInternal(IBinder token, IInputMethodPrivilegedOperations privOps,

View File

@@ -26,7 +26,6 @@ import android.view.inputmethod.SurroundingText;
import android.view.inputmethod.TextAttribute;
import com.android.internal.infra.AndroidFuture;
import com.android.internal.view.IInputMethod;
import java.util.concurrent.CompletableFuture;
@@ -48,7 +47,7 @@ public final class RemoteAccessibilityInputConnection {
* Signaled when the system decided to take away IME focus from the target app.
*
* <p>This is expected to be signaled immediately when the IME process receives
* {@link IInputMethod#unbindInput()}.</p>
* {@link com.android.internal.inputmethod.IInputMethod#unbindInput()}.</p>
*/
@NonNull
private final CancellationGroup mCancellationGroup;

View File

@@ -32,13 +32,13 @@ import android.view.inputmethod.InputBinding;
import android.view.inputmethod.InputMethodSubtype;
import android.window.ImeOnBackInvokedDispatcher;
import com.android.internal.inputmethod.IInputMethod;
import com.android.internal.inputmethod.IInputMethodPrivilegedOperations;
import com.android.internal.inputmethod.IInputMethodSession;
import com.android.internal.inputmethod.IInputMethodSessionCallback;
import com.android.internal.inputmethod.IRemoteInputConnection;
import com.android.internal.inputmethod.InputMethodNavButtonFlags;
import com.android.internal.view.IInlineSuggestionsRequestCallback;
import com.android.internal.view.IInputMethod;
import com.android.internal.view.InlineSuggestionsRequestInfo;
import java.util.List;

View File

@@ -45,9 +45,9 @@ import android.view.inputmethod.InputMethod;
import android.view.inputmethod.InputMethodInfo;
import com.android.internal.annotations.GuardedBy;
import com.android.internal.inputmethod.IInputMethod;
import com.android.internal.inputmethod.InputBindResult;
import com.android.internal.inputmethod.UnbindReason;
import com.android.internal.view.IInputMethod;
import com.android.server.EventLogTags;
import com.android.server.wm.WindowManagerInternal;

View File

@@ -4773,7 +4773,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
}
}
/** Called right after {@link com.android.internal.view.IInputMethod#showSoftInput}. */
/** Called right after {@link com.android.internal.inputmethod.IInputMethod#showSoftInput}. */
@GuardedBy("ImfLock.class")
private void onShowHideSoftInputRequested(boolean show, IBinder requestToken,
@SoftInputShowHideReason int reason) {