• 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 android.content.SharedPreferences;
20 import android.view.inputmethod.EditorInfo;
21 
22 import com.android.inputmethod.keyboard.Keyboard;
23 
24 public final class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChangeListener {
25 
26     public static boolean sDBG = false;
27     public static boolean sVISUALDEBUG = false;
28     public static boolean sUsabilityStudy = false;
29 
30     @Override
onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key)31     public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
32     }
33 
init(LatinIME context)34     public static void init(LatinIME context) {
35     }
36 
commit()37     public static void commit() {
38     }
39 
getUsabilityStudyMode(final SharedPreferences prefs)40     public static boolean getUsabilityStudyMode(final SharedPreferences prefs) {
41         return false;
42     }
43 
onDestroy()44     public static void onDestroy() {
45     }
46 
logOnManualSuggestion( String before, String after, int position, SuggestedWords suggestedWords)47     public static void logOnManualSuggestion(
48             String before, String after, int position, SuggestedWords suggestedWords) {
49     }
50 
logOnAutoCorrectionForTyping( String before, String after, int separatorCode)51     public static void logOnAutoCorrectionForTyping(
52             String before, String after, int separatorCode) {
53     }
54 
logOnAutoCorrectionForGeometric(String before, String after, int separatorCode, InputPointers inputPointers)55     public static void logOnAutoCorrectionForGeometric(String before, String after,
56             int separatorCode, InputPointers inputPointers) {
57     }
58 
logOnAutoCorrectionCancelled()59     public static void logOnAutoCorrectionCancelled() {
60     }
61 
logOnDelete(int x, int y)62     public static void logOnDelete(int x, int y) {
63     }
64 
logOnInputChar()65     public static void logOnInputChar() {
66     }
67 
logOnInputSeparator()68     public static void logOnInputSeparator() {
69     }
70 
logOnException(String metaData, Throwable e)71     public static void logOnException(String metaData, Throwable e) {
72     }
73 
logOnWarning(String warning)74     public static void logOnWarning(String warning) {
75     }
76 
onStartInputView(EditorInfo editorInfo)77     public static void onStartInputView(EditorInfo editorInfo) {
78     }
79 
onStartSuggestion(CharSequence previousWords)80     public static void onStartSuggestion(CharSequence previousWords) {
81     }
82 
onAddSuggestedWord(String word, String sourceDictionaryId)83     public static void onAddSuggestedWord(String word, String sourceDictionaryId) {
84     }
85 
onSetKeyboard(Keyboard kb)86     public static void onSetKeyboard(Keyboard kb) {
87     }
88 
onPrintAllUsabilityStudyLogs()89     public static void onPrintAllUsabilityStudyLogs() {
90     }
91 }
92