Home
last modified time | relevance | path

Searched refs:onKeys (Results 1 – 13 of 13) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DModifierKeyCombination.java61 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 …]
DModifierKeySimplifier.java93 …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/
DModifierKeyCombinationTest.java13 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 …]
DModifierKeySimplifierTest.java28 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/
DKeylayoutParser.java146 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/
DTreeRangeMapTest.java78 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/
DImmutableSetMultimap.java267 Ordering.from(keyComparator).<K>onKeys()); in build()
DImmutableMultimap.java265 Ordering.from(keyComparator).<K>onKeys()); in build()
/external/guava/guava/src/com/google/common/collect/
DImmutableMultimap.java266 Ordering.from(keyComparator).<K>onKeys()); in build()
DOrdering.java372 <T2 extends T> Ordering<Map.Entry<T2, ?>> onKeys() { in onKeys() method in Ordering
DImmutableSetMultimap.java273 Ordering.from(keyComparator).<K>onKeys()); in build()
DImmutableSortedMap.java294 Arrays.sort(entries, 0, size, Ordering.from(comparator).<K>onKeys()); in sortEntries()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/windows/
DKlcParser.java286 combination.onKeys(), ImmutableSet.of(ModifierKey.CAPSLOCK)))); in parseLayout()