1 package com.android.systemui.power; 2 3 import com.android.settingslib.fuelgauge.Estimate; 4 import com.android.settingslib.fuelgauge.EstimateKt; 5 import com.android.systemui.dagger.SysUISingleton; 6 7 import javax.inject.Inject; 8 9 @SysUISingleton 10 public class EnhancedEstimatesImpl implements EnhancedEstimates { 11 12 @Inject EnhancedEstimatesImpl()13 public EnhancedEstimatesImpl() { 14 } 15 16 @Override isHybridNotificationEnabled()17 public boolean isHybridNotificationEnabled() { 18 return false; 19 } 20 21 @Override getEstimate()22 public Estimate getEstimate() { 23 // Returns an unknown estimate. 24 return new Estimate(EstimateKt.ESTIMATE_MILLIS_UNKNOWN, 25 false /* isBasedOnUsage */, 26 EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN); 27 } 28 29 @Override getLowWarningThreshold()30 public long getLowWarningThreshold() { 31 return 0; 32 } 33 34 @Override getSevereWarningThreshold()35 public long getSevereWarningThreshold() { 36 return 0; 37 } 38 39 @Override getLowWarningEnabled()40 public boolean getLowWarningEnabled() { 41 return true; 42 } 43 } 44