@Test(expected = IllegalArgumentException.class) public void noTimingSource2() { Animator.setDefaultTimingSource(new ManualTimingSource()); try { new Animator.Builder().build(); } catch (IllegalArgumentException e) { Assert.fail("An Animator built with a non-null default TimingSource should be okay."); } Animator.setDefaultTimingSource(null); new Animator.Builder().build(); }
public static void setDefaultTimingSource(@Nullable TimingSource timingSource) { Builder.setDefaultTimingSource(timingSource); }
Animator implements TickListener { public static void setDefaultTimingSource(@Nullable TimingSource timingSource) { Builder.setDefaultTimingSource(timingSource); } }
Animator implements TickListener { public static void setDefaultTimingSource(@Nullable TimingSource timingSource) { Builder.setDefaultTimingSource(timingSource); } @Unique("return")  Animator(String debugName, long duration, @NonNull TimeUnit durationTimeUnit, @NonNull EndBehavior endBehavior,
      @NonNull Interpolator interpolator, @NonNull RepeatBehavior repeatBehavior, long repeatCount,
      @NonNull Direction startDirection, long startDelay, @NonNull TimeUnit startDelayTimeUnit, @NonNull TimingSource timingSource,
      boolean disposeTimingSource, @NonNull Collection<TimingTarget> targets); }
Animator implements TickListener { public static void setDefaultTimingSource(@Nullable TimingSource timingSource) { Builder.setDefaultTimingSource(timingSource); } @Unique("return")  Animator(String debugName, long duration, @NonNull TimeUnit durationTimeUnit, @NonNull EndBehavior endBehavior,
      @NonNull Interpolator interpolator, @NonNull RepeatBehavior repeatBehavior, long repeatCount,
      @NonNull Direction startDirection, long startDelay, @NonNull TimeUnit startDelayTimeUnit, @NonNull TimingSource timingSource,
      boolean disposeTimingSource, @NonNull Collection<TimingTarget> targets); static void setDefaultTimingSource(@Nullable TimingSource timingSource); @Nullable static TimingSource getDefaultTimingSource(); @Nullable @RegionEffects("reads Instance") String getDebugName(); @RegionEffects("reads Instance") long getDuration(); @NonNull @RegionEffects("reads Instance") TimeUnit getDurationTimeUnit(); @NonNull @RegionEffects("reads Instance") EndBehavior getEndBehavior(); @NonNull Interpolator getInterpolator(); @NonNull @RegionEffects("reads Instance") RepeatBehavior getRepeatBehavior(); @RegionEffects("reads Instance") long getRepeatCount(); @NonNull @RegionEffects("reads Instance") Direction getStartDirection(); @RegionEffects("reads Instance") long getStartDelay(); @NonNull @RegionEffects("reads Instance") TimeUnit getStartDelayTimeUnit(); @NonNull @RegionEffects("reads Instance") TimingSource getTimingSource(); @RegionEffects("reads Instance") boolean getDisposeTimingSource(); void addTarget(final TimingTarget target); void addTargets(Collection<TimingTarget> targets); void addTargets(TimingTarget... targets); void removeTarget(TimingTarget target); void removeTargets(Collection<TimingTarget> targets); void removeTargets(TimingTarget... targets); ArrayList<TimingTarget> getTargets(); void clearTargets(); void start(); void restart(); void startReverse(); void restartReverse(); @RegionEffects("reads Instance") boolean isRunning(); @NonNull @RegionEffects("reads Instance") Direction getCurrentDirection(); boolean stop(); void stopAndAwait(); boolean cancel(); void cancelAndAwait(); void pause(); boolean isPaused(); void resume(); boolean reverseNow(); void await(); long getCycleElapsedTime(); @RegionEffects("reads Instance") long getCycleElapsedTime(long currentTimeNanos); long getTotalElapsedTime(); @RegionEffects("reads Instance") long getTotalElapsedTime(long currentTimeNanos); @Override @NonNull @RegionEffects("reads Instance") @Vouch("Uses StringBuilder") String toString(); void timingSourceTick(TimingSource source, long nanoTime); }
Animator implements TickListener { public static void setDefaultTimingSource(@Nullable TimingSource timingSource) { Builder.setDefaultTimingSource(timingSource); } @Unique("return")  Animator(String debugName, long duration, @NonNull TimeUnit durationTimeUnit, @NonNull EndBehavior endBehavior,
      @NonNull Interpolator interpolator, @NonNull RepeatBehavior repeatBehavior, long repeatCount,
      @NonNull Direction startDirection, long startDelay, @NonNull TimeUnit startDelayTimeUnit, @NonNull TimingSource timingSource,
      boolean disposeTimingSource, @NonNull Collection<TimingTarget> targets); static void setDefaultTimingSource(@Nullable TimingSource timingSource); @Nullable static TimingSource getDefaultTimingSource(); @Nullable @RegionEffects("reads Instance") String getDebugName(); @RegionEffects("reads Instance") long getDuration(); @NonNull @RegionEffects("reads Instance") TimeUnit getDurationTimeUnit(); @NonNull @RegionEffects("reads Instance") EndBehavior getEndBehavior(); @NonNull Interpolator getInterpolator(); @NonNull @RegionEffects("reads Instance") RepeatBehavior getRepeatBehavior(); @RegionEffects("reads Instance") long getRepeatCount(); @NonNull @RegionEffects("reads Instance") Direction getStartDirection(); @RegionEffects("reads Instance") long getStartDelay(); @NonNull @RegionEffects("reads Instance") TimeUnit getStartDelayTimeUnit(); @NonNull @RegionEffects("reads Instance") TimingSource getTimingSource(); @RegionEffects("reads Instance") boolean getDisposeTimingSource(); void addTarget(final TimingTarget target); void addTargets(Collection<TimingTarget> targets); void addTargets(TimingTarget... targets); void removeTarget(TimingTarget target); void removeTargets(Collection<TimingTarget> targets); void removeTargets(TimingTarget... targets); ArrayList<TimingTarget> getTargets(); void clearTargets(); void start(); void restart(); void startReverse(); void restartReverse(); @RegionEffects("reads Instance") boolean isRunning(); @NonNull @RegionEffects("reads Instance") Direction getCurrentDirection(); boolean stop(); void stopAndAwait(); boolean cancel(); void cancelAndAwait(); void pause(); boolean isPaused(); void resume(); boolean reverseNow(); void await(); long getCycleElapsedTime(); @RegionEffects("reads Instance") long getCycleElapsedTime(long currentTimeNanos); long getTotalElapsedTime(); @RegionEffects("reads Instance") long getTotalElapsedTime(long currentTimeNanos); @Override @NonNull @RegionEffects("reads Instance") @Vouch("Uses StringBuilder") String toString(); void timingSourceTick(TimingSource source, long nanoTime); static final long INFINITE; }