Searched refs:mPowerFeatureProvider (Results 1 – 2 of 2) sorted by relevance
55 private PowerUsageFeatureProviderImpl mPowerFeatureProvider; field in PowerUsageFeatureProviderImplTest62 mPowerFeatureProvider = spy(new PowerUsageFeatureProviderImpl(mContext)); in setUp()66 mPowerFeatureProvider.mPackageManager = mPackageManager; in setUp()72 assertThat(mPowerFeatureProvider.isBatteryUsageEnabled()).isTrue(); in isBatteryUsageEnabled_returnFalse()77 assertThat(mPowerFeatureProvider.isBatteryTipsEnabled()).isFalse(); in isBatteryTipsEnabled_returnFalse()82 assertThat(mPowerFeatureProvider.isAppOptimizationModeLogged()).isFalse(); in isAppOptimizationModeLogged_returnFalse()87 assertThat(mPowerFeatureProvider.getBatteryUsageListConsumePowerThreshold()).isEqualTo(0.0); in getBatteryUsageListConsumePowerThreshold_return0()92 assertThat(mPowerFeatureProvider.isTypeSystem(Process.ROOT_UID, null)).isTrue(); in isTypeSystem_uidRoot_returnTrue()97 assertThat(mPowerFeatureProvider.isTypeSystem(Process.SYSTEM_UID, null)).isTrue(); in isTypeSystem_uidSystem_returnTrue()102 assertThat(mPowerFeatureProvider.isTypeSystem(Process.MEDIA_UID, null)).isTrue(); in isTypeSystem_uidMedia_returnTrue()[all …]
64 @VisibleForTesting PowerUsageFeatureProvider mPowerFeatureProvider; field in PowerUsageSummary221 mPowerFeatureProvider = FeatureFactory.getFeatureFactory().getPowerUsageFeatureProvider(); in initFeatureProvider()228 mBatteryUsagePreference.setVisible(mPowerFeatureProvider.isBatteryUsageEnabled()); in initPreference()