Home
last modified time | relevance | path

Searched refs:searchResult (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSearchResultInternalTest.java28 SearchResult searchResult = in testSearchResultBuilderCopyConstructor() local
44 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() local
77 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 …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformer.java123 private static boolean shouldTransformSearchResult(@NonNull SearchResult searchResult) { in shouldTransformSearchResult() argument
125 searchResult.getPackageName(), in shouldTransformSearchResult()
126 searchResult.getDatabaseName(), in shouldTransformSearchResult()
127 searchResult.getGenericDocument()) in shouldTransformSearchResult()
128 || shouldTransformSearchResults(searchResult.getJoinedResults()); in shouldTransformSearchResult()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSearchResult.java261 public Builder(@NonNull SearchResult searchResult) { in Builder() argument
262 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()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchResult.java104 public int compareTo(SearchResult searchResult) { in compareTo() argument
105 if (searchResult == null) { in compareTo()
108 return this.rank - searchResult.rank; in compareTo()
DSearchFeatureProvider.java105 void searchResultClicked(Context context, String query, SearchResult searchResult); in searchResultClicked() argument
DSearchFeatureProviderImpl.java111 public void searchResultClicked(Context context, String query, SearchResult searchResult) { in searchResultClicked() argument
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchDaoTest.java138 SearchResult searchResult = in testIterateSearchResults() local
140 when(mMockPage.get(0)).thenReturn(searchResult); in testIterateSearchResults()
208 SearchResult searchResult = in testReadConsentData() local
210 when(mMockPage.get(0)).thenReturn(searchResult); in testReadConsentData()
281 SearchResult searchResult = in testReadAppSearchData() local
283 when(mMockPage.get(0)).thenReturn(searchResult); in testReadAppSearchData()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformerTest.java100 SearchResult searchResult = new SearchResult.Builder("android", "contacts") in testTransformSearchResult() local
108 EnterpriseSearchResultPageTransformer.transformSearchResult(searchResult); in testTransformSearchResult()
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/
DCarSearchFeatureProviderImpl.java111 public void searchResultClicked(Context context, String query, SearchResult searchResult) { in searchResultClicked() argument