/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | DashboardUtils.kt | 29 import com.android.permissioncontroller.permission.utils.StringUtils 105 StringUtils.getIcuPluralsString( in getTimeDiffStr() 111 StringUtils.getIcuPluralsString( in getTimeDiffStr() 117 StringUtils.getIcuPluralsString(context, R.string.hours, timeDiffAndUnit.first.toInt()) in getTimeDiffStr() 119 StringUtils.getIcuPluralsString(context, R.string.days, timeDiffAndUnit.first.toInt()) in getTimeDiffStr() 132 StringUtils.getIcuPluralsString( in getDurationUsedStr() 138 StringUtils.getIcuPluralsString( in getDurationUsedStr() 144 StringUtils.getIcuPluralsString( in getDurationUsedStr() 150 StringUtils.getIcuPluralsString( in getDurationUsedStr()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/ |
D | StringUtilsTest.kt | 21 import com.android.permissioncontroller.permission.utils.StringUtils 33 StringUtils.getIcuPluralsString( in getIcuPluralsString_one_noArguments() 45 StringUtils.getIcuPluralsString( in getIcuPluralsString_other_noArguments() 57 StringUtils.getIcuPluralsString( in getIcuPluralsString_one_additionalArguments() 70 StringUtils.getIcuPluralsString( in getIcuPluralsString_other_additionalArguments()
|
/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/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/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; 96 .setTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 97 .setSeasonNumber(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 98 .setSeasonTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 99 .setEpisodeNumber(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 100 .setEpisodeTitle(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 105 .setDescription(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 106 .setLongDescription(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 109 .setAudioLanguage(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() 113 .setPosterArtUri(StringUtils.nullToEmpty(cursor.getString(index++))) in fromCursor() [all …]
|
/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()
|
/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()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/ |
D | PermissionUsageControlPreferenceUtils.kt | 34 import com.android.permissioncontroller.permission.utils.StringUtils 61 StringUtils.getIcuPluralsString( in initPreference() 70 StringUtils.getIcuPluralsString( in initPreference() 76 StringUtils.getIcuPluralsString( in initPreference()
|
/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);
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | MimeUtils.java | 108 return StringUtils.startsWithIgnoreCase(mimeType, "audio/"); in isAudioMimeType() 113 return StringUtils.startsWithIgnoreCase(mimeType, "video/"); in isVideoMimeType() 128 return StringUtils.startsWithIgnoreCase(mimeType, "image/"); in isImageMimeType() 184 if (StringUtils.startsWithIgnoreCase(mimeType, "text/")) return true; in isDocumentMimeType()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | StringUtilsTest.java | 19 import static com.android.providers.media.util.StringUtils.equalIgnoreCase; 20 import static com.android.providers.media.util.StringUtils.startsWithIgnoreCase; 21 import static com.android.providers.media.util.StringUtils.verifySupportedUncachedRelativePaths;
|
/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/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/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/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/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()
|
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/ |
D | ContactsProvider.java | 78 String phoneticKey = StringUtils.soundex(p.first.toLowerCase()); in indexContacts() 108 String phoneticKey = StringUtils.soundex(normalizedInput); in getContact() 130 int newDistance = StringUtils.getMinDistance(normalizedInput, c.getDisplayName(), in getContact()
|
/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()
|