Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DQueryBoldingUtil.java79 int numBolded = query.length(); in getNameWithQueryBolded() local
82 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() argument
156 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()