Home
last modified time | relevance | path

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

/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DSearchQueryUtils.java59 final char[] queryTokens = query.toLowerCase().toCharArray(); in getWordDifference() local
62 if (queryTokens.length > resultLength) { in getWordDifference()
72 while ((i + j < resultLength) && (queryTokens[j] == resultTokens[i + j])) { in getWordDifference()
74 if (++j >= queryTokens.length) { in getWordDifference()
77 return resultLength - queryTokens.length; in getWordDifference()
84 if (queryTokens.length > resultLength - i) { in getWordDifference()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.kt37 val queryTokens: Array<Token?> = tokenize(mQuery) in formatSuggestion() constant
39 val matches = findMatches(queryTokens, suggestionTokens) in formatSuggestion()
41 Log.d(TAG, "source = $queryTokens") in formatSuggestion()
52 sourceLen = queryTokens[thisMatch]!!.length in formatSuggestion()