### Question:
DayView extends ViewGroup { @VisibleForTesting void setDividerRects(int firstDividerTop, int dividerStart, int dividerEnd) { for (int i = 0; i < hourDividerRects.size(); i++) { int top = firstDividerTop + i * 2 * usableHalfHourHeight; int bottom = top + dividerHeight; setRect(hourDividerRects.get(i), dividerStart, top, dividerEnd, bottom); } for (int i = 0; i < halfHourDividerRects.size(); i++) { int top = firstDividerTop + (i * 2 + 1) * usableHalfHourHeight; int bottom = top + dividerHeight; setRect(halfHourDividerRects.get(i), dividerStart, top, dividerEnd, 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 setDividerRects() { dayView.setDividerRects(10, 5, 195); assertThat(dayView.hourDividerRects.get(0).getLeft(), is(5)); assertThat(dayView.hourDividerRects.get(0).getTop(), is(10)); assertThat(dayView.hourDividerRects.get(0).getRight(), is(195)); assertThat(dayView.hourDividerRects.get(0).getBottom(), is(17)); assertThat(dayView.halfHourDividerRects.get(7).getLeft(), is(5)); assertThat(dayView.halfHourDividerRects.get(7).getTop(), is(535)); assertThat(dayView.halfHourDividerRects.get(7).getRight(), is(195)); assertThat(dayView.halfHourDividerRects.get(7).getBottom(), is(542)); assertThat(dayView.hourDividerRects.get(19).getLeft(), is(5)); assertThat(dayView.hourDividerRects.get(19).getTop(), is(1340)); assertThat(dayView.hourDividerRects.get(19).getRight(), is(195)); assertThat(dayView.hourDividerRects.get(19).getBottom(), is(1347)); assertThat(dayView.halfHourDividerRects.get(22).getLeft(), is(5)); assertThat(dayView.halfHourDividerRects.get(22).getTop(), is(1585)); assertThat(dayView.halfHourDividerRects.get(22).getRight(), is(195)); assertThat(dayView.halfHourDividerRects.get(22).getBottom(), is(1592)); }