Home
last modified time | relevance | path

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

/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DSearchStats.java36 public final class SearchStats { class
113 SearchStats(@NonNull Builder builder) { in SearchStats() method in SearchStats
453 public SearchStats build() { in build()
456 mVisibilityScope != SearchStats.VISIBILITY_SCOPE_LOCAL, in build()
460 return new SearchStats(/* builder= */ this); in build()
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchLogger.java26 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
49 void logStats(@NonNull SearchStats stats); in logStats()
DAppSearchLoggerHelper.java25 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
104 @NonNull QueryStatsProto fromNativeStats, @NonNull SearchStats.Builder toStatsBuilder) { in copyNativeStats()
DAppSearchImpl.java61 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
838 SearchStats.Builder sStatsBuilder = null; in query()
841 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_LOCAL, packageName) in query()
912 SearchStats.Builder sStatsBuilder = null; in globalQuery()
915 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_GLOBAL, callerPackageName); in globalQuery()
1039 @Nullable SearchStats.Builder sStatsBuilder) in doQueryLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java35 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
84 @Nullable SearchStats mSearchStats;
104 public void logStats(@NonNull SearchStats stats) { in logStats()
250 SearchStats.Builder qBuilder = in testAppSearchLoggerHelper_testCopyNativeStats_search()
251 new SearchStats.Builder(SearchStats.VISIBILITY_SCOPE_LOCAL, "packageName") in testAppSearchLoggerHelper_testCopyNativeStats_search()
256 SearchStats sStats = qBuilder.build(); in testAppSearchLoggerHelper_testCopyNativeStats_search()
628 SearchStats sStats = mLogger.mSearchStats; in testLoggingStats_search_success()
635 assertThat(sStats.getVisibilityScope()).isEqualTo(SearchStats.VISIBILITY_SCOPE_LOCAL); in testLoggingStats_search_success()
680 SearchStats sStats = mLogger.mSearchStats; in testLoggingStats_search_failure()
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DAppSearchStatsTest.java187 int visibilityScope = SearchStats.VISIBILITY_SCOPE_LOCAL; in testAppSearchStats_SearchStats()
203 final SearchStats.Builder sStatsBuilder = in testAppSearchStats_SearchStats()
204 new SearchStats.Builder(visibilityScope, TEST_PACKAGE_NAME) in testAppSearchStats_SearchStats()
225 final SearchStats sStats = sStatsBuilder.build(); in testAppSearchStats_SearchStats()
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/stats/
DPlatformLogger.java38 import com.android.server.appsearch.external.localstorage.stats.SearchStats;
159 public void logStats(@NonNull SearchStats stats) { in logStats()
267 private void logStatsImplLocked(@NonNull SearchStats stats) { in logStatsImplLocked()