Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
99bd42b2
Commit
99bd42b2
authored
12 years ago
by
Kurt Partridge
Browse files
Options
Downloads
Patches
Plain Diff
[Rlog24z] Initialize statistics variables
Change-Id: I73a6009294a4f559a93b6ea9ceb4ea2683d97486
parent
9e12ba6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/research/ResearchLogger.java
+2
-2
2 additions, 2 deletions
.../src/com/android/inputmethod/research/ResearchLogger.java
java/src/com/android/inputmethod/research/Statistics.java
+9
-5
9 additions, 5 deletions
java/src/com/android/inputmethod/research/Statistics.java
with
11 additions
and
7 deletions
java/src/com/android/inputmethod/research/ResearchLogger.java
+
2
−
2
View file @
99bd42b2
...
...
@@ -1451,8 +1451,8 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
statistics
.
mDuringRepeatedDeleteKeysCounter
.
getAverageTime
(),
statistics
.
mAfterDeleteKeyCounter
.
getAverageTime
(),
statistics
.
mDictionaryWordCount
,
statistics
.
mSplitWordsCount
,
statistics
.
mGestureInputCount
,
statistics
.
mGestureCharsCount
,
statistics
.
mGesture
s
InputCount
,
statistics
.
mGesture
s
CharsCount
,
statistics
.
mGesturesDeletedCount
);
}
}
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/research/Statistics.java
+
9
−
5
View file @
99bd42b2
...
...
@@ -42,11 +42,11 @@ public class Statistics {
// Number of words split and spaces automatically entered.
int
mSplitWordsCount
;
// Number of gestures that were input.
int
mGestureInputCount
;
int
mGesture
s
InputCount
;
// Number of gestures that were deleted.
int
mGesturesDeletedCount
;
// Total number of characters in words entered by gesture.
int
mGestureCharsCount
;
int
mGesture
s
CharsCount
;
// Whether the text field was empty upon editing
boolean
mIsEmptyUponStarting
;
boolean
mIsEmptinessStateKnown
;
...
...
@@ -107,13 +107,17 @@ public class Statistics {
mSpaceCount
=
0
;
mDeleteKeyCount
=
0
;
mWordCount
=
0
;
mDictionaryWordCount
=
0
;
mSplitWordsCount
=
0
;
mGesturesInputCount
=
0
;
mGesturesDeletedCount
=
0
;
mIsEmptyUponStarting
=
true
;
mIsEmptinessStateKnown
=
false
;
mKeyCounter
.
reset
();
mBeforeDeleteKeyCounter
.
reset
();
mDuringRepeatedDeleteKeysCounter
.
reset
();
mAfterDeleteKeyCounter
.
reset
();
mGestureCharsCount
=
0
;
mGesture
s
CharsCount
=
0
;
mGesturesDeletedCount
=
0
;
mLastTapTime
=
0
;
...
...
@@ -168,8 +172,8 @@ public class Statistics {
}
public
void
recordGestureInput
(
final
int
numCharsEntered
)
{
mGestureInputCount
++;
mGestureCharsCount
+=
numCharsEntered
;
mGesture
s
InputCount
++;
mGesture
s
CharsCount
+=
numCharsEntered
;
}
public
void
setIsEmptyUponStarting
(
final
boolean
isEmpty
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment