Searched refs:stat1 (Results 1 – 5 of 5) sorted by relevance
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 141 final UsageStats stat1 = new UsageStats(); in display_showRecents() local 144 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents() 145 stat1.mPackageName = "pkg.class"; in display_showRecents() 146 stats.add(stat1); in display_showRecents() 157 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents() 180 final UsageStats stat1 = new UsageStats(); in display_showRecentsWithInstantApp() local 181 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecentsWithInstantApp() 182 stat1.mPackageName = "com.foo.bar"; in display_showRecentsWithInstantApp() 183 stats.add(stat1); in display_showRecentsWithInstantApp() 196 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())).thenReturn(stat1Entry); in display_showRecentsWithInstantApp() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 114 final UsageStats stat1 = new UsageStats(); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() local 115 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 116 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 117 stats.add(stat1); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 119 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 135 final UsageStats stat1 = new UsageStats(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() local 138 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 139 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 140 stats.add(stat1); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 150 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() [all …]
|
D | AppsPreferenceControllerTest.java | 145 final UsageStats stat1 = new UsageStats(); in initRecentApps() local 148 stat1.mLastTimeUsed = System.currentTimeMillis(); in initRecentApps() 149 stat1.mPackageName = "pkg.class"; in initRecentApps() 150 mUsageStats.add(statsWrapperOf(stat1)); in initRecentApps() 159 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in initRecentApps()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | RecentAppsItemManagerTest.java | 86 final UsageStats stat1 = createUsageStats(MOCK_PACKAGE_NAME_1); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() local 87 stats.add(stat1); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 89 when(mAppState.getEntry(eq(stat1.mPackageName), anyInt())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 105 final UsageStats stat1 = createUsageStats(MOCK_PACKAGE_NAME_1); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local 108 stats.add(stat1); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 113 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 4130 WifiLinkLayerStats stat1 = nextRandomStats(createNewWifiLinkLayerStats()); in testWifiLinkLayerUsageStats() local 4131 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStats() 4133 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat1); in testWifiLinkLayerUsageStats() 4139 assertWifiLinkLayerUsageHasDiff(stat1, stat3); in testWifiLinkLayerUsageStats() 4140 assertPerRadioStatsUsageHasDiff(stat1, stat3); in testWifiLinkLayerUsageStats() 4149 WifiLinkLayerStats stat1 = nextRandomStats(createNewWifiLinkLayerStats()); in testWifiLinkLayerUsageStatsNullInput() local 4151 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat1); in testWifiLinkLayerUsageStatsNullInput() 4156 assertWifiLinkLayerUsageHasDiff(stat1, stat1); in testWifiLinkLayerUsageStatsNullInput() 4167 WifiLinkLayerStats stat1 = nextRandomStats(createNewWifiLinkLayerStats()); in testWifiLinkLayerUsageStatsChipReset() local 4168 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStatsChipReset() [all …]
|