Home
last modified time | relevance | path

Searched refs:searchResults (Results 1 – 15 of 15) sorted by relevance

/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSearchResultPageInternalTest.java41 List<SearchResult> searchResults = searchResultPage.getResults(); in testSearchResultPage() local
42 assertThat(searchResults).hasSize(2); in testSearchResultPage()
43 assertThat(searchResults.get(0).getPackageName()).isEqualTo("package1"); in testSearchResultPage()
44 assertThat(searchResults.get(0).getDatabaseName()).isEqualTo("database1"); in testSearchResultPage()
45 assertThat(searchResults.get(0).getGenericDocument()).isEqualTo(document); in testSearchResultPage()
46 assertThat(searchResults.get(1).getPackageName()).isEqualTo("package2"); in testSearchResultPage()
47 assertThat(searchResults.get(1).getDatabaseName()).isEqualTo("database2"); in testSearchResultPage()
48 assertThat(searchResults.get(1).getGenericDocument()).isEqualTo(document); in testSearchResultPage()
DAppSearchSessionInternalTestBase.java173 SearchResultsShim searchResults = in testQuery_typeFilterWithPolymorphism() local
179 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
184 searchResults = in testQuery_typeFilterWithPolymorphism()
191 documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
196 searchResults = in testQuery_typeFilterWithPolymorphism()
203 documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
285 SearchResultsShim searchResults = in testQuery_projectionWithPolymorphism() local
293 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_projectionWithPolymorphism()
391 SearchResultsShim searchResults = in testQuery_projectionWithPolymorphismAndSchemaFilter() local
400 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_projectionWithPolymorphismAndSchemaFilter()
[all …]
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionInternalTest.java125 SearchResultsShim searchResults = in testQuery_typeFilterWithPolymorphism() local
131 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
136 searchResults = in testQuery_typeFilterWithPolymorphism()
143 documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
148 searchResults = in testQuery_typeFilterWithPolymorphism()
155 documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
239 SearchResultsShim searchResults = in testQuery_projectionWithPolymorphism() local
247 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_projectionWithPolymorphism()
346 SearchResultsShim searchResults = in testQuery_indexBasedOnParentTypePolymorphism() local
352 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_indexBasedOnParentTypePolymorphism()
[all …]
DAppSearchSessionUnitTest.java100 SearchResults searchResults = mSearchSession.search("", searchSpec); in testGetEmptyNextPage() local
104 searchResults.getNextPage(mExecutor, getNextPageFuture::complete); in testGetEmptyNextPage()
111 searchResults.getNextPage(mExecutor, getNextPageFuture::complete); in testGetEmptyNextPage()
158 SearchResults searchResults = mSearchSession.search("", searchSpec); in testGetEmptyNextPage_multiPages() local
164 searchResults.getNextPage(mExecutor, getNextPageFuture::complete); in testGetEmptyNextPage_multiPages()
172 searchResults.getNextPage(mExecutor, getNextPageFuture::complete); in testGetEmptyNextPage_multiPages()
181 searchResults.getNextPage(mExecutor, getNextPageFuture::complete); in testGetEmptyNextPage_multiPages()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DAppSearchHelperTest.java364 SearchResultsShim searchResults = mDb.search("新中野", spec); in testPersonSchema_indexFirstMiddleAndLastNames() local
365 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testPersonSchema_indexFirstMiddleAndLastNames()
369 searchResults = mDb.search("新", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
370 documents = convertSearchResultsToDocuments(searchResults); in testPersonSchema_indexFirstMiddleAndLastNames()
374 searchResults = mDb.search("中", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
375 documents = convertSearchResultsToDocuments(searchResults); in testPersonSchema_indexFirstMiddleAndLastNames()
379 searchResults = mDb.search("野", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
380 documents = convertSearchResultsToDocuments(searchResults); in testPersonSchema_indexFirstMiddleAndLastNames()
409 SearchResultsShim searchResults = in testPersonSchema_indexFullNameOnly() local
415 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testPersonSchema_indexFullNameOnly()
[all …]
DEnterpriseContactsTest.java319 SearchResultsShim searchResults = mEnterpriseSession.search("", spec); in testSearchEnterpriseContacts() local
320 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts()
336 searchResults = mEnterpriseSession.search("affiliation OR note OR address", spec); in testSearchEnterpriseContacts()
337 documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts()
354 SearchResultsShim searchResults = mEnterpriseSession.search("", spec); in testSearchEnterpriseContacts_withProjection() local
355 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts_withProjection()
369 searchResults = mEnterpriseSession.search("affiliation OR note OR address", spec); in testSearchEnterpriseContacts_withProjection()
370 documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts_withProjection()
385 SearchResultsShim searchResults = mEnterpriseSession.search("Sam AND nickname", spec); in testSearchEnterpriseContacts_withFilter() local
386 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts_withFilter()
[all …]
DTestUtils.java168 @NonNull SearchResults searchResults, in getNextPageAsync() argument
170 Objects.requireNonNull(searchResults); in getNextPageAsync()
174 searchResults.getNextPage(executor, result -> { in getNextPageAsync()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DSyncAppSearchImplTest.java121 SyncSearchResults searchResults = globalSession.search("", searchSpec); in testSynchronousMethods() local
125 List<SearchResult> results = searchResults.getNextPage(); in testSynchronousMethods()
131 results = searchResults.getNextPage(); in testSynchronousMethods()
138 results = searchResults.getNextPage(); in testSynchronousMethods()
148 searchResults = globalSession.search("", searchSpec); in testSynchronousMethods()
149 results = searchResults.getNextPage(); in testSynchronousMethods()
DAppsIndexerRealDocumentsTest.java95 SyncSearchResults searchResults = globalSearchSession.search("", searchSpec); in testRealDocuments_check() local
97 List<SearchResult> results = searchResults.getNextPage(); in testRealDocuments_check()
108 results = searchResults.getNextPage(); in testRealDocuments_check()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchResultAggregator.java93 final List<SearchResult> searchResults = new ArrayList<>(); in mergeSearchResults() local
95 searchResults.addAll(taskResults.remove(DatabaseResultTask.QUERY_WORKER_ID)); in mergeSearchResults()
103 searchResults.add(heap.poll()); in mergeSearchResults()
105 return searchResults; in mergeSearchResults()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformer.java132 private static boolean shouldTransformSearchResults(@NonNull List<SearchResult> searchResults) { in shouldTransformSearchResults() argument
133 for (int i = 0; i < searchResults.size(); i++) { in shouldTransformSearchResults()
134 if (shouldTransformSearchResult(searchResults.get(i))) { in shouldTransformSearchResults()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncSearchResultsImpl.java30 public SyncSearchResultsImpl(SearchResults searchResults, @NonNull Executor executor) { in SyncSearchResultsImpl() argument
32 mSearchResults = Objects.requireNonNull(searchResults); in SyncSearchResultsImpl()
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java249 List<SearchResult> searchResults = new ArrayList<>(); in searchChannels() local
276 searchResults.add(result.build()); in searchChannels()
284 return searchResults; in searchChannels()
391 List<SearchResult> searchResults = new ArrayList<>(); in searchPrograms() local
454 searchResults.add(result.build()); in searchPrograms()
468 + searchResults.size() in searchPrograms()
474 return searchResults; in searchPrograms()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java73 Class<T> cls, SearchResults searchResults, Executor executor) { in iterateSearchResults() argument
75 searchResults.getNextPageAsync(), in iterateSearchResults()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListAdapter.java179 public void setWidgetsOnSearch(List<WidgetsListBaseEntry> searchResults) { in setWidgetsOnSearch() argument
182 setWidgets(searchResults); in setWidgetsOnSearch()