IT. Expert System.

Android Reference

EventsTest


android.animation

Class EventsTest

  • Direct Known Subclasses:
    AnimatorSetEventsTest, ObjectAnimatorEventsTest, ValueAnimatorEventsTest


    public abstract class EventsTest
    extends ActivityInstrumentationTestCase2<BasicAnimatorActivity>
    Tests for the various lifecycle events of Animators. This abstract class is subclassed by concrete implementations that provide the actual Animator objects being tested. All of the testing mechanisms are in this class; the subclasses are only responsible for providing the mAnimator object. This test is more complicated than a typical synchronous test because much of the functionality must happen on the UI thread. Some tests do this by using the UiThreadTest annotation to automatically run the whole test on that thread. Other tests must run on the UI thread and also wait for some later event to occur before ending. These tests use a combination of an AbstractFuture mechanism and a delayed action to release that Future later.
    • Constructor Detail

      • EventsTest

        public EventsTest()
    • Method Detail

      • getTimeout

        protected long getTimeout()
        Timeout length, based on when the animation should reasonably be complete.
      • setUp

        public void setUp()
                   throws Exception
        Sets up the fields used by each test. Subclasses must override this method to create the protected mAnimator object used in all tests. Overrides must create that animator and then call super.setup(), where further properties are set on that animator.
        Overrides:
        setUp in class ActivityInstrumentationTestCase2<BasicAnimatorActivity>
        Throws:
        Exception
      • testCancel

        public void testCancel()
                        throws Exception
        Verify that calling cancel on an unstarted animator does nothing.
        Throws:
        Exception
      • testEnd

        public void testEnd()
                     throws Exception
        Verify that calling end on an unstarted animator starts/ends an animator.
        Throws:
        Exception
      • testStartCancel

        public void testStartCancel()
                             throws Exception
        Verify that calling cancel on a started animator does the right thing.
        Throws:
        Exception
      • testStartEnd

        public void testStartEnd()
                          throws Exception
        Verify that calling end on a started animator does the right thing.
        Throws:
        Exception
      • testStartDelayedCancel

        public void testStartDelayedCancel()
                                    throws Exception
        Same as testStartCancel, but with a startDelayed animator
        Throws:
        Exception
      • testStartDelayedEnd

        public void testStartDelayedEnd()
                                 throws Exception
        Same as testStartEnd, but with a startDelayed animator
        Throws:
        Exception
      • testPlayingCancel

        public void testPlayingCancel()
                               throws Exception
        Verify that canceling an animator that is playing does the right thing.
        Throws:
        Exception
      • testPlayingEnd

        public void testPlayingEnd()
                            throws Exception
        Verify that ending an animator that is playing does the right thing.
        Throws:
        Exception
      • testPlayingDelayedCancel

        public void testPlayingDelayedCancel()
                                      throws Exception
        Same as testPlayingCancel, but with a startDelayed animator
        Throws:
        Exception
      • testPlayingDelayedEnd

        public void testPlayingDelayedEnd()
                                   throws Exception
        Same as testPlayingEnd, but with a startDelayed animator
        Throws:
        Exception
      • testPlayingDelayedCancelMidDelay

        public void testPlayingDelayedCancelMidDelay()
                                              throws Exception
        Same as testPlayingDelayedCancel, but cancel during the startDelay period
        Throws:
        Exception
      • testPlayingDelayedEndMidDelay

        public void testPlayingDelayedEndMidDelay()
                                           throws Exception
        Same as testPlayingDelayedEnd, but end during the startDelay period
        Throws:
        Exception
      • testStartDoubleCancel

        public void testStartDoubleCancel()
                                   throws Exception
        Verifies that canceling a started animation after it has already been canceled does nothing.
        Throws:
        Exception
      • testStartDoubleEnd

        public void testStartDoubleEnd()
                                throws Exception
        Verifies that ending a started animation after it has already been ended does nothing.
        Throws:
        Exception
      • testStartDelayedDoubleCancel

        public void testStartDelayedDoubleCancel()
                                          throws Exception
        Same as testStartDoubleCancel, but with a startDelayed animator
        Throws:
        Exception
      • testStartDelayedDoubleEnd

        public void testStartDelayedDoubleEnd()
                                       throws Exception
        Same as testStartDoubleEnd, but with a startDelayed animator
        Throws:
        Exception


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2268 / . Delta: 0.03647 с