Searched refs:effect (Results 1 - 25 of 72) sorted by last modified time

123

/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp259 SL_LOGE("BassBoost effect initialization failed");
277 SL_LOGE("Equalizer effect initialization failed");
327 SL_LOGE("Virtualizer effect initialization failed");
358 SL_LOGV("session is implicitly %d (aux effect)", AUDIO_SESSION_OUTPUT_MIX);
362 SL_LOGE("PresetReverb effect initialization failed");
370 // enable the effect if it has a preset loaded
379 // enable the effect if the preset is different from SL_REVERBPRESET_NONE
393 SL_LOGV("session is implicitly %d (aux effect)", AUDIO_SESSION_OUTPUT_MIX);
397 SL_LOGE("EnvironmentalReverb effect initialization failed");
516 SL_LOGE("invalid effect I
616 android_fx_initEffectObj(int sessionId, android::sp<android::AudioEffect>& effect, const effect_uuid_t *type) argument
[all...]
H A Dandroid_Effect.h132 extern bool android_fx_initEffectObj(int sessionId, android::sp<android::AudioEffect>& effect,
/frameworks/base/services/input/
H A DEventHub.cpp569 ff_effect effect;
570 memset(&effect, 0, sizeof(effect));
571 effect.type = FF_RUMBLE;
572 effect.id = device->ffEffectId;
573 effect.u.rumble.strong_magnitude = 0xc000;
574 effect.u.rumble.weak_magnitude = 0xc000;
575 effect.replay.length = (duration + 999999LL) / 1000000LL;
576 effect.replay.delay = 0;
577 if (ioctl(device->fd, EVIOCSFF, &effect)) {
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java826 /*package*/ static int native_setPathEffect(int native_object, int effect) { argument
830 return effect;
833 delegate.mPathEffect = PathEffect_Delegate.getDelegate(effect);
835 return effect;
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DBassBoostTest.java186 public void setEffect(Object effect) { argument
187 mBassBoost = (BassBoost)effect;
196 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { argument
199 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { argument
202 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
232 Log.e(TAG,"BassBoost effect not supported");
238 Log.e(TAG,"BassBoost effect not found");
H A DEffectParameter.java62 public abstract void setEffect(Object effect); argument
H A DEqualizerTest.java330 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { argument
333 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { argument
337 public void onParameterChange(Equalizer effect, int status, int param1, int param2, int value) { argument
363 Log.e(TAG,"Equalizer effect not supported");
369 Log.e(TAG,"Equalizer effect not found");
H A DPresetReverbTest.java224 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { argument
227 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { argument
231 public void onParameterChange(PresetReverb effect, int status, int param, short value) { argument
257 Log.e(TAG,"PresetReverb effect not supported");
261 Log.e(TAG,"PresetReverb effect not found");
H A DVirtualizerTest.java183 public void setEffect(Object effect) { argument
184 mVirtualizer = (Virtualizer)effect;
193 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { argument
196 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { argument
199 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
228 Log.e(TAG,"Virtualizer effect not supported");
234 Log.e(TAG,"Virtualizer effect not found");
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioEffectTest.java149 //Test case 1.0: test constructor from effect type and get effect ID
166 AudioEffect effect = new AudioEffect(desc[0].type,
170 assertNotNull(msg + ": could not create AudioEffect", effect);
172 assertTrue(msg +": invalid effect ID", (effect.getId() != 0));
177 effect.release();
192 //Test case 1.1: test constructor from effect uuid
208 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_NULL,
212 assertNotNull(msg + ": could not create AudioEffect", effect);
[all...]
/frameworks/base/media/java/android/media/
H A DAudioService.java196 /* Sound effect file names */
206 /* Sound effect file name mapping sound effect id (AudioManager.FX_xxx) to
207 * file index in SOUND_EFFECT_FILES[] (first column) and indicating if effect
1634 * sample can be reused for another effect using the same file.
1641 * Effects whose value in SOUND_EFFECT_FILES_MAP[effect][1] is -1 must be loaded.
1642 * If load succeeds, value in SOUND_EFFECT_FILES_MAP[effect][1] is > 0:
1643 * this indicates we have a valid sample loaded for this effect.
1647 for (int effect = 0; effect < AudioManage
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java43 * <p>To apply the audio effect to a specific AudioTrack or MediaPlayer instance,
48 * <p>Creating an AudioEffect object will create the corresponding effect engine in the audio
49 * framework if no instance of the same effect type exists in the specified audio session.
52 * control of the effect engine or not depending on the priority parameter. If priority is higher
53 * than the priority used by the current effect engine owner, the control will be transfered to the
55 * application will be notified of changes in effect engine state or control ownership by the
67 // effect type UUIDs are taken from hardware/libhardware/include/hardware/audio_effect.h
70 * The following UUIDs define effect types corresponding to standard audio
77 * UUID for environmental reverb effect
83 * UUID for preset reverb effect
941 onEnableStatusChange(AudioEffect effect, boolean enabled) argument
956 onControlStatusChange(AudioEffect effect, boolean controlGranted) argument
972 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DBassBoost.java33 * Bass boost is an audio effect to boost or amplify low frequencies of the sound. It is comparable
59 * Bass boost effect strength. Parameter ID for
88 * how much the requesting application needs control of effect parameters. The normal priority
122 * Sets the strength of the bass boost effect. If the implementation does not support per mille
126 * @param strength strength of the effect. The valid range for strength strength is [0, 1000],
127 * where 0 per mille designates the mildest effect and 1000 per mille designates the strongest.
138 * Gets the current strength of the effect.
139 * @return the strength of the effect. The valid range for strength is [0, 1000], where 0 per
140 * mille designates the mildest effect and 1000 per mille the strongest
161 * @param effect th
166 onParameterChange(BassBoost effect, int status, int param, short value) argument
177 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DEnvironmentalReverb.java49 * <p>The EnvironmentalReverb is an output mix auxiliary effect and should be created on
50 * Audio session 0. In order for a MediaPlayer or AudioTrack to be fed into this effect,
51 * they must be explicitely attached to it and a send level must be specified. Use the effect ID
52 * returned by getId() method to designate this particular effect when attaching it to the
132 * parameter indicates how much the requesting application needs control of effect parameters.
137 * As the EnvironmentalReverb is an auxiliary effect it is recommended to instantiate it on
150 * Sets the master volume level of the environmental reverb effect.
163 * Gets the master volume level of the environmental reverb effect.
178 * overall reverb effect.
412 * produce a more colored effect
452 onParameterChange(EnvironmentalReverb effect, int status, int param, int value) argument
463 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
H A DEqualizer.java133 * how much the requesting application needs control of effect parameters. The normal priority
298 * Gets the band that has the most effect on the given frequency.
300 * @return the frequency band that has most effect on the given frequency.
386 * @param effect the Equalizer on which the interface is registered.
392 void onParameterChange(Equalizer effect, int status, int param1, int param2, int value); argument
403 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
H A DPresetReverb.java50 * <p>The PresetReverb is an output mix auxiliary effect and should be created on
51 * Audio session 0. In order for a MediaPlayer or AudioTrack to be fed into this effect,
52 * they must be explicitely attached to it and a send level must be specified. Use the effect ID
53 * returned by getId() method to designate this particular effect when attaching it to the
122 * parameter indicates how much the requesting application needs control of effect parameters.
127 * As the PresetReverb is an auxiliary effect it is recommended to instantiate it on
178 * @param effect the PresetReverb on which the interface is registered.
183 void onParameterChange(PresetReverb effect, int status, int param, short value); argument
194 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument
H A DVirtualizer.java33 * An audio virtualizer is a general name for an effect to spatialize audio channels. The exact
34 * behavior of this effect is dependent on the number of audio input channels and the types and
36 * stereo headphone output, a stereo widening effect is used when this effect is turned on.
61 * Virtualizer effect strength. Parameter ID for
90 * how much the requesting application needs control of effect parameters. The normal priority
124 * Sets the strength of the virtualizer effect. If the implementation does not support per mille
128 * @param strength strength of the effect. The valid range for strength strength is [0, 1000],
129 * where 0 per mille designates the mildest effect and 1000 per mille designates the strongest.
140 * Gets the current strength of the effect
168 onParameterChange(Virtualizer effect, int status, int param, short value) argument
179 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument
[all...]
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaArtistNativeHelper.java391 /** Invalid effect kind. */
394 /** Invalid video effect. */
397 /** Invalid audio effect. */
409 /** External effect is called but this function is not set. */
934 /** Invert the default rotation direction of the AlphaMagic effect. */
1183 /** Defines settings for an effect. */
1185 /** No audio effect. */
1188 /** Fade-in effect. */
1191 /** Fade-out effect. */
1195 /** Defines the effect setting
3487 getEffectColorType(EffectColor effect) argument
[all...]
H A DMediaImageItem.java300 * This invalidation is necessary for the case in which an effect or
306 * because an effect or an overlay overlaps with the beginning
320 * This invalidation is necessary for the case in which an effect or
324 * effect.
355 * an effect.
357 for (Effect effect : effects) {
359 * Check if the effect overlaps with the begin transition
361 if (effect.getStartTime() < transitionDurationMs) {
395 * an effect.
398 for (Effect effect
[all...]
H A DMediaItem.java276 * Add the specified effect to this media item.
283 * effect overlaps with the beginning and/or the end transition.
285 * @param effect The effect to apply
287 * @throws IllegalArgumentException if the effect start and/or duration are
288 * invalid or if the effect cannot be applied to this type of media
289 * item or if the effect id is not unique across all the Effects
292 public void addEffect(Effect effect) { argument
294 if (effect == null) {
295 throw new IllegalArgumentException("NULL effect canno
[all...]
H A DMediaVideoItem.java272 public void addEffect(Effect effect) { argument
273 if (effect instanceof EffectKenBurns) {
276 super.addEffect(effect);
H A DTransition.java279 * Checks if the effect and overlay applied on a media item
285 * associated with current transition)for which the effect
308 for (Effect effect : effects) {
309 if (effect instanceof EffectColor) {
310 tmpEffectSettings = mNativeHelper.getEffectSettings((EffectColor)effect);
361 * generate effect clip first if there is any overlap
392 * generate effect clip first if there is any overlap
414 * generate effect clip first if there is any overlap
H A DVideoEditorImpl.java76 private static final String TAG_EFFECT = "effect";
1041 final Effect effect = parseEffect(parser, currentMediaItem);
1042 currentMediaItem.addEffect(effect);
1044 if (effect instanceof EffectKenBurns) {
1070 Log.w(TAG, "Cannot load effect", ex);
1286 * Parse the effect
1291 * @return The effect
1299 final Effect effect;
1310 effect = new EffectColor(mediaItem, effectId, startTimeMs,
1323 effect
[all...]
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DEffect.java18 package android.media.effect;
28 * {@link android.media.effect.EffectContext#getFactory() getFactory()}. The EffectFactory allows
32 * applying an effect. An effect is bound to a single EffectContext, which in turn is bound to a
40 * Get the effect name.
42 * Returns the unique name of the effect, which matches the name used for instantiating this
43 * effect by the EffectFactory.
45 * @return The name of the effect.
50 * Apply an effect to GL textures.
60 * bound by the effect a
[all...]
H A DEffectContext.java18 package android.media.effect;
33 * this EGL context, and making it current before applying any effect. If your EGL context is
112 throw new RuntimeException("Applying effect in wrong GL context!");
114 throw new RuntimeException("Attempting to apply effect without valid GL context!");

Completed in 1085 milliseconds

123