Home
last modified time | relevance | path

Searched refs:stat2 (Results 1 – 5 of 5) 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.java136 final UsageStats stat2 = new UsageStats(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() local
142 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
143 stat2.mPackageName = "pkg.class2"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
144 stats.add(stat2); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
152 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
171 final UsageStats stat2 = new UsageStats(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local
177 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
178 stat2.mPackageName = "com.android.settings"; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
179 stats.add(stat2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
188 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
[all …]
DAppsPreferenceControllerTest.java146 final UsageStats stat2 = new UsageStats(); in initRecentApps() local
152 stat2.mLastTimeUsed = System.currentTimeMillis(); in initRecentApps()
153 stat2.mPackageName = "pkg.class2"; in initRecentApps()
154 mUsageStats.add(statsWrapperOf(stat2)); in initRecentApps()
161 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in initRecentApps()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsItemManagerTest.java106 final UsageStats stat2 = createUsageStats(MOCK_PACKAGE_NAME_2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local
109 stats.add(stat2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
115 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java4131 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStats() local
4132 WifiLinkLayerStats stat3 = nextRandomStats(stat2); in testWifiLinkLayerUsageStats()
4134 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat2); in testWifiLinkLayerUsageStats()
4150 WifiLinkLayerStats stat2 = null; in testWifiLinkLayerUsageStatsNullInput() local
4152 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat2); in testWifiLinkLayerUsageStatsNullInput()
4168 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStatsChipReset() local
4169 stat2.on_time = stat1.on_time - 1; in testWifiLinkLayerUsageStatsChipReset()
4170 WifiLinkLayerStats stat3 = nextRandomStats(stat2); in testWifiLinkLayerUsageStatsChipReset()
4173 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat2); in testWifiLinkLayerUsageStatsChipReset()