/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 37 import com.android.tv.search.LocalSearchProvider.SearchResult; 81 public List<SearchResult> search(String query, int limit, int action) { in search() 83 List<SearchResult> results = new ArrayList<>(); in search() 169 private List<SearchResult> searchChannels(String query, Set<Long> channels, int limit) { in searchChannels() 172 List<SearchResult> results = new ArrayList<>(); in searchChannels() 216 private List<SearchResult> searchChannels( in searchChannels() 249 List<SearchResult> searchResults = new ArrayList<>(); in searchChannels() 264 SearchResult.Builder result = SearchResult.builder(); in searchChannels() 293 private SearchResult fillProgramInfo(SearchResult result) { in fillProgramInfo() 311 SearchResult.Builder builder = result.toBuilder(); in fillProgramInfo() [all …]
|
D | ProgramGuideSearchFragment.java | 74 LocalSearchProvider.SearchResult result = (LocalSearchProvider.SearchResult) o; 136 LocalSearchProvider.SearchResult result = (LocalSearchProvider.SearchResult) o; 199 private class SearchTask extends AsyncTask<Void, Void, List<LocalSearchProvider.SearchResult>> { 207 protected List<LocalSearchProvider.SearchResult> doInBackground(Void... params) { 213 protected void onPostExecute(List<LocalSearchProvider.SearchResult> results) {
|
D | DataManagerSearch.java | 35 import com.android.tv.search.LocalSearchProvider.SearchResult; 71 public List<SearchResult> search(final String query, final int limit, final int action) { in search() 72 Future<List<SearchResult>> future = in search() 88 private List<SearchResult> searchFromDataManagers(String query, int limit, int action) { in searchFromDataManagers() 90 List<SearchResult> results = new ArrayList<>(); in searchFromDataManagers() 234 List<SearchResult> results, Set<Long> channelsFound, Channel channel, Program program) { in addResult() 242 SearchResult.Builder result = SearchResult.builder(); in addResult()
|
D | LocalSearchProvider.java | 159 List<SearchResult> results = new ArrayList<>(); in query() 186 private Cursor createSuggestionsCursor(List<SearchResult> results) { in createSuggestionsCursor() 191 for (SearchResult result : results) { in createSuggestionsCursor() 245 public abstract static class SearchResult { class in LocalSearchProvider 289 abstract SearchResult build(); in build()
|
D | SearchInterface.java | 19 import com.android.tv.search.LocalSearchProvider.SearchResult; 38 List<SearchResult> search(String query, int limit, int action); in search()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
D | DatabaseResultTask.java | 33 import com.android.settings.intelligence.search.SearchResult; 125 protected List<? extends SearchResult> query() { in query() 138 final Set<SearchResult> resultSet = new HashSet<>(); in query() 157 List<SearchResult> resultList = new ArrayList<>(resultSet); in query() 172 private Set<SearchResult> firstWordQuery(String[] matchColumns, int baseRank) { in firstWordQuery() 188 private Set<SearchResult> secondaryWordQuery(String[] matchColumns, int baseRank) { in secondaryWordQuery() 204 private Set<SearchResult> anyWordQuery(String[] matchColumns, int baseRank) { in anyWordQuery() 219 private Set<SearchResult> query(String whereClause, String[] selection, int baseRank) { in query() 305 private List<SearchResult> getDynamicRankedResults(Set<SearchResult> unsortedSet, in getDynamicRankedResults() 307 final TreeSet<SearchResult> dbResultsSortedByScores = new TreeSet<>( in getDynamicRankedResults() [all …]
|
D | InputDeviceResultTask.java | 37 import com.android.settings.intelligence.search.SearchResult; 89 protected List<? extends SearchResult> query() { in query() 91 final List<SearchResult> results = new ArrayList<>(); in query() 101 private Set<SearchResult> buildPhysicalKeyboardSearchResults() { in buildPhysicalKeyboardSearchResults() 102 final Set<SearchResult> results = new HashSet<>(); in buildPhysicalKeyboardSearchResults() 113 results.add(new SearchResult.Builder() in buildPhysicalKeyboardSearchResults() 124 private Set<SearchResult> buildVirtualKeyboardSearchResults() { in buildVirtualKeyboardSearchResults() 125 final Set<SearchResult> results = new HashSet<>(); in buildVirtualKeyboardSearchResults() 144 results.add(new SearchResult.Builder() in buildVirtualKeyboardSearchResults()
|
D | CursorToSearchResultConverter.java | 20 import static com.android.settings.intelligence.search.SearchResult.TOP_RANK; 35 import com.android.settings.intelligence.search.SearchResult; 83 public Set<SearchResult> convertCursor(Cursor cursorResults, int baseRank, in convertCursor() 89 final Set<SearchResult> results = new HashSet<>(); in convertCursor() 92 SearchResult result = buildSingleSearchResultFromCursor(siteMapManager, in convertCursor() 122 private SearchResult buildSingleSearchResultFromCursor(SiteMapManager siteMapManager, in buildSingleSearchResultFromCursor() 144 final SearchResult.Builder builder = new SearchResult.Builder() in buildSingleSearchResultFromCursor()
|
D | SearchQueryTask.java | 23 import com.android.settings.intelligence.search.SearchResult; 30 public class SearchQueryTask extends FutureTask<List<? extends SearchResult>> { 43 public static abstract class QueryWorker implements Callable<List<? extends SearchResult>> { 56 public List<? extends SearchResult> call() throws Exception { in call() 69 protected abstract List<? extends SearchResult> query(); in query()
|
D | AccessibilityServiceResultTask.java | 32 import com.android.settings.intelligence.search.SearchResult; 66 protected List<? extends SearchResult> query() { in query() 67 final List<SearchResult> results = new ArrayList<>(); in query() 92 results.add(new SearchResult.Builder() in query()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
D | SearchResult.java | 29 public class SearchResult implements Comparable<SearchResult> { class 92 protected SearchResult(Builder builder) { in SearchResult() method in SearchResult 104 public int compareTo(SearchResult searchResult) { in compareTo() 116 if (!(that instanceof SearchResult)) { in equals() 119 return TextUtils.equals(dataKey, ((SearchResult) that).dataKey); in equals() 173 public SearchResult build() { in build() 183 return new SearchResult(this); in build()
|
D | SearchResultAggregator.java | 49 public synchronized List<? extends SearchResult> fetchResults(Context context, String query) { in fetchResults() 62 final Map<Integer, List<? extends SearchResult>> taskResults = new ArrayMap<>(); in fetchResults() 80 final List<? extends SearchResult> mergedResults = mergeSearchResults(taskResults); in fetchResults() 90 private List<? extends SearchResult> mergeSearchResults( in mergeSearchResults() 91 Map<Integer, List<? extends SearchResult>> taskResults) { in mergeSearchResults() 93 final List<SearchResult> searchResults = new ArrayList<>(); in mergeSearchResults() 98 final PriorityQueue<SearchResult> heap = new PriorityQueue<>(); in mergeSearchResults() 99 for (List<? extends SearchResult> taskResult : taskResults.values()) { in mergeSearchResults()
|
D | SearchFragment.java | 64 LoaderManager.LoaderCallbacks<List<? extends SearchResult>>, IndexingCallback { 247 public Loader<List<? extends SearchResult>> onCreateLoader(int id, Bundle args) { in onCreateLoader() 259 public void onLoadFinished(Loader<List<? extends SearchResult>> loader, in onLoadFinished() 260 List<? extends SearchResult> data) { in onLoadFinished() 265 public void onLoaderReset(Loader<List<? extends SearchResult>> loader) { in onLoaderReset() 287 public List<SearchResult> getSearchResults() { in getSearchResults() 291 public void onSearchResultClicked(SearchViewHolder resultViewHolder, SearchResult result) { in onSearchResultClicked() 359 private void logSearchResultClicked(SearchViewHolder resultViewHolder, SearchResult result) { in logSearchResultClicked()
|
D | SearchResultDiffCallback.java | 29 private List<? extends SearchResult> mOldList; 30 private List<? extends SearchResult> mNewList; 32 public SearchResultDiffCallback(List<? extends SearchResult> oldList, in SearchResultDiffCallback() 33 List<? extends SearchResult> newList) { in SearchResultDiffCallback()
|
D | SearchResultsAdapter.java | 36 private final List<SearchResult> mSearchResults; 94 public void displaySavedQuery(List<? extends SearchResult> data) { in displaySavedQuery() 105 public void postSearchResults(List<? extends SearchResult> newSearchResults) { in postSearchResults() 114 public List<SearchResult> getSearchResults() { in getSearchResults()
|
D | AppSearchResult.java | 22 public class AppSearchResult extends SearchResult { 33 public static class Builder extends SearchResult.Builder { 36 public SearchResult.Builder setAppInfo(ApplicationInfo info) { in setAppInfo()
|
D | SearchResultLoader.java | 13 public class SearchResultLoader extends AsyncLoader<List<? extends SearchResult>> { 23 public List<? extends SearchResult> loadInBackground() { in loadInBackground() 29 protected void onDiscardResult(List<? extends SearchResult> result) { in onDiscardResult()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/ |
D | SavedQueryLoader.java | 24 import com.android.settings.intelligence.search.SearchResult; 35 public class SavedQueryLoader extends AsyncLoader<List<? extends SearchResult>> { 49 protected void onDiscardResult(List<? extends SearchResult> result) { in onDiscardResult() 54 public List<? extends SearchResult> loadInBackground() { in loadInBackground() 68 private List<SearchResult> convertCursorToResult(Cursor cursor) { in convertCursorToResult() 69 final List<SearchResult> results = new ArrayList<>(); in convertCursorToResult() 73 results.add(new SearchResult.Builder() in convertCursorToResult()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/search/ |
D | FakeSearchInterface.java | 24 import com.android.tv.search.LocalSearchProvider.SearchResult; 34 public List<SearchResult> search(String query, int limit, int action) { in search() 36 List<SearchResult> results = new ArrayList<>(); in search() 45 public static SearchResult fromProgram(Program program) { in fromProgram() 46 SearchResult.Builder result = SearchResult.builder(); in fromProgram()
|
D | LocalSearchProviderTest.java | 37 import com.android.tv.search.LocalSearchProvider.SearchResult; 234 private List<SearchResult> fromCursor(Cursor cursor) { in fromCursor() 235 List<SearchResult> results = new ArrayList<>(); in fromCursor() 237 SearchResult.Builder result = SearchResult.builder(); in fromCursor()
|
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/ |
D | CarSearchFragment.java | 53 import com.android.settings.intelligence.search.SearchResult; 64 LoaderManager.LoaderCallbacks<List<? extends SearchResult>>, IndexingCallback { 205 public Loader<List<? extends SearchResult>> onCreateLoader(int id, Bundle args) { in onCreateLoader() 215 public void onLoadFinished(Loader<List<? extends SearchResult>> loader, in onLoadFinished() 216 List<? extends SearchResult> data) { in onLoadFinished() 220 for (SearchResult result : data) { in onLoadFinished() 251 private String getBreadcrumb(SearchResult result) { in getBreadcrumb() 265 protected void onSearchResultClicked(SearchResult result) { in onSearchResultClicked() 290 public void onLoaderReset(Loader<List<? extends SearchResult>> loader) { in onLoaderReset()
|
D | CarSearchResultsAdapter.java | 29 import com.android.settings.intelligence.search.SearchResult; 43 private final List<SearchResult> mSearchResults; 91 protected void postSearchResults(List<? extends SearchResult> newSearchResults) { in postSearchResults() 102 public void displaySavedQuery(List<? extends SearchResult> data) { in displaySavedQuery() 119 public List<SearchResult> getSearchResults() { in getSearchResults()
|
D | CarIntentSearchViewHolder.java | 25 import com.android.settings.intelligence.search.SearchResult; 37 public void onBind(CarSearchFragment fragment, SearchResult result) { in onBind() 51 private void bindBreadcrumbView(SearchResult result) { in bindBreadcrumbView()
|
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/car/ |
D | CarSavedQueryController.java | 35 import com.android.settings.intelligence.search.SearchResult; 98 List<SearchResult> results = (List<SearchResult>) data; in onLoadFinished() 101 for (SearchResult result : results) { in onLoadFinished()
|
D | CarSavedQueryViewHolder.java | 24 import com.android.settings.intelligence.search.SearchResult; 36 public void onBind(CarSearchFragment fragment, SearchResult result) { in onBind()
|