Home
last modified time | relevance | path

Searched refs:StringUtils (Results 1 – 25 of 46) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DStringUtilsTests.java42 StringUtils.toTitleCaseOfKeyLabel(lowerCase, locale)); in assert_toTitleCaseOfKeyLabel()
125 StringUtils.toTitleCaseOfKeyCode(lowerCase, locale)); in assert_toTitleCaseOfKeyCode()
158 StringUtils.capitalizeFirstCodePoint(text, locale)); in assert_capitalizeFirstCodePoint()
178 StringUtils.capitalizeFirstAndDowncaseRest(text, locale)); in assert_capitalizeFirstAndDowncaseRest()
202 assertFalse("empty array", StringUtils.containsInArray("key", new String[0])); in testContainsInArray()
203 assertFalse("not in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
206 assertFalse("not in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
210 assertTrue("in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
213 assertTrue("in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
220 assertFalse("null", StringUtils.containsInCommaSplittableText("key", null)); in testContainsInCommaSplittableText()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java37 import com.android.inputmethod.latin.common.StringUtils;
196 if (StringUtils.CAPITALIZE_NONE == capitalizeType) return false; in isInDictForAnyCapitalization()
203 if (StringUtils.CAPITALIZE_FIRST == capitalizeType) return false; in isInDictForAnyCapitalization()
209 StringUtils.capitalizeFirstAndDowncaseRest(lowerCaseText, mLocale)); in isInDictForAnyCapitalization()
263 final int capitalizeType = StringUtils.getCapitalizationType(text); in onGetSuggestionsInternal()
284 final int[] codePoints = StringUtils.toCodePointArray(text); in onGetSuggestionsInternal()
348 if (StringUtils.CAPITALIZE_ALL == capitalizeType) { in getResult()
350 } else if (StringUtils.CAPITALIZE_FIRST == capitalizeType) { in getResult()
351 suggestion = StringUtils.capitalizeFirstCodePoint( in getResult()
358 StringUtils.removeDupes(suggestions); in getResult()
/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java38 import com.android.tv.common.util.StringUtils;
95 .setTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
96 .setSeasonNumber(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
97 .setSeasonTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
98 .setEpisodeNumber(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
99 .setEpisodeTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
104 .setDescription(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
105 .setLongDescription(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
108 .setAudioLanguage(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
112 .setPosterArtUri(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java26 import com.android.inputmethod.latin.common.StringUtils;
48 mSortedSymbolsPrecededBySpace = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
51 mSortedSymbolsFollowedBySpace = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
53 mSortedSymbolsClusteringTogether = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
56 mSortedWordConnectors = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
58 mSortedWordSeparators = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
60 mSortedSentenceTerminators = StringUtils.toSortedCodePointArray( in SpacingAndPunctuations()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java29 import com.android.inputmethod.latin.common.StringUtils;
255 final String attributeKey = StringUtils.getStringFromNullTerminatedCodePointArray( in getHeader()
257 final String attributeValue = StringUtils.getStringFromNullTerminatedCodePointArray( in getHeader()
361 final int[] codePoints = StringUtils.toCodePointArray(word); in getFrequency()
370 final int[] codePoints = StringUtils.toCodePointArray(word); in getMaxFrequencyOfExactMatches()
386 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in getNgramProbability()
395 final int[] codePoints = StringUtils.toCodePointArray(word); in getWordProperty()
439 final String word = StringUtils.getStringFromNullTerminatedCodePointArray(codePoints); in getNextWordProperty()
451 final int[] codePoints = StringUtils.toCodePointArray(word); in addUnigramEntry()
466 final int[] codePoints = StringUtils.toCodePointArray(word); in removeUnigramEntry()
[all …]
DContactsBinaryDictionary.java28 import com.android.inputmethod.latin.common.StringUtils;
134 int len = StringUtils.codePointCount(name); in addNameLocked()
148 final int wordLen = StringUtils.codePointCount(word); in addNameLocked()
DSuggestedWords.java23 import com.android.inputmethod.latin.common.StringUtils;
304 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo()
321 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo()
DPunctuationSuggestions.java21 import com.android.inputmethod.latin.common.StringUtils;
77 : StringUtils.newSingleCodePointString(code); in getWord()
DSuggest.java27 import com.android.inputmethod.latin.common.StringUtils;
159 StringUtils.getTrailingSingleQuotesCount(typedWordString); in getSuggestedWordsForNonBatchInput()
417 sb.append(StringUtils.capitalizeFirstCodePoint(wordInfo.mWord, locale)); in getTransformedSuggestedWordInfo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyOutput.java22 import com.android.inputmethod.latin.common.StringUtils;
38 if (StringUtils.codePointCount(outputText) == 1) { in newInstance()
63 final String codeString = StringUtils.newSingleCodePointString(mCode); in toUpperCase()
66 return newInstance(StringUtils.toTitleCaseOfKeyLabel(codeString, locale)); in toUpperCase()
79 return StringUtils.codePointCount(text) == 1 && text.codePointAt(0) == mCode; in hasSameKeyOutput()
99 return Constants.isLetterCode(mCode) ? StringUtils.newSingleCodePointString(mCode) in toString()
DActualKeyboardBuilder.java23 import com.android.inputmethod.latin.common.StringUtils;
99 static class MoreKeySpecStringizer extends StringUtils.Stringizer<MoreKeySpec> {
121 output = StringUtils.newSingleCodePointString(code); in toString()
131 static class KeyStringizer extends StringUtils.Stringizer<Key> {
176 static class KeyArrayStringizer extends StringUtils.Stringizer<Key[]> {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatus.java19 import com.android.inputmethod.latin.common.StringUtils;
43 if (StringUtils.isIdenticalAfterUpcase(string)) { in getStringMode()
45 } else if (StringUtils.isIdenticalAfterDowncase(string)) { in getStringMode()
47 } else if (StringUtils.isIdenticalAfterCapitalizeEachWord(string, sortedSeparators)) { in getStringMode()
165 mStringAfter = StringUtils.capitalizeEachWord(mStringBefore, mSortedSeparators, in rotate()
DWordInputEventForPersonalization.java23 import com.android.inputmethod.latin.common.StringUtils;
49 mTargetWord = StringUtils.toCodePointArray(targetWord); in WordInputEventForPersonalization()
65 if (StringUtils.isEmptyStringOrWhiteSpaces(tempWord)) { in createInputEventFrom()
DBinaryDictionaryUtils.java21 import com.android.inputmethod.latin.common.StringUtils;
111 return calcNormalizedScoreNative(StringUtils.toCodePointArray(before), in calcNormalizedScore()
112 StringUtils.toCodePointArray(after), score); in calcNormalizedScore()
DAdditionalSubtypeUtils.java34 import com.android.inputmethod.latin.common.StringUtils;
94 final String extraValue = StringUtils.removeFromCommaSplittableTextIfExists( in getPrefSubtype()
95 layoutExtraValue, StringUtils.removeFromCommaSplittableTextIfExists( in getPrefSubtype()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java23 import com.android.inputmethod.latin.common.StringUtils;
178 if (StringUtils.codePointCount(outputText) == 1) { in getOutputText()
193 return (StringUtils.codePointCount(label) == 1) ? null : label; in getOutputText()
210 if (StringUtils.codePointCount(outputText) == 1) { in getCode()
220 return (StringUtils.codePointCount(label) == 1) ? label.codePointAt(0) : CODE_OUTPUT_TEXT; in getCode()
DMoreKeySpec.java26 import com.android.inputmethod.latin.common.StringUtils;
61 mLabel = needsToUpperCase ? StringUtils.toTitleCaseOfKeyLabel(label, locale) : label; in MoreKeySpec()
63 final int code = needsToUpperCase ? StringUtils.toTitleCaseOfKeyCode(codeInSpec, locale) in MoreKeySpec()
74 ? StringUtils.toTitleCaseOfKeyLabel(outputText, locale) : outputText; in MoreKeySpec()
120 if (StringUtils.codePointCount(label) == 1 && label.codePointAt(0) == mCode) { in toString()
176 StringUtils.newSingleCodePointString(Constants.CODE_PERCENT);
DCodesArrayParser.java20 import com.android.inputmethod.latin.common.StringUtils;
40 private static final String COMMA_REGEX = StringUtils.newSingleCodePointString(COMMA);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java41 import com.android.inputmethod.latin.common.StringUtils;
354 ? StringUtils.toTitleCaseOfKeyLabel(label, localeForUpcasing) in Key()
363 ? StringUtils.toTitleCaseOfKeyLabel(hintLabel, localeForUpcasing) in Key()
368 outputText = StringUtils.toTitleCaseOfKeyLabel(outputText, localeForUpcasing); in Key()
373 if (StringUtils.codePointCount(mLabel) == 1) { in Key()
388 if (StringUtils.codePointCount(outputText) == 1) { in Key()
395 mCode = needsToUpcase ? StringUtils.toTitleCaseOfKeyCode(code, localeForUpcasing) in Key()
401 ? StringUtils.toTitleCaseOfKeyCode(altCodeInAttr, localeForUpcasing) in Key()
660 return StringUtils.codePointCount(mLabel) == 1 ? params.mLetterSize : params.mLabelSize; in selectTextSize()
702 || StringUtils.codePointCount(getPreviewLabel()) == 1; in previewHasLetterSize()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java24 import com.android.inputmethod.latin.common.StringUtils;
87 mWord = StringUtils.getStringFromNullTerminatedCodePointArray(codePoints); in WordProperty()
98 StringUtils.getStringFromNullTerminatedCodePointArray(ngramTargets.get(i)); in WordProperty()
108 : new WordInfo(StringUtils.getStringFromNullTerminatedCodePointArray( in WordProperty()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java22 import com.android.tv.common.util.StringUtils;
793 ret = StringUtils.compare(mTitleText, item.getTitleText()); in compareTo()
809 ret = StringUtils.compare(mContentRating, item.getContentRating()); in compareTo()
815 ret = StringUtils.compare(mBroadcastGenre, item.getBroadcastGenre()); in compareTo()
820 ret = StringUtils.compare(mCanonicalGenre, item.getCanonicalGenre()); in compareTo()
826 return StringUtils.compare(mDescription, item.getDescription()); in compareTo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DWordComposerTests.java28 import com.android.inputmethod.latin.common.StringUtils;
50 final int[] CODEPOINTS_WITHIN_BMP = StringUtils.toCodePointArray(STR_WITHIN_BMP); in testMoveCursor()
79 StringUtils.toCodePointArray(STR_WITH_SUPPLEMENTARY_CHAR); in testMoveCursor()
/packages/apps/TV/common/src/com/android/tv/common/util/
DStringUtils.java20 public final class StringUtils { class
22 private StringUtils() {} in StringUtils() method in StringUtils
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DComposedData.java51 - StringUtils.getTrailingSingleQuotesCount(mTypedWord); in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
63 return StringUtils.copyCodePointsAndReturnCodePointCount(destination, mTypedWord, 0, in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
DLocaleUtils.java109 if (StringUtils.isEmpty(referenceLocale)) { in getMatchLevel()
110 return StringUtils.isEmpty(testedLocale) ? LOCALE_FULL_MATCH : LOCALE_ANY_MATCH; in getMatchLevel()

12