Searched refs:daysSinceLastUse (Results 1 – 4 of 4) sorted by relevance
107 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_appInstalledSameDayNeverUsed_isInvalid()121 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()135 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_unusedApp_isValid()149 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_noThresholdFilter_unusedApp_isValid()164 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.UNKNOWN_LAST_USE); in test_unknownLastUse_isFilteredOut()179 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.UNKNOWN_LAST_USE); in test_noThresholdFilter_unknownLastUse_isFilteredOut()194 assertThat(stats.daysSinceLastUse).isEqualTo(1); in test_oldAppRecentlyUsed_isNotValid()209 assertThat(stats.daysSinceLastUse).isEqualTo(1); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()224 assertThat(stats.daysSinceLastUse).isEqualTo(199); in test_oldUnusedApp_isValid()239 assertThat(stats.daysSinceLastUse).isEqualTo(199); in test_noThresholdFilter_oldUnusedApp_isValid()[all …]
56 if (mApp.daysSinceLastUse == AppsAsyncLoader.NEVER_USED) { in updateSummary()58 } else if (mApp.daysSinceLastUse == AppsAsyncLoader.UNKNOWN_LAST_USE) { in updateSummary()62 if (mApp.daysSinceLastUse <= 1) { in updateSummary()64 final long lastUse = now - TimeUnit.DAYS.toMillis(mApp.daysSinceLastUse); in updateSummary()71 R.string.deletion_helper_app_summary, mApp.daysSinceLastUse)); in updateSummary()
146 || state.daysSinceLastUse == UNKNOWN_LAST_USE) { in isExtraInfoValid()153 long mostRecentUse = Math.min(state.daysSinceFirstInstall, state.daysSinceLastUse); in isExtraInfoValid()203 public long daysSinceLastUse; field in AppStateUsageStatsBridge.UsageStatsState207 public UsageStatsState(long daysSinceLastUse, long daysSinceFirstInstall, int userId) { in UsageStatsState() argument208 this.daysSinceLastUse = daysSinceLastUse; in UsageStatsState()
366 || state.daysSinceLastUse == UNKNOWN_LAST_USE) { in isExtraInfoValid()373 long mostRecentUse = Math.min(state.daysSinceFirstInstall, state.daysSinceLastUse); in isExtraInfoValid()436 public long daysSinceLastUse; field in AppsAsyncLoader.PackageInfo450 long daysSinceLastUse, in PackageInfo() argument458 this.daysSinceLastUse = daysSinceLastUse; in PackageInfo()478 public Builder setDaysSinceLastUse(long daysSinceLastUse) { in setDaysSinceLastUse() argument479 this.mDaysSinceLastUse = daysSinceLastUse; in setDaysSinceLastUse()