summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/power/EnhancedEstimates.java
blob: 3b464783d009e9ebcb96b070c699ea997560977b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.android.systemui.power;

import com.android.settingslib.fuelgauge.Estimate;

public interface EnhancedEstimates {

    /**
     * Returns a boolean indicating if the hybrid notification should be used.
     */
    boolean isHybridNotificationEnabled();

    /**
     * Returns an estimate object if the feature is enabled.
     */
    Estimate getEstimate();

    /**
     * Returns a long indicating the amount of time remaining in milliseconds under which we will
     * show a regular warning to the user.
     */
    long getLowWarningThreshold();

    /**
     * Returns a long indicating the amount of time remaining in milliseconds under which we will
     * show a severe warning to the user.
     */
    long getSevereWarningThreshold();

    /**
     * Returns a boolean indicating if the low warning should be shown at all or not.
     */
    boolean getLowWarningEnabled();
}