Home
last modified time | relevance | path

Searched refs:Visualizer (Results 1 – 25 of 25) sorted by relevance

/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionVisualizer.cpp40 using ::aidl::android::hardware::audio::effect::Visualizer;
56 aidlParam = MAKE_SPECIFIC_PARAMETER(Visualizer, visualizer, captureSamples, value); in setParameter()
60 Visualizer::ScalingMode mode = VALUE_OR_RETURN_STATUS( in setParameter()
62 aidlParam = MAKE_SPECIFIC_PARAMETER(Visualizer, visualizer, scalingMode, mode); in setParameter()
66 aidlParam = MAKE_SPECIFIC_PARAMETER(Visualizer, visualizer, latencyMs, value); in setParameter()
70 Visualizer::MeasurementMode mode = VALUE_OR_RETURN_STATUS( in setParameter()
72 aidlParam = MAKE_SPECIFIC_PARAMETER(Visualizer, visualizer, measurementMode, mode); in setParameter()
79 aidlParam = MAKE_SPECIFIC_PARAMETER(Visualizer, visualizer, vendor, ext); in setParameter()
97 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in getParameter()
98 Visualizer::captureSamples); in getParameter()
[all …]
/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizer.cpp60 MAKE_RANGE(Visualizer, latencyMs, 0, VisualizerContext::kMaxLatencyMs),
61 MAKE_RANGE(Visualizer, captureSamples, VisualizerContext::kMinCaptureBufSize,
64 MAKE_RANGE(Visualizer, measurement, Visualizer::Measurement({.rms = 1, .peak = 1}),
65 Visualizer::Measurement({.rms = 0, .peak = 0})),
66 MAKE_RANGE(Visualizer, captureSampleBuffer, std::vector<uint8_t>({1}),
118 case Visualizer::captureSamples: { in setParameterSpecific()
119 RETURN_IF(mContext->setCaptureSamples(param.get<Visualizer::captureSamples>()) != in setParameterSpecific()
124 case Visualizer::scalingMode: { in setParameterSpecific()
125 RETURN_IF(mContext->setScalingMode(param.get<Visualizer::scalingMode>()) != in setParameterSpecific()
130 case Visualizer::measurementMode: { in setParameterSpecific()
[all …]
DVisualizerContext.h46 RetCode setMeasurementMode(Visualizer::MeasurementMode mode);
47 Visualizer::MeasurementMode getMeasurementMode();
48 RetCode setScalingMode(Visualizer::ScalingMode mode);
49 Visualizer::ScalingMode getScalingMode();
55 Visualizer::Measurement getMeasure();
85 Visualizer::ScalingMode mScalingMode = Visualizer::ScalingMode::NORMALIZED;
94 Visualizer::MeasurementMode mMeasurementMode =
95 Visualizer::MeasurementMode::NONE;
DVisualizerContext.cpp29 #error AIDL Visualizer only support float 32bits, make sure add cflags -DBUILD_FLOAT,
92 RetCode VisualizerContext::setMeasurementMode(Visualizer::MeasurementMode mode) { in setMeasurementMode()
96 Visualizer::MeasurementMode VisualizerContext::getMeasurementMode() { in getMeasurementMode()
100 RetCode VisualizerContext::setScalingMode(Visualizer::ScalingMode mode) { in setScalingMode()
104 Visualizer::ScalingMode VisualizerContext::getScalingMode() { in getScalingMode()
134 Visualizer::Measurement VisualizerContext::getMeasure() { in getMeasure()
168 Visualizer::Measurement measure; in getMeasure()
235 if (mMeasurementMode == Visualizer::MeasurementMode::PEAK_RMS) { in process()
254 if (mScalingMode == Visualizer::ScalingMode::NORMALIZED) { in process()
279 assert(mScalingMode == Visualizer::ScalingMode::AS_PLAYED); in process()
DVisualizer.h52 ndk::ScopedAStatus getParameterVisualizer(const Visualizer::Tag& tag,
/frameworks/base/media/jni/audioeffect/
DVisualizer.cpp38 Visualizer::Visualizer (const android::content::AttributionSourceState& attributionSource) in Visualizer() function in android::Visualizer
43 Visualizer::~Visualizer() in ~Visualizer()
50 status_t Visualizer::set(int32_t priority, in set()
68 void Visualizer::release() in release()
81 status_t Visualizer::setEnabled(bool enabled) in setEnabled()
118 status_t Visualizer::setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t flags, in setCaptureCallBack()
145 sp<Visualizer>::fromExisting(this), rate, ((flags & CAPTURE_CALL_JAVA) != 0)); in setCaptureCallBack()
152 status_t Visualizer::setCaptureSize(uint32_t size) in setCaptureSize()
185 status_t Visualizer::setScalingMode(uint32_t mode) { in setScalingMode()
214 status_t Visualizer::setMeasurementMode(uint32_t mode) { in setMeasurementMode()
[all …]
Dandroid_media_Visualizer.cpp249 static sp<Visualizer> getVisualizer(JNIEnv* env, jobject thiz) in getVisualizer()
252 Visualizer* const v = in getVisualizer()
253 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer); in getVisualizer()
254 return sp<Visualizer>::fromExisting(v); in getVisualizer()
257 static sp<Visualizer> setVisualizer(JNIEnv* env, jobject thiz, in setVisualizer()
258 const sp<Visualizer>& v) in setVisualizer()
261 sp<Visualizer> old = sp<Visualizer>::fromExisting( in setVisualizer()
262 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer)); in setVisualizer()
398 sp<Visualizer> lpVisualizer; in android_media_visualizer_native_setup()
430 lpVisualizer = sp<Visualizer>::make(attributionSource); in android_media_visualizer_native_setup()
[all …]
DVisualizer.h58 class Visualizer: public AudioEffect {
71 explicit Visualizer(const android::content::AttributionSourceState& attributionSource);
73 ~Visualizer();
162 CaptureThread(const sp<Visualizer>& visualizer,
166 friend class Visualizer;
168 wp<Visualizer> mReceiver;
DAndroid.bp18 "Visualizer.cpp",
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerInstanceSync.java19 import android.media.audiofx.Visualizer;
31 private final Visualizer mVisualizer;
38 mVisualizer = new Visualizer(session); in VisualizerInstanceSync()
126 if (mVisualizer.getWaveForm(data) == Visualizer.SUCCESS) { in handleMessage()
133 if (mVisualizer.getFft(data) == Visualizer.SUCCESS) { in handleMessage()
147 private class VisualizerListener implements Visualizer.OnDataCaptureListener {
149 public void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform,
161 public void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate) {
DVisualizerTest.java20 import android.media.audiofx.Visualizer;
250 Visualizer[] effects = new Visualizer[NUM_EFFECTS]; in run()
253 effects[j] = new Visualizer(mSession); in run()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java23 import android.media.audiofx.Visualizer;
51 private Visualizer mVisualizer = null;
102 Visualizer visualizer = null; in test0_0ConstructorAndRelease()
104 visualizer = new Visualizer(0); in test0_0ConstructorAndRelease()
194 int res = mVisualizer.setScalingMode(Visualizer.SCALING_MODE_AS_PLAYED); in test1_2ScalingMode()
196 res, Visualizer.SUCCESS); in test1_2ScalingMode()
199 mode, Visualizer.SCALING_MODE_AS_PLAYED); in test1_2ScalingMode()
201 res = mVisualizer.setScalingMode(Visualizer.SCALING_MODE_NORMALIZED); in test1_2ScalingMode()
203 res, Visualizer.SUCCESS); in test1_2ScalingMode()
206 mode, Visualizer.SCALING_MODE_NORMALIZED); in test1_2ScalingMode()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DEnergyProbe.java19 import android.media.audiofx.Visualizer;
36 private Visualizer mVisualizer = null;
43 mVisualizer = new Visualizer(session); in EnergyProbe()
68 if (mVisualizer.getFft(mFft) == Visualizer.SUCCESS) { in capture()
/frameworks/av/media/audioaidlconversion/
DAidlConversionEffect.cpp47 using ::aidl::android::hardware::audio::effect::Visualizer;
365 Visualizer::ScalingMode aidl) { in aidl2legacy_Parameter_Visualizer_ScalingMode_uint32()
367 case Visualizer::ScalingMode::NORMALIZED: { in aidl2legacy_Parameter_Visualizer_ScalingMode_uint32()
370 case Visualizer::ScalingMode::AS_PLAYED: { in aidl2legacy_Parameter_Visualizer_ScalingMode_uint32()
377 ConversionResult<Visualizer::ScalingMode> legacy2aidl_Parameter_Visualizer_uint32_ScalingMode( in legacy2aidl_Parameter_Visualizer_uint32_ScalingMode()
380 return Visualizer::ScalingMode::NORMALIZED; in legacy2aidl_Parameter_Visualizer_uint32_ScalingMode()
382 return Visualizer::ScalingMode::AS_PLAYED; in legacy2aidl_Parameter_Visualizer_uint32_ScalingMode()
389 Visualizer::MeasurementMode aidl) { in aidl2legacy_Parameter_Visualizer_MeasurementMode_uint32()
391 case Visualizer::MeasurementMode::NONE: { in aidl2legacy_Parameter_Visualizer_MeasurementMode_uint32()
394 case Visualizer::MeasurementMode::PEAK_RMS: { in aidl2legacy_Parameter_Visualizer_MeasurementMode_uint32()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java74 public class Visualizer { class
226 public Visualizer(int audioSession) in Visualizer() method in Visualizer
615 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture()
629 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate); in onFftDataCapture()
775 final Visualizer visualizer = (Visualizer) ((WeakReference) effect_ref).get(); in postEventFromNative()
/frameworks/av/media/libeffects/visualizer/
DAndroid.bp1 // Visualizer library
58 "aidl/Visualizer.cpp",
/frameworks/av/media/audioaidlconversion/include/media/
DAidlConversionEffect.h150 ::aidl::android::hardware::audio::effect::Visualizer::ScalingMode aidl);
151 ConversionResult<::aidl::android::hardware::audio::effect::Visualizer::ScalingMode>
155 ::aidl::android::hardware::audio::effect::Visualizer::MeasurementMode aidl);
156 ConversionResult<::aidl::android::hardware::audio::effect::Visualizer::MeasurementMode>
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt24100 Landroid/media/audiofx/Visualizer$NativeEventHandler;->handleCaptureMessage(Landroid/os/Message;)V
24101 Landroid/media/audiofx/Visualizer$NativeEventHandler;->handleServerDiedMessage(Landroid/os/Message;…
24102 Landroid/media/audiofx/Visualizer$NativeEventHandler;->mVisualizer:Landroid/media/audiofx/Visualize…
24103 Landroid/media/audiofx/Visualizer$OnServerDiedListener;->onServerDied()V
24104 Landroid/media/audiofx/Visualizer;->mCaptureListener:Landroid/media/audiofx/Visualizer$OnDataCaptur…
24105 Landroid/media/audiofx/Visualizer;->mJniData:J
24106 Landroid/media/audiofx/Visualizer;->mListenerLock:Ljava/lang/Object;
24107 Landroid/media/audiofx/Visualizer;->mNativeEventHandler:Landroid/media/audiofx/Visualizer$NativeEve…
24108 Landroid/media/audiofx/Visualizer;->mNativeVisualizer:J
24109 Landroid/media/audiofx/Visualizer;->mServerDiedListener:Landroid/media/audiofx/Visualizer$OnServerD…
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/boot/
Dpreloaded-classes5388 android.media.audiofx.Visualizer$MeasurementPeakRms
5389 android.media.audiofx.Visualizer
Dboot-image-profile.txt27783 Landroid/media/audiofx/Visualizer$MeasurementPeakRms;
27784 Landroid/media/audiofx/Visualizer;
/frameworks/base/config/
Dpreloaded-classes5392 android.media.audiofx.Visualizer$MeasurementPeakRms
5393 android.media.audiofx.Visualizer
Dboot-image-profile.txt37917 Landroid/media/audiofx/Visualizer$MeasurementPeakRms;
37918 Landroid/media/audiofx/Visualizer;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16092 public class Visualizer {
16093 …ctor public Visualizer(int) throws java.lang.RuntimeException, java.lang.UnsupportedOperationExcep…
16100 method public int getMeasurementPeakRms(android.media.audiofx.Visualizer.MeasurementPeakRms);
16106 …method public int setDataCaptureListener(android.media.audiofx.Visualizer.OnDataCaptureListener, i…
16127 public static final class Visualizer.MeasurementPeakRms {
16128 ctor public Visualizer.MeasurementPeakRms();
16133 public static abstract interface Visualizer.OnDataCaptureListener {
16134 method public abstract void onFftDataCapture(android.media.audiofx.Visualizer, byte[], int);
16135 … method public abstract void onWaveFormDataCapture(android.media.audiofx.Visualizer, byte[], int);
/frameworks/base/core/api/
Dcurrent.txt25850 public class Visualizer {
25851 …ctor public Visualizer(int) throws java.lang.RuntimeException, java.lang.UnsupportedOperationExcep…
25859 method public int getMeasurementPeakRms(android.media.audiofx.Visualizer.MeasurementPeakRms);
25865 …method public int setDataCaptureListener(@Nullable android.media.audiofx.Visualizer.OnDataCaptureL…
25886 public static final class Visualizer.MeasurementPeakRms {
25887 ctor public Visualizer.MeasurementPeakRms();
25892 public static interface Visualizer.OnDataCaptureListener {
25893 method public void onFftDataCapture(android.media.audiofx.Visualizer, byte[], int);
25894 method public void onWaveFormDataCapture(android.media.audiofx.Visualizer, byte[], int);