Home
last modified time | relevance | path

Searched refs:searchSpec (Results 1 – 10 of 10) sorted by relevance

/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DSearchSpecCtsTest.java50 SearchSpec searchSpec = new SearchSpec.Builder().addFilterSchemas("testSchemaType").build(); in testBuildSearchSpecWithoutTermMatch() local
51 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testBuildSearchSpecWithoutTermMatch()
63 SearchSpec searchSpec = in testBuildSearchSpec() local
91 assertThat(searchSpec.getTermMatch()).isEqualTo(SearchSpec.TERM_MATCH_PREFIX); in testBuildSearchSpec()
92 assertThat(searchSpec.getFilterNamespaces()) in testBuildSearchSpec()
95 assertThat(searchSpec.getFilterSchemas()) in testBuildSearchSpec()
98 assertThat(searchSpec.getFilterPackageNames()) in testBuildSearchSpec()
101 assertThat(searchSpec.getSnippetCount()).isEqualTo(5); in testBuildSearchSpec()
102 assertThat(searchSpec.getSnippetCountPerProperty()).isEqualTo(10); in testBuildSearchSpec()
103 assertThat(searchSpec.getMaxSnippetSize()).isEqualTo(15); in testBuildSearchSpec()
[all …]
DAppSearchSessionCtsTestBase.java3152 SearchSpec searchSpec = in testQuery_unsupportedAdvancedRanking() local
3159 UnsupportedOperationException.class, () -> mDb1.search("body", searchSpec)); in testQuery_unsupportedAdvancedRanking()
3974 SearchSpec searchSpec = builder.setSearchSourceLogTag("tag").build(); in testSearchSpec_setSourceTag_notSupported() local
3979 () -> mDb1.search("\"Hello, world!\"", searchSpec)); in testSearchSpec_setSourceTag_notSupported()
6699 SearchSpec searchSpec = in testQuery_listFilterQueryWithEnablingFeatureSucceeds() local
6706 mDb1.search("search(\"hello\", createList(\"prop\"))", searchSpec); in testQuery_listFilterQueryWithEnablingFeatureSucceeds()
6712 searchResults = mDb1.search("wor*", searchSpec); in testQuery_listFilterQueryWithEnablingFeatureSucceeds()
6719 searchResults = mDb1.search("NOT (foo OR otherProp:hello)", searchSpec); in testQuery_listFilterQueryWithEnablingFeatureSucceeds()
6766 SearchSpec searchSpec = in testQuery_PropertyDefinedWithEnablingFeatureSucceeds() local
6772 SearchResultsShim searchResults = mDb1.search("propertyDefined(\"prop1\")", searchSpec); in testQuery_PropertyDefinedWithEnablingFeatureSucceeds()
[all …]
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/
DAppSearchSessionShim.java289 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument
420 @NonNull String queryExpression, @NonNull SearchSpec searchSpec); in removeAsync() argument
DEnterpriseGlobalSearchSessionShim.java86 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument
DGlobalSearchSessionShim.java81 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DAppSearchSessionShimImpl.java152 @NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in search() argument
153 SearchResults searchResults = mAppSearchSession.search(queryExpression, searchSpec); in search()
177 @NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in removeAsync() argument
179 mAppSearchSession.remove(queryExpression, searchSpec, mExecutor, future::set); in removeAsync()
DEnterpriseGlobalSearchSessionShimImpl.java110 @NonNull String queryExpression, @NonNull SearchSpec searchSpec) {
112 searchSpec);
DGlobalSearchSessionShimImpl.java104 @NonNull String queryExpression, @NonNull SearchSpec searchSpec) { in search() argument
105 SearchResults searchResults = mGlobalSearchSession.search(queryExpression, searchSpec); in search()
/cts/tests/appsearch/helper-app/src/com/android/cts/appsearch/helper/
DAppSearchTestService.java83 final SearchSpec searchSpec = in globalSearch() local
88 mGlobalSearchSessionShim.search(queryExpression, searchSpec); in globalSearch()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DGlobalSearchSessionServiceCtsTestBase.java240 SearchSpec searchSpec = new SearchSpec.Builder() in testPublicVisibility_accessibleTestPackage() local
244 SearchResultsShim results = mDb.search("pineapple", searchSpec); in testPublicVisibility_accessibleTestPackage()
366 SearchSpec searchSpec = new SearchSpec.Builder() in testPublicVisibility_invalidCertificate() local
369 SearchResultsShim results = mDb.search("pineapple", searchSpec); in testPublicVisibility_invalidCertificate()
1506 SearchSpec searchSpec = new SearchSpec.Builder() in testGlobalSearch_withJoin_withoutAccess() local
1514 SearchResultsShim results = mDb.search("", searchSpec); in testGlobalSearch_withJoin_withoutAccess()
1762 SearchSpec searchSpec = new SearchSpec.Builder() in testReportSystemUsage() local
1766 try (SearchResultsShim results = mDb.search("", searchSpec)) { in testReportSystemUsage() argument