Buggy code:
public class SliderLayout extends RelativeLayout { private Context mContext ; private InfiniteViewPager mViewPager ; private SliderAdapter mSliderAdapter ; private PagerIndicator mIndicator ; private Timer mCycleTimer ; private TimerTask mCycleTask ; private Timer mResumingTimer ; private TimerTask mResumingTask ; private boolean mCycling ; private boolean mAutoRecover = true ; private int mTransformerId ; private int mTransformerSpan = 1100 ; private boolean mAutoCycle ; private long mSliderDuration = 4000 ; private IndicatorVisibility mIndicatorVisibility = IndicatorVisibility . Visible ; private BaseTransformer mViewPagerTransformer ; private BaseAnimationInterface mCustomAnimation ; public SliderLayout ( Context context ) { } public SliderLayout ( Context context , AttributeSet attrs ) { } public SliderLayout ( Context context , AttributeSet attrs , int defStyle ) { } public void addOnPageChangeListener ( ViewPagerEx . OnPageChangeListener onPageChangeListener ) { } public void removeOnPageChangeListener ( ViewPagerEx . OnPageChangeListener onPageChangeListener ) { } public void setCustomIndicator ( PagerIndicator indicator ) { } public < T extends BaseSliderView > void addSlider ( T imageContent ) { } private Handler mh = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; public void startAutoCycle ( ) { <START_BUG> startAutoCycle ( 1000 , mSliderDuration , mAutoRecover ) ; <END_BUG> } public void startAutoCycle ( long delay , long duration , boolean autoRecover ) { } private void pauseAutoCycle ( ) { } public void setDuration ( long duration ) { } public void stopAutoCycle ( ) { } private void recoverCycle ( ) { } @ Override public boolean onInterceptTouchEvent ( MotionEvent ev ) { } public void setPagerTransformer ( boolean reverseDrawingOrder , BaseTransformer transformer ) { } public void setSliderTransformDuration ( int period , Interpolator interpolator ) { } public enum Transformer { Default ( "Default" ) , Accordion ( "Accordion" ) , Background2Foreground ( "Background2Foreground" ) , CubeIn ( "CubeIn" ) , DepthPage ( "DepthPage" ) , Fade ( "Fade" ) , FlipHorizontal ( "FlipHorizontal" ) , FlipPage ( "FlipPage" ) , Foreground2Background ( "Foreground2Background" ) , RotateDown ( "RotateDown" ) , RotateUp ( "RotateUp" ) , Stack ( "Stack" ) , Tablet ( "Tablet" ) , ZoomIn ( "ZoomIn" ) , ZoomOutSlide ( "ZoomOutSlide" ) , ZoomOut ( "ZoomOut" ) ; private final String name ; private Transformer ( String s ) { } public String toString ( ) { } public boolean equals ( String other ) { } } public void setPresetTransformer ( int transformerId ) { } public void setPresetTransformer ( String transformerName ) { } public void setCustomAnimation ( BaseAnimationInterface animation ) { } public void setPresetTransformer ( SliderLayout . Transformer ts ) { } public void setIndicatorVisibility ( PagerIndicator . IndicatorVisibility visibility ) { } public IndicatorVisibility getIndicatorVisibility ( ) { } public PagerIndicator getPagerIndicator ( ) { } public enum PresetIndicators { Center_Bottom ( "Center_Bottom" , R . id . default_center_bottom_indicator ) , Right_Bottom ( "Right_Bottom" , R . id . default_bottom_right_indicator ) , Left_Bottom ( "Left_Bottom" , R . id . default_bottom_left_indicator ) , Center_Top ( "Center_Top" , R . id . default_center_top_indicator ) , Right_Top ( "Right_Top" , R . id . default_center_top_right_indicator ) , Left_Top ( "Left_Top" , R . id . default_center_top_left_indicator ) ; private final String name ; private final int id ; private PresetIndicators ( String name , int id ) { } public String toString ( ) { } public int getResourceId ( ) { } } public void setPresetIndicator ( SliderLayout . PresetIndicators presetIndicator ) { } private InfinitePagerAdapter getWrapperAdapter ( ) { } private SliderAdapter getRealAdapter ( ) { } public int getCurrentPosition ( ) { } public BaseSliderView getCurrentSlider ( ) { } public void removeSliderAt ( int position ) { } public void removeAllSliders ( ) { } public void setCurrentPosition ( int position , boolean smooth ) { } public void setCurrentPosition ( int position ) { } public void movePrevPosition ( boolean smooth ) { } public void movePrevPosition ( ) { } public void moveNextPosition ( boolean smooth ) { } public void moveNextPosition ( ) { } }

Fix:
startAutoCycle ( mSliderDuration , mSliderDuration , mAutoRecover ) ;