/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
H A D | RecentAppStatsMixinTest.java | 97 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 98 stats.add(stat1); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 120 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 121 stats.add(stat1); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 155 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 156 stats.add(stat1); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 217 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() 218 stats.add(stat1); in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() 245 stats.add(stat1); in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule() 293 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_powerSaverModeOn_shouldHaveEmptyList() [all …]
|
H A 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(stat1); in initRecentApps() 159 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in initRecentApps()
|
/aosp12/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
H A D | RecentAppsPreferenceControllerTest.java | 141 final UsageStats stat1 = new UsageStats(); in display_showRecents() local 145 stat1.mPackageName = "pkg.class"; in display_showRecents() 146 stats.add(stat1); in display_showRecents() 180 final UsageStats stat1 = new UsageStats(); in display_showRecentsWithInstantApp() local 182 stat1.mPackageName = "com.foo.bar"; in display_showRecentsWithInstantApp() 183 stats.add(stat1); in display_showRecentsWithInstantApp() 225 stat1.mPackageName = "pkg.class"; in display_showRecentsWithNullAppEntryOrInfo() 226 stats.add(stat1); in display_showRecentsWithNullAppEntryOrInfo() 253 stats.add(stat1); in display_hasRecentButNoneDisplayable_showAllApps() 278 stat1.mPackageName = "pkg.class"; in display_showRecents_formatSummary() [all …]
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
H A 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()
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryStatsBinderCallStatsTest.java | 56 BinderCallsStats.CallStat stat1 = new BinderCallsStats.CallStat(callingUid, in testNoteBinderCallStats() local 58 stat1.incrementalCallCount = 21; in testNoteBinderCallStats() 59 stat1.recordedCallCount = 5; in testNoteBinderCallStats() 60 stat1.cpuTimeMicros = 1000; in testNoteBinderCallStats() 61 callStats.add(stat1); in testNoteBinderCallStats()
|
H A D | SystemServicePowerCalculatorTest.java | 206 BinderCallsStats.CallStat stat1 = new BinderCallsStats.CallStat(APP_UID1, in prepareBatteryStats() local 208 stat1.incrementalCallCount = 100; in prepareBatteryStats() 209 stat1.recordedCallCount = 100; in prepareBatteryStats() 210 stat1.cpuTimeMicros = 1_000_000; in prepareBatteryStats() 211 callStats.add(stat1); in prepareBatteryStats()
|
/aosp12/build/make/tools/releasetools/ |
H A D | target_files_diff.py | 181 stat1 = os.stat(name1) 183 type1 = stat1.st_mode & ~0o777 190 if stat1.st_mode != stat2.st_mode: 192 (name, stat1.st_mode, stat2.st_mode), file=out_file)
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/ |
H A D | AppGridActivity.java | 397 public int compare(UsageStats stat1, UsageStats stat2) { in compare() argument 398 Long time1 = stat1.getLastTimeUsed(); in compare()
|
/aosp12/hardware/interfaces/tv/tuner/1.1/default/ |
H A D | Filter.cpp | 967 struct stat stat1, stat2; in sameFile() local 968 if (fstat(fd1, &stat1) < 0 || fstat(fd2, &stat2) < 0) { in sameFile() 971 return (stat1.st_dev == stat2.st_dev) && (stat1.st_ino == stat2.st_ino); in sameFile()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiMetricsTest.java | 3914 WifiLinkLayerStats stat1 = nextRandomStats(createNewWifiLinkLayerStats()); in testWifiLinkLayerUsageStats() local 3915 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStats() 3917 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat1); in testWifiLinkLayerUsageStats() 3923 assertWifiLinkLayerUsageHasDiff(stat1, stat3); in testWifiLinkLayerUsageStats() 3924 assertPerRadioStatsUsageHasDiff(stat1, stat3); in testWifiLinkLayerUsageStats() 3933 WifiLinkLayerStats stat1 = nextRandomStats(createNewWifiLinkLayerStats()); in testWifiLinkLayerUsageStatsNullInput() local 3935 mWifiMetrics.incrementWifiLinkLayerUsageStats(TEST_IFACE_NAME, stat1); in testWifiLinkLayerUsageStatsNullInput() 3940 assertWifiLinkLayerUsageHasDiff(stat1, stat1); in testWifiLinkLayerUsageStatsNullInput() 3952 WifiLinkLayerStats stat2 = nextRandomStats(stat1); in testWifiLinkLayerUsageStatsChipReset() 3953 stat2.on_time = stat1.on_time - 1; in testWifiLinkLayerUsageStatsChipReset() [all …]
|