Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java142 final UsageStats stat2 = new UsageStats(); in display_showRecents() local
148 stat2.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents()
149 stat2.mPackageName = "com.android.tv.settings"; in display_showRecents()
150 stats.add(stat2); in display_showRecents()
159 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecents()
186 final UsageStats stat2 = new UsageStats(); in display_showRecentsWithInstantApp() local
187 stat2.mLastTimeUsed = System.currentTimeMillis() + 200; in display_showRecentsWithInstantApp()
188 stat2.mPackageName = "com.foo.barinstant"; in display_showRecentsWithInstantApp()
189 stats.add(stat2); in display_showRecentsWithInstantApp()
197 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())).thenReturn(stat2Entry); in display_showRecentsWithInstantApp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java117 final UsageStats stat2 = new UsageStats(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() local
123 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
124 stat2.mPackageName = "pkg.class2"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
125 stats.add(stat2); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
133 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
152 final UsageStats stat2 = new UsageStats(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local
158 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
159 stat2.mPackageName = "com.android.settings"; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
160 stats.add(stat2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
169 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
[all …]
DRecentAppsPreferenceControllerTest.java129 final UsageStats stat2 = new UsageStats(); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime() local
135 stat2.mLastTimeUsed = System.currentTimeMillis(); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
136 stat2.mPackageName = "pkg.class2"; in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
137 stats.add(stat2); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
144 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java335 public int compare(UsageStats stat1, UsageStats stat2) { in compare() argument
337 Long time2 = stat2.getLastTimeUsed(); in compare()