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.java100 int tokenCount = mSplitter.tokenize(mNames, name); in insertNameLookup() local
101 if (tokenCount == 0) { in insertNameLookup()
105 for (int i = 0; i < tokenCount; i++) { in insertNameLookup()
109 boolean tooManyTokens = tokenCount > MAX_NAME_TOKENS; in insertNameLookup()
111 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true); in insertNameLookup()
114 Arrays.sort(mNames, 0, tokenCount, new Comparator<String>() { in insertNameLookup()
124 for (int i = MAX_NAME_TOKENS; i < tokenCount; i++) { in insertNameLookup()
130 tokenCount = MAX_NAME_TOKENS; in insertNameLookup()
134 for (int i = 0; i < tokenCount; i++) { in insertNameLookup()
138 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true); in insertNameLookup()
[all …]
DContactLocaleUtils.java95 final int tokenCount = tokens.size(); in getNameLookupKeys() local
102 for (int i = tokenCount - 1; i >= 0; i--) { in getNameLookupKeys()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java105 int tokenCount = 0; in tokenize() local
116 tokens[tokenCount++] = new Token(chars, start, end); in tokenize()
120 Token[] ret = new Token[tokenCount]; in tokenize()
121 System.arraycopy(tokens, 0, ret, 0, tokenCount); in tokenize()