/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | StringUtilsTests.java | 23 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/ |
D | AdditionalSubtype.java | 52 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()
|
D | BinaryDictionary.java | 110 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()
|
D | StringUtils.java | 24 public class StringUtils { class 25 private StringUtils() { in StringUtils() method in StringUtils
|
D | Suggest.java | 396 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()
|
D | InputAttributes.java | 174 return StringUtils.containsInCsv(findingKey, editorInfo.privateImeOptions); in inPrivateImeOptions()
|
D | SubtypeLocale.java | 143 return StringUtils.toTitleCase(locale.getDisplayName(locale), locale); in getSubtypeLocaleDisplayName()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 25 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/ |
D | ImageUtils.java | 320 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()
|
D | FileUtils.java | 227 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()
|
D | StringUtils.java | 29 public class StringUtils { class 54 private StringUtils() { in StringUtils() method in StringUtils
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | PlayheadView.java | 20 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/ |
D | SpacebarTextTests.java | 26 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/ |
D | Key.java | 39 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()
|
D | MoreKeysKeyboard.java | 26 import com.android.inputmethod.latin.StringUtils; 315 if (label != null && StringUtils.codePointCount(label) > 1) { in getMaxKeyWidth()
|
D | LatinKeyboardView.java | 51 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()
|
D | KeyboardView.java | 43 import com.android.inputmethod.latin.StringUtils; 901 if (StringUtils.codePointCount(label) > 1) { in showKeyPreview()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerService.java | 40 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/ |
D | VideoEditorActivity.java | 73 import com.android.videoeditor.util.StringUtils; 1382 mTimeView.setText(StringUtils.getTimestampAsString(this, timeMs));
|
/packages/apps/VideoEditor/src/com/android/videoeditor/service/ |
D | ApiService.java | 78 import com.android.videoeditor.util.StringUtils; 270 return StringUtils.randomString(6); in generateId() 1354 final String requestId = StringUtils.randomString(8); in startCommand()
|