mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-08 22:51:37 +02:00
7c597b325a
- model package contains mostly shared interfaces (UI+service), not named GB* - impl package contains implementations of those interfaces, named GB* the impl classes should not be used by the service (not completely done) - the service classes should mostly use classes inside the service and deviceevents packages (tbd) Every device now has two packages: - devices/[device name] for UI related functionality - service[device name] for lowlevel communication
13 lines
430 B
Java
13 lines
430 B
Java
package nodomain.freeyourgadget.gadgetbridge.activities.charts;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
|
|
|
|
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 == ActivityKind.TYPE_DEEP_SLEEP || type == ActivityKind.TYPE_LIGHT_SLEEP;
|
|
}
|
|
}
|