• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 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;
18 
19 import com.android.inputmethod.keyboard.Keyboard;
20 import com.android.inputmethod.latin.Dictionary.DataType;
21 
22 import android.content.Context;
23 import android.content.SharedPreferences;
24 
25 import java.util.List;
26 
27 public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChangeListener {
28 
29     public static boolean sDBG = false;
30     public static boolean sVISUALDEBUG = false;
31 
32     @Override
onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key)33     public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
34     }
35 
init(Context context, SharedPreferences prefs)36     public static void init(Context context, SharedPreferences prefs) {
37     }
38 
commit()39     public static void commit() {
40     }
41 
onDestroy()42     public static void onDestroy() {
43     }
44 
logOnManualSuggestion( String before, String after, int position, List<CharSequence> suggestions)45     public static void logOnManualSuggestion(
46             String before, String after, int position, List<CharSequence> suggestions) {
47    }
48 
logOnAutoCorrection(String before, String after, int separatorCode)49     public static void logOnAutoCorrection(String before, String after, int separatorCode) {
50     }
51 
logOnAutoCorrectionCancelled()52     public static void logOnAutoCorrectionCancelled() {
53     }
54 
logOnDelete()55     public static void logOnDelete() {
56     }
57 
logOnInputChar()58     public static void logOnInputChar() {
59     }
60 
logOnInputSeparator()61     public static void logOnInputSeparator() {
62     }
63 
logOnException(String metaData, Throwable e)64     public static void logOnException(String metaData, Throwable e) {
65     }
66 
logOnWarning(String warning)67     public static void logOnWarning(String warning) {
68     }
69 
onStartSuggestion(CharSequence previousWords)70     public static void onStartSuggestion(CharSequence previousWords) {
71     }
72 
onAddSuggestedWord(String word, int typeId, DataType dataType)73     public static void onAddSuggestedWord(String word, int typeId, DataType dataType) {
74     }
75 
onSetKeyboard(Keyboard kb)76     public static void onSetKeyboard(Keyboard kb) {
77     }
78 
onPrintAllUsabilityStudyLogs()79     public static void onPrintAllUsabilityStudyLogs() {
80     }
81 }
82