Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/format/
DTextHighlighterTest.java43 CharSequence seq = mTextHighlighter.applyPrefixHighlight("", ""); in testApply_EmptyPrefix()
46 seq = mTextHighlighter.applyPrefixHighlight("test", ""); in testApply_EmptyPrefix()
53 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix()
56 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix()
59 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix()
62 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix()
67 final CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", "TA"); in testSetText_NotMatchingPrefix()
72 final CharSequence seq = mTextHighlighter.applyPrefixHighlight( in testSetText_FirstMatch()
79 CharSequence seq = mTextHighlighter.applyPrefixHighlight("atest", prefix); in testSetText_NoMatchingMiddleOfWord()
82 seq = mTextHighlighter.applyPrefixHighlight("atest otest", prefix); in testSetText_NoMatchingMiddleOfWord()
[all …]
/packages/apps/Contacts/src/com/android/contacts/format/
DTextHighlighter.java48 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText()
72 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() method in TextHighlighter
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1520 name = mTextHighlighter.applyPrefixHighlight(name, mHighlightedPrefix); in setDisplayName()