Home
last modified time | relevance | path

Searched refs:mVisualizer (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DEnergyProbe.java36 private Visualizer mVisualizer = null; field in EnergyProbe
43 mVisualizer = new Visualizer(session); in EnergyProbe()
44 if (mVisualizer != null) { in EnergyProbe()
45 mVisualizer.setCaptureSize(CAPTURE_SIZE); in EnergyProbe()
46 mMaxFrequency = mVisualizer.getSamplingRate() / 2000; in EnergyProbe()
47 mCapturePeriodMs = 1000000 / mVisualizer.getMaxCaptureRate(); in EnergyProbe()
64 if (mVisualizer != null) { in capture()
66 mVisualizer.setEnabled(true); in capture()
68 if (mVisualizer.getFft(mFft) == Visualizer.SUCCESS) { in capture()
89 mVisualizer.setEnabled(false); in capture()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java55 private Visualizer mVisualizer = null; field in MediaVisualizerTest
135 int captureRate = mVisualizer.getMaxCaptureRate(); in test1_0CaptureRates()
138 int samplingRate = mVisualizer.getSamplingRate(); in test1_0CaptureRates()
164 int[] range = mVisualizer.getCaptureSizeRange(); in test1_1CaptureSize()
169 mVisualizer.setCaptureSize(range[0]); in test1_1CaptureSize()
171 range[0], mVisualizer.getCaptureSize()); in test1_1CaptureSize()
172 mVisualizer.setCaptureSize(range[1]); in test1_1CaptureSize()
174 range[1], mVisualizer.getCaptureSize()); in test1_1CaptureSize()
198 int res = mVisualizer.setScalingMode(Visualizer.SCALING_MODE_AS_PLAYED); in test1_2ScalingMode()
201 int mode = mVisualizer.getScalingMode(); in test1_2ScalingMode()
[all …]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerTest.java50 private Visualizer mVisualizer; field in VisualizerTest
90 if (mVisualizer != null) { in onCreate()
121 if (mActive && mVisualizer != null) { in handleMessage()
124 if (mVisualizer.getWaveForm(data) == Visualizer.SUCCESS) { in handleMessage()
130 if (mVisualizer.getFft(data) == Visualizer.SUCCESS) { in handleMessage()
149 if (visualizer == mVisualizer) {
159 if (visualizer == mVisualizer) {
204 if (mVisualizer != null) { in onCheckedChanged()
208 mVisualizer.setDataCaptureListener(mVisualizerListener, in onCheckedChanged()
213 mVisualizer.setEnabled(mEnabled); in onCheckedChanged()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java651 private Visualizer mVisualizer; field in Visualizer.NativeEventHandler
655 mVisualizer = v; in NativeEventHandler()
661 l = mVisualizer.mCaptureListener; in handleCaptureMessage()
670 l.onWaveFormDataCapture(mVisualizer, data, samplingRate); in handleCaptureMessage()
673 l.onFftDataCapture(mVisualizer, data, samplingRate); in handleCaptureMessage()
685 l = mVisualizer.mServerDiedListener; in handleServerDiedMessage()
694 if (mVisualizer == null) { in handleMessage()