/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/ |
D | ModifierKeyCombination.java | 61 private final ImmutableSet<ModifierKey> onKeys; field in ModifierKeyCombination 64 …private ModifierKeyCombination(ImmutableSet<ModifierKey> onKeys, ImmutableSet<ModifierKey> offKeys… in ModifierKeyCombination() argument 65 this.onKeys = checkNotNull(onKeys); in ModifierKeyCombination() 74 public static ModifierKeyCombination ofOnKeys(Set<ModifierKey> onKeys) { in ofOnKeys() argument 75 return ofOnAndDontCareKeys(ImmutableSet.copyOf(onKeys), ImmutableSet.<ModifierKey> of()); in ofOnKeys() 83 public static ModifierKeyCombination ofOnAndDontCareKeys(Set<ModifierKey> onKeys, in ofOnAndDontCareKeys() argument 85 checkArgument(Sets.intersection(onKeys, dontCareKeys).size() == 0, in ofOnAndDontCareKeys() 87 return ModifierKeySimplifier.simplifyInput(ImmutableSet.copyOf(onKeys), in ofOnAndDontCareKeys() 92 static ModifierKeyCombination of(ImmutableSet<ModifierKey> onKeys, in of() argument 94 return new ModifierKeyCombination(onKeys, offKeys); in of() [all …]
|
D | ModifierKeySimplifier.java | 93 …public static ModifierKeyCombination simplifyInput(Set<ModifierKey> onKeys, Set<ModifierKey> dontC… in simplifyInput() argument 94 checkArgument(Sets.intersection(onKeys, dontCareKeys).size() == 0); in simplifyInput() 101 inputRepresentation.append(getInputKeyState(parentKey, onKeys, dontCareKeys)); in simplifyInput() 104 inputRepresentation.append(getInputKeyState(child, onKeys, dontCareKeys)); in simplifyInput() 115 if (onKeys.contains(singleKey)) { in simplifyInput() 125 private static char getInputKeyState(ModifierKey modifierKey, Set<ModifierKey> onKeys, in getInputKeyState() argument 127 return onKeys.contains(modifierKey) ? '1' : dontCareKeys.contains(modifierKey) ? '?' : '-'; in getInputKeyState() 147 ImmutableSet<ModifierKey> onKeys = combination.onKeys(); in simplifyToString() local 152 String result = getStringFromInternalRepresentation(parentKey, onKeys, offKeys); in simplifyToString() 182 if (onKeys.contains(singleKey)) { in simplifyToString() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/ |
D | ModifierKeyCombinationTest.java | 13 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.SHIFT); in testOfOnKeysForSimpleCombination() local 14 assertEquals("", onKeys, combination.onKeys()); in testOfOnKeysForSimpleCombination() 24 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT, in testOfOnKeysForComplexCombination() local 26 assertEquals("", onKeys, combination.onKeys()); in testOfOnKeysForComplexCombination() 36 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.SHIFT_RIGHT, in testOfOnKeysForComplexCombinationWithVariant() local 38 assertEquals("", onKeys, combination.onKeys()); in testOfOnKeysForComplexCombinationWithVariant() 48 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.COMMAND); in testOfOnAndDontCareKeysForSimpleCombination() local 49 assertEquals("", onKeys, combination.onKeys()); in testOfOnAndDontCareKeysForSimpleCombination() 60 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.CONTROL, ModifierKey.SHIFT, in testOfOnAndDontCareKeys_complex() local 62 assertEquals("", onKeys, combination.onKeys()); in testOfOnAndDontCareKeys_complex() [all …]
|
D | ModifierKeySimplifierTest.java | 28 assertTrue("", combination.onKeys().isEmpty()); in testSimplifyInputWithBase() 37 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.ALT, ModifierKey.CAPSLOCK); in testSimplifyInputWithParentOn() local 38 assertEquals("", onKeys, combination.onKeys()); in testSimplifyInputWithParentOn() 47 … ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.OPTION_LEFT, ModifierKey.COMMAND); in testSimplifyInputWithChildOn() local 48 assertEquals("", onKeys, combination.onKeys()); in testSimplifyInputWithChildOn() 57 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.SHIFT_LEFT, in testSimplifyInputWithBothChildrenOn() local 59 assertEquals("", onKeys, combination.onKeys()); in testSimplifyInputWithBothChildrenOn() 68 assertEquals("", EMPTY_SET, combination.onKeys()); in testSimplifyInputWithParentDontCare() 77 ImmutableSet<ModifierKey> onKeys = ImmutableSet.of(ModifierKey.ALT_LEFT); in testSimplifyInputWithParentDontCareAndChildOn() local 78 assertEquals("", onKeys, combination.onKeys()); in testSimplifyInputWithParentDontCareAndChildOn() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/osx/ |
D | KeylayoutParser.java | 146 ImmutableSet.Builder<ModifierKey> onKeys = ImmutableSet.builder(); in parseKeys() local 151 ImmutableSet.Builder<ModifierKey> builder = maybe ? dontCareKeys : onKeys; in parseKeys() 178 return ModifierKeyCombination.ofOnAndDontCareKeys(onKeys.build(), dontCareKeys.build()); in parseKeys()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeRangeMapTest.java | 78 return Range.RANGE_LEX_ORDERING.<Range<Integer>>onKeys() in suite() 133 return Range.RANGE_LEX_ORDERING.<Range<Integer>>onKeys() in suite()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSetMultimap.java | 267 Ordering.from(keyComparator).<K>onKeys()); in build()
|
D | ImmutableMultimap.java | 265 Ordering.from(keyComparator).<K>onKeys()); in build()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableMultimap.java | 266 Ordering.from(keyComparator).<K>onKeys()); in build()
|
D | Ordering.java | 372 <T2 extends T> Ordering<Map.Entry<T2, ?>> onKeys() { in onKeys() method in Ordering
|
D | ImmutableSetMultimap.java | 273 Ordering.from(keyComparator).<K>onKeys()); in build()
|
D | ImmutableSortedMap.java | 294 Arrays.sort(entries, 0, size, Ordering.from(comparator).<K>onKeys()); in sortEntries()
|
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/windows/ |
D | KlcParser.java | 286 combination.onKeys(), ImmutableSet.of(ModifierKey.CAPSLOCK)))); in parseLayout()
|