Tabnine Logo
DelayedActionExecutor$Action.perform
Code IndexAdd Tabnine to your IDE (free)

How to use
perform
method
in
com.novoda.noplayer.internal.mediaplayer.DelayedActionExecutor$Action

Best Java code snippets using com.novoda.noplayer.internal.mediaplayer.DelayedActionExecutor$Action.perform (Showing top 3 results out of 315)

origin: novoda/no-player

  @Override
  public void run() {
    action.perform();
    runnables.remove(action);
  }
};
origin: novoda/no-player

@Test
public void givenPositionThatDiffersFromPlayheadPosition_whenStartingPlayAtVideoPosition_thenSeeksToVideoPosition() {
  long differentPositionInMillis = givenPositionThatDiffersFromPlayheadPosition();
  player.playAt(differentPositionInMillis);
  ArgumentCaptor<DelayedActionExecutor.Action> argumentCaptor = ArgumentCaptor.forClass(DelayedActionExecutor.Action.class);
  verify(delayedActionExecutor).performAfterDelay(argumentCaptor.capture(), eq(DELAY_MILLIS));
  argumentCaptor.getValue().perform();
  verify(mediaPlayer).seekTo(differentPositionInMillis);
}
origin: novoda/no-player

@Test
public void whenPerformingActionAfterDelay_thenPerformsAction() {
  delayedActionExecutor = new DelayedActionExecutor(immediatelyExecutingHandler, runnables);
  delayedActionExecutor.performAfterDelay(action, ANY_DELAY_IN_MILLIS);
  verify(action).perform();
}
com.novoda.noplayer.internal.mediaplayerDelayedActionExecutor$Actionperform

Popular methods of DelayedActionExecutor$Action

    Popular in Java

    • Running tasks concurrently on multiple threads
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • runOnUiThread (Activity)
    • getContentResolver (Context)
    • EOFException (java.io)
      Thrown when a program encounters the end of a file or stream during an input operation.
    • BitSet (java.util)
      The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    • SAXParseException (org.xml.sax)
      Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
    • Top PhpStorm plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now