Home
last modified time | relevance | path

Searched refs:mPowerAllowListBackend (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtils.java34 @VisibleForTesting PowerAllowlistBackend mPowerAllowListBackend; field in BatteryOptimizeUtils
56 mPowerAllowListBackend = PowerAllowlistBackend.getInstance(context); in BatteryOptimizeUtils()
59 mAllowListed = mPowerAllowListBackend.isAllowlisted(mPackageName); in BatteryOptimizeUtils()
80 mPowerAllowListBackend.removeApp(mPackageName); in setAppUsageState()
84 mPowerAllowListBackend.addApp(mPackageName); in setAppUsageState()
88 mPowerAllowListBackend.removeApp(mPackageName); in setAppUsageState()
106 mPowerAllowListBackend.refreshList(); in isSystemOrDefaultApp()
108 return mPowerAllowListBackend.isSysAllowlisted(mPackageName) in isSystemOrDefaultApp()
109 || mPowerAllowListBackend.isDefaultActiveApp(mPackageName); in isSystemOrDefaultApp()
117 mPowerAllowListBackend.refreshList(); in refreshState()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtilsTest.java64 mBatteryOptimizeUtils.mPowerAllowListBackend = mockBackend; in setUp()