/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | SearchSpecCtsTest.java | 50 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 …]
|
D | AppSearchSessionCtsTestBase.java | 3152 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/ |
D | AppSearchSessionShim.java | 289 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument 420 @NonNull String queryExpression, @NonNull SearchSpec searchSpec); in removeAsync() argument
|
D | EnterpriseGlobalSearchSessionShim.java | 86 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument
|
D | GlobalSearchSessionShim.java | 81 SearchResultsShim search(@NonNull String queryExpression, @NonNull SearchSpec searchSpec); in search() argument
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/ |
D | AppSearchSessionShimImpl.java | 152 @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()
|
D | EnterpriseGlobalSearchSessionShimImpl.java | 110 @NonNull String queryExpression, @NonNull SearchSpec searchSpec) { 112 searchSpec);
|
D | GlobalSearchSessionShimImpl.java | 104 @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/ |
D | AppSearchTestService.java | 83 final SearchSpec searchSpec = in globalSearch() local 88 mGlobalSearchSessionShim.search(queryExpression, searchSpec); in globalSearch()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionServiceCtsTestBase.java | 240 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
|