Searched refs:applyPrefixHighlight (Results 1 – 3 of 3) sorted by relevance
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/ |
D | TextHighlighterTest.java | 45 CharSequence seq = mTextHighlighter.applyPrefixHighlight("", ""); in testApply_EmptyPrefix() 48 seq = mTextHighlighter.applyPrefixHighlight("test", ""); in testApply_EmptyPrefix() 55 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix() 58 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix() 61 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix() 64 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix() 69 final CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", "TA"); in testSetText_NotMatchingPrefix() 74 final CharSequence seq = mTextHighlighter.applyPrefixHighlight( in testSetText_FirstMatch() 81 CharSequence seq = mTextHighlighter.applyPrefixHighlight("atest", prefix); in testSetText_NoMatchingMiddleOfWord() 84 seq = mTextHighlighter.applyPrefixHighlight("atest otest", prefix); in testSetText_NoMatchingMiddleOfWord() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/ |
D | TextHighlighter.java | 52 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText() 76 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() method in TextHighlighter
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListItemView.java | 1400 name = mTextHighlighter.applyPrefixHighlight(name, mHighlightedPrefix); in setDisplayName()
|