aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/FeedbackLog.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-05-20 11:15:02 -0700
committerKurt Partridge <kep@google.com>2013-05-21 14:09:04 -0700
commit74a6196c6b7332164a438fa5aabce24b37ffca0e (patch)
tree3b7ca1687ac9f30e9f42a652423d5aa80af23bea /java/src/com/android/inputmethod/research/FeedbackLog.java
parenteb724ddbe92ba4c090fafad42ca65af4fd8d5143 (diff)
downloadlatinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.tar.gz
latinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.tar.xz
latinime-74a6196c6b7332164a438fa5aabce24b37ffca0e.zip
Modify isAllowedToLog
Currently isAllowedToLog only checks the state of the ResearchLogger, and does not consider which log the data is going to. This causes problems with the logs for Feedback. The Feedback log should inhibit normal logging procedures, but the system needs to be able to write specific data directly to it. This change renames to isAllowedToLogTo and adds the destination ResearchLog as a parameter. A FeedbackLog is also added as a new class so it can be distinguished from other ResearchLogs. Change-Id: I5a1eea05bb040c26bf816b89179f44b3024fa2ad
Diffstat (limited to 'java/src/com/android/inputmethod/research/FeedbackLog.java')
-rw-r--r--java/src/com/android/inputmethod/research/FeedbackLog.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/FeedbackLog.java b/java/src/com/android/inputmethod/research/FeedbackLog.java
new file mode 100644
index 000000000..5af194c32
--- /dev/null
+++ b/java/src/com/android/inputmethod/research/FeedbackLog.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2013 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.research;
+
+import android.content.Context;
+
+import java.io.File;
+
+public class FeedbackLog extends ResearchLog {
+ public FeedbackLog(final File outputFile, final Context context) {
+ super(outputFile, context);
+ }
+
+ @Override
+ public boolean isFeedbackLog() {
+ return true;
+ }
+}