Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/format/
DTextHighlighterTest.java33 private TextHighlighter mTextHighlighter; field in TextHighlighterTest
38 mTextHighlighter = new TextHighlighter(Typeface.BOLD); in setUp()
42 CharSequence seq = mTextHighlighter.applyPrefixHighlight("", ""); in testApply_EmptyPrefix()
45 seq = mTextHighlighter.applyPrefixHighlight("test", ""); in testApply_EmptyPrefix()
52 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix()
55 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix()
58 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix()
61 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix()
66 final CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", "TA"); in testSetText_NotMatchingPrefix()
71 final CharSequence seq = mTextHighlighter.applyPrefixHighlight( in testSetText_FirstMatch()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java256 private final TextHighlighter mTextHighlighter; field in ContactListItemView
263 mTextHighlighter = new TextHighlighter(Typeface.BOLD); in ContactListItemView()
343 mTextHighlighter = new TextHighlighter(Typeface.BOLD); in ContactListItemView()
1285 mTextHighlighter.applyMaskingHighlight(textToSet, highlightSequence.start, in setPhoneNumber()
1395 mTextHighlighter.setPrefixText(getSnippetView(), text, mHighlightedPrefix); in setSnippet()
1520 name = mTextHighlighter.applyPrefixHighlight(name, mHighlightedPrefix); in setDisplayName()
1524 mTextHighlighter.applyMaskingHighlight(spannableName, highlightSequence.start, in setDisplayName()