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

75 lines
2.7 KiB
Java
Raw Normal View History

2016-06-07 21:48:17 +02:00
package info.nightscout.androidaps;
2019-02-26 20:38:27 +01:00
import info.nightscout.androidaps.utils.T;
2018-03-31 00:36:03 +02:00
2016-06-07 21:48:17 +02:00
/**
* 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;
2018-05-06 12:49:03 +02:00
public static final double defaultDIA = 5d;
2017-04-21 11:45:25 +02:00
2018-03-20 22:09:22 +01:00
public static final Double REALLYHIGHBASALRATE = 1111111d;
public static final Integer REALLYHIGHPERCENTBASALRATE = 1111111;
2018-03-21 23:01:30 +01:00
public static final double REALLYHIGHBOLUS = 1111111d;
2018-03-22 10:31:07 +01:00
public static final Integer REALLYHIGHCARBS = 1111111;
public static final double REALLYHIGHIOB = 1111111d;
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
2016-08-02 15:43:21 +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
//DanaR
public static final double dailyLimitWarning = 0.95d;
2017-02-17 13:18:36 +01:00
2018-03-10 19:22:31 +01:00
// Temp targets
public static final int defaultActivityTTDuration = 90; // min
public static final double defaultActivityTTmgdl = 140d;
public static final double defaultActivityTTmmol = 8d;
2018-03-10 19:22:31 +01:00
public static final int defaultEatingSoonTTDuration = 45; // min
public static final double defaultEatingSoonTTmgdl = 90d;
public static final double defaultEatingSoonTTmmol = 5d;
public static final int defaultHypoTTDuration = 30; // min
public static final double defaultHypoTTmgdl = 120d;
public static final double defaultHypoTTmmol = 6.5d;
2018-03-10 19:22:31 +01:00
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;
2017-12-03 17:30:20 +01:00
public static final int SMALL_HEIGHT = 480;
2017-05-04 21:09:17 +02:00
//Autosens
public static final double DEVIATION_TO_BE_EQUAL = 2.0;
public static final double DEFAULT_MAX_ABSORPTION_TIME = 6.0;
2017-11-11 14:05:29 +01:00
// Pump
2017-12-04 20:26:57 +01:00
public static final int PUMP_MAX_CONNECTION_TIME_IN_SECONDS = 120 - 1;
2017-12-01 13:57:53 +01:00
public static final int MIN_WATCHDOG_INTERVAL_IN_SECONDS = 12 * 60;
2018-03-31 00:36:03 +02:00
//SMS Communicator
public static final long SMS_CONFIRM_TIMEOUT = T.mins(5).msecs();
2018-07-27 11:35:32 +02:00
2019-03-07 11:32:09 +01:00
//Storage [MB]
public static final long MINIMUM_FREE_SPACE = 200;
2016-06-07 21:48:17 +02:00
}