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.java49 final char[] queryTokens = query.toLowerCase().toCharArray(); in getWordDifference() local
52 if (queryTokens.length > resultLength) { in getWordDifference()
62 while ((i + j < resultLength) && (queryTokens[j] == resultTokens[i + j])) { in getWordDifference()
64 if (++j >= queryTokens.length) { in getWordDifference()
67 return resultLength - queryTokens.length; in getWordDifference()
74 if (queryTokens.length > resultLength - i) { in getWordDifference()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java43 final Token[] queryTokens = tokenize(query); in formatSuggestion() local
45 final int[] matches = findMatches(queryTokens, suggestionTokens); in formatSuggestion()
47 Log.d(TAG, "source = " + queryTokens); in formatSuggestion()
59 sourceLen = queryTokens[thisMatch].length(); in formatSuggestion()