Home
last modified time | relevance | path

Searched refs:KeyboardId (Results 1 – 11 of 11) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/
DKeyboardIdTest.java3 import org.unicode.cldr.draft.keyboard.KeyboardId;
15 KeyboardId id = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testKeyboardId()
17 assertEquals("", KeyboardId.Platform.WINDOWS, id.platform()); in testKeyboardId()
23 KeyboardId keyboardLocale = KeyboardId.fromString("bn-t-k0-windows"); in testFromStringForSimple()
28 KeyboardId keyboardLocale = KeyboardId.fromString("es-US-t-k0-android-768dpi.xml"); in testFromStringForComplex()
34 KeyboardId.fromString("en-US-android"); in testFromStringForInvalid()
42 KeyboardId id1 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsTrue()
43 KeyboardId id2 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsTrue()
49 KeyboardId id1 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsFalse()
50 KeyboardId id2 = KeyboardId.fromString("es-US-t-k0-android-768dpi.xml"); in testEqualsFalse()
DKeyboardTest.java9 import org.unicode.cldr.draft.keyboard.KeyboardId;
10 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
53 return Keyboard.of(KeyboardId.fromString("cs-t-k0-osx-qwerty"), in createKeyboard()
58 KeyboardId id = keyboard.keyboardId(); in testKeyboardId()
59 KeyboardId testId = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testKeyboardId()
103 KeyboardId id = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testEqualsTrue()
139 KeyboardId id = KeyboardId.of(ULocale.forLanguageTag("cs"), Platform.OSX, in testEqualsFalse()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeyboardId.java34 public final class KeyboardId { class
39 private KeyboardId(ULocale locale, Platform platform, ImmutableList<String> attributes) { in KeyboardId() method in KeyboardId
46 … public static KeyboardId of(ULocale locale, Platform platform, ImmutableList<String> attributes) { in of()
47 return new KeyboardId(locale, platform, attributes); in of()
54 public static KeyboardId fromString(String keyboardLocale) { in fromString()
65 return new KeyboardId(locale, platform, attributes); in fromString()
101 if (o instanceof KeyboardId) { in equals()
102 KeyboardId other = (KeyboardId) o; in equals()
DKeyboardIdMap.java10 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
23 private final ImmutableMultimap<String, KeyboardId> nameToKeyboardId;
27 private KeyboardIdMap(ImmutableMultimap<String, KeyboardId> nameToKeyboardId) { in KeyboardIdMap()
44 ImmutableMultimap.Builder<String, KeyboardId> builder = ImmutableMultimap.builder(); in fromCsv()
57 builder.put(name, KeyboardId.of(locale, platform, attributes)); in fromCsv()
73 public ImmutableCollection<KeyboardId> getKeyboardId(String name) { in getKeyboardId()
75 ImmutableCollection<KeyboardId> ids = nameToKeyboardId.get(name); in getKeyboardId()
DKeyboard.java17 private final KeyboardId keyboardId;
23 private Keyboard(KeyboardId keyboardId, ImmutableList<String> names, in Keyboard()
35 public static Keyboard of(KeyboardId keyboardId, ImmutableList<String> names, in of()
40 public KeyboardId keyboardId() { in keyboardId()
DKeyboardBuilder.java25 private final ImmutableSet.Builder<KeyboardId> keyboardIds;
37 public KeyboardBuilder addKeyboardIds(Iterable<KeyboardId> keyboardIds) { in addKeyboardIds()
82 ImmutableSet<KeyboardId> keyboardIds = this.keyboardIds.build(); in build()
91 KeyboardId id = keyboardIds.iterator().next(); in build()
104 for (KeyboardId keyboardId : keyboardIds) { in build()
DKeyboardTool.java11 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/osx/
DKeylayoutParser.java19 import org.unicode.cldr.draft.keyboard.KeyboardId;
20 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
100 ImmutableCollection<KeyboardId> ids = KEYBOARD_ID_MAP.getKeyboardId(name); in parseId()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/out/
DKeycodeMapToXml.java9 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
DKeyboardToXml.java11 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/windows/
DKlcParser.java16 import org.unicode.cldr.draft.keyboard.KeyboardId;
17 import org.unicode.cldr.draft.keyboard.KeyboardId.Platform;
101 ImmutableCollection<KeyboardId> ids = KEYBOARD_ID_MAP.getKeyboardId(name); in parseNameAndId()