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

Commit 19f60889 authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Move TIME_TO_RECONNECT to binding controller

Bug: 205676419
Test: make
Change-Id: Iea54b699c15970c0ff0f1b61b1cc8079c60b0c1f
parent d6d155f1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -58,6 +58,9 @@ final class InputMethodBindingController {
    static final boolean DEBUG = false;
    private static final String TAG = InputMethodBindingController.class.getSimpleName();

    /** Time in milliseconds that the IME service has to bind before it is reconnected. */
    static final long TIME_TO_RECONNECT = 3 * 1000;

    @NonNull private final InputMethodManagerService mService;
    @NonNull private final Context mContext;
    @NonNull private final ArrayMap<String, InputMethodInfo> mMethodMap;
+2 −2
Original line number Diff line number Diff line
@@ -49,6 +49,8 @@ import static android.view.Display.INVALID_DISPLAY;
import static android.view.WindowManager.DISPLAY_IME_POLICY_HIDE;
import static android.view.WindowManager.DISPLAY_IME_POLICY_LOCAL;

import static com.android.server.inputmethod.InputMethodBindingController.TIME_TO_RECONNECT;

import static java.lang.annotation.RetentionPolicy.SOURCE;

import android.Manifest;
@@ -250,8 +252,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub

    static final int MSG_NOTIFY_IME_UID_TO_AUDIO_SERVICE = 7000;

    static final long TIME_TO_RECONNECT = 3 * 1000;

    static final int SECURE_SUGGESTION_SPANS_MAX_SIZE = 20;

    private static final int NOT_A_SUBTYPE_ID = InputMethodUtils.NOT_A_SUBTYPE_ID;