Home
last modified time | relevance | path

Searched refs:ENGLISH (Results 1 – 25 of 34) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DStringUtilsTests.java249 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/
DPersonalDictionaryLookupTest.java157 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 …]
DRichInputConnectionAndTextRangeTests.java60 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 …]
DRichInputMethodSubtypeTests.java297 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesForSpacebarInEnglish()
301 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypeForSpacebarInEnglish()
DContactsDictionaryUtilsTest.java55 assertTrue(ContactsDictionaryUtils.useFirstLastBigramsForLocale(Locale.ENGLISH)); in testUseFirstLastBigramsForLocale()
DSuggestedWordsTests.java76 Locale.ENGLISH, false /* isAllUpperCase */, false /* isFirstCharCapitalized */, in transformWordInfo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java46 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/
DRecapitalizeStatusTests.java32 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()
DCapsModeUtilsTests.java63 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()
DSubtypeLocaleUtilsTests.java264 tests.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesInEnglishSystemLocale()
297 tests.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypesInEnglishSystemLocale()
DDictionaryInfoUtilsTests.java38 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testLooksValidForDictionaryInsertion()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java170 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/
DContactLocaleUtilsTest.java152 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/
DAlphabeticIndexCompat.java78 if (!curLocale.getLanguage().equals(Locale.ENGLISH.getLanguage())) { in AlphabeticIndexCompat()
79 mAddLabelsMethod.invoke(mAlphabeticIndex, Locale.ENGLISH); in AlphabeticIndexCompat()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java84 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/
DContactsDictionaryUtils.java50 if (locale != null && locale.getLanguage().equals(Locale.ENGLISH.getLanguage())) { in useFirstLastBigramsForLocale()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecStringReferenceTests.java31 private static final Locale TEST_LOCALE = Locale.ENGLISH;
DMoreKeySpecSplitTests.java31 private static final Locale TEST_LOCALE = Locale.ENGLISH;
DKeySpecParserTestsBase.java30 private final static Locale TEST_LOCALE = Locale.ENGLISH;
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java1077 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/
DLocaleUtils.java165 return locale.getDisplayName(Locale.ENGLISH); in getLocaleDisplayName()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java70 mUsesAmericanTypography = Locale.ENGLISH.getLanguage().equals(locale.getLanguage()); in SpacingAndPunctuations()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java141 if (isSecondaryLanguage(Locale.ENGLISH.getLanguage())) { in normalize()
DContactLocaleUtils.java97 mAlphabeticIndex = ai.addLabels(Locale.ENGLISH) in ContactLocaleUtilsBase()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DInputMethodSettingValuesWrapper.java198 return InputMethodUtils.containsSubtypeOf(imi, Locale.ENGLISH, false /* checkCountry */, in isValidSystemNonAuxAsciiCapableIme()

12