Searched refs:SearchIntentStats (Results 1 – 8 of 8) sorted by relevance
33 final SearchIntentStats searchIntentStats0 = in testBuilder()34 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder()40 .setQueryCorrectionType(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY) in testBuilder()57 final SearchIntentStats searchIntentStats1 = in testBuilder()58 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder()64 .setQueryCorrectionType(SearchIntentStats.QUERY_CORRECTION_TYPE_REFINEMENT) in testBuilder()89 final SearchIntentStats searchIntentStats0 = in testBuilder_addSearchIntentsStats_byCollection()90 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_addSearchIntentsStats_byCollection()96 .setQueryCorrectionType(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY) in testBuilder_addSearchIntentsStats_byCollection()113 final SearchIntentStats searchIntentStats1 = in testBuilder_addSearchIntentsStats_byCollection()[all …]
37 int queryCorrectionType = SearchIntentStats.QUERY_CORRECTION_TYPE_ABANDONMENT; in testBuilder()57 final SearchIntentStats searchIntentStats = in testBuilder()58 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder()84 int queryCorrectionType = SearchIntentStats.QUERY_CORRECTION_TYPE_ABANDONMENT; in testBuilderCopy_allFieldsAreCopied()104 final SearchIntentStats searchIntentStats0 = in testBuilderCopy_allFieldsAreCopied()105 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilderCopy_allFieldsAreCopied()114 final SearchIntentStats searchIntentStats1 = in testBuilderCopy_allFieldsAreCopied()115 new SearchIntentStats.Builder(searchIntentStats0).build(); in testBuilderCopy_allFieldsAreCopied()147 final SearchIntentStats searchIntentStats0 = in testBuilderCopy_copiedFieldsCanBeUpdated()148 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilderCopy_copiedFieldsCanBeUpdated()[all …]
23 import com.android.server.appsearch.external.localstorage.stats.SearchIntentStats;120 SearchIntentStats searchIntentStats0 = searchSessionStats0.getSearchIntentsStats().get(0); in testExtract()128 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY); in testExtract()144 SearchIntentStats searchIntentStats1 = searchSessionStats0.getSearchIntentsStats().get(1); in testExtract()152 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_REFINEMENT); in testExtract()251 SearchIntentStats searchIntentStats0 = searchSessionStats0.getSearchIntentsStats().get(0); in testExtract_shouldSkipUnknownActionTypeDocuments()259 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY); in testExtract_shouldSkipUnknownActionTypeDocuments()326 SearchIntentStats searchIntentStats0 = searchSessionStats0.getSearchIntentsStats().get(0); in testExtract_detectAndSkipSearchNoise_appendNewCharacters()334 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY); in testExtract_detectAndSkipSearchNoise_appendNewCharacters()338 SearchIntentStats searchIntentStats1 = searchSessionStats0.getSearchIntentsStats().get(1); in testExtract_detectAndSkipSearchNoise_appendNewCharacters()[all …]
45 @NonNull private final List<SearchIntentStats> mSearchIntentsStats;69 public SearchIntentStats getEndSessionSearchIntentStats() { in getEndSessionSearchIntentStats()74 SearchIntentStats lastSearchIntentStats = in getEndSessionSearchIntentStats()76 return new SearchIntentStats.Builder(lastSearchIntentStats) in getEndSessionSearchIntentStats()78 .setQueryCorrectionType(SearchIntentStats.QUERY_CORRECTION_TYPE_END_SESSION) in getEndSessionSearchIntentStats()100 public List<SearchIntentStats> getSearchIntentsStats() { in getSearchIntentsStats()110 @NonNull private List<SearchIntentStats> mSearchIntentsStats = new ArrayList<>();135 public Builder addSearchIntentsStats(@NonNull SearchIntentStats... searchIntentsStats) { in addSearchIntentsStats()145 @NonNull Collection<? extends SearchIntentStats> searchIntentsStats) { in addSearchIntentsStats()
44 public final class SearchIntentStats { class83 SearchIntentStats(@NonNull Builder builder) { in SearchIntentStats() method in SearchIntentStats176 public Builder(@NonNull SearchIntentStats searchIntentStats) { in Builder()283 public SearchIntentStats build() { in build()285 return new SearchIntentStats(/* builder= */ this); in build()
25 import com.android.server.appsearch.external.localstorage.stats.SearchIntentStats;85 public static @SearchIntentStats.QueryCorrectionType int getQueryCorrectionType( in getQueryCorrectionType()93 return SearchIntentStats.QUERY_CORRECTION_TYPE_UNKNOWN; in getQueryCorrectionType()97 return SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY; in getQueryCorrectionType()101 return SearchIntentStats.QUERY_CORRECTION_TYPE_UNKNOWN; in getQueryCorrectionType()112 return SearchIntentStats.QUERY_CORRECTION_TYPE_ABANDONMENT; in getQueryCorrectionType()114 return SearchIntentStats.QUERY_CORRECTION_TYPE_REFINEMENT; in getQueryCorrectionType()251 private SearchIntentStats createSearchIntentStats( in createSearchIntentStats()257 SearchIntentStats.Builder builder = in createSearchIntentStats()258 new SearchIntentStats.Builder(packageName) in createSearchIntentStats()
42 import com.android.server.appsearch.external.localstorage.stats.SearchIntentStats;556 List<SearchIntentStats> searchIntentsStats = searchSessionStats.getSearchIntentsStats(); in logStatsImplLocked()558 SearchIntentStats searchIntentStats = searchIntentsStats.get(i); in logStatsImplLocked()563 SearchIntentStats endSessionSearchIntentStats = in logStatsImplLocked()571 private void logStatsImplLocked(@NonNull SearchIntentStats searchIntentStats) { in logStatsImplLocked()625 == SearchIntentStats.QUERY_CORRECTION_TYPE_ABANDONMENT; in logStatsImplLocked()
134 import com.android.server.appsearch.external.localstorage.stats.SearchIntentStats;525 List<SearchIntentStats> searchIntentsStats = in testPutDocumentsStatsLogging_takenActions()536 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_FIRST_QUERY); in testPutDocumentsStatsLogging_takenActions()546 .isEqualTo(SearchIntentStats.QUERY_CORRECTION_TYPE_REFINEMENT); in testPutDocumentsStatsLogging_takenActions()