@Test public void testSetIndeterminate() { mControllerUnderTest.setIndeterminate(true); assertEquals(true, mControllerUnderTest.isIndeterminate()); verify(mMockDrawable).start(); }
void setIndeterminate(boolean indeterminate) { if (mIsIndeterminate == indeterminate) { return; } mIsIndeterminate = indeterminate; if (mIsIndeterminate) { if (mIsTimerRunning) { stopTimer(); } mLayout.getProgressDrawable().start(); } else { mLayout.getProgressDrawable().stop(); } }
CircularProgressLayoutController { void setIndeterminate(boolean indeterminate) { if (mIsIndeterminate == indeterminate) { return; } mIsIndeterminate = indeterminate; if (mIsIndeterminate) { if (mIsTimerRunning) { stopTimer(); } mLayout.getProgressDrawable().start(); } else { mLayout.getProgressDrawable().stop(); } } }
CircularProgressLayoutController { void setIndeterminate(boolean indeterminate) { if (mIsIndeterminate == indeterminate) { return; } mIsIndeterminate = indeterminate; if (mIsIndeterminate) { if (mIsTimerRunning) { stopTimer(); } mLayout.getProgressDrawable().start(); } else { mLayout.getProgressDrawable().stop(); } } CircularProgressLayoutController(CircularProgressLayout layout); }
CircularProgressLayoutController { void setIndeterminate(boolean indeterminate) { if (mIsIndeterminate == indeterminate) { return; } mIsIndeterminate = indeterminate; if (mIsIndeterminate) { if (mIsTimerRunning) { stopTimer(); } mLayout.getProgressDrawable().start(); } else { mLayout.getProgressDrawable().stop(); } } CircularProgressLayoutController(CircularProgressLayout layout); @Nullable CircularProgressLayout.OnTimerFinishedListener getOnTimerFinishedListener(); void setOnTimerFinishedListener(
            @Nullable CircularProgressLayout.OnTimerFinishedListener listener); }
CircularProgressLayoutController { void setIndeterminate(boolean indeterminate) { if (mIsIndeterminate == indeterminate) { return; } mIsIndeterminate = indeterminate; if (mIsIndeterminate) { if (mIsTimerRunning) { stopTimer(); } mLayout.getProgressDrawable().start(); } else { mLayout.getProgressDrawable().stop(); } } CircularProgressLayoutController(CircularProgressLayout layout); @Nullable CircularProgressLayout.OnTimerFinishedListener getOnTimerFinishedListener(); void setOnTimerFinishedListener(
            @Nullable CircularProgressLayout.OnTimerFinishedListener listener);  }