AndroidAPS/app/src/main/java/info/nightscout/androidaps/Constants.java

60 lines
2.2 KiB
Java
Raw Normal View History

2016-06-07 21:48:17 +02:00
package info.nightscout.androidaps;
/**
* Created by mike on 07.06.2016.
*/
public class Constants {
2017-01-06 22:42:37 +01:00
public static final String MGDL = "mg/dl"; // This is Nightscout's representation
2016-06-07 21:48:17 +02:00
public static final String MMOL = "mmol";
public static final double MMOLL_TO_MGDL = 18; // 18.0182;
2016-06-07 21:48:17 +02:00
public static final double MGDL_TO_MMOLL = 1 / MMOLL_TO_MGDL;
2017-04-21 11:45:25 +02:00
public static final double defaultDIA = 3d;
public static final double basalAbsoluteOnlyForCheckLimit = 10101010d;
public static final Integer basalPercentOnlyForCheckLimit = 10101010;
2016-06-28 11:19:27 +02:00
public static final double bolusOnlyForCheckLimit = 10101010d;
public static final Integer carbsOnlyForCheckLimit = 10101010;
2016-06-26 11:43:26 +02:00
public static final Integer notificationID = 556677;
2016-07-15 20:36:45 +02:00
public static final int hoursToKeepInDatabase = 72;
2016-07-21 15:10:42 +02:00
public static final int daysToKeepHistoryInDatabase = 30;
2016-07-07 00:56:31 +02:00
public static final long keepAliveMsecs = 5 * 60 * 1000L;
2016-07-14 23:29:21 +02:00
2017-01-06 22:42:37 +01:00
// SMS COMMUNICATOR
2016-07-14 23:29:21 +02:00
public static final long remoteBolusMinDistance = 15 * 60 * 1000L;
2017-01-06 22:42:37 +01:00
// Circadian Percentage Profile
public static final int CPP_MIN_PERCENTAGE = 50;
public static final int CPP_MAX_PERCENTAGE = 200;
2017-09-24 10:39:54 +02:00
public static final int CPP_MIN_TIMESHIFT = -6;
2017-10-10 20:47:38 +02:00
public static final int CPP_MAX_TIMESHIFT = 23;
2017-01-17 21:28:57 +01:00
2017-01-19 20:36:19 +01:00
// Very Hard Limits Ranges
// First value is the Lowest and second value is the Highest a Limit can define
public static final int[] VERY_HARD_LIMIT_MIN_BG = {72,180};
2017-01-24 10:28:42 +01:00
public static final int[] VERY_HARD_LIMIT_MAX_BG = {90,270};
2017-01-19 20:36:19 +01:00
public static final int[] VERY_HARD_LIMIT_TARGET_BG = {80,200};
// Very Hard Limits Ranges for Temp Targets
public static final int[] VERY_HARD_LIMIT_TEMP_MIN_BG = {72,180};
public static final int[] VERY_HARD_LIMIT_TEMP_MAX_BG = {72,270};
public static final int[] VERY_HARD_LIMIT_TEMP_TARGET_BG = {72,200};
//DanaR
public static final double dailyLimitWarning = 0.95d;
2017-02-17 13:18:36 +01:00
//NSClientInternal
public static final int MAX_LOG_LINES = 100;
2017-04-30 21:57:55 +02:00
//Screen: Threshold for width/height to go into small width/height layout
2017-04-30 21:57:55 +02:00
public static final int SMALL_WIDTH = 320;
public static final int SMALL_HEIGHT = 320;
2017-05-04 21:09:17 +02:00
//Autosens
public static final double DEVIATION_TO_BE_EQUAL = 2.0;
2016-06-07 21:48:17 +02:00
}