Searched refs:searchResult (Results 1 – 9 of 9) sorted by relevance
28 SearchResult searchResult = in testSearchResultBuilderCopyConstructor() local44 SearchResult searchResultCopy = new SearchResult.Builder(searchResult).build(); in testSearchResultBuilderCopyConstructor()46 .isEqualTo(searchResult.getGenericDocument()); in testSearchResultBuilderCopyConstructor()47 assertThat(searchResultCopy.getRankingSignal()).isEqualTo(searchResult.getRankingSignal()); in testSearchResultBuilderCopyConstructor()51 .isEqualTo(searchResult.getJoinedResults().size()); in testSearchResultBuilderCopyConstructor()57 .isEqualTo(searchResult.getMatchInfos().size()); in testSearchResultBuilderCopyConstructor()70 SearchResult searchResult = in testSearchResultBuilderCopyConstructor_informationalRankingSignal() local77 SearchResult searchResultCopy = new SearchResult.Builder(searchResult).build(); in testSearchResultBuilderCopyConstructor_informationalRankingSignal()78 assertThat(searchResultCopy.getRankingSignal()).isEqualTo(searchResult.getRankingSignal()); in testSearchResultBuilderCopyConstructor_informationalRankingSignal()80 .isEqualTo(searchResult.getInformationalRankingSignals()); in testSearchResultBuilderCopyConstructor_informationalRankingSignal()[all …]
123 private static boolean shouldTransformSearchResult(@NonNull SearchResult searchResult) { in shouldTransformSearchResult() argument125 searchResult.getPackageName(), in shouldTransformSearchResult()126 searchResult.getDatabaseName(), in shouldTransformSearchResult()127 searchResult.getGenericDocument()) in shouldTransformSearchResult()128 || shouldTransformSearchResults(searchResult.getJoinedResults()); in shouldTransformSearchResult()
261 public Builder(@NonNull SearchResult searchResult) { in Builder() argument262 Objects.requireNonNull(searchResult); in Builder()263 mPackageName = searchResult.getPackageName(); in Builder()264 mDatabaseName = searchResult.getDatabaseName(); in Builder()265 mGenericDocument = searchResult.getGenericDocument(); in Builder()266 mRankingSignal = searchResult.getRankingSignal(); in Builder()268 new ArrayList<>(searchResult.getInformationalRankingSignals()); in Builder()269 List<MatchInfo> matchInfos = searchResult.getMatchInfos(); in Builder()273 List<SearchResult> joinedResults = searchResult.getJoinedResults(); in Builder()
104 public int compareTo(SearchResult searchResult) { in compareTo() argument105 if (searchResult == null) { in compareTo()108 return this.rank - searchResult.rank; in compareTo()
105 void searchResultClicked(Context context, String query, SearchResult searchResult); in searchResultClicked() argument
111 public void searchResultClicked(Context context, String query, SearchResult searchResult) { in searchResultClicked() argument
138 SearchResult searchResult = in testIterateSearchResults() local140 when(mMockPage.get(0)).thenReturn(searchResult); in testIterateSearchResults()208 SearchResult searchResult = in testReadConsentData() local210 when(mMockPage.get(0)).thenReturn(searchResult); in testReadConsentData()281 SearchResult searchResult = in testReadAppSearchData() local283 when(mMockPage.get(0)).thenReturn(searchResult); in testReadAppSearchData()
100 SearchResult searchResult = new SearchResult.Builder("android", "contacts") in testTransformSearchResult() local108 EnterpriseSearchResultPageTransformer.transformSearchResult(searchResult); in testTransformSearchResult()