Home
last modified time | relevance | path

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

/frameworks/base/media/jni/audioeffect/
DVisualizer.cpp281 status_t Visualizer::getWaveForm(uint8_t *waveform) in getWaveForm() argument
283 if (waveform == NULL) { in getWaveForm()
293 status = command(VISUALIZER_CMD_CAPTURE, 0, NULL, &replySize, waveform); in getWaveForm()
300 memset(waveform, 0x80, mCaptureSize); in getWaveForm()
327 status_t Visualizer::doFft(uint8_t *fft, uint8_t *waveform) in doFft() argument
334 ((waveform[i] ^ 0x80) << 24) | ((waveform[i + 1] ^ 0x80) << 8); in doFft()
363 uint8_t waveform[mCaptureSize]; in periodicCapture() local
364 status_t status = getWaveForm(waveform); in periodicCapture()
370 status = doFft(fft, waveform); in periodicCapture()
380 wavePtr = waveform; in periodicCapture()
DVisualizer.h101 uint8_t *waveform,
138 status_t getWaveForm(uint8_t *waveform);
170 status_t doFft(uint8_t *fft, uint8_t *waveform);
Dandroid_media_Visualizer.cpp168 uint8_t *waveform, in captureCallback() argument
188 if (waveformSize != 0 && waveform != NULL) { in captureCallback()
196 memcpy(nArray, waveform, waveformSize); in captureCallback()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerInstanceSync.java149 public void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform,
151 if (visualizer == mVisualizer && waveform.length > 0) {
152 Log.d(TAG, "onWaveFormDataCapture(): " + waveform[0]
156 dataToMinMaxCenter(waveform, waveform.length)));
DVisualizerTest.java99 boolean waveform = msg.what == MSG_DISPLAY_WAVEFORM_VAL; in handleMessage()
100 displayVal(waveform ? R.id.waveformMin : R.id.fftMin, minMaxCenter[0]); in handleMessage()
101 displayVal(waveform ? R.id.waveformMax : R.id.fftMax, minMaxCenter[1]); in handleMessage()
102 displayVal(waveform ? R.id.waveformCenter : R.id.fftCenter, minMaxCenter[2]); in handleMessage()
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java455 public int getWaveForm(byte[] waveform) in getWaveForm() argument
461 return native_getWaveForm(waveform); in getWaveForm()
591 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture() argument
622 int rate, boolean waveform, boolean fft) { in setDataCaptureListener() argument
625 waveform = false; in setDataCaptureListener()
630 status = native_setPeriodicCapture(rate, waveform, fft); in setDataCaptureListener()
734 private native final int native_getWaveForm(byte[] waveform); in native_getWaveForm() argument
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp306 jobjectArray waveform, jint brakingId, jlong vibrationId) { in vibratorPerformPwleEffect() argument
313 size_t size = env->GetArrayLength(waveform); in vibratorPerformPwleEffect()
317 jobject element = env->GetObjectArrayElement(waveform, i); in vibratorPerformPwleEffect()
/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/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java1657 VibrationEffect.WaveformBuilder waveform = VibrationEffect.startWaveform(); in addWaveformToComposition() local
1660 waveform.addRamp(amplitudes.get(i), frequencies.get(i), durations.get(i)); in addWaveformToComposition()
1662 waveform.addStep(amplitudes.get(i), frequencies.get(i), durations.get(i)); in addWaveformToComposition()
1665 composition.addEffect(waveform.build(repeat), delay); in addWaveformToComposition()
/frameworks/wilhelm/include/SLES/
DOpenSLES.h2523 const SLuint8 waveform[],