Home
last modified time | relevance | path

Searched refs:searchResultPage (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSnippetTest.java95 SearchResultPage searchResultPage = in testSingleStringSnippet() local
101 assertThat(searchResultPage.getResults()).hasSize(1); in testSingleStringSnippet()
102 SearchResult.MatchInfo match = searchResultPage.getResults().get(0).getMatchInfos().get(0); in testSingleStringSnippet()
140 SearchResultPage searchResultPage = in testNoSnippets() local
146 assertThat(searchResultPage.getResults()).hasSize(1); in testNoSnippets()
147 assertThat(searchResultPage.getResults().get(0).getMatchInfos()).isEmpty(); in testNoSnippets()
204 SearchResultPage searchResultPage = in testMultipleStringSnippet() local
210 assertThat(searchResultPage.getResults()).hasSize(1); in testMultipleStringSnippet()
211 SearchResult.MatchInfo match1 = searchResultPage.getResults().get(0).getMatchInfos().get(0); in testMultipleStringSnippet()
221 SearchResult.MatchInfo match2 = searchResultPage.getResults().get(0).getMatchInfos().get(1); in testMultipleStringSnippet()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java737 SearchResultPage searchResultPage = in testQueryEmptyDatabase() local
739 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryEmptyDatabase()
782 SearchResultPage searchResultPage = in testQueryWithMultiplePackages_noPackageFilters() local
784 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryWithMultiplePackages_noPackageFilters()
791 searchResultPage = in testQueryWithMultiplePackages_noPackageFilters()
794 assertThat(searchResultPage.getResults()).hasSize(1); in testQueryWithMultiplePackages_noPackageFilters()
795 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(document); in testQueryWithMultiplePackages_noPackageFilters()
842 SearchResultPage searchResultPage = in testQueryWithMultiplePackages_withPackageFilters() local
844 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryWithMultiplePackages_withPackageFilters()
856 searchResultPage = in testQueryWithMultiplePackages_withPackageFilters()
[all …]
DAppSearchLoggerTest.java619 SearchResultPage searchResultPage = in testLoggingStats_search_success() local
623 assertThat(searchResultPage.getResults()).hasSize(2); in testLoggingStats_search_success()
625 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(document2); in testLoggingStats_search_success()
626 assertThat(searchResultPage.getResults().get(1).getGenericDocument()).isEqualTo(document1); in testLoggingStats_search_success()
/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/
DSearchResults.java163 SearchResultPage searchResultPage =
165 mNextPageToken = searchResultPage.getNextPageToken();
167 searchResultPage.getResults()));
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java667 SearchResultPage searchResultPage = instance.getAppSearchImpl().query( in query() local
676 AppSearchResult.newSuccessfulResult(searchResultPage.getBundle())); in query()
736 SearchResultPage searchResultPage = instance.getAppSearchImpl().globalQuery( in globalQuery() local
747 AppSearchResult.newSuccessfulResult(searchResultPage.getBundle())); in globalQuery()
797 SearchResultPage searchResultPage = in getNextPage() local
801 AppSearchResult.newSuccessfulResult(searchResultPage.getBundle())); in getNextPage()
861 SearchResultPage searchResultPage = instance.getAppSearchImpl().query( in writeQueryResultsToFile() local
867 while (!searchResultPage.getResults().isEmpty()) { in writeQueryResultsToFile()
868 for (int i = 0; i < searchResultPage.getResults().size(); i++) { in writeQueryResultsToFile()
870 outputStream, searchResultPage.getResults().get(i) in writeQueryResultsToFile()
[all …]
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java862 SearchResultPage searchResultPage = in query() local
869 addNextPageToken(packageName, searchResultPage.getNextPageToken()); in query()
870 return searchResultPage; in query()
984 SearchResultPage searchResultPage = in globalQuery() local
991 addNextPageToken(callerPackageName, searchResultPage.getNextPageToken()); in globalQuery()
992 return searchResultPage; in globalQuery()