Searched refs:mPowerAllowListBackend (Results 1 – 2 of 2) sorted by relevance
34 @VisibleForTesting PowerAllowlistBackend mPowerAllowListBackend; field in BatteryOptimizeUtils56 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 …]
64 mBatteryOptimizeUtils.mPowerAllowListBackend = mockBackend; in setUp()