Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameLookupBuilder.java89 int tokenCount = mSplitter.tokenize(mNames, name); in insertNameLookup() local
90 if (tokenCount == 0) { in insertNameLookup()
94 for (int i = 0; i < tokenCount; i++) { in insertNameLookup()
98 boolean tooManyTokens = tokenCount > MAX_NAME_TOKENS; in insertNameLookup()
100 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true); in insertNameLookup()
103 Arrays.sort(mNames, 0, tokenCount, new Comparator<String>() { in insertNameLookup()
113 for (int i = MAX_NAME_TOKENS; i < tokenCount; i++) { in insertNameLookup()
119 tokenCount = MAX_NAME_TOKENS; in insertNameLookup()
122 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true); in insertNameLookup()
126 int tokenCount = mSplitter.tokenize(mNames, name); in appendToSearchIndex() local
[all …]
DContactLocaleUtils.java473 final int tokenCount = tokens.size(); in getPinyinNameLookupKeys() local
480 for (int i = tokenCount - 1; i >= 0; i--) { in getPinyinNameLookupKeys()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.kt97 var tokenCount = 0 in tokenize() variable
108 tokens[tokenCount++] = Token(chars, start, end) in tokenize()
112 val ret: Array<Token?> = arrayOfNulls<Token>(tokenCount) in tokenize()
113 System.arraycopy(tokens, 0, ret, 0, tokenCount) in tokenize()