OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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
118
private boolean isSafeNGram(final ArrayList<
LogUnit
> logUnits, final int minNGramSize) {
129
final
LogUnit
logUnit
= logUnits.get(i);
130
numWordsInLogUnitList +=
logUnit
.getNumWords();
154
for (final
LogUnit
logUnit
: logUnits) {
155
if (!
logUnit
.hasOneOrMoreWords()) {
157
if (
logUnit
.mayContainDigit()) {
161
numWordsInLogUnitList +=
logUnit
.getNumWords()
[
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
136
// FEEDBACK_WORD_BUFFER_SIZE should add 1 because it must also hold the feedback
LogUnit
itself.
189
/* package for test */
LogUnit
mCurrentLogUnit = new
LogUnit
();
194
// gesture, and when committing the earlier word, split the
LogUnit
.
249
protected void publish(final ArrayList<
LogUnit
> logUnits,
252
for (final
LogUnit
logUnit
: logUnits) {
254
final String wordsString =
logUnit
.getWordsAsString();
256
+ "', hc: " +
logUnit
.containsCorrection()
259
for (final String word :
logUnit
.getWordsAsStringArray())
[
all
...]
ResearchLog.java
227
* Queues up {@code
logUnit
} to be published in the background.
229
* @param
logUnit
the {@link
LogUnit
} to be published
230
* @param canIncludePrivateData whether private data in the
LogUnit
should be included
232
public synchronized void publish(final
LogUnit
logUnit
, final boolean canIncludePrivateData) {
237
logUnit
.publishTo(ResearchLog.this, canIncludePrivateData);
Completed in 455 milliseconds