Home
last modified time | relevance | path

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

/packages/modules/AppSearch/testing/servicestests/src/android/app/appsearch/testutil/external/testutil/
DSimpleTestLoggerTest.java28 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
56 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_UNKNOWN, "package").build()); in testLogger_fieldsAreSetAfterLogging()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DSearchStats.java38 public final class SearchStats { class
166 SearchStats(@NonNull Builder builder) { in SearchStats() method in SearchStats
669 public SearchStats build() { in build()
672 mVisibilityScope != SearchStats.VISIBILITY_SCOPE_LOCAL, in build()
676 return new SearchStats(/* builder= */ this); in build()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchLogger.java28 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
54 void logStats(@NonNull SearchStats stats); in logStats()
DAppSearchLoggerHelper.java25 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
110 @NonNull QueryStatsProto fromNativeStats, @NonNull SearchStats.Builder toStatsBuilder) { in copyNativeStats()
DAppSearchImpl.java72 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
1370 SearchStats.Builder sStatsBuilder = null; in query()
1373 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_LOCAL, packageName) in query()
1450 SearchStats.Builder sStatsBuilder = null; in globalQuery()
1453 new SearchStats.Builder( in globalQuery()
1454 SearchStats.VISIBILITY_SCOPE_GLOBAL, in globalQuery()
1544 @Nullable SearchStats.Builder sStatsBuilder) in doQueryLocked()
1582 @Nullable SearchStats.Builder sStatsBuilder) in searchInIcingLocked()
1723 @Nullable SearchStats.Builder sStatsBuilder) in getNextPage()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java35 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
245 SearchStats.Builder qBuilder = in testAppSearchLoggerHelper_testCopyNativeStats_search()
246 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_LOCAL, PACKAGE_NAME) in testAppSearchLoggerHelper_testCopyNativeStats_search()
251 SearchStats sStats = qBuilder.build(); in testAppSearchLoggerHelper_testCopyNativeStats_search()
717 SearchStats sStats = mLogger.mSearchStats; in testLoggingStats_search_success()
725 assertThat(sStats.getVisibilityScope()).isEqualTo(SearchStats.VISIBILITY_SCOPE_LOCAL); in testLoggingStats_search_success()
771 SearchStats sStats = mLogger.mSearchStats; in testLoggingStats_search_failure()
919 SearchStats sStats = mLogger.mSearchStats; in testLoggingStats_search_join()
926 assertThat(sStats.getVisibilityScope()).isEqualTo(SearchStats.VISIBILITY_SCOPE_LOCAL); in testLoggingStats_search_join()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DAppSearchStatsTest.java205 int visibilityScope = SearchStats.VISIBILITY_SCOPE_LOCAL; in testAppSearchStats_SearchStats()
225 final SearchStats.Builder sStatsBuilder = in testAppSearchStats_SearchStats()
226 new SearchStats.Builder(visibilityScope, TEST_PACKAGE_NAME) in testAppSearchStats_SearchStats()
253 final SearchStats sStats = sStatsBuilder.build(); in testAppSearchStats_SearchStats()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/
DPlatformLogger.java44 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
173 public void logStats(@NonNull SearchStats stats) { in logStats()
439 private void logStatsImplLocked(@NonNull SearchStats stats) { in logStatsImplLocked()
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/
DAppSearchManagerServiceTest.java136 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
624 ArgumentCaptor<SearchStats> searchStatsCaptor = ArgumentCaptor.forClass(SearchStats.class); in testLocalGetNextPageStatsLogging()
626 SearchStats searchStats = searchStatsCaptor.getValue(); in testLocalGetNextPageStatsLogging()
627 assertThat(searchStats.getVisibilityScope()).isEqualTo(SearchStats.VISIBILITY_SCOPE_LOCAL); in testLocalGetNextPageStatsLogging()
645 ArgumentCaptor<SearchStats> searchStatsCaptor = ArgumentCaptor.forClass(SearchStats.class); in testGlobalGetNextPageStatsLogging()
647 SearchStats searchStats = searchStatsCaptor.getValue(); in testGlobalGetNextPageStatsLogging()
648 assertThat(searchStats.getVisibilityScope()).isEqualTo(SearchStats.VISIBILITY_SCOPE_GLOBAL); in testGlobalGetNextPageStatsLogging()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java30 import static com.android.server.appsearch.external.localstorage.stats.SearchStats.VISIBILITY_SCOPE…
31 import static com.android.server.appsearch.external.localstorage.stats.SearchStats.VISIBILITY_SCOPE…
118 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
1219 SearchStats.Builder statsBuilder; in getNextPage()
1221 statsBuilder = new SearchStats.Builder(VISIBILITY_SCOPE_GLOBAL, in getNextPage()
1225 statsBuilder = new SearchStats.Builder(VISIBILITY_SCOPE_LOCAL, in getNextPage()