Home
last modified time | relevance | path

Searched refs:keyboardLocale (Results 1 – 2 of 2) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/
DKeyboardIdTest.java23 KeyboardId keyboardLocale = KeyboardId.fromString("bn-t-k0-windows"); in testFromStringForSimple() local
24 assertEquals("", "bn-t-k0-windows", keyboardLocale.toString()); in testFromStringForSimple()
28 KeyboardId keyboardLocale = KeyboardId.fromString("es-US-t-k0-android-768dpi.xml"); in testFromStringForComplex() local
29 assertEquals("", "es-US-t-k0-android-768dpi.xml", keyboardLocale.toString()); in testFromStringForComplex()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeyboardId.java54 public static KeyboardId fromString(String keyboardLocale) { in fromString() argument
55 int tExtensionLocation = keyboardLocale.indexOf("-t-k0-"); in fromString()
56 checkArgument(tExtensionLocation != -1, keyboardLocale); in fromString()
57 String localeString = keyboardLocale.substring(0, tExtensionLocation); in fromString()
59 String[] attributeStrings = keyboardLocale.substring(tExtensionLocation + 6).split("-"); in fromString()
60 checkArgument(attributeStrings.length > 0, keyboardLocale); in fromString()