/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/ |
D | SearchSpecInternalTest.java | 32 SearchSpec searchSpec = in testSearchSpecBuilder() local 49 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testSearchSpecBuilder() 50 assertThat(searchSpec.getFilterNamespaces()).containsExactly("namespace1", "namespace2"); in testSearchSpecBuilder() 51 assertThat(searchSpec.getFilterSchemas()).containsExactly("schemaTypes1", "schemaTypes2"); in testSearchSpecBuilder() 52 assertThat(searchSpec.getFilterPackageNames()).containsExactly("package1", "package2"); in testSearchSpecBuilder() 53 assertThat(searchSpec.getSnippetCount()).isEqualTo(5); in testSearchSpecBuilder() 54 assertThat(searchSpec.getSnippetCountPerProperty()).isEqualTo(10); in testSearchSpecBuilder() 55 assertThat(searchSpec.getMaxSnippetSize()).isEqualTo(15); in testSearchSpecBuilder() 56 assertThat(searchSpec.getResultCountPerPage()).isEqualTo(42); in testSearchSpecBuilder() 57 assertThat(searchSpec.getOrder()).isEqualTo(SearchSpec.ORDER_ASCENDING); in testSearchSpecBuilder() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/ |
D | EnterpriseSearchSpecTransformer.java | 47 public static SearchSpec transformSearchSpec(@NonNull SearchSpec searchSpec) { in transformSearchSpec() argument 48 Objects.requireNonNull(searchSpec); in transformSearchSpec() 49 boolean shouldTransformSearchSpecFilters = shouldTransformSearchSpecFilters(searchSpec); in transformSearchSpec() 51 shouldTransformJoinSpecFilters(searchSpec.getJoinSpec()); in transformSearchSpec() 53 return searchSpec; in transformSearchSpec() 55 SearchSpec.Builder builder = new SearchSpec.Builder(searchSpec); in transformSearchSpec() 57 PersonEnterpriseTransformer.transformSearchSpec(searchSpec, builder); in transformSearchSpec() 60 JoinSpec joinSpec = searchSpec.getJoinSpec(); in transformSearchSpec() 69 private static boolean shouldTransformSearchSpecFilters(@NonNull SearchSpec searchSpec) { in shouldTransformSearchSpecFilters() argument 70 List<String> filteredSchemas = searchSpec.getFilterSchemas(); in shouldTransformSearchSpecFilters()
|
D | PersonEnterpriseTransformer.java | 204 @NonNull SearchSpec searchSpec, @NonNull SearchSpec.Builder builder) { in transformSearchSpec() 205 Map<String, List<String>> projections = searchSpec.getProjections(); in transformSearchSpec() 206 Map<String, List<String>> filterProperties = searchSpec.getFilterProperties(); in transformSearchSpec()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/ |
D | EnterpriseSearchSpecTransformerTest.java | 38 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testTransformProjection_whenProjectionNotSuppliedByUser() local 41 searchSpec); in testTransformProjection_whenProjectionNotSuppliedByUser() 52 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformProjection_whenProjectionSuppliedByUser() local 57 searchSpec); in testTransformProjection_whenProjectionSuppliedByUser() 66 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes() local 71 searchSpec); in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes() 120 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testTransformPropertyFilters_whenFiltersNotSuppliedByUser() local 123 searchSpec); in testTransformPropertyFilters_whenFiltersNotSuppliedByUser() 134 SearchSpec searchSpec = new SearchSpec.Builder() in testTransformPropertyFilters_whenFiltersSuppliedByUser() local 139 searchSpec); in testTransformPropertyFilters_whenFiltersSuppliedByUser() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverterTest.java | 93 SearchSpec searchSpec = new SearchSpec.Builder().build(); in testToSearchSpecProto() local 101 searchSpec, in testToSearchSpecProto() 144 SearchSpec.Builder searchSpec = in testToSearchSpecProtoWithJoinSpec() local 156 searchSpec.setJoinSpec(joinSpec); in testToSearchSpecProtoWithJoinSpec() 164 searchSpec.build(), in testToSearchSpecProtoWithJoinSpec() 226 SearchSpec.Builder searchSpec = in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() local 235 searchSpec.setJoinSpec(joinSpec); in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() 241 searchSpec.build(), in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() 298 SearchSpec searchSpec = in testToScoringSpecProto() local 308 searchSpec, in testToScoringSpecProto() [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | SearchSpec.java | 776 public Builder(@NonNull SearchSpec searchSpec) { in Builder() argument 777 Objects.requireNonNull(searchSpec); in Builder() 778 mSchemas = new ArrayList<>(searchSpec.getFilterSchemas()); in Builder() 779 mNamespaces = new ArrayList<>(searchSpec.getFilterNamespaces()); in Builder() 781 searchSpec.getFilterProperties().entrySet()) { in Builder() 784 mPackageNames = new ArrayList<>(searchSpec.getFilterPackageNames()); in Builder() 785 mEnabledFeatures = new ArraySet<>(searchSpec.getEnabledFeatures()); in Builder() 786 for (Map.Entry<String, List<String>> entry : searchSpec.getProjections().entrySet()) { in Builder() 790 searchSpec.getPropertyWeights().entrySet()) { in Builder() 793 mSearchEmbeddings = new ArrayList<>(searchSpec.getSearchEmbeddings()); in Builder() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | SyncGlobalSearchSessionImpl.java | 49 public SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec) { in search() argument 51 Objects.requireNonNull(searchSpec); in search() 52 return new SyncSearchResultsImpl(mGlobalSession.search(query, searchSpec), mExecutor); in search()
|
D | SyncAppSearchSessionImpl.java | 54 public SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec) { in search() argument 56 Objects.requireNonNull(searchSpec); in search() 57 return new SyncSearchResultsImpl(mSession.search(query, searchSpec), mExecutor); in search()
|
D | SyncGlobalSearchSession.java | 41 SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec); in search() argument
|
D | SyncAppSearchSession.java | 65 SyncSearchResults search(@NonNull String query, @NonNull SearchSpec searchSpec); in search() argument
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | SyncAppSearchImplTest.java | 116 SearchSpec searchSpec = new SearchSpec.Builder() in testSynchronousMethods() local 121 SyncSearchResults searchResults = globalSession.search("", searchSpec); in testSynchronousMethods() 142 searchSpec = in testSynchronousMethods() 148 searchResults = globalSession.search("", searchSpec); in testSynchronousMethods()
|
D | AppsIndexerRealDocumentsTest.java | 81 SearchSpec searchSpec = in testRealDocuments_check() local 95 SyncSearchResults searchResults = globalSearchSession.search("", searchSpec); in testRealDocuments_check()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 670 SearchSpec searchSpec = in testQueryEmptyDatabase() local 674 "package", "EmptyDatabase", "", searchSpec, /* logger= */ null); in testQueryEmptyDatabase() 723 SearchSpec searchSpec = in testQueryWithMultiplePackages_noPackageFilters() local 726 mAppSearchImpl.query("package2", "database2", "", searchSpec, /* logger= */ null); in testQueryWithMultiplePackages_noPackageFilters() 740 mAppSearchImpl.query("package2", "database2", "", searchSpec, /* logger= */ null); in testQueryWithMultiplePackages_noPackageFilters() 791 SearchSpec searchSpec = in testQueryWithMultiplePackages_withPackageFilters() local 797 mAppSearchImpl.query("package2", "database2", "", searchSpec, /* logger= */ null); in testQueryWithMultiplePackages_withPackageFilters() 810 searchSpec = in testQueryWithMultiplePackages_withPackageFilters() 816 mAppSearchImpl.query("package2", "database2", "", searchSpec, /* logger= */ null); in testQueryWithMultiplePackages_withPackageFilters() 823 SearchSpec searchSpec = in testGlobalQuery_emptyPackage() local [all …]
|
D | AppSearchLoggerTest.java | 702 SearchSpec searchSpec = in testLoggingStats_search_success() local 710 testPackageName, testDatabase, queryStr, searchSpec, /* logger= */ mLogger); in testLoggingStats_search_success() 757 SearchSpec searchSpec = in testLoggingStats_search_failure() local 768 searchSpec, in testLoggingStats_search_failure() 903 SearchSpec searchSpec = in testLoggingStats_search_join() local 913 testPackageName, testDatabase, queryStr, searchSpec, /* logger= */ mLogger); in testLoggingStats_search_join() 1073 SearchSpec searchSpec = in testLoggingStats_removeByQuery_success() local 1081 searchSpec, in testLoggingStats_removeByQuery_success()
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/ |
D | AppSearchSessionUnitTest.java | 96 SearchSpec searchSpec = new SearchSpec.Builder() in testGetEmptyNextPage() local 100 SearchResults searchResults = mSearchSession.search("", searchSpec); in testGetEmptyNextPage() 154 SearchSpec searchSpec = new SearchSpec.Builder() in testGetEmptyNextPage_multiPages() local 158 SearchResults searchResults = mSearchSession.search("", searchSpec); in testGetEmptyNextPage_multiPages()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | ReadOnlyGlobalSearchSession.java | 178 public SearchResults search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in search() argument 180 Objects.requireNonNull(searchSpec); in search() 186 searchSpec, in search()
|
D | AppSearchSession.java | 536 public SearchResults search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in search() argument 538 Objects.requireNonNull(searchSpec); in search() 545 searchSpec, in search() 801 @NonNull SearchSpec searchSpec, in remove() argument 805 Objects.requireNonNull(searchSpec); in remove() 809 if (searchSpec.getJoinSpec() != null) { in remove() 819 searchSpec, in remove()
|
D | SearchResults.java | 92 @NonNull SearchSpec searchSpec, in SearchResults() argument 99 mSearchSpec = Objects.requireNonNull(searchSpec); in SearchResults()
|
D | GlobalSearchSession.java | 156 public SearchResults search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in search() argument 158 return super.search(queryExpression, searchSpec); in search()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImpl.java | 1366 @NonNull SearchSpec searchSpec, in query() argument 1375 .setSearchSourceLogTag(searchSpec.getSearchSourceLogTag()); in query() 1389 List<String> filterPackageNames = searchSpec.getFilterPackageNames(); in query() 1403 searchSpec, in query() 1445 @NonNull SearchSpec searchSpec, in globalQuery() argument 1456 .setSearchSourceLogTag(searchSpec.getSearchSourceLogTag()); in globalQuery() 1479 if (!searchSpec.getFilterPackageNames().isEmpty()) { in globalQuery() 1480 JoinSpec joinSpec = searchSpec.getJoinSpec(); in globalQuery() 1482 packageFilters.addAll(searchSpec.getFilterPackageNames()); in globalQuery() 1484 packageFilters.addAll(searchSpec.getFilterPackageNames()); in globalQuery() [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/ |
D | GlobalSearchAidlRequest.java | 80 @Param(id = 3) @NonNull SearchSpec searchSpec, in GlobalSearchAidlRequest() 86 mSearchSpec = Objects.requireNonNull(searchSpec); in GlobalSearchAidlRequest()
|
D | RemoveByQueryAidlRequest.java | 80 @Param(id = 4) @NonNull SearchSpec searchSpec, in RemoveByQueryAidlRequest() 86 mSearchSpec = Objects.requireNonNull(searchSpec); in RemoveByQueryAidlRequest()
|
D | SearchAidlRequest.java | 81 @Param(id = 4) @NonNull SearchSpec searchSpec, in SearchAidlRequest() 87 mSearchSpec = Objects.requireNonNull(searchSpec); in SearchAidlRequest()
|
D | WriteSearchResultsToFileAidlRequest.java | 90 @Param(id = 5) @NonNull SearchSpec searchSpec, in WriteSearchResultsToFileAidlRequest() 97 mSearchSpec = Objects.requireNonNull(searchSpec); in WriteSearchResultsToFileAidlRequest()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverter.java | 123 @NonNull SearchSpec searchSpec, in SearchSpecToProtoConverter() argument 129 mSearchSpec = Objects.requireNonNull(searchSpec); in SearchSpecToProtoConverter() 141 List<String> packageFilters = searchSpec.getFilterPackageNames(); in SearchSpecToProtoConverter() 161 searchSpec.getFilterNamespaces()); in SearchSpecToProtoConverter() 170 searchSpec.getFilterSchemas()); in SearchSpecToProtoConverter() 175 JoinSpec joinSpec = searchSpec.getJoinSpec(); in SearchSpecToProtoConverter()
|