public static BloodTest createFromCal(double bg, double timeoffset, String source) { return createFromCal(bg, timeoffset, source, null); }
public static BloodTest createFromCal(double bg, double timeoffset, String source) { return createFromCal(bg, timeoffset, source, null); }
public static BloodTest createFromCal(double bg, double timeoffset, String source) { return createFromCal(bg, timeoffset, source, null); }
BloodTest.createFromCal(glucosenumber, timeoffset, "Manual Entry"); GcmActivity.syncBloodTests(); if ((!Pref.getBooleanDefaultFalse("bluetooth_meter_for_calibrations_auto"))
BloodTest.createFromCal(glucosenumber, timeoffset, "Manual Entry"); GcmActivity.syncBloodTests(); if ((!Pref.getBooleanDefaultFalse("bluetooth_meter_for_calibrations_auto"))
Log.e(TAG, "Treatment bloodtest timestamp out of range: " + mytimeoffset); } else { BloodTest.createFromCal(myglucosenumber, mytimeoffset, "Manual Entry", thisuuid);
Log.e(TAG, "Treatment bloodtest timestamp out of range: " + mytimeoffset); } else { BloodTest.createFromCal(myglucosenumber, mytimeoffset, "Manual Entry", thisuuid);
public synchronized static void createTreatment(DataMap dataMap, Context context) { Log.d(TAG, "createTreatment dataMap=" + dataMap); double timeoffset = dataMap.getDouble("timeoffset", 0); double carbs = dataMap.getDouble("carbs", 0); double insulin = dataMap.getDouble("insulin", 0); double bloodtest = dataMap.getDouble("bloodtest", 0); String notes = dataMap.getString("notes", ""); long timestamp_ms = Treatments.getTimeStampWithOffset(timeoffset); Treatments treatment = Treatments.create(carbs, insulin, notes, timestamp_ms); if (bloodtest > 0) { Log.d(TAG, "createTreatment bloodtest=" + bloodtest); BloodTest.createFromCal(bloodtest, timeoffset, "Manual Entry", treatment.uuid); } else Log.d(TAG, "createTreatment bloodtest=0 " + bloodtest); showTreatments(context, "all"); SendData(context, SYNC_TREATMENTS_PATH, null); //requestData(context);//send to phone if connected }