From cc7ce4ea9bca443bf3a1efa597a9a268b31420ff Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 14 Mar 2014 19:41:14 +0900 Subject: [PATCH] Cleanup qwerty expected layout definition a bit Bug: 13017434 Change-Id: I21152679986924fa56966f5476c6e797d92da57c --- .../inputmethod/keyboard/layout/Qwerty.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/src/com/android/inputmethod/keyboard/layout/Qwerty.java b/tests/src/com/android/inputmethod/keyboard/layout/Qwerty.java index 4070837c9..a0da7e37d 100644 --- a/tests/src/com/android/inputmethod/keyboard/layout/Qwerty.java +++ b/tests/src/com/android/inputmethod/keyboard/layout/Qwerty.java @@ -36,17 +36,17 @@ public final class Qwerty extends LayoutBase { ExpectedKey[][] getCommonAlphabetLayout(final boolean isPhone) { return ALPHABET_COMMON; } private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder() - .setLabelsOfRow(1, "q", "w", "e", "r", "t", "y", "u", "i", "o", "p") - .setMoreKeysOf("q", "1") - .setMoreKeysOf("w", "2") - .setMoreKeysOf("e", "3") - .setMoreKeysOf("r", "4") - .setMoreKeysOf("t", "5") - .setMoreKeysOf("y", "6") - .setMoreKeysOf("u", "7") - .setMoreKeysOf("i", "8") - .setMoreKeysOf("o", "9") - .setMoreKeysOf("p", "0") + .setKeysOfRow(1, + key("q", moreKey("1")), + key("w", moreKey("2")), + key("e", moreKey("3")), + key("r", moreKey("4")), + key("t", moreKey("5")), + key("y", moreKey("6")), + key("u", moreKey("7")), + key("i", moreKey("8")), + key("o", moreKey("9")), + key("p", moreKey("0"))) .setLabelsOfRow(2, "a", "s", "d", "f", "g", "h", "j", "k", "l") .setLabelsOfRow(3, "z", "x", "c", "v", "b", "n", "m") .build();