Home
last modified time | relevance | path

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

/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformer.java41 @NonNull SearchResultPage searchResultPage) { in transformSearchResultPage()
42 Objects.requireNonNull(searchResultPage); in transformSearchResultPage()
43 if (!shouldTransformSearchResultPage(searchResultPage)) { in transformSearchResultPage()
44 return searchResultPage; in transformSearchResultPage()
46 List<SearchResult> results = searchResultPage.getResults(); in transformSearchResultPage()
51 return new SearchResultPage(searchResultPage.getNextPageToken(), transformedResults); in transformSearchResultPage()
112 @NonNull SearchResultPage searchResultPage) { in shouldTransformSearchResultPage()
113 List<SearchResult> results = searchResultPage.getResults(); in shouldTransformSearchResultPage()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSnippetTest.java104 SearchResultPage searchResultPage = in testSingleStringSnippet() local
110 assertThat(searchResultPage.getResults()).hasSize(1); in testSingleStringSnippet()
111 SearchResult.MatchInfo match = searchResultPage.getResults().get(0).getMatchInfos().get(0); in testSingleStringSnippet()
153 SearchResultPage searchResultPage = in testNoSnippets() local
159 assertThat(searchResultPage.getResults()).hasSize(1); in testNoSnippets()
160 assertThat(searchResultPage.getResults().get(0).getMatchInfos()).isEmpty(); in testNoSnippets()
222 SearchResultPage searchResultPage = in testMultipleStringSnippet() local
228 assertThat(searchResultPage.getResults()).hasSize(1); in testMultipleStringSnippet()
229 SearchResult.MatchInfo match1 = searchResultPage.getResults().get(0).getMatchInfos().get(0); in testMultipleStringSnippet()
242 SearchResult.MatchInfo match2 = searchResultPage.getResults().get(0).getMatchInfos().get(1); in testMultipleStringSnippet()
[all …]
DSearchResultToProtoConverterTest.java91 SearchResultPage searchResultPage = in testToSearchResultProto() local
94 assertThat(searchResultPage.getResults()).hasSize(1); in testToSearchResultProto()
95 SearchResult result = searchResultPage.getResults().get(0); in testToSearchResultProto()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java672 SearchResultPage searchResultPage = in testQueryEmptyDatabase() local
675 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryEmptyDatabase()
725 SearchResultPage searchResultPage = in testQueryWithMultiplePackages_noPackageFilters() local
727 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryWithMultiplePackages_noPackageFilters()
739 searchResultPage = in testQueryWithMultiplePackages_noPackageFilters()
741 assertThat(searchResultPage.getResults()).hasSize(1); in testQueryWithMultiplePackages_noPackageFilters()
742 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(document); in testQueryWithMultiplePackages_noPackageFilters()
796 SearchResultPage searchResultPage = in testQueryWithMultiplePackages_withPackageFilters() local
798 assertThat(searchResultPage.getResults()).isEmpty(); in testQueryWithMultiplePackages_withPackageFilters()
815 searchResultPage = in testQueryWithMultiplePackages_withPackageFilters()
[all …]
DAppSearchLoggerTest.java708 SearchResultPage searchResultPage = in testLoggingStats_search_success() local
712 assertThat(searchResultPage.getResults()).hasSize(2); in testLoggingStats_search_success()
714 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(document2); in testLoggingStats_search_success()
715 assertThat(searchResultPage.getResults().get(1).getGenericDocument()).isEqualTo(document1); in testLoggingStats_search_success()
911 SearchResultPage searchResultPage = in testLoggingStats_search_join() local
915 assertThat(searchResultPage.getResults()).hasSize(2); in testLoggingStats_search_join()
916 assertThat(searchResultPage.getResults().get(0).getGenericDocument()).isEqualTo(entity1); in testLoggingStats_search_join()
917 assertThat(searchResultPage.getResults().get(1).getGenericDocument()).isEqualTo(entity2); in testLoggingStats_search_join()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformerTest.java60 SearchResultPage searchResultPage = new SearchResultPage(/*nextPageToken=*/ 0, in testTransformSearchResultPage() local
65 EnterpriseSearchResultPageTransformer.transformSearchResultPage(searchResultPage); in testTransformSearchResultPage()
123 SearchResultPage searchResultPage = new SearchResultPage(); in testTransformSearchResultPage_emptyPageSucceeds() local
125 searchResultPage)).isEqualTo(searchResultPage); in testTransformSearchResultPage_emptyPageSucceeds()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSearchResultPageInternalTest.java39 SearchResultPage searchResultPage = new SearchResultPage(/* nextPageToken= */ 123, results); in testSearchResultPage() local
40 assertThat(searchResultPage.getNextPageToken()).isEqualTo(123); in testSearchResultPage()
41 List<SearchResult> searchResults = searchResultPage.getResults(); in testSearchResultPage()
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/
DAppSearchResultParcel.java150 @Param(id = 7) @Nullable SearchResultPage searchResultPage, in AppSearchResultParcel()
162 mSearchResultPage = searchResultPage; in AppSearchResultParcel()
281 SearchResultPage searchResultPage) { in fromSearchResultPage() argument
283 .setSearchResultPage(searchResultPage) in fromSearchResultPage()
421 Builder<ValueType> setSearchResultPage(SearchResultPage searchResultPage) { in setSearchResultPage() argument
422 mSearchResultPage = searchResultPage; in setSearchResultPage()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DSearchResults.java209 SearchResultPage searchResultPage =
211 mNextPageToken = searchResultPage.getNextPageToken();
212 callback.accept(AppSearchResult.newSuccessfulResult(searchResultPage.getResults()));
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java1043 SearchResultPage searchResultPage = instance.getAppSearchImpl().query( in search()
1052 AppSearchResultParcel.fromSearchResultPage(searchResultPage)); in search()
1131 SearchResultPage searchResultPage = instance.getAppSearchImpl().globalQuery( in globalSearch()
1138 searchResultPage = in globalSearch()
1140 searchResultPage); in globalSearch()
1145 AppSearchResultParcel.fromSearchResultPage(searchResultPage)); in globalSearch()
1232 SearchResultPage searchResultPage = in getNextPage()
1236 searchResultPage = in getNextPage()
1238 searchResultPage); in getNextPage()
1243 AppSearchResultParcel.fromSearchResultPage(searchResultPage)); in getNextPage()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java1414 SearchResultPage searchResultPage = in query() local
1416 addNextPageToken(packageName, searchResultPage.getNextPageToken()); in query()
1417 return searchResultPage; in query()
1525 SearchResultPage searchResultPage = in globalQuery() local
1528 callerAccess.getCallingPackageName(), searchResultPage.getNextPageToken()); in globalQuery()
1529 return searchResultPage; in globalQuery()
1565 SearchResultPage searchResultPage = in doQueryLocked() local
1572 return searchResultPage; in doQueryLocked()
1771 SearchResultPage searchResultPage = in getNextPage() local
1780 return searchResultPage; in getNextPage()