Home
last modified time | relevance | path

Searched refs:mPowerFeatureProvider (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageFeatureProviderImplTest.java54 private PowerUsageFeatureProviderImpl mPowerFeatureProvider; field in PowerUsageFeatureProviderImplTest
61 mPowerFeatureProvider = new PowerUsageFeatureProviderImpl(mContext); in setUp()
65 mPowerFeatureProvider.mPackageManager = mPackageManager; in setUp()
74 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidRoot_returnTrue()
82 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidSystem_returnTrue()
90 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_uidMedia_returnTrue()
98 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appCalendar_returnTrue()
106 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appMedia_returnTrue()
114 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isTrue(); in testIsTypeSystem_appSystemUi_returnTrue()
122 assertThat(mPowerFeatureProvider.isTypeSystem(mBatterySipper)).isFalse(); in testIsTypeSystem_uidOther_returnFalse()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DPowerUsageSummary.java88 PowerUsageFeatureProvider mPowerFeatureProvider; field in PowerUsageSummary
158 summary1.setText(mPowerFeatureProvider.getOldEstimateDebugString( in updateViews()
163 summary2.setText(mPowerFeatureProvider.getEnhancedEstimateDebugString( in updateViews()
335 || !mPowerFeatureProvider.isEnhancedBatteryPredictionEnabled(context)) { in showBothEstimates()
345 mPowerFeatureProvider = FeatureFactory.getFactory(context) in initFeatureProvider()
353 if (mPowerFeatureProvider.isEstimateDebugEnabled()) { in restartBatteryInfoLoader()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java93 PowerUsageFeatureProvider mPowerFeatureProvider; field in PowerUsageSummary
170 final String OldEstimateString = mPowerFeatureProvider.getOldEstimateDebugString( in updateViews()
173 final String NewEstimateString = mPowerFeatureProvider.getEnhancedEstimateDebugString( in updateViews()
361 || !mPowerFeatureProvider.isEnhancedBatteryPredictionEnabled(context)) { in showBothEstimates()
371 mPowerFeatureProvider = FeatureFactory.getFactory(context) in initFeatureProvider()
382 if (mPowerFeatureProvider.isEstimateDebugEnabled()) { in restartBatteryInfoLoader()