Lines Matching refs:currSegment
1019 DNASegment currSegment; in createDNAStrands() local
1021 for (; i >= 0 && startMinute <= (currSegment = segments.get(i)).endMinute; i--) { in createDNAStrands()
1023 if (currSegment.color == CONFLICT_COLOR) { in createDNAStrands()
1028 if (endMinute < currSegment.endMinute - minMinutes) { in createDNAStrands()
1030 rhs.endMinute = currSegment.endMinute; in createDNAStrands()
1031 rhs.color = currSegment.color; in createDNAStrands()
1033 rhs.day = currSegment.day; in createDNAStrands()
1034 currSegment.endMinute = endMinute; in createDNAStrands()
1038 Log.d(TAG, "Added rhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
1044 if (startMinute > currSegment.startMinute + minMinutes) { in createDNAStrands()
1046 lhs.startMinute = currSegment.startMinute; in createDNAStrands()
1047 lhs.color = currSegment.color; in createDNAStrands()
1049 lhs.day = currSegment.day; in createDNAStrands()
1050 currSegment.startMinute = startMinute; in createDNAStrands()
1057 Log.d(TAG, "Added lhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
1065 if (rhs.color == CONFLICT_COLOR && currSegment.day == rhs.day in createDNAStrands()
1066 && rhs.startMinute <= currSegment.endMinute + 1) { in createDNAStrands()
1067 rhs.startMinute = Math.min(currSegment.startMinute, rhs.startMinute); in createDNAStrands()
1068 segments.remove(currSegment); in createDNAStrands()
1069 strands.get(currSegment.color).count--; in createDNAStrands()
1071 currSegment = rhs; in createDNAStrands()
1078 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day in createDNAStrands()
1079 && lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands()
1080 lhs.endMinute = Math.max(currSegment.endMinute, lhs.endMinute); in createDNAStrands()
1081 segments.remove(currSegment); in createDNAStrands()
1082 strands.get(currSegment.color).count--; in createDNAStrands()
1084 currSegment = lhs; in createDNAStrands()
1093 if (currSegment.color != CONFLICT_COLOR) { in createDNAStrands()
1094 strands.get(currSegment.color).count--; in createDNAStrands()
1095 currSegment.color = CONFLICT_COLOR; in createDNAStrands()