/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/ |
D | SearchSpecInternalTest.java | 32 SearchSpec searchSpec = in testSearchSpecBuilder() 33 new SearchSpec.Builder() in testSearchSpecBuilder() 34 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testSearchSpecBuilder() 42 .setOrder(SearchSpec.ORDER_ASCENDING) in testSearchSpecBuilder() 43 .setRankingStrategy(SearchSpec.RANKING_STRATEGY_DOCUMENT_SCORE) in testSearchSpecBuilder() 49 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testSearchSpecBuilder() 57 assertThat(searchSpec.getOrder()).isEqualTo(SearchSpec.ORDER_ASCENDING); in testSearchSpecBuilder() 59 .isEqualTo(SearchSpec.RANKING_STRATEGY_DOCUMENT_SCORE); in testSearchSpecBuilder() 69 SearchSpec searchSpec = in testSearchSpecBuilderCopyConstructor() 70 new SearchSpec.Builder() in testSearchSpecBuilderCopyConstructor() [all …]
|
D | AppSearchSessionInternalTestBase.java | 176 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 177 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 187 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 189 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 199 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 201 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 288 new SearchSpec.Builder() in testQuery_projectionWithPolymorphism() 289 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_projectionWithPolymorphism() 394 new SearchSpec.Builder() in testQuery_projectionWithPolymorphismAndSchemaFilter() 395 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_projectionWithPolymorphismAndSchemaFilter() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/ |
D | EnterpriseSearchSpecTransformerTest.java | 20 import android.app.appsearch.SearchSpec; 38 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testTransformProjection_whenProjectionNotSuppliedByUser() 40 SearchSpec transformedSpec = EnterpriseSearchSpecTransformer.transformSearchSpec( in testTransformProjection_whenProjectionNotSuppliedByUser() 52 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformProjection_whenProjectionSuppliedByUser() 56 SearchSpec transformedSpec = EnterpriseSearchSpecTransformer.transformSearchSpec( in testTransformProjection_whenProjectionSuppliedByUser() 66 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes() 70 SearchSpec transformedSpec = EnterpriseSearchSpecTransformer.transformSearchSpec( in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes() 120 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testTransformPropertyFilters_whenFiltersNotSuppliedByUser() 122 SearchSpec transformedSpec = EnterpriseSearchSpecTransformer.transformSearchSpec( in testTransformPropertyFilters_whenFiltersNotSuppliedByUser() 134 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformPropertyFilters_whenFiltersSuppliedByUser() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverterTest.java | 19 import static android.app.appsearch.SearchSpec.GROUPING_TYPE_PER_PACKAGE; 20 import static android.app.appsearch.SearchSpec.ORDER_ASCENDING; 21 import static android.app.appsearch.SearchSpec.RANKING_STRATEGY_RELEVANCE_SCORE; 28 import android.app.appsearch.SearchSpec; 93 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testToSearchSpecProto() 140 SearchSpec nestedSearchSpec = in testToSearchSpecProtoWithJoinSpec() 141 new SearchSpec.Builder() in testToSearchSpecProtoWithJoinSpec() 142 .setRankingStrategy(SearchSpec.RANKING_STRATEGY_CREATION_TIMESTAMP) in testToSearchSpecProtoWithJoinSpec() 144 SearchSpec.Builder searchSpec = in testToSearchSpecProtoWithJoinSpec() 145 new SearchSpec.Builder() in testToSearchSpecProtoWithJoinSpec() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverter.java | 30 import android.app.appsearch.SearchSpec; 68 private final SearchSpec mSearchSpec; 123 @NonNull SearchSpec searchSpec, in SearchSpecToProtoConverter() 301 if (entry.getKey().equals(SearchSpec.SCHEMA_TYPE_WILDCARD)) { in toSearchSpecProto() 304 .setSchemaType(SearchSpec.SCHEMA_TYPE_WILDCARD) in toSearchSpecProto() 321 @SearchSpec.TermMatch int termMatchCode = mSearchSpec.getTermMatch(); in toSearchSpecProto() 328 @SearchSpec.EmbeddingSearchMetricType in toSearchSpecProto() 438 case SearchSpec.GROUPING_TYPE_PER_PACKAGE: in toResultSpecProto() 446 case SearchSpec.GROUPING_TYPE_PER_NAMESPACE: in toResultSpecProto() 454 case SearchSpec.GROUPING_TYPE_PER_SCHEMA: in toResultSpecProto() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/ |
D | EnterpriseSearchSpecTransformer.java | 22 import android.app.appsearch.SearchSpec; 47 public static SearchSpec transformSearchSpec(@NonNull SearchSpec searchSpec) { in transformSearchSpec() 55 SearchSpec.Builder builder = new SearchSpec.Builder(searchSpec); in transformSearchSpec() 69 private static boolean shouldTransformSearchSpecFilters(@NonNull SearchSpec searchSpec) { in shouldTransformSearchSpecFilters()
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/ |
D | AppSearchSessionInternalTest.java | 128 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 129 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 139 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 141 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 151 new SearchSpec.Builder() in testQuery_typeFilterWithPolymorphism() 153 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_typeFilterWithPolymorphism() 242 new SearchSpec.Builder() in testQuery_projectionWithPolymorphism() 243 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_projectionWithPolymorphism() 349 new SearchSpec.Builder() in testQuery_indexBasedOnParentTypePolymorphism() 350 .setTermMatch(SearchSpec.TERM_MATCH_EXACT_ONLY) in testQuery_indexBasedOnParentTypePolymorphism() [all …]
|
D | AppSearchSessionUnitTest.java | 19 import static android.app.appsearch.SearchSpec.TERM_MATCH_PREFIX; 96 SearchSpec searchSpec = new SearchSpec.Builder() in testGetEmptyNextPage() 154 SearchSpec searchSpec = new SearchSpec.Builder() in testGetEmptyNextPage_multiPages()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | JoinSpec.java | 126 private final SearchSpec mNestedSearchSpec; 193 @Param(id = 2) @NonNull SearchSpec nestedSearchSpec, in JoinSpec() 239 public SearchSpec getNestedSearchSpec() { in getNestedSearchSpec() 266 private static final SearchSpec EMPTY_SEARCH_SPEC = new SearchSpec.Builder().build(); 269 private SearchSpec mNestedSearchSpec = EMPTY_SEARCH_SPEC; 337 @NonNull String nestedQuery, @NonNull SearchSpec nestedSearchSpec) { in setNestedSearch()
|
D | SearchSpec.java | 56 public final class SearchSpec extends AbstractSafeParcelable { class 61 public static final Parcelable.Creator<SearchSpec> CREATOR = new SearchSpecCreator(); 339 SearchSpec( in SearchSpec() method in SearchSpec 776 public Builder(@NonNull SearchSpec searchSpec) { in Builder() 989 public SearchSpec.Builder setResultCountPerPage( in setResultCountPerPage() 1261 public SearchSpec.Builder setSnippetCount( in setSnippetCount() 1282 public SearchSpec.Builder setSnippetCountPerProperty( in setSnippetCountPerProperty() 1309 public SearchSpec.Builder setMaxSnippetSize( in setMaxSnippetSize() 1330 public SearchSpec.Builder addProjection( in addProjection() 1411 public SearchSpec.Builder addProjectionPaths( in addProjectionPaths() [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | EnterpriseContactsTest.java | 59 import android.app.appsearch.SearchSpec; 314 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts() 315 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testSearchEnterpriseContacts() 343 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts_withProjection() 344 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testSearchEnterpriseContacts_withProjection() 376 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts_withFilter() 377 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testSearchEnterpriseContacts_withFilter() 424 SearchSpec spec = new SearchSpec.Builder() in testEnterpriseContacts_canAccessWithOnlyContactsAccess() 425 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testEnterpriseContacts_canAccessWithOnlyContactsAccess() 448 SearchSpec spec = new SearchSpec.Builder() in testEnterpriseContacts_canNotAccessWithoutContactsAccess() [all …]
|
D | AppSearchHelperTest.java | 37 import android.app.appsearch.SearchSpec; 359 SearchSpec spec = new SearchSpec.Builder() in testPersonSchema_indexFirstMiddleAndLastNames() 360 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testPersonSchema_indexFirstMiddleAndLastNames() 412 new SearchSpec.Builder() in testPersonSchema_indexFullNameOnly() 413 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testPersonSchema_indexFullNameOnly() 418 SearchSpec spec = new SearchSpec.Builder() in testPersonSchema_indexFullNameOnly() 419 .setTermMatch(SearchSpec.TERM_MATCH_PREFIX) in testPersonSchema_indexFullNameOnly()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 44 import android.app.appsearch.SearchSpec; 565 new SearchSpec.Builder().addFilterSchemas("Type1").build(), in testReset() 632 new SearchSpec.Builder().addFilterSchemas("Type1").build(), in testReset() 661 new SearchSpec.Builder().addFilterSchemas("Type1").build(), in testReset() 670 SearchSpec searchSpec = in testQueryEmptyDatabase() 671 new SearchSpec.Builder().setTermMatch(TermMatchType.Code.PREFIX_VALUE).build(); in testQueryEmptyDatabase() 723 SearchSpec searchSpec = in testQueryWithMultiplePackages_noPackageFilters() 724 new SearchSpec.Builder().setTermMatch(TermMatchType.Code.PREFIX_VALUE).build(); in testQueryWithMultiplePackages_noPackageFilters() 791 SearchSpec searchSpec = in testQueryWithMultiplePackages_withPackageFilters() 792 new SearchSpec.Builder() in testQueryWithMultiplePackages_withPackageFilters() [all …]
|
D | AppSearchLoggerTest.java | 27 import android.app.appsearch.SearchSpec; 702 SearchSpec searchSpec = in testLoggingStats_search_success() 703 new SearchSpec.Builder() in testLoggingStats_search_success() 705 .setRankingStrategy(SearchSpec.RANKING_STRATEGY_CREATION_TIMESTAMP) in testLoggingStats_search_success() 733 .isEqualTo(SearchSpec.RANKING_STRATEGY_CREATION_TIMESTAMP); in testLoggingStats_search_success() 757 SearchSpec searchSpec = in testLoggingStats_search_failure() 758 new SearchSpec.Builder() in testLoggingStats_search_failure() 760 .setRankingStrategy(SearchSpec.RANKING_STRATEGY_CREATION_TIMESTAMP) in testLoggingStats_search_failure() 891 SearchSpec nestedSearchSpec = in testLoggingStats_search_join() 892 new SearchSpec.Builder() in testLoggingStats_search_join() [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/ |
D | GlobalSearchAidlRequest.java | 21 import android.app.appsearch.SearchSpec; 52 private final SearchSpec mSearchSpec; 80 @Param(id = 3) @NonNull SearchSpec searchSpec, in GlobalSearchAidlRequest() 103 public SearchSpec getSearchSpec() { in getSearchSpec()
|
D | RemoveByQueryAidlRequest.java | 21 import android.app.appsearch.SearchSpec; 55 private final SearchSpec mSearchSpec; 80 @Param(id = 4) @NonNull SearchSpec searchSpec, in RemoveByQueryAidlRequest() 107 public SearchSpec getSearchSpec() { in getSearchSpec()
|
D | SearchAidlRequest.java | 21 import android.app.appsearch.SearchSpec; 56 private final SearchSpec mSearchSpec; 81 @Param(id = 4) @NonNull SearchSpec searchSpec, in SearchAidlRequest() 108 public SearchSpec getSearchSpec() { in getSearchSpec()
|
D | WriteSearchResultsToFileAidlRequest.java | 21 import android.app.appsearch.SearchSpec; 61 private final SearchSpec mSearchSpec; 90 @Param(id = 5) @NonNull SearchSpec searchSpec, in WriteSearchResultsToFileAidlRequest() 123 public SearchSpec getSearchSpec() { in getSearchSpec()
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | SyncAppSearchImplTest.java | 18 import static android.app.appsearch.SearchSpec.TERM_MATCH_PREFIX; 32 import android.app.appsearch.SearchSpec; 116 SearchSpec searchSpec = new SearchSpec.Builder() in testSynchronousMethods() 143 new SearchSpec.Builder() in testSynchronousMethods()
|
D | AppsIndexerRealDocumentsTest.java | 38 import android.app.appsearch.SearchSpec; 81 SearchSpec searchSpec = in testRealDocuments_check() 82 new SearchSpec.Builder() in testRealDocuments_check() 152 new SearchSpec.Builder() in testRealIndexing()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | AppSearchHelper.java | 29 import android.app.appsearch.SearchSpec; 198 SearchSpec allAppsSpec = in getAppsFromAppSearch() 199 new SearchSpec.Builder() in getAppsFromAppSearch() 202 SearchSpec.SCHEMA_TYPE_WILDCARD, in getAppsFromAppSearch()
|
D | SyncGlobalSearchSession.java | 21 import android.app.appsearch.SearchSpec; 41 SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec); in search()
|
D | SyncAppSearchSession.java | 24 import android.app.appsearch.SearchSpec; 65 SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec); in search()
|
D | SyncGlobalSearchSessionImpl.java | 21 import android.app.appsearch.SearchSpec; 49 public SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec) { in search()
|
/packages/modules/AppSearch/framework/api/ |
D | current.txt | 192 …method public void remove(@NonNull String, @NonNull android.app.appsearch.SearchSpec, @NonNull jav… 194 …oid.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); 216 …oid.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); 317 …oid.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); 327 method @NonNull public android.app.appsearch.SearchSpec getNestedSearchSpec(); 343 …earch.JoinSpec.Builder setNestedSearch(@NonNull String, @NonNull android.app.appsearch.SearchSpec); 509 public final class SearchSpec implements android.os.Parcelable { 541 …onNull public static final android.os.Parcelable.Creator<android.app.appsearch.SearchSpec> CREATOR; 566 public static final class SearchSpec.Builder { 567 ctor public SearchSpec.Builder(); [all …]
|