### Question:
DayView extends ViewGroup { @VisibleForTesting void setEventRects(int firstDividerTop, float minuteHeight, int dividerStart, int dividerEnd) { if (eventColumnSpansHelper == null) { return; } int eventColumnWidth = eventColumnSpansHelper.columnCount > 0 ? (dividerEnd - dividerStart) / eventColumnSpansHelper.columnCount : 0; for (int i = 0; i < filteredEventViews.size(); i++) { EventTimeRange timeRange = filteredEventTimeRanges.get(i); EventColumnSpan columnSpan = eventColumnSpansHelper.columnSpans.get(i); int filteredStartMinute = Math.max(startMinute, timeRange.startMinute); int duration = Math.min(endMinute, timeRange.endMinute) - filteredStartMinute; if (duration < MIN_DURATION_MINUTES) { duration = MIN_DURATION_MINUTES; filteredStartMinute = endMinute - duration; } int start = columnSpan.startColumn * eventColumnWidth + dividerStart + eventMargin; int end = start + (columnSpan.endColumn - columnSpan.startColumn) * eventColumnWidth - eventMargin * 2; int topOffset = (int) ((filteredStartMinute - startMinute) * minuteHeight); int top = firstDividerTop + topOffset + dividerHeight + eventMargin; int bottom = top + (int) (duration * minuteHeight) - eventMargin * 2 - dividerHeight; setRect(eventRects.get(i), start, top, end, bottom); } } DayView(@NonNull Context context);  DayView(@NonNull Context context, @Nullable AttributeSet attrs);  DayView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); @VisibleForTesting  DayView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, boolean enableDrawing); void setHourLabelViews(@NonNull List<View> hourLabelViews); void setEventViews(@Nullable List<View> eventViews,
                              @Nullable List<EventTimeRange> eventTimeRanges); @Nullable List<View> removeEventViews(); int getStartHour(); int getEndHour(); int getHourTop(int hour); int getHourBottom(int hour); int getFirstEventTop(); int getFirstEventBottom(); int getLastEventTop(); int getLastEventBottom(); @Override boolean shouldDelayChildPressedState();  }### Answer:
@Test public void setEventRects() { dayView.setEventRects(10, MINUTE_HEIGHT, 5, 195); assertThat(dayView.eventRects, notNullValue()); assertThat(dayView.eventRects.get(0).getLeft(), is(8)); assertThat(dayView.eventRects.get(0).getTop(), is(48)); assertThat(dayView.eventRects.get(0).getRight(), is(65)); assertThat(dayView.eventRects.get(0).getBottom(), is(175)); assertThat(dayView.eventRects.get(1).getLeft(), is(71)); assertThat(dayView.eventRects.get(1).getTop(), is(104)); assertThat(dayView.eventRects.get(1).getRight(), is(191)); assertThat(dayView.eventRects.get(1).getBottom(), is(119)); assertThat(dayView.eventRects.get(2).getLeft(), is(71)); assertThat(dayView.eventRects.get(2).getTop(), is(160)); assertThat(dayView.eventRects.get(2).getRight(), is(128)); assertThat(dayView.eventRects.get(2).getBottom(), is(287)); assertThat(dayView.eventRects.get(3).getLeft(), is(134)); assertThat(dayView.eventRects.get(3).getTop(), is(160)); assertThat(dayView.eventRects.get(3).getRight(), is(191)); assertThat(dayView.eventRects.get(3).getBottom(), is(287)); }