Searched refs:numBolded (Results 1 – 1 of 1) sorted by relevance
79 int numBolded = query.length(); in getNameWithQueryBolded() local82 for (int i = indexOfT9Match; i <= indexOfT9Match + numBolded && i < name.length(); i++) { in getNameWithQueryBolded()84 numBolded++; in getNameWithQueryBolded()87 return getBoldedString(name, indexOfT9Match, numBolded); in getNameWithQueryBolded()155 private static SpannableString getBoldedString(String s, int index, int numBolded) { in getBoldedString() argument156 if (numBolded + index > s.length()) { in getBoldedString()160 numBolded = s.length() - index; in getBoldedString()164 new StyleSpan(Typeface.BOLD), index, index + numBolded, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in getBoldedString()