Loading java-overridable/src/com/android/inputmethod/latin/utils/StatsUtils.java +13 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,10 @@ import com.android.inputmethod.latin.settings.SettingsValues; public final class StatsUtils { private StatsUtils() { // Intentional empty constructor. } public static void onCreate(final SettingsValues settingsValues, RichInputMethodManager richImm) { } Loading Loading @@ -50,4 +54,13 @@ public final class StatsUtils { public static void onRevertSwapPunctuation() { } public static void onFinishInputView() { } public static void onCreateInputView() { } public static void onStartInputView(int inputType, int displayOrientation, boolean restarting) { } } java/src/com/android/inputmethod/latin/LatinIME.java +7 −0 Original line number Diff line number Diff line Loading @@ -740,6 +740,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public View onCreateInputView() { StatsUtils.onCreateInputView(); return mKeyboardSwitcher.onCreateInputView(mIsHardwareAcceleratedDrawingEnabled); } Loading Loading @@ -772,6 +773,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onFinishInputView(final boolean finishingInput) { StatsUtils.onFinishInputView(); mHandler.onFinishInputView(finishingInput); } Loading Loading @@ -849,6 +851,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final boolean inputTypeChanged = !currentSettingsValues.isSameInputType(editorInfo); final boolean isDifferentTextField = !restarting || inputTypeChanged; StatsUtils.onStartInputView(editorInfo.inputType, Settings.getInstance().getCurrent().mDisplayOrientation, !isDifferentTextField); if (isDifferentTextField) { mSubtypeSwitcher.updateParametersOnStartInputView(); } Loading Loading
java-overridable/src/com/android/inputmethod/latin/utils/StatsUtils.java +13 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,10 @@ import com.android.inputmethod.latin.settings.SettingsValues; public final class StatsUtils { private StatsUtils() { // Intentional empty constructor. } public static void onCreate(final SettingsValues settingsValues, RichInputMethodManager richImm) { } Loading Loading @@ -50,4 +54,13 @@ public final class StatsUtils { public static void onRevertSwapPunctuation() { } public static void onFinishInputView() { } public static void onCreateInputView() { } public static void onStartInputView(int inputType, int displayOrientation, boolean restarting) { } }
java/src/com/android/inputmethod/latin/LatinIME.java +7 −0 Original line number Diff line number Diff line Loading @@ -740,6 +740,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public View onCreateInputView() { StatsUtils.onCreateInputView(); return mKeyboardSwitcher.onCreateInputView(mIsHardwareAcceleratedDrawingEnabled); } Loading Loading @@ -772,6 +773,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onFinishInputView(final boolean finishingInput) { StatsUtils.onFinishInputView(); mHandler.onFinishInputView(finishingInput); } Loading Loading @@ -849,6 +851,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final boolean inputTypeChanged = !currentSettingsValues.isSameInputType(editorInfo); final boolean isDifferentTextField = !restarting || inputTypeChanged; StatsUtils.onStartInputView(editorInfo.inputType, Settings.getInstance().getCurrent().mDisplayOrientation, !isDifferentTextField); if (isDifferentTextField) { mSubtypeSwitcher.updateParametersOnStartInputView(); } Loading