Home
last modified time | relevance | path

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

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java107 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 …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppDeletionPreference.java56 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()
DAppStateUsageStatsBridge.java146 || 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.UsageStatsState
207 public UsageStatsState(long daysSinceLastUse, long daysSinceFirstInstall, int userId) { in UsageStatsState() argument
208 this.daysSinceLastUse = daysSinceLastUse; in UsageStatsState()
DAppsAsyncLoader.java366 || 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.PackageInfo
450 long daysSinceLastUse, in PackageInfo() argument
458 this.daysSinceLastUse = daysSinceLastUse; in PackageInfo()
478 public Builder setDaysSinceLastUse(long daysSinceLastUse) { in setDaysSinceLastUse() argument
479 this.mDaysSinceLastUse = daysSinceLastUse; in setDaysSinceLastUse()