Home
last modified time | relevance | path

Searched refs:UsageStatsState (Results 1 – 2 of 2) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java26 import com.android.storagemanager.deletionhelper.AppStateUsageStatsBridge.UsageStatsState;
103 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_appInstalledSameDayNeverUsed_isInvalid()
117 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
131 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unusedApp_isValid()
145 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_unusedApp_isValid()
160 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unknownLastUse_isFilteredOut()
175 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_unknownLastUse_isFilteredOut()
190 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_oldAppRecentlyUsed_isNotValid()
205 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
220 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_oldUnusedApp_isValid()
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java76 entry.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in loadAllExtraInfo()
86 app.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in updateExtraInfo()
138 if (extraInfo == null || !(extraInfo instanceof UsageStatsState)) { in isExtraInfoValid()
142 UsageStatsState state = (UsageStatsState) extraInfo; in isExtraInfoValid()
202 public static class UsageStatsState { class in AppStateUsageStatsBridge
207 public UsageStatsState(long daysSinceLastUse, long daysSinceFirstInstall, int userId) { in UsageStatsState() method in AppStateUsageStatsBridge.UsageStatsState