Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DStringUtilsTests.java23 assertFalse("empty array", StringUtils.containsInArray("key", new String[0])); in testContainsInArray()
24 assertFalse("not in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
27 assertFalse("not in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
31 assertTrue("in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
34 assertTrue("in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
40 assertFalse("null", StringUtils.containsInCsv("key", null)); in testContainsInCsv()
41 assertFalse("empty", StringUtils.containsInCsv("key", "")); in testContainsInCsv()
42 assertFalse("not in 1 element", StringUtils.containsInCsv("key", "key1")); in testContainsInCsv()
43 assertFalse("not in 2 elements", StringUtils.containsInCsv("key", "key1,key2")); in testContainsInCsv()
45 assertTrue("in 1 element", StringUtils.containsInCsv("key", "key")); in testContainsInCsv()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAdditionalSubtype.java52 layoutDisplayNameExtraValue = StringUtils.appendToCsvIfNotExists( in createAdditionalSubtype()
57 final String additionalSubtypeExtraValue = StringUtils.appendToCsvIfNotExists( in createAdditionalSubtype()
69 final String extraValue = StringUtils.removeFromCsvIfExists(layoutExtraValue, in getPrefSubtype()
70 StringUtils.removeFromCsvIfExists(IS_ADDITIONAL_SUBTYPE, subtype.getExtraValue())); in getPrefSubtype()
DBinaryDictionary.java110 int[] codePoints = StringUtils.toCodePointArray(previousWord.toString()); in getBigrams()
183 ? null : StringUtils.toCodePointArray(prevWordForBigrams.toString()); in getSuggestions()
210 int[] chars = StringUtils.toCodePointArray(word.toString()); in getFrequency()
218 int[] chars1 = StringUtils.toCodePointArray(word1.toString()); in isValidBigram()
219 int[] chars2 = StringUtils.toCodePointArray(word2.toString()); in isValidBigram()
DStringUtils.java24 public class StringUtils { class
25 private StringUtils() { in StringUtils() method in StringUtils
DSuggest.java396 if (StringUtils.hasUpperCase(prevWord)) { in getAllBigrams()
452 if (StringUtils.equalsIgnoreCase(mConsideredWord, word, offset, length)) { in addWord()
461 if (StringUtils.equalsIgnoreCase(currentHighestWord.mWord, word, offset, length) in addWord()
DInputAttributes.java174 return StringUtils.containsInCsv(findingKey, editorInfo.privateImeOptions); in inPrivateImeOptions()
DSubtypeLocale.java143 return StringUtils.toTitleCase(locale.getDisplayName(locale), locale); in getSubtypeLocaleDisplayName()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java25 import com.android.inputmethod.latin.StringUtils;
168 if (StringUtils.codePointCount(outputText) == 1) { in getOutputText()
183 return (StringUtils.codePointCount(label) == 1) ? null : label; in getOutputText()
198 if (StringUtils.codePointCount(outputText) == 1) { in getCode()
205 if (StringUtils.codePointCount(label) == 1) { in getCode()
408 if (StringUtils.codePointCount(text) == 1) { in parseCsvString()
489 return StringUtils.codePointCount(casedText) == 1 in toUpperCaseOfCodeForLocale()
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DImageUtils.java320 title = StringUtils.trimText(title, p, maxWidth); in drawCenterOverlay()
327 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawCenterOverlay()
362 title = StringUtils.trimText(title, p, maxWidth); in drawBottomOverlay()
369 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawBottomOverlay()
441 title = StringUtils.trimText(title, p, maxWidth); in drawOverlayPreview()
448 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawOverlayPreview()
DFileUtils.java227 final File file = new File(getProjectsRootDir(context), StringUtils.randomString(10)); in createNewProjectPath()
246 filename = "movie_" + StringUtils.randomStringOfNumbers(6) + ".mp4"; in createMovieName()
251 filename = "movie_" + StringUtils.randomStringOfNumbers(6) + ".3gp"; in createMovieName()
DStringUtils.java29 public class StringUtils { class
54 private StringUtils() { in StringUtils() method in StringUtils
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DPlayheadView.java20 import com.android.videoeditor.util.StringUtils;
140 final String timeText = StringUtils.getSimpleTimestampAsString(getContext(), 0); in onDraw()
176 final String timeText = StringUtils.getSimpleTimestampAsString(context, (long) startMs); in onDraw()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DSpacebarTextTests.java26 import com.android.inputmethod.latin.StringUtils;
80 final String languageCode = StringUtils.toTitleCase(locale.getLanguage(), locale); in testAllShortDisplayName()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java39 import com.android.inputmethod.latin.StringUtils;
309 if (StringUtils.codePointCount(mLabel) == 1) { in Key()
325 if (StringUtils.codePointCount(outputText) == 1) { in Key()
504 return StringUtils.codePointCount(mLabel) == 1 ? letterSize : labelSize; in selectTextSize()
DMoreKeysKeyboard.java26 import com.android.inputmethod.latin.StringUtils;
315 if (label != null && StringUtils.codePointCount(label) > 1) { in getMaxKeyWidth()
DLatinKeyboardView.java51 import com.android.inputmethod.latin.StringUtils;
1006 return StringUtils.toTitleCase(locale.getLanguage(), locale); in getShortDisplayName()
1015 return StringUtils.toTitleCase(locale.getDisplayLanguage(locale), locale); in getMiddleDisplayName()
DKeyboardView.java43 import com.android.inputmethod.latin.StringUtils;
901 if (StringUtils.codePointCount(label) > 1) { in showKeyPreview()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java40 import com.android.inputmethod.latin.StringUtils;
327 StringUtils.removeDupes(mSuggestions); in getResults()
337 mSuggestions.set(i, StringUtils.toTitleCase( in getResults()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DVideoEditorActivity.java73 import com.android.videoeditor.util.StringUtils;
1382 mTimeView.setText(StringUtils.getTimestampAsString(this, timeMs));
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DApiService.java78 import com.android.videoeditor.util.StringUtils;
270 return StringUtils.randomString(6); in generateId()
1354 final String requestId = StringUtils.randomString(8); in startCommand()