Searched refs:stat2 (Results 1 – 5 of 5) sorted by relevance
142 final UsageStats stat2 = new UsageStats(); in display_showRecents() local148 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() local187 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 …]
136 final UsageStats stat2 = new UsageStats(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() local142 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() local177 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 …]
146 final UsageStats stat2 = new UsageStats(); in initRecentApps() local152 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()
106 final UsageStats stat2 = createUsageStats(MOCK_PACKAGE_NAME_2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local109 stats.add(stat2); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()115 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
4131 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStats() local4132 WifiLinkLayerStats stat3 = nextRandomStats(stat2); in testWifiLinkLayerUsageStats()4134 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat2); in testWifiLinkLayerUsageStats()4150 WifiLinkLayerStats stat2 = null; in testWifiLinkLayerUsageStatsNullInput() local4152 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat2); in testWifiLinkLayerUsageStatsNullInput()4168 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStatsChipReset() local4169 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()