Loading java/src/com/android/inputmethod/research/LogUnit.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -151,10 +151,10 @@ import java.util.List; continue; continue; } } // Only retrieve the jsonWriter if we need to. If we don't get this far, then // 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 // researchLog.getInitializedJsonWriterLocked() will not ever be called, and the // will not have been opened for writing. // file will not have been opened for writing. if (jsonWriter == null) { if (jsonWriter == null) { jsonWriter = researchLog.getValidJsonWriterLocked(); jsonWriter = researchLog.getInitializedJsonWriterLocked(); outputLogUnitStart(jsonWriter, canIncludePrivateData); outputLogUnitStart(jsonWriter, canIncludePrivateData); } } logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i)); logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i)); Loading java/src/com/android/inputmethod/research/ResearchLog.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -206,7 +206,7 @@ public class ResearchLog { * Return a JsonWriter for this ResearchLog. It is initialized the first time this method is * Return a JsonWriter for this ResearchLog. It is initialized the first time this method is * called. The cached value is returned in future calls. * called. The cached value is returned in future calls. */ */ public JsonWriter getValidJsonWriterLocked() { public JsonWriter getInitializedJsonWriterLocked() { try { try { if (mJsonWriter == NULL_JSON_WRITER && mFile != null) { if (mJsonWriter == NULL_JSON_WRITER && mFile != null) { final FileOutputStream fos = final FileOutputStream fos = Loading Loading
java/src/com/android/inputmethod/research/LogUnit.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -151,10 +151,10 @@ import java.util.List; continue; continue; } } // Only retrieve the jsonWriter if we need to. If we don't get this far, then // 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 // researchLog.getInitializedJsonWriterLocked() will not ever be called, and the // will not have been opened for writing. // file will not have been opened for writing. if (jsonWriter == null) { if (jsonWriter == null) { jsonWriter = researchLog.getValidJsonWriterLocked(); jsonWriter = researchLog.getInitializedJsonWriterLocked(); outputLogUnitStart(jsonWriter, canIncludePrivateData); outputLogUnitStart(jsonWriter, canIncludePrivateData); } } logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i)); logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i)); Loading
java/src/com/android/inputmethod/research/ResearchLog.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -206,7 +206,7 @@ public class ResearchLog { * Return a JsonWriter for this ResearchLog. It is initialized the first time this method is * Return a JsonWriter for this ResearchLog. It is initialized the first time this method is * called. The cached value is returned in future calls. * called. The cached value is returned in future calls. */ */ public JsonWriter getValidJsonWriterLocked() { public JsonWriter getInitializedJsonWriterLocked() { try { try { if (mJsonWriter == NULL_JSON_WRITER && mFile != null) { if (mJsonWriter == NULL_JSON_WRITER && mFile != null) { final FileOutputStream fos = final FileOutputStream fos = Loading