Home
last modified time | relevance | path

Searched refs:searchIntentStats (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DSearchIntentStats.java176 public Builder(@NonNull SearchIntentStats searchIntentStats) { in Builder() argument
177 Objects.requireNonNull(searchIntentStats); in Builder()
179 mPackageName = searchIntentStats.getPackageName(); in Builder()
180 mDatabase = searchIntentStats.getDatabase(); in Builder()
181 mPrevQuery = searchIntentStats.getPrevQuery(); in Builder()
182 mCurrQuery = searchIntentStats.getCurrQuery(); in Builder()
183 mTimestampMillis = searchIntentStats.getTimestampMillis(); in Builder()
184 mNumResultsFetched = searchIntentStats.getNumResultsFetched(); in Builder()
185 mQueryCorrectionType = searchIntentStats.getQueryCorrectionType(); in Builder()
186 mClicksStats.addAll(searchIntentStats.getClicksStats()); in Builder()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DSearchIntentStatsTest.java57 final SearchIntentStats searchIntentStats = in testBuilder() local
68 assertThat(searchIntentStats.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilder()
69 assertThat(searchIntentStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testBuilder()
70 assertThat(searchIntentStats.getPrevQuery()).isEqualTo(prevQuery); in testBuilder()
71 assertThat(searchIntentStats.getCurrQuery()).isEqualTo(currQuery); in testBuilder()
72 assertThat(searchIntentStats.getTimestampMillis()).isEqualTo(searchIntentTimestampMillis); in testBuilder()
73 assertThat(searchIntentStats.getNumResultsFetched()).isEqualTo(numResultsFetched); in testBuilder()
74 assertThat(searchIntentStats.getQueryCorrectionType()).isEqualTo(queryCorrectionType); in testBuilder()
75 assertThat(searchIntentStats.getClicksStats()).containsExactly(clickStats0, clickStats1); in testBuilder()
222 final SearchIntentStats searchIntentStats = in testBuilder_addClicksStats_byCollection() local
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/
DPlatformLogger.java558 SearchIntentStats searchIntentStats = searchIntentsStats.get(i); in logStatsImplLocked() local
559 logStatsImplLocked(searchIntentStats); in logStatsImplLocked()
571 private void logStatsImplLocked(@NonNull SearchIntentStats searchIntentStats) { in logStatsImplLocked() argument
572 int packageUid = getPackageUidAsUserLocked(searchIntentStats.getPackageName()); in logStatsImplLocked()
573 String database = searchIntentStats.getDatabase(); in logStatsImplLocked()
576 List<ClickStats> clicksStats = searchIntentStats.getClicksStats(); in logStatsImplLocked()
613 searchIntentStats.getTimestampMillis(), in logStatsImplLocked()
614 searchIntentStats.getNumResultsFetched(), in logStatsImplLocked()
615 searchIntentStats.getQueryCorrectionType(), in logStatsImplLocked()
624 searchIntentStats.getQueryCorrectionType() in logStatsImplLocked()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/
DSearchSessionStatsExtractorTest.java967 SearchIntentStats searchIntentStats = searchSessionStats.getSearchIntentsStats().get(0); in testExtract_shouldSetIsGoodClick() local
968 assertThat(searchIntentStats.getClicksStats()).hasSize(4); in testExtract_shouldSetIsGoodClick()
970 assertThat(searchIntentStats.getClicksStats().get(0).getTimeStayOnResultMillis()) in testExtract_shouldSetIsGoodClick()
972 assertThat(searchIntentStats.getClicksStats().get(0).isGoodClick()).isTrue(); in testExtract_shouldSetIsGoodClick()
974 assertThat(searchIntentStats.getClicksStats().get(1).getTimeStayOnResultMillis()) in testExtract_shouldSetIsGoodClick()
976 assertThat(searchIntentStats.getClicksStats().get(1).isGoodClick()).isFalse(); in testExtract_shouldSetIsGoodClick()
978 assertThat(searchIntentStats.getClicksStats().get(2).getTimeStayOnResultMillis()) in testExtract_shouldSetIsGoodClick()
980 assertThat(searchIntentStats.getClicksStats().get(2).isGoodClick()).isFalse(); in testExtract_shouldSetIsGoodClick()
982 assertThat(searchIntentStats.getClicksStats().get(3).getTimeStayOnResultMillis()) in testExtract_shouldSetIsGoodClick()
984 assertThat(searchIntentStats.getClicksStats().get(3).isGoodClick()).isTrue(); in testExtract_shouldSetIsGoodClick()
[all …]