• Home
  • Raw
  • Download

Lines Matching refs:currSegment

972                 DNASegment currSegment;  in createDNAStrands()  local
974 for (; i >= 0 && startMinute <= (currSegment = segments.get(i)).endMinute; i--) { in createDNAStrands()
976 if (currSegment.color == CONFLICT_COLOR) { in createDNAStrands()
981 if (endMinute < currSegment.endMinute - minMinutes) { in createDNAStrands()
983 rhs.endMinute = currSegment.endMinute; in createDNAStrands()
984 rhs.color = currSegment.color; in createDNAStrands()
986 rhs.day = currSegment.day; in createDNAStrands()
987 currSegment.endMinute = endMinute; in createDNAStrands()
991 Log.d(TAG, "Added rhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
997 if (startMinute > currSegment.startMinute + minMinutes) { in createDNAStrands()
999 lhs.startMinute = currSegment.startMinute; in createDNAStrands()
1000 lhs.color = currSegment.color; in createDNAStrands()
1002 lhs.day = currSegment.day; in createDNAStrands()
1003 currSegment.startMinute = startMinute; in createDNAStrands()
1010 Log.d(TAG, "Added lhs, curr:" + currSegment.toString() + " i:" in createDNAStrands()
1018 if (rhs.color == CONFLICT_COLOR && currSegment.day == rhs.day in createDNAStrands()
1019 && rhs.startMinute <= currSegment.endMinute + 1) { in createDNAStrands()
1020 rhs.startMinute = Math.min(currSegment.startMinute, rhs.startMinute); in createDNAStrands()
1021 segments.remove(currSegment); in createDNAStrands()
1022 strands.get(currSegment.color).count--; in createDNAStrands()
1024 currSegment = rhs; in createDNAStrands()
1031 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day in createDNAStrands()
1032 && lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands()
1033 lhs.endMinute = Math.max(currSegment.endMinute, lhs.endMinute); in createDNAStrands()
1034 segments.remove(currSegment); in createDNAStrands()
1035 strands.get(currSegment.color).count--; in createDNAStrands()
1037 currSegment = lhs; in createDNAStrands()
1046 if (currSegment.color != CONFLICT_COLOR) { in createDNAStrands()
1047 strands.get(currSegment.color).count--; in createDNAStrands()
1048 currSegment.color = CONFLICT_COLOR; in createDNAStrands()