HomeSort by relevance Sort by last modified time
    Searched refs:logUnit (Results 1 - 6 of 6) sorted by null

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
FixedLogBuffer.java 27 * capacity, adding another LogUnit that is a word evicts the oldest LogUnits out one at a time to
55 * Adds a new LogUnit to the front of the LIFO queue, evicting existing LogUnit's
59 public void shiftIn(final LogUnit newLogUnit) {
61 // This LogUnit doesn't contain any word, so it doesn't count toward the word-limit.
80 public LogUnit unshiftIn() {
81 final LogUnit logUnit = super.unshiftIn();
82 if (logUnit != null && logUnit.hasOneOrMoreWords())
    [all...]
MainLogBuffer.java 40 * the LogUnit, and it is pushed back in here when the user is done. Because words may be pulled
120 * @param logUnits a LogUnit list to check for publishability
129 private int getPublishabilityResultCode(final ArrayList<LogUnit> logUnits,
141 final LogUnit logUnit = logUnits.get(i);
142 numWordsInLogUnitList += logUnit.getNumWords();
170 for (final LogUnit logUnit : logUnits) {
171 if (!logUnit.hasOneOrMoreWords()) {
173 if (logUnit.mayContainDigit())
    [all...]
LogBuffer.java 31 private final LinkedList<LogUnit> mLogUnits;
34 mLogUnits = new LinkedList<LogUnit>();
37 protected LinkedList<LogUnit> getLogUnits() {
45 public void shiftIn(final LogUnit logUnit) {
46 mLogUnits.add(logUnit);
49 public LogUnit unshiftIn() {
56 public LogUnit peekLastLogUnit() {
67 public LogUnit shiftOut() {
LogUnit.java 37 * A LogUnit is collection of LogStatements, each of which is generated by at a particular point
39 * here.) A single LogUnit's statements can correspond to all the calls made while in the same
44 * published to a ResearchLog if the ResearchLogger determines that publishing the entire LogUnit
46 * been published recently, or whether the LogUnit contains numbers, etc.
48 public class LogUnit {
49 private static final String TAG = LogUnit.class.getSimpleName();
61 // Words that this LogUnit generates. Should be null if the data in the LogUnit does not
78 // The LogUnit was corrected manually by the user in an unspecified way.
80 // The LogUnit was corrected manually by the user to a word not in the list of suggestions o
    [all...]
ResearchLogger.java 132 // FEEDBACK_WORD_BUFFER_SIZE should add 1 because it must also hold the feedback LogUnit itself.
188 /* package for test */ LogUnit mCurrentLogUnit = new LogUnit();
193 // gesture, and when committing the earlier word, split the LogUnit.
202 // Stores a temporary LogUnit while generating a phantom space. Needed because phantom spaces
205 private LogUnit mPhantomSpaceLogUnit = null;
254 protected void publish(final ArrayList<LogUnit> logUnits,
257 for (final LogUnit logUnit : logUnits) {
259 final String wordsString = logUnit.getWordsAsString()
    [all...]
ResearchLog.java 237 * Queues up {@code logUnit} to be published in the background.
239 * @param logUnit the {@link LogUnit} to be published
240 * @param canIncludePrivateData whether private data in the LogUnit should be included
242 public synchronized void publish(final LogUnit logUnit, final boolean canIncludePrivateData) {
247 logUnit.publishTo(ResearchLog.this, canIncludePrivateData);

Completed in 809 milliseconds