OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:logUnits
(Results
1 - 2
of
2
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
MainLogBuffer.java
31
* MainLogBuffer is a FixedLogBuffer that tracks the state of
LogUnits
to make privacy guarantees.
37
* This class maintains a list of
LogUnits
, each corresponding to a word. As the user completes
118
private boolean isSafeNGram(final ArrayList<LogUnit>
logUnits
, final int minNGramSize) {
127
final int length =
logUnits
.size();
129
final LogUnit logUnit =
logUnits
.get(i);
153
final int length =
logUnits
.size();
154
for (final LogUnit logUnit :
logUnits
) {
182
final LinkedList<LogUnit>
logUnits
= getLogUnits();
183
while (!
logUnits
.isEmpty()) {
200
// TODO: Refactor this method to require fewer passes through the
LogUnits
. Should reall
[
all
...]
FixedLogBuffer.java
23
* A buffer that holds a fixed number of
LogUnits
.
25
*
LogUnits
are added in and shifted out in temporal order. Only a subset of the
LogUnits
are
26
* actual words; the other
LogUnits
do not count toward the word limit. Once the buffer reaches
27
* capacity, adding another LogUnit that is a word evicts the oldest
LogUnits
out one at a time to
40
* Create a new LogBuffer that can hold a fixed number of
LogUnits
that are words (and
41
* unlimited number of non-word
LogUnits
), and that outputs its result to a researchLog.
67
// Give subclass a chance to handle the buffer full condition by shifting out
logUnits
.
93
* Removes all
LogUnits
from the buffer without calling onShiftOut().
103
* shift out
LogUnits
to bring it back down to the maximum
[
all
...]
Completed in 1369 milliseconds