• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 package com.android.inputmethod.latin.utils;
18 
19 import android.view.inputmethod.InputMethodSubtype;
20 
21 import com.android.inputmethod.latin.DictionaryFacilitator;
22 import com.android.inputmethod.latin.RichInputMethodManager;
23 import com.android.inputmethod.latin.SuggestedWords;
24 import com.android.inputmethod.latin.settings.SettingsValues;
25 
26 import javax.annotation.Nullable;
27 
28 @SuppressWarnings("unused")
29 public final class StatsUtils {
30 
StatsUtils()31     private StatsUtils() {
32         // Intentional empty constructor.
33     }
34 
onCreate(final SettingsValues settingsValues, RichInputMethodManager richImm)35     public static void onCreate(final SettingsValues settingsValues,
36             RichInputMethodManager richImm) {
37     }
38 
onPickSuggestionManually(final SuggestedWords suggestedWords, final SuggestedWords.SuggestedWordInfo suggestionInfo, final DictionaryFacilitator dictionaryFacilitator)39     public static void onPickSuggestionManually(final SuggestedWords suggestedWords,
40             final SuggestedWords.SuggestedWordInfo suggestionInfo,
41             final DictionaryFacilitator dictionaryFacilitator) {
42     }
43 
onBackspaceWordDelete(int wordLength)44     public static void onBackspaceWordDelete(int wordLength) {
45     }
46 
onBackspacePressed(int lengthToDelete)47     public static void onBackspacePressed(int lengthToDelete) {
48     }
49 
onBackspaceSelectedText(int selectedTextLength)50     public static void onBackspaceSelectedText(int selectedTextLength) {
51     }
52 
onDeleteMultiCharInput(int multiCharLength)53     public static void onDeleteMultiCharInput(int multiCharLength) {
54     }
55 
onRevertAutoCorrect()56     public static void onRevertAutoCorrect() {
57     }
58 
onRevertDoubleSpacePeriod()59     public static void onRevertDoubleSpacePeriod() {
60     }
61 
onRevertSwapPunctuation()62     public static void onRevertSwapPunctuation() {
63     }
64 
onFinishInputView()65     public static void onFinishInputView() {
66     }
67 
onCreateInputView()68     public static void onCreateInputView() {
69     }
70 
onStartInputView(int inputType, int displayOrientation, boolean restarting)71     public static void onStartInputView(int inputType, int displayOrientation, boolean restarting) {
72     }
73 
onAutoCorrection(final String typedWord, final String autoCorrectionWord, final boolean isBatchInput, final DictionaryFacilitator dictionaryFacilitator, final String prevWordsContext)74     public static void onAutoCorrection(final String typedWord, final String autoCorrectionWord,
75             final boolean isBatchInput, final DictionaryFacilitator dictionaryFacilitator,
76             final String prevWordsContext) {
77     }
78 
onWordCommitUserTyped(final String commitWord, final boolean isBatchMode)79     public static void onWordCommitUserTyped(final String commitWord, final boolean isBatchMode) {
80     }
81 
onWordCommitAutoCorrect(final String commitWord, final boolean isBatchMode)82     public static void onWordCommitAutoCorrect(final String commitWord, final boolean isBatchMode) {
83     }
84 
onWordCommitSuggestionPickedManually( final String commitWord, final boolean isBatchMode)85     public static void onWordCommitSuggestionPickedManually(
86             final String commitWord, final boolean isBatchMode) {
87     }
88 
onDoubleSpacePeriod()89     public static void onDoubleSpacePeriod() {
90     }
91 
onLoadSettings(SettingsValues settingsValues)92     public static void onLoadSettings(SettingsValues settingsValues) {
93     }
94 
onInvalidWordIdentification(final String invalidWord)95     public static void onInvalidWordIdentification(final String invalidWord) {
96     }
97 
onSubtypeChanged(final InputMethodSubtype oldSubtype, final InputMethodSubtype newSubtype)98     public static void onSubtypeChanged(final InputMethodSubtype oldSubtype,
99             final InputMethodSubtype newSubtype) {
100     }
101 
onSettingsActivity(final String entryPoint)102     public static void onSettingsActivity(final String entryPoint) {
103     }
104 
onInputConnectionLaggy(final int operation, final long duration)105     public static void onInputConnectionLaggy(final int operation, final long duration) {
106     }
107 
onDecoderLaggy(final int operation, final long duration)108     public static void onDecoderLaggy(final int operation, final long duration) {
109     }
110 }
111