/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 249 StringUtils.capitalizeFirstCodePoint("iab", Locale.ENGLISH)); in testCapitalizeFirstCodePoint() 251 StringUtils.capitalizeFirstCodePoint("cAmElCaSe", Locale.ENGLISH)); in testCapitalizeFirstCodePoint() 257 StringUtils.capitalizeFirstCodePoint("a", Locale.ENGLISH)); in testCapitalizeFirstCodePoint() 259 StringUtils.capitalizeFirstCodePoint("A", Locale.ENGLISH)); in testCapitalizeFirstCodePoint() 268 StringUtils.capitalizeFirstAndDowncaseRest("iab", Locale.ENGLISH)); in testCapitalizeFirstAndDowncaseRest() 270 StringUtils.capitalizeFirstAndDowncaseRest("cAmElCaSe", Locale.ENGLISH)); in testCapitalizeFirstAndDowncaseRest() 276 StringUtils.capitalizeFirstAndDowncaseRest("a", Locale.ENGLISH)); in testCapitalizeFirstAndDowncaseRest() 278 StringUtils.capitalizeFirstAndDowncaseRest("A", Locale.ENGLISH)); in testCapitalizeFirstAndDowncaseRest() 341 checkCapitalize("", "", SPACE, Locale.ENGLISH); in testCapitalizeEachWord() 342 checkCapitalize("test", "Test", SPACE, Locale.ENGLISH); in testCapitalizeEachWord() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | PersonalDictionaryLookupTest.java | 157 assertTrue(lookup.getShortcutsForLocale(Locale.ENGLISH).isEmpty()); in testShortcutMatchesInputCountry() 163 assertNull(lookup.expandShortcut("shortcut", Locale.ENGLISH)); in testShortcutMatchesInputCountry() 172 PersonalDictionaryLookup lookup = setUpShortcut(Locale.ENGLISH); in testShortcutMatchesInputLanguage() 176 verifyWordExists(lookup.getShortcutsForLocale(Locale.ENGLISH), "shortcut"); in testShortcutMatchesInputLanguage() 182 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.ENGLISH)); in testShortcutMatchesInputLanguage() 194 verifyWordExists(lookup.getShortcutsForLocale(Locale.ENGLISH), "shortcut"); in testShortcutMatchesAnyLocale() 200 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.ENGLISH)); in testShortcutMatchesAnyLocale() 213 verifyWordDoesNotExist(lookup.getWordsForLocale(Locale.ENGLISH), "foo"); in testExactLocaleMatch() 226 assertFalse(lookup.isValidWord("foo", Locale.ENGLISH)); in testExactLocaleMatch() 236 PersonalDictionaryLookup lookup = setUpWord(Locale.ENGLISH); in testSubLocaleMatch() [all …]
|
D | RichInputConnectionAndTextRangeTests.java | 60 mSpacingAndPunctuations = job.runInLocale(res, Locale.ENGLISH); in setUp() 303 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 316 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 318 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 329 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 331 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 341 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 343 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 353 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() 355 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord() [all …]
|
D | RichInputMethodSubtypeTests.java | 297 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesForSpacebarInEnglish() 301 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypeForSpacebarInEnglish()
|
D | ContactsDictionaryUtilsTest.java | 55 assertTrue(ContactsDictionaryUtils.useFirstLastBigramsForLocale(Locale.ENGLISH)); in testUseFirstLastBigramsForLocale()
|
D | SuggestedWordsTests.java | 76 Locale.ENGLISH, false /* isAllUpperCase */, false /* isFirstCharCapitalized */, in transformWordInfo()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuationsTests.java | 46 private SpacingAndPunctuations ENGLISH; field in SpacingAndPunctuationsTests 73 ENGLISH = getSpacingAndPunctuations(Locale.ENGLISH); in setUp() 144 testingStandardWordSeparator(ENGLISH); in testWordSeparator() 196 testingStandardWordConnector(ENGLISH); in testWordConnector() 249 testingStandardPrecededBySpace(ENGLISH); in testIsUsuallyPrecededBySpace() 302 testingStandardFollowedBySpace(ENGLISH); in testIsUsuallyFollowedBySpace() 349 testingStandardSentenceSeparator(ENGLISH); in isSentenceSeparator() 361 assertTrue(ENGLISH.mCurrentLanguageHasSpaces); in testLanguageHasSpace() 373 assertTrue(ENGLISH.mUsesAmericanTypography); in testUsesAmericanTypography() 383 assertFalse(ENGLISH.mUsesGermanRules); in testUsesGermanRules() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatusTests.java | 32 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 38 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 44 status.start(30, 40, "abcdefgh ", Locale.ENGLISH, SPACE); in testTrim() 50 status.start(30, 45, " abcdefghij ", Locale.ENGLISH, SPACE); in testTrim() 59 status.start(29, 40, "abcd efghij", Locale.ENGLISH, SPACE); in testRotate() 71 status.start(29, 40, "Abcd Efghij", Locale.ENGLISH, SPACE); in testRotate() 83 status.start(29, 40, "ABCD EFGHIJ", Locale.ENGLISH, SPACE); in testRotate() 95 status.start(29, 39, "AbCDefghij", Locale.ENGLISH, SPACE); in testRotate() 109 status.start(29, 40, "Abcd efghij", Locale.ENGLISH, SPACE); in testRotate()
|
D | CapsModeUtilsTests.java | 63 SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode() 107 sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode() 129 sp = job.runInLocale(res, Locale.ENGLISH); in testGetCapsMode()
|
D | SubtypeLocaleUtilsTests.java | 264 tests.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesInEnglishSystemLocale() 297 tests.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypesInEnglishSystemLocale()
|
D | DictionaryInfoUtilsTests.java | 38 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testLooksValidForDictionaryInsertion()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | LocaleSpanCompatUtilsTests.java | 170 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.ENGLISH), 3, 5, in testUpdateLocaleSpan() 180 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.ENGLISH), 3, 7, in testUpdateLocaleSpan() 184 assertLocaleSpan(text, 0, 3, 5, Locale.ENGLISH, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan() 185 assertLocaleSpan(text, 1, 6, 7, Locale.ENGLISH, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan() 192 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.ENGLISH), 3, 7, in testUpdateLocaleSpan() 196 assertLocaleSpan(text, 0, 5, 7, Locale.ENGLISH, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan() 203 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.ENGLISH), 3, 7, in testUpdateLocaleSpan() 207 assertLocaleSpan(text, 0, 3, 5, Locale.ENGLISH, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLocaleUtilsTest.java | 152 ContactLocaleUtils.setLocale(Locale.ENGLISH); in testEnglishContactLocaleUtils() 246 new LocaleSet(Locale.ENGLISH, Locale.SIMPLIFIED_CHINESE)); in testPinyinEnabledSecondaryLocale() 261 new LocaleSet(Locale.ENGLISH, Locale.JAPAN)); in testPinyinDisabledSecondaryLocale() 274 ContactLocaleUtils.setLocale(Locale.ENGLISH); in testChineseStyleNameWithDifferentLocale()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | AlphabeticIndexCompat.java | 78 if (!curLocale.getLanguage().equals(Locale.ENGLISH.getLanguage())) { in AlphabeticIndexCompat() 79 mAddLabelsMethod.invoke(mAlphabeticIndex, Locale.ENGLISH); in AlphabeticIndexCompat()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AutoInstallsLayout.java | 84 String layoutName = String.format(Locale.ENGLISH, FORMATTED_LAYOUT_RES_WITH_HOSTEAT, in get() 92 layoutName = String.format(Locale.ENGLISH, FORMATTED_LAYOUT_RES, in get()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsDictionaryUtils.java | 50 if (locale != null && locale.getLanguage().equals(Locale.ENGLISH.getLanguage())) { in useFirstLastBigramsForLocale()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecStringReferenceTests.java | 31 private static final Locale TEST_LOCALE = Locale.ENGLISH;
|
D | MoreKeySpecSplitTests.java | 31 private static final Locale TEST_LOCALE = Locale.ENGLISH;
|
D | KeySpecParserTestsBase.java | 30 private final static Locale TEST_LOCALE = Locale.ENGLISH;
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 1077 String uri = String.format(Locale.ENGLISH, "http://maps.google.com/maps?f=q&q=(%f,%f)", in showOnMap() 1088 String url = String.format(Locale.ENGLISH, "geo:%f,%f", latLong[0], latLong[1]); in showOnMap()
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | LocaleUtils.java | 165 return locale.getDisplayName(Locale.ENGLISH); in getLocaleDisplayName()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuations.java | 70 mUsesAmericanTypography = Locale.ENGLISH.getLanguage().equals(locale.getLanguage()); in SpacingAndPunctuations()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LocaleSet.java | 141 if (isSecondaryLanguage(Locale.ENGLISH.getLanguage())) { in normalize()
|
D | ContactLocaleUtils.java | 97 mAlphabeticIndex = ai.addLabels(Locale.ENGLISH) in ContactLocaleUtilsBase()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | InputMethodSettingValuesWrapper.java | 198 return InputMethodUtils.containsSubtypeOf(imi, Locale.ENGLISH, false /* checkCountry */, in isValidSystemNonAuxAsciiCapableIme()
|