/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 42 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/ |
D | AndroidWordLevelSpellCheckerSession.java | 37 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/ |
D | RecordedProgram.java | 38 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/ |
D | SpacingAndPunctuations.java | 26 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/ |
D | BinaryDictionary.java | 29 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 …]
|
D | ContactsBinaryDictionary.java | 28 import com.android.inputmethod.latin.common.StringUtils; 134 int len = StringUtils.codePointCount(name); in addNameLocked() 148 final int wordLen = StringUtils.codePointCount(word); in addNameLocked()
|
D | SuggestedWords.java | 23 import com.android.inputmethod.latin.common.StringUtils; 304 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo() 321 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo()
|
D | PunctuationSuggestions.java | 21 import com.android.inputmethod.latin.common.StringUtils; 77 : StringUtils.newSingleCodePointString(code); in getWord()
|
D | Suggest.java | 27 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/ |
D | ExpectedKeyOutput.java | 22 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()
|
D | ActualKeyboardBuilder.java | 23 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/ |
D | RecapitalizeStatus.java | 19 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()
|
D | WordInputEventForPersonalization.java | 23 import com.android.inputmethod.latin.common.StringUtils; 49 mTargetWord = StringUtils.toCodePointArray(targetWord); in WordInputEventForPersonalization() 65 if (StringUtils.isEmptyStringOrWhiteSpaces(tempWord)) { in createInputEventFrom()
|
D | BinaryDictionaryUtils.java | 21 import com.android.inputmethod.latin.common.StringUtils; 111 return calcNormalizedScoreNative(StringUtils.toCodePointArray(before), in calcNormalizedScore() 112 StringUtils.toCodePointArray(after), score); in calcNormalizedScore()
|
D | AdditionalSubtypeUtils.java | 34 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/ |
D | KeySpecParser.java | 23 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()
|
D | MoreKeySpec.java | 26 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);
|
D | CodesArrayParser.java | 20 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/ |
D | Key.java | 41 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/ |
D | WordProperty.java | 24 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/ |
D | PsipData.java | 22 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/ |
D | WordComposerTests.java | 28 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/ |
D | StringUtils.java | 20 public final class StringUtils { class 22 private StringUtils() {} in StringUtils() method in StringUtils
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | ComposedData.java | 51 - StringUtils.getTrailingSingleQuotesCount(mTypedWord); in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount() 63 return StringUtils.copyCodePointsAndReturnCodePointCount(destination, mTypedWord, 0, in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
|
D | LocaleUtils.java | 109 if (StringUtils.isEmpty(referenceLocale)) { in getMatchLevel() 110 return StringUtils.isEmpty(testedLocale) ? LOCALE_FULL_MATCH : LOCALE_ANY_MATCH; in getMatchLevel()
|