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
2fcb7c5d
Commit
2fcb7c5d
authored
10 years ago
by
Dan Zivkovic
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Log from LatinIME."
parents
e3ac02e7
edaa83bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/LatinIME.java
+4
-6
4 additions, 6 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
4 additions
and
6 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
4
−
6
View file @
2fcb7c5d
...
@@ -110,7 +110,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -110,7 +110,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
ImportantNoticeDialog
.
ImportantNoticeDialogListener
{
ImportantNoticeDialog
.
ImportantNoticeDialogListener
{
static
final
String
TAG
=
LatinIME
.
class
.
getSimpleName
();
static
final
String
TAG
=
LatinIME
.
class
.
getSimpleName
();
private
static
final
boolean
TRACE
=
false
;
private
static
final
boolean
TRACE
=
false
;
private
static
boolean
DEBUG
=
false
;
private
static
final
int
EXTENDED_TOUCHABLE_REGION_HEIGHT
=
100
;
private
static
final
int
EXTENDED_TOUCHABLE_REGION_HEIGHT
=
100
;
private
static
final
int
PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT
=
2
;
private
static
final
int
PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT
=
2
;
...
@@ -557,7 +556,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -557,7 +556,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
super
.
onCreate
();
super
.
onCreate
();
mHandler
.
onCreate
();
mHandler
.
onCreate
();
DEBUG
=
DebugFlags
.
DEBUG_ENABLED
;
// TODO: Resolve mutual dependencies of {@link #loadSettings()} and
// TODO: Resolve mutual dependencies of {@link #loadSettings()} and
// {@link #resetDictionaryFacilitatorIfNecessary()}.
// {@link #resetDictionaryFacilitatorIfNecessary()}.
...
@@ -823,7 +821,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -823,7 +821,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
}
return
;
return
;
}
}
if
(
D
EBUG
)
{
if
(
D
ebugFlags
.
DEBUG_ENABLED
)
{
Log
.
d
(
TAG
,
"onStartInputView: editorInfo:"
Log
.
d
(
TAG
,
"onStartInputView: editorInfo:"
+
String
.
format
(
"inputType=0x%08x imeOptions=0x%08x"
,
+
String
.
format
(
"inputType=0x%08x imeOptions=0x%08x"
,
editorInfo
.
inputType
,
editorInfo
.
imeOptions
));
editorInfo
.
inputType
,
editorInfo
.
imeOptions
));
...
@@ -1011,7 +1009,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1011,7 +1009,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final
int
composingSpanStart
,
final
int
composingSpanEnd
)
{
final
int
composingSpanStart
,
final
int
composingSpanEnd
)
{
super
.
onUpdateSelection
(
oldSelStart
,
oldSelEnd
,
newSelStart
,
newSelEnd
,
super
.
onUpdateSelection
(
oldSelStart
,
oldSelEnd
,
newSelStart
,
newSelEnd
,
composingSpanStart
,
composingSpanEnd
);
composingSpanStart
,
composingSpanEnd
);
if
(
D
EBUG
)
{
if
(
D
ebugFlags
.
DEBUG_ENABLED
)
{
Log
.
i
(
TAG
,
"onUpdateSelection: oss="
+
oldSelStart
+
", ose="
+
oldSelEnd
Log
.
i
(
TAG
,
"onUpdateSelection: oss="
+
oldSelStart
+
", ose="
+
oldSelEnd
+
", nss="
+
newSelStart
+
", nse="
+
newSelEnd
+
", nss="
+
newSelStart
+
", nse="
+
newSelEnd
+
", cs="
+
composingSpanStart
+
", ce="
+
composingSpanEnd
);
+
", cs="
+
composingSpanStart
+
", ce="
+
composingSpanEnd
);
...
@@ -1079,7 +1077,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1079,7 +1077,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override
@Override
public
void
onDisplayCompletions
(
final
CompletionInfo
[]
applicationSpecifiedCompletions
)
{
public
void
onDisplayCompletions
(
final
CompletionInfo
[]
applicationSpecifiedCompletions
)
{
if
(
D
EBUG
)
{
if
(
D
ebugFlags
.
DEBUG_ENABLED
)
{
Log
.
i
(
TAG
,
"Received completions:"
);
Log
.
i
(
TAG
,
"Received completions:"
);
if
(
applicationSpecifiedCompletions
!=
null
)
{
if
(
applicationSpecifiedCompletions
!=
null
)
{
for
(
int
i
=
0
;
i
<
applicationSpecifiedCompletions
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
applicationSpecifiedCompletions
.
length
;
i
++)
{
...
@@ -1780,7 +1778,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1780,7 +1778,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@UsedForTesting
@UsedForTesting
/* package for test */
SuggestedWords
getSuggestedWordsForTest
()
{
/* package for test */
SuggestedWords
getSuggestedWordsForTest
()
{
// You may not use this method for anything else than debug
// You may not use this method for anything else than debug
return
D
EBUG
?
mInputLogic
.
mSuggestedWords
:
null
;
return
D
ebugFlags
.
DEBUG_ENABLED
?
mInputLogic
.
mSuggestedWords
:
null
;
}
}
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
...
...
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