StatsUtils.java revision 73aaf6833780c1915dd4ab7d3f0f55e3af130f99
1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.inputmethod.latin.utils;
18
19import android.view.inputmethod.InputMethodSubtype;
20
21import com.android.inputmethod.latin.DictionaryFacilitator;
22import com.android.inputmethod.latin.RichInputMethodManager;
23import com.android.inputmethod.latin.SuggestedWords;
24import com.android.inputmethod.latin.settings.SettingsValues;
25
26import javax.annotation.Nullable;
27
28@SuppressWarnings("unused")
29public final class StatsUtils {
30
31    private StatsUtils() {
32        // Intentional empty constructor.
33    }
34
35    public static void onCreate(final SettingsValues settingsValues,
36            RichInputMethodManager richImm) {
37    }
38
39    public static void onPickSuggestionManually(final SuggestedWords suggestedWords,
40            final SuggestedWords.SuggestedWordInfo suggestionInfo,
41            final DictionaryFacilitator dictionaryFacilitator) {
42    }
43
44    public static void onBackspaceWordDelete(int wordLength) {
45    }
46
47    public static void onBackspacePressed(int lengthToDelete) {
48    }
49
50    public static void onBackspaceSelectedText(int selectedTextLength) {
51    }
52
53    public static void onDeleteMultiCharInput(int multiCharLength) {
54    }
55
56    public static void onRevertAutoCorrect() {
57    }
58
59    public static void onRevertDoubleSpacePeriod() {
60    }
61
62    public static void onRevertSwapPunctuation() {
63    }
64
65    public static void onFinishInputView() {
66    }
67
68    public static void onCreateInputView() {
69    }
70
71    public static void onStartInputView(int inputType, int displayOrientation, boolean restarting) {
72    }
73
74    public static void onAutoCorrection(final String typedWord, final String autoCorrectionWord,
75            final boolean isBatchInput, final DictionaryFacilitator dictionaryFacilitator,
76            final String prevWordsContext) {
77    }
78
79    public static void onWordCommitUserTyped(final String commitWord, final boolean isBatchMode) {
80    }
81
82    public static void onWordCommitAutoCorrect(final String commitWord, final boolean isBatchMode) {
83    }
84
85    public static void onWordCommitSuggestionPickedManually(
86            final String commitWord, final boolean isBatchMode) {
87    }
88
89    public static void onDoubleSpacePeriod() {
90    }
91
92    public static void onLoadSettings(SettingsValues settingsValues) {
93    }
94
95    public static void onInvalidWordIdentification(final String invalidWord) {
96    }
97
98    public static void onSubtypeChanged(final InputMethodSubtype oldSubtype,
99            final InputMethodSubtype newSubtype) {
100    }
101
102    public static void onSettingsActivity(final String entryPoint) {
103    }
104
105    public static void onInputConnectionLaggy(final int operation, final long duration) {
106    }
107}
108