aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-02-21 15:57:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-02-21 15:57:34 +0000
commitc8a1ec6e4128240a8f666120dbc3fb066a717f00 (patch)
tree950e7d01b63bd9f8252a721a7bcc4bcf7a7e2f81 /java/src
parent4e5a4ddbd06c3e98e931a789c13a9920fb3b4e16 (diff)
parentb6d05aeb7c9d8c1627cd24b1e56bd70c9f50d396 (diff)
downloadlatinime-c8a1ec6e4128240a8f666120dbc3fb066a717f00.tar.gz
latinime-c8a1ec6e4128240a8f666120dbc3fb066a717f00.tar.xz
latinime-c8a1ec6e4128240a8f666120dbc3fb066a717f00.zip
Merge "[TestPrep2] Rename a method"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/research/LogUnit.java6
-rw-r--r--java/src/com/android/inputmethod/research/ResearchLog.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/research/LogUnit.java b/java/src/com/android/inputmethod/research/LogUnit.java
index 1a9a720f3..e91976a03 100644
--- a/java/src/com/android/inputmethod/research/LogUnit.java
+++ b/java/src/com/android/inputmethod/research/LogUnit.java
@@ -151,10 +151,10 @@ import java.util.List;
continue;
}
// Only retrieve the jsonWriter if we need to. If we don't get this far, then
- // researchLog.getValidJsonWriterLocked() will not ever be called, and the file
- // will not have been opened for writing.
+ // researchLog.getInitializedJsonWriterLocked() will not ever be called, and the
+ // file will not have been opened for writing.
if (jsonWriter == null) {
- jsonWriter = researchLog.getValidJsonWriterLocked();
+ jsonWriter = researchLog.getInitializedJsonWriterLocked();
outputLogUnitStart(jsonWriter, canIncludePrivateData);
}
logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i));
diff --git a/java/src/com/android/inputmethod/research/ResearchLog.java b/java/src/com/android/inputmethod/research/ResearchLog.java
index 5114977d8..4dff17530 100644
--- a/java/src/com/android/inputmethod/research/ResearchLog.java
+++ b/java/src/com/android/inputmethod/research/ResearchLog.java
@@ -206,7 +206,7 @@ public class ResearchLog {
* Return a JsonWriter for this ResearchLog. It is initialized the first time this method is
* called. The cached value is returned in future calls.
*/
- public JsonWriter getValidJsonWriterLocked() {
+ public JsonWriter getInitializedJsonWriterLocked() {
try {
if (mJsonWriter == NULL_JSON_WRITER && mFile != null) {
final FileOutputStream fos =