Home
last modified time | relevance | path

Searched refs:waveform (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libmedia/
DVisualizer.cpp255 status_t Visualizer::getWaveForm(uint8_t *waveform) in getWaveForm() argument
257 if (waveform == NULL) { in getWaveForm()
267 status = command(VISUALIZER_CMD_CAPTURE, 0, NULL, &replySize, waveform); in getWaveForm()
274 memset(waveform, 0x80, mCaptureSize); in getWaveForm()
301 status_t Visualizer::doFft(uint8_t *fft, uint8_t *waveform) in doFft() argument
308 ((waveform[i] ^ 0x80) << 24) | ((waveform[i + 1] ^ 0x80) << 8); in doFft()
337 uint8_t waveform[mCaptureSize]; in periodicCapture() local
338 status_t status = getWaveForm(waveform); in periodicCapture()
344 status = doFft(fft, waveform); in periodicCapture()
354 wavePtr = waveform; in periodicCapture()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerTest.java148 … public void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate) {
150 if (waveform.length > 0) {
151 … Log.d(TAG, "onWaveFormDataCapture(): "+waveform[0]+" smp rate: "+samplingRate/1000);
152 displayVal(R.id.waveformMin, waveform[0]);
153 displayVal(R.id.waveformMax, waveform[waveform.length - 1]);
154 displayVal(R.id.waveformCenter, waveform[waveform.length/2]);
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java433 public int getWaveForm(byte[] waveform) in getWaveForm() argument
439 return native_getWaveForm(waveform); in getWaveForm()
555 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture() argument
583 int rate, boolean waveform, boolean fft) { in setDataCaptureListener() argument
589 waveform = false; in setDataCaptureListener()
592 int status = native_setPeriodicCapture(rate, waveform, fft); in setDataCaptureListener()
746 private native final int native_getWaveForm(byte[] waveform); in native_getWaveForm() argument
/frameworks/av/media/libmedia/include/media/
DVisualizer.h91 uint8_t *waveform,
128 status_t getWaveForm(uint8_t *waveform);
159 status_t doFft(uint8_t *fft, uint8_t *waveform);
/frameworks/av/include/media/
DVisualizer.h91 uint8_t *waveform,
128 status_t getWaveForm(uint8_t *waveform);
159 status_t doFft(uint8_t *fft, uint8_t *waveform);
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java150 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) mEffect; in isSystemHapticFeedback() local
151 repeating = (waveform.getRepeatIndex() < 0); in isSystemHapticFeedback()
421 final VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) effect; in isRepeatingVibration() local
422 if (waveform.getRepeatIndex() >= 0) { in isRepeatingVibration()
524 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) vib.mEffect; in startVibrationInnerLocked() local
525 mThread = new VibrateThread(waveform, vib.mUid, vib.mUsageHint); in startVibrationInnerLocked()
793 VibrateThread(VibrationEffect.Waveform waveform, int uid, int usageHint) { in VibrateThread() argument
794 mWaveform = waveform; in VibrateThread()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_Visualizer.cpp163 uint8_t *waveform, in captureCallback() argument
183 if (waveformSize != 0 && waveform != NULL) { in captureCallback()
191 memcpy(nArray, waveform, waveformSize); in captureCallback()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java1248 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) effect; in vibrate() local
1249 pattern = waveform.getTimings(); in vibrate()
1250 repeat = waveform.getRepeatIndex(); in vibrate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java584 Visualizer visualizer, byte[] waveform, int samplingRate) { in createListenerLooper()
588 mWaveform = waveform; in createListenerLooper()
/frameworks/wilhelm/include/SLES/
DOpenSLES.h2523 const SLuint8 waveform[],