Lines Matching refs:segment
1102 for (DNASegment segment : segments) { in weaveDNAStrands()
1104 DNAStrand strand = strands.get(segment.color); in weaveDNAStrands()
1105 int dayIndex = segment.day - firstJulianDay; in weaveDNAStrands()
1106 int dayStartMinute = segment.startMinute % DAY_IN_MINUTES; in weaveDNAStrands()
1107 int dayEndMinute = segment.endMinute % DAY_IN_MINUTES; in weaveDNAStrands()
1119 Log.d(TAG, "Adding " + Integer.toHexString(segment.color) + " at x,y0,y1: " + x in weaveDNAStrands()
1181 DNASegment segment = new DNASegment(); in addNewSegment() local
1185 segment.startMinute = Math.max(dayOffset + event.startTime, minStart); in addNewSegment()
1188 int minEnd = Math.min(segment.startMinute + minMinutes, endOfDay); in addNewSegment()
1189 segment.endMinute = Math.max(dayOffset + event.endTime, minEnd); in addNewSegment()
1190 if (segment.endMinute > endOfDay) { in addNewSegment()
1191 segment.endMinute = endOfDay; in addNewSegment()
1194 segment.color = event.color; in addNewSegment()
1195 segment.day = event.startDay; in addNewSegment()
1196 segments.add(segment); in addNewSegment()
1199 DNAStrand strand = getOrCreateStrand(strands, segment.color); in addNewSegment()