/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ExpectedKey.java | 33 static ExpectedKey newInstance(final String label, final ExpectedKey... moreKeys) { in newInstance() argument 34 return newInstance(label, label, moreKeys); in newInstance() 39 final ExpectedKey... moreKeys) { in newInstance() argument 41 ExpectedKeyOutput.newInstance(outputText), moreKeys); in newInstance() 46 final ExpectedKey... moreKeys) { in newInstance() argument 48 ExpectedKeyOutput.newInstance(code), moreKeys); in newInstance() 53 final ExpectedKey... moreKeys) { in newInstance() argument 55 ExpectedKeyOutput.newInstance(outputText), moreKeys); in newInstance() 60 final ExpectedKey... moreKeys) { in newInstance() argument 62 ExpectedKeyOutput.newInstance(code), moreKeys); in newInstance() [all …]
|
D | AbstractLayoutBase.java | 31 public static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { in key() argument 32 return ExpectedKey.newInstance(label, moreKeys); in key() 37 final ExpectedKey ... moreKeys) { in key() argument 38 return ExpectedKey.newInstance(label, outputText, moreKeys); in key() 43 final ExpectedKey ... moreKeys) { in key() argument 44 return ExpectedKey.newInstance(label, code, moreKeys); in key() 49 final ExpectedKey ... moreKeys) { in key() argument 50 return ExpectedKey.newInstance(iconId, outputText, moreKeys); in key() 55 final ExpectedKey ... moreKeys) { in key() argument 56 return ExpectedKey.newInstance(iconId, code, moreKeys); in key() [all …]
|
D | ExpectedKeyboardBuilder.java | 151 public ExpectedKeyboardBuilder setMoreKeysOf(final String label, final Object ... moreKeys) { in setMoreKeysOf() argument 152 setMoreKeysOf(ExpectedKeyVisual.newInstance(label), joinKeys(moreKeys)); in setMoreKeysOf() 163 public ExpectedKeyboardBuilder setMoreKeysOf(final int iconId, final Object ... moreKeys) { in setMoreKeysOf() argument 164 setMoreKeysOf(ExpectedKeyVisual.newInstance(iconId), joinKeys(moreKeys)); in setMoreKeysOf() 168 private void setMoreKeysOf(final ExpectedKeyVisual visual, final ExpectedKey[] moreKeys) { in setMoreKeysOf() argument 172 return new ExpectedKey[] { oldKey.setMoreKeys(moreKeys) }; in setMoreKeysOf()
|
D | ActualKeyboardBuilder.java | 145 final MoreKeySpec[] moreKeys = key.getMoreKeys(); in stringize() local 146 if (moreKeys == null) { in stringize() 150 sb.append(MoreKeySpecStringizer.STRINGIZER.join(moreKeys)); in stringize()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpec.java | 151 public static MoreKeySpec[] removeRedundantMoreKeys(@Nullable final MoreKeySpec[] moreKeys, in removeRedundantMoreKeys() argument 153 if (moreKeys == null) { in removeRedundantMoreKeys() 157 for (final MoreKeySpec moreKey : moreKeys) { in removeRedundantMoreKeys() 163 if (size == moreKeys.length) { in removeRedundantMoreKeys() 164 return moreKeys; in removeRedundantMoreKeys() 259 final String[] moreKeys = filterOutEmptyString(moreKeySpecs); in insertAdditionalMoreKeys() local 261 final int moreKeysCount = moreKeys.length; in insertAdditionalMoreKeys() 266 final String moreKeySpec = moreKeys[moreKeyIndex]; in insertAdditionalMoreKeys() 274 moreKeys[moreKeyIndex] = additionalMoreKey; in insertAdditionalMoreKeys() 280 out = CollectionUtils.arrayAsList(moreKeys, 0, moreKeyIndex); in insertAdditionalMoreKeys() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 292 String[] moreKeys = style.getStringArray(keyAttr, R.styleable.Keyboard_Key_moreKeys); in Key() local 299 if ((value = MoreKeySpec.getIntValue(moreKeys, MORE_KEYS_AUTO_COLUMN_ORDER, -1)) > 0) { in Key() 304 if ((value = MoreKeySpec.getIntValue(moreKeys, MORE_KEYS_FIXED_COLUMN_ORDER, -1)) > 0) { in Key() 309 if (MoreKeySpec.getBooleanValue(moreKeys, MORE_KEYS_HAS_LABELS)) { in Key() 312 if (MoreKeySpec.getBooleanValue(moreKeys, MORE_KEYS_NEEDS_DIVIDERS)) { in Key() 315 if (MoreKeySpec.getBooleanValue(moreKeys, MORE_KEYS_NO_PANEL_AUTO_MORE_KEY)) { in Key() 327 moreKeys = MoreKeySpec.insertAdditionalMoreKeys(moreKeys, additionalMoreKeys); in Key() 328 if (moreKeys != null) { in Key() 330 mMoreKeys = new MoreKeySpec[moreKeys.length]; in Key() 331 for (int i = 0; i < moreKeys.length; i++) { in Key() [all …]
|
D | MoreKeysKeyboard.java | 312 final MoreKeySpec[] moreKeys = key.getMoreKeys(); in Builder() local 313 mParams.setParameters(moreKeys.length, key.getMoreKeysColumnNumber(), keyWidth, in Builder() 337 final MoreKeySpec[] moreKeys = mParentKey.getMoreKeys(); in build() local 338 for (int n = 0; n < moreKeys.length; n++) { in build() 339 final MoreKeySpec moreKeySpec = moreKeys[n]; in build()
|
D | MainKeyboardView.java | 598 final MoreKeySpec[] moreKeys = key.getMoreKeys(); in showMoreKeysKeyboard() local 599 if (moreKeys == null) { in showMoreKeysKeyboard() 610 && !key.noKeyPreview() && moreKeys.length == 1 in showMoreKeysKeyboard()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/ |
D | LayoutTestsBase.java | 70 static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { in key() argument 71 return AbstractLayoutBase.key(label, moreKeys); in key() 76 final ExpectedKey ... moreKeys) { in key() argument 77 return AbstractLayoutBase.key(label, outputText, moreKeys); in key() 81 static ExpectedKey key(final ExpectedKey key, final ExpectedKey ... moreKeys) { in key() argument 82 return AbstractLayoutBase.key(key, moreKeys); in key() 104 static ExpectedKey[] joinMoreKeys(final Object ... moreKeys) { in joinMoreKeys() argument 105 return AbstractLayoutBase.joinKeys(moreKeys); in joinMoreKeys()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecTests.java | 76 final String[] moreKeys, final String[] additionalMoreKeys, final String[] expected) { in assertInsertAdditionalMoreKeys() argument 77 final String[] actual = MoreKeySpec.insertAdditionalMoreKeys(moreKeys, additionalMoreKeys); in assertInsertAdditionalMoreKeys() 304 final String[] moreKeys, final String[] expected, final boolean expectedValue) { in assertGetBooleanValue() argument 305 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); in assertGetBooleanValue() 343 final int defaultValue, final String[] moreKeys, final String[] expected, in assertGetIntValue() argument 345 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); in assertGetIntValue()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/ |
D | DvorakCustomizer.java | 56 final ExpectedKey ... moreKeys) { in convertToAdditionalMoreKeys() argument 58 new ExpectedAdditionalMoreKey[moreKeys.length]; in convertToAdditionalMoreKeys() 59 for (int index = 0; index < moreKeys.length; index++) { in convertToAdditionalMoreKeys() 60 additionalMoreKeys[index] = ExpectedAdditionalMoreKey.newInstance(moreKeys[index]); in convertToAdditionalMoreKeys()
|