Package org.robolectric.shadows
Class ShadowVisualizer
- java.lang.Object
-
- org.robolectric.shadows.ShadowVisualizer
-
@Implements(value=android.media.audiofx.Visualizer.class, minSdk=9) public class ShadowVisualizer extends java.lang.ObjectShadow for theVisualizerclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShadowVisualizer.VisualizerSourceProvides underlying data for theShadowVisualizer.
-
Constructor Summary
Constructors Constructor Description ShadowVisualizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intnative_getCaptureSize()protected booleannative_getEnabled()protected intnative_getFft(byte[] fft)protected intnative_getSamplingRate()protected intnative_getWaveForm(byte[] waveform)protected intnative_setCaptureSize(int size)protected intnative_setEnabled(boolean enabled)protected intsetDataCaptureListener(android.media.audiofx.Visualizer.OnDataCaptureListener listener, int rate, boolean waveform, boolean fft)voidsetSource(ShadowVisualizer.VisualizerSource source)voidtriggerDataCapture()Trigger calls to the existingVisualizer.OnDataCaptureListener.
-
-
-
Method Detail
-
setSource
public void setSource(ShadowVisualizer.VisualizerSource source)
-
setDataCaptureListener
@Implementation(minSdk=9) protected int setDataCaptureListener(android.media.audiofx.Visualizer.OnDataCaptureListener listener, int rate, boolean waveform, boolean fft)
-
native_getSamplingRate
@Implementation(minSdk=9) protected int native_getSamplingRate()
-
native_getWaveForm
@Implementation(minSdk=9) protected int native_getWaveForm(byte[] waveform)
-
native_getFft
@Implementation(minSdk=9) protected int native_getFft(byte[] fft)
-
native_getEnabled
@Implementation(minSdk=9) protected boolean native_getEnabled()
-
native_setCaptureSize
@Implementation(minSdk=9) protected int native_setCaptureSize(int size)
-
native_getCaptureSize
@Implementation(minSdk=9) protected int native_getCaptureSize()
-
native_setEnabled
@Implementation(minSdk=9) protected int native_setEnabled(boolean enabled)
-
triggerDataCapture
public void triggerDataCapture()
Trigger calls to the existingVisualizer.OnDataCaptureListener.This is a no-op if the listener has not been set.
-
-