Java Code Examples for com.eveningoutpost.dexdrip.ImportedLibraries.dexcom.Utils#receiverTimeToDate()
The following examples show how to use
com.eveningoutpost.dexdrip.ImportedLibraries.dexcom.Utils#receiverTimeToDate() .
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: CalSubrecord.java From xDrip with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 2
Source File: CalSubrecord.java From xDrip with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 3
Source File: CalSubrecord.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 4
Source File: CalSubrecord.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 5
Source File: CalSubrecord.java From xDrip-Experimental with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 6
Source File: CalSubrecord.java From xDrip with GNU General Public License v3.0 | 5 votes |
public CalSubrecord(byte[] packet, long displayTimeOffset) { int delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(); dateEntered = Utils.receiverTimeToDate(delta + displayTimeOffset); calBGL = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(4); calRaw = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(8); delta = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(12); dateApplied = Utils.receiverTimeToDate(delta + displayTimeOffset); unk = packet[16]; }
Example 7
Source File: GenericTimestampRecord.java From xDrip with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }
Example 8
Source File: GenericTimestampRecord.java From xDrip with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }
Example 9
Source File: GenericTimestampRecord.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }
Example 10
Source File: GenericTimestampRecord.java From xDrip-plus with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }
Example 11
Source File: GenericTimestampRecord.java From xDrip-Experimental with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }
Example 12
Source File: GenericTimestampRecord.java From xDrip with GNU General Public License v3.0 | 4 votes |
public GenericTimestampRecord(byte[] packet) { systemTimeSeconds = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_SYS_TIME); systemTime = Utils.receiverTimeToDate(systemTimeSeconds); int dt = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN).getInt(OFFSET_DISPLAY_TIME); displayTime = Utils.receiverTimeToDate(dt); }