Lines Matching refs:currSegment

1049                 DNASegment currSegment;  in createDNAStrands()  local
1051 for (; i >= 0 && startMinute <= (currSegment = segments.get(i)).endMinute; i--) { in createDNAStrands()
1053 if (currSegment.color == CONFLICT_COLOR) { in createDNAStrands()
1058 if (endMinute < currSegment.endMinute - minMinutes) { in createDNAStrands()
1060 rhs.endMinute = currSegment.endMinute; in createDNAStrands()
1061 rhs.color = currSegment.color; in createDNAStrands()
1063 rhs.day = currSegment.day; in createDNAStrands()
1064 currSegment.endMinute = endMinute; in createDNAStrands()
1068 Log.d(TAG, "Added rhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
1074 if (startMinute > currSegment.startMinute + minMinutes) { in createDNAStrands()
1076 lhs.startMinute = currSegment.startMinute; in createDNAStrands()
1077 lhs.color = currSegment.color; in createDNAStrands()
1079 lhs.day = currSegment.day; in createDNAStrands()
1080 currSegment.startMinute = startMinute; in createDNAStrands()
1087 Log.d(TAG, "Added lhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
1095 if (rhs.color == CONFLICT_COLOR && currSegment.day == rhs.day in createDNAStrands()
1096 && rhs.startMinute <= currSegment.endMinute + 1) { in createDNAStrands()
1097 rhs.startMinute = Math.min(currSegment.startMinute, rhs.startMinute); in createDNAStrands()
1098 segments.remove(currSegment); in createDNAStrands()
1099 strands.get(currSegment.color).count--; in createDNAStrands()
1101 currSegment = rhs; in createDNAStrands()
1108 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day in createDNAStrands()
1109 && lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands()
1110 lhs.endMinute = Math.max(currSegment.endMinute, lhs.endMinute); in createDNAStrands()
1111 segments.remove(currSegment); in createDNAStrands()
1112 strands.get(currSegment.color).count--; in createDNAStrands()
1114 currSegment = lhs; in createDNAStrands()
1123 if (currSegment.color != CONFLICT_COLOR) { in createDNAStrands()
1124 strands.get(currSegment.color).count--; in createDNAStrands()
1125 currSegment.color = CONFLICT_COLOR; in createDNAStrands()