mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-15 20:01:01 +02:00
13 lines
425 B
Java
13 lines
425 B
Java
|
package nodomain.freeyourgadget.gadgetbridge.charts;
|
||
|
|
||
|
import nodomain.freeyourgadget.gadgetbridge.GBActivitySample;
|
||
|
|
||
|
public class SleepUtils {
|
||
|
public static final float Y_VALUE_DEEP_SLEEP = 0.01f;
|
||
|
public static final float Y_VALUE_LIGHT_SLEEP = 0.016f;
|
||
|
|
||
|
public static final boolean isSleep(byte type) {
|
||
|
return type == GBActivitySample.TYPE_DEEP_SLEEP || type == GBActivitySample.TYPE_LIGHT_SLEEP;
|
||
|
}
|
||
|
}
|