am 07296cf7: Merge "Use WordComposer.addKeyInfo for testing"

* commit '07296cf7fffad7282aee24d9313636cf64ffb178':
  Use WordComposer.addKeyInfo for testing
main
Tadashi G. Takaoka 2013-02-21 14:15:32 -08:00 committed by Android Git Automerger
commit 0e713e96b0
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
package com.android.inputmethod.latin; package com.android.inputmethod.latin;
import com.android.inputmethod.annotations.UsedForTesting;
import com.android.inputmethod.keyboard.Key; import com.android.inputmethod.keyboard.Key;
import com.android.inputmethod.keyboard.Keyboard; import com.android.inputmethod.keyboard.Keyboard;
@ -177,7 +178,8 @@ public final class WordComposer {
/** /**
* Internal method to retrieve reasonable proximity info for a character. * Internal method to retrieve reasonable proximity info for a character.
*/ */
private void addKeyInfo(final int codePoint, final Keyboard keyboard) { @UsedForTesting
public void addKeyInfo(final int codePoint, final Keyboard keyboard) {
final int x, y; final int x, y;
final Key key; final Key key;
if (keyboard != null && (key = keyboard.getKey(codePoint)) != null) { if (keyboard != null && (key = keyboard.getKey(codePoint)) != null) {