Package org.robolectric.shadows
Interface ShadowVisualizer.VisualizerSource
- Enclosing class:
- ShadowVisualizer
public static interface ShadowVisualizer.VisualizerSource
Provides underlying data for the
ShadowVisualizer. The default implementations are
there only to help tests to run when they don't need to verify specific behaviour, otherwise
tests should probably override these and provide some specific implementation that allows them
to verify the functionality needed.-
Method Summary
Modifier and TypeMethodDescriptiondefault intgetFft(byte[] fft) default intgetPeakRms(Visualizer.MeasurementPeakRms measurement) default intdefault intgetWaveForm(byte[] waveform) default voidrelease()
-
Method Details
-
getSamplingRate
default int getSamplingRate() -
getWaveForm
default int getWaveForm(byte[] waveform) -
getFft
default int getFft(byte[] fft) -
getPeakRms
-
release
default void release()
-