Home
last modified time | relevance | path

Searched refs:isSafeToKill (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/cpp/watchdog/server/tests/
DMockIoOveruseConfigs.h63 MOCK_METHOD(bool, isSafeToKill,
71 bool isSafeToKill = false; member
88 ON_CALL(*this, isSafeToKill(testing::_)) in injectPackageConfigs()
96 return it->second.isSafeToKill; in injectPackageConfigs()
DIoOveruseConfigsTest.cpp520 EXPECT_FALSE(ioOveruseConfigs.isSafeToKill(packageInfo)) in TEST_F()
527 EXPECT_FALSE(ioOveruseConfigs.isSafeToKill(packageInfo)) in TEST_F()
534 EXPECT_TRUE(ioOveruseConfigs.isSafeToKill(packageInfo)) in TEST_F()
913 EXPECT_FALSE(ioOveruseConfigs->isSafeToKill( in TEST_F()
916 EXPECT_TRUE(ioOveruseConfigs->isSafeToKill( in TEST_F()
934 EXPECT_TRUE(ioOveruseConfigs->isSafeToKill(packageInfo)) in TEST_F()
940 EXPECT_TRUE(ioOveruseConfigs->isSafeToKill(packageInfo)) in TEST_F()
946 EXPECT_FALSE(ioOveruseConfigs->isSafeToKill(packageInfo)) in TEST_F()
952 EXPECT_FALSE(ioOveruseConfigs->isSafeToKill( in TEST_F()
955 EXPECT_TRUE(ioOveruseConfigs->isSafeToKill( in TEST_F()
[all …]
DIoOveruseMonitorTest.cpp587 EXPECT_CALL(*mMockIoOveruseConfigs, isSafeToKill(_)).Times(0); in TEST_F()
789 EXPECT_CALL(*mMockIoOveruseConfigs, isSafeToKill(_)).Times(0); in TEST_F()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseConfigs.h109 virtual bool isSafeToKill(const aidl::android::automotive::watchdog::internal::PackageInfo&
213 bool isSafeToKill(const aidl::android::automotive::watchdog::internal::PackageInfo& packageInfo)
DIoOveruseMonitor.cpp339 mIoOveruseConfigs->isSafeToKill(dailyIoUsage->packageInfo); in onPeriodicCollection()
682 ioOveruseStats->killableOnOveruse = mIoOveruseConfigs->isSafeToKill(*packageInfo); in getIoOveruseStats()
DIoOveruseConfigs.cpp722 bool IoOveruseConfigs::isSafeToKill(const PackageInfo& packageInfo) const { in isSafeToKill() function in android::automotive::watchdog::IoOveruseConfigs
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java1029 assertWithMessage("isSafeToKill non-critical system package").that(cache.isSafeToKill( in testOveruseConfigurationCacheIsSafeToKill()
1033 .that(cache.isSafeToKill("system_package.A", ComponentType.SYSTEM, in testOveruseConfigurationCacheIsSafeToKill()
1036 assertWithMessage("isSafeToKill non-critical vendor package").that(cache.isSafeToKill( in testOveruseConfigurationCacheIsSafeToKill()
1040 .that(cache.isSafeToKill("vendor_package.A", ComponentType.VENDOR, in testOveruseConfigurationCacheIsSafeToKill()
1043 assertWithMessage("isSafeToKill 3p package").that(cache.isSafeToKill( in testOveruseConfigurationCacheIsSafeToKill()
1046 assertWithMessage("isSafeToKill critical system package").that(cache.isSafeToKill( in testOveruseConfigurationCacheIsSafeToKill()
1049 assertWithMessage("isSafeToKill critical vendor package").that(cache.isSafeToKill( in testOveruseConfigurationCacheIsSafeToKill()
1079 assertWithMessage("isSafeToKill any system package").that(cache.isSafeToKill( in testOverwriteOveruseConfigurationCache()
1082 assertWithMessage("isSafeToKill any vendor package").that(cache.isSafeToKill( in testOverwriteOveruseConfigurationCache()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java820 mOveruseConfigurationCache.isSafeToKill( in getPackageKillableStatesForUserId()
846 mOveruseConfigurationCache.isSafeToKill( in getPackageKillableStatesForUserId()
1496 int userId, String genericPackageName, int componentType, boolean isSafeToKill) { in getPackageKillableStateForUserPackageLocked() argument
1504 componentType, isSafeToKill, defaultKillableState); in getPackageKillableStateForUserPackageLocked()
3051 public int syncAndFetchKillableState(int myComponentType, boolean isSafeToKill, in syncAndFetchKillableState() argument
3060 if (myComponentType != ComponentType.THIRD_PARTY && !isSafeToKill) { in syncAndFetchKillableState()
DOveruseConfigurationCache.java311 public boolean isSafeToKill(String genericPackageName, @ComponentType int componentType, in isSafeToKill() method in OveruseConfigurationCache