/** * Sets the new t for the point. Checks which t was set. * * @param builder the point builder * @param newOffset the new offset */ private static void setT(SimpleProtocolBuffers.Point.Builder builder, long newOffset) { if (safeLongToUInt(newOffset)) { if (builder.hasTintBP()) { builder.setTintBP((int) newOffset); } if (builder.hasTint()) { builder.setTint((int) newOffset); } } else { if (builder.hasTlongBP()) { builder.setTlongBP(newOffset); } if (builder.hasTlong()) { builder.setTlong(newOffset); } } }
if (safeLongToUInt(offsetToEnd)) { points.addP(point.setTint((int) offsetToEnd).build()); } else { storedOffsetToEnd = 0; if (safeLongToUInt(storedOffsetToEnd)) { points.addP(point.setTintBP((int) storedOffsetToEnd).build()); } else { timeStamp = offset - previousDrift; if (safeLongToUInt(timeStamp)) { point.setTintBP((int) timeStamp); } else { if (safeLongToUInt(timeStamp)) { point.setTint((int) timeStamp); } else {