2010-08-20 05:35:02 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package com.android.inputmethod.latin;
|
|
|
|
|
|
|
|
import android.content.SharedPreferences;
|
2011-12-14 05:53:28 +00:00
|
|
|
import android.view.inputmethod.EditorInfo;
|
|
|
|
|
|
|
|
import com.android.inputmethod.keyboard.Keyboard;
|
2010-11-29 08:57:48 +00:00
|
|
|
|
2012-09-27 09:16:16 +00:00
|
|
|
public final class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChangeListener {
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2010-11-16 06:52:34 +00:00
|
|
|
public static boolean sDBG = false;
|
2011-06-28 10:13:52 +00:00
|
|
|
public static boolean sVISUALDEBUG = false;
|
2011-12-15 14:26:18 +00:00
|
|
|
public static boolean sUsabilityStudy = false;
|
2010-11-16 06:52:34 +00:00
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
@Override
|
2010-08-20 05:35:02 +00:00
|
|
|
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
|
|
|
|
}
|
|
|
|
|
2013-01-07 09:40:59 +00:00
|
|
|
public static void init(LatinIME context) {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void commit() {
|
|
|
|
}
|
|
|
|
|
2013-02-28 19:18:42 +00:00
|
|
|
public static boolean getUsabilityStudyMode(final SharedPreferences prefs) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
public static void onDestroy() {
|
|
|
|
}
|
|
|
|
|
2010-09-28 02:27:44 +00:00
|
|
|
public static void logOnManualSuggestion(
|
2012-03-05 07:56:58 +00:00
|
|
|
String before, String after, int position, SuggestedWords suggestedWords) {
|
2011-12-14 05:53:28 +00:00
|
|
|
}
|
2010-08-20 05:35:02 +00:00
|
|
|
|
2012-09-18 03:06:07 +00:00
|
|
|
public static void logOnAutoCorrectionForTyping(
|
|
|
|
String before, String after, int separatorCode) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logOnAutoCorrectionForGeometric(String before, String after,
|
2012-09-19 07:18:24 +00:00
|
|
|
int separatorCode, InputPointers inputPointers) {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2011-04-06 02:14:20 +00:00
|
|
|
public static void logOnAutoCorrectionCancelled() {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2012-03-20 14:29:34 +00:00
|
|
|
public static void logOnDelete(int x, int y) {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2010-09-24 06:46:06 +00:00
|
|
|
public static void logOnInputChar() {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2011-04-06 02:14:20 +00:00
|
|
|
public static void logOnInputSeparator() {
|
|
|
|
}
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
public static void logOnException(String metaData, Throwable e) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logOnWarning(String warning) {
|
|
|
|
}
|
|
|
|
|
2011-12-14 05:53:28 +00:00
|
|
|
public static void onStartInputView(EditorInfo editorInfo) {
|
|
|
|
}
|
|
|
|
|
2010-08-20 05:35:02 +00:00
|
|
|
public static void onStartSuggestion(CharSequence previousWords) {
|
|
|
|
}
|
|
|
|
|
2012-06-27 07:10:00 +00:00
|
|
|
public static void onAddSuggestedWord(String word, String sourceDictionaryId) {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2010-12-02 09:46:21 +00:00
|
|
|
public static void onSetKeyboard(Keyboard kb) {
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|
|
|
|
|
2010-12-28 10:49:43 +00:00
|
|
|
public static void onPrintAllUsabilityStudyLogs() {
|
2010-11-16 06:52:34 +00:00
|
|
|
}
|
2010-08-20 05:35:02 +00:00
|
|
|
}
|