Java Code Examples for com.eveningoutpost.dexdrip.ImportedLibraries.dexcom.ReadDataShare#getRecentCalRecords()
The following examples show how to use
com.eveningoutpost.dexdrip.ImportedLibraries.dexcom.ReadDataShare#getRecentCalRecords() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShareTest.java From xDrip with GNU General Public License v3.0 | 4 votes |
public void attemptRead() { final ReadDataShare readData = new ReadDataShare(this); final Action1<Long> systemTimeListener = new Action1<Long>() { @Override public void call(Long s) { Log.d(TAG, "Made the full round trip, got " + s + " as the system time"); Log.d("SYSTTIME", "Made the full round trip, got " + s + " as the system time"); final long addativeSystemTimeOffset = new Date().getTime() - s; Log.d(TAG, "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); Log.d("SYSTTIME", "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); final Action1<CalRecord[]> calRecordListener = new Action1<CalRecord[]>() { @Override public void call(CalRecord[] calRecords) { Log.d(TAG, "Made the full round trip, got " + calRecords.length + " Cal Records"); Calibration.create(calRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<SensorRecord[]> sensorRecordListener = new Action1<SensorRecord[]>() { @Override public void call(SensorRecord[] sensorRecords) { Log.d(TAG, "Made the full round trip, got " + sensorRecords.length + " Sensor Records"); BgReading.create(sensorRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<EGVRecord[]> evgRecordListener = new Action1<EGVRecord[]>() { @Override public void call(EGVRecord[] egvRecords) { Log.d(TAG, "Made the full round trip, got " + egvRecords.length + " EVG Records"); BgReading.create(egvRecords, addativeSystemTimeOffset, getApplicationContext()); } }; readData.getRecentEGVs(evgRecordListener); } }; readData.getRecentSensorRecords(sensorRecordListener); } }; readData.getRecentCalRecords(calRecordListener); } }; readData.readSystemTime(systemTimeListener); }
Example 2
Source File: ShareTest.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
public void attemptRead() { final ReadDataShare readData = new ReadDataShare(this); final Action1<Long> systemTimeListener = new Action1<Long>() { @Override public void call(Long s) { Log.d(TAG, "Made the full round trip, got " + s + " as the system time"); Log.d("SYSTTIME", "Made the full round trip, got " + s + " as the system time"); final long addativeSystemTimeOffset = new Date().getTime() - s; Log.d(TAG, "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); Log.d("SYSTTIME", "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); final Action1<CalRecord[]> calRecordListener = new Action1<CalRecord[]>() { @Override public void call(CalRecord[] calRecords) { Log.d(TAG, "Made the full round trip, got " + calRecords.length + " Cal Records"); Calibration.create(calRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<SensorRecord[]> sensorRecordListener = new Action1<SensorRecord[]>() { @Override public void call(SensorRecord[] sensorRecords) { Log.d(TAG, "Made the full round trip, got " + sensorRecords.length + " Sensor Records"); BgReading.create(sensorRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<EGVRecord[]> evgRecordListener = new Action1<EGVRecord[]>() { @Override public void call(EGVRecord[] egvRecords) { Log.d(TAG, "Made the full round trip, got " + egvRecords.length + " EVG Records"); BgReading.create(egvRecords, addativeSystemTimeOffset, getApplicationContext()); } }; readData.getRecentEGVs(evgRecordListener); } }; readData.getRecentSensorRecords(sensorRecordListener); } }; readData.getRecentCalRecords(calRecordListener); } }; readData.readSystemTime(systemTimeListener); }
Example 3
Source File: ShareTest.java From xDrip-Experimental with GNU General Public License v3.0 | 4 votes |
public void attemptRead() { final ReadDataShare readData = new ReadDataShare(this); final Action1<Long> systemTimeListener = new Action1<Long>() { @Override public void call(Long s) { Log.d(TAG, "Made the full round trip, got " + s + " as the system time"); Log.d("SYSTTIME", "Made the full round trip, got " + s + " as the system time"); final long addativeSystemTimeOffset = new Date().getTime() - s; Log.d(TAG, "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); Log.d("SYSTTIME", "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); final Action1<CalRecord[]> calRecordListener = new Action1<CalRecord[]>() { @Override public void call(CalRecord[] calRecords) { Log.d(TAG, "Made the full round trip, got " + calRecords.length + " Cal Records"); Calibration.create(calRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<SensorRecord[]> sensorRecordListener = new Action1<SensorRecord[]>() { @Override public void call(SensorRecord[] sensorRecords) { Log.d(TAG, "Made the full round trip, got " + sensorRecords.length + " Sensor Records"); BgReading.create(sensorRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<EGVRecord[]> evgRecordListener = new Action1<EGVRecord[]>() { @Override public void call(EGVRecord[] egvRecords) { Log.d(TAG, "Made the full round trip, got " + egvRecords.length + " EVG Records"); BgReading.create(egvRecords, addativeSystemTimeOffset, getApplicationContext()); } }; readData.getRecentEGVs(evgRecordListener); } }; readData.getRecentSensorRecords(sensorRecordListener); } }; readData.getRecentCalRecords(calRecordListener); } }; readData.readSystemTime(systemTimeListener); }
Example 4
Source File: ShareTest.java From xDrip with GNU General Public License v3.0 | 4 votes |
public void attemptRead() { final ReadDataShare readData = new ReadDataShare(this); final Action1<Long> systemTimeListener = new Action1<Long>() { @Override public void call(Long s) { Log.d(TAG, "Made the full round trip, got " + s + " as the system time"); Log.d("SYSTTIME", "Made the full round trip, got " + s + " as the system time"); final long addativeSystemTimeOffset = new Date().getTime() - s; Log.d(TAG, "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); Log.d("SYSTTIME", "Made the full round trip, got " + addativeSystemTimeOffset + " offset"); final Action1<CalRecord[]> calRecordListener = new Action1<CalRecord[]>() { @Override public void call(CalRecord[] calRecords) { Log.d(TAG, "Made the full round trip, got " + calRecords.length + " Cal Records"); Calibration.create(calRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<SensorRecord[]> sensorRecordListener = new Action1<SensorRecord[]>() { @Override public void call(SensorRecord[] sensorRecords) { Log.d(TAG, "Made the full round trip, got " + sensorRecords.length + " Sensor Records"); BgReading.create(sensorRecords, addativeSystemTimeOffset, getApplicationContext()); final Action1<EGVRecord[]> evgRecordListener = new Action1<EGVRecord[]>() { @Override public void call(EGVRecord[] egvRecords) { Log.d(TAG, "Made the full round trip, got " + egvRecords.length + " EVG Records"); BgReading.create(egvRecords, addativeSystemTimeOffset, getApplicationContext()); } }; readData.getRecentEGVs(evgRecordListener); } }; readData.getRecentSensorRecords(sensorRecordListener); } }; readData.getRecentCalRecords(calRecordListener); } }; readData.readSystemTime(systemTimeListener); }