Lines Matching defs:effect

298     /* Sound effect file names  */
302 /* Sound effect file name mapping sound effect id (AudioManager.FX_xxx) to
303 * file index in SOUND_EFFECT_FILES[] (first column) and indicating if effect
2529 VibrationEffect effect = null;
2543 effect = VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK);
2548 effect = VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK);
2553 maybeVibrate(effect);
2558 private boolean maybeVibrate(VibrationEffect effect) {
2568 if (effect == null) {
2572 Binder.getCallingUid(), mContext.getOpPackageName(), effect, VIBRATION_ATTRIBUTES);
3072 // do not try to play the sound effect if the system stream is muted
5365 * sample can be reused for another effect using the same file.
5372 * Effects whose value in SOUND_EFFECT_FILES_MAP[effect][1] is -1 must be loaded.
5373 * If load succeeds, value in SOUND_EFFECT_FILES_MAP[effect][1] is > 0:
5374 * this indicates we have a valid sample loaded for this effect.
5378 for (int effect = 0; effect < AudioManager.NUM_SOUND_EFFECTS; effect++) {
5379 // Do not load sample if this effect uses the MediaPlayer
5380 if (SOUND_EFFECT_FILES_MAP[effect][1] == 0) {
5383 if (poolId[SOUND_EFFECT_FILES_MAP[effect][0]] == -1) {
5384 String filePath = getSoundEffectFilePath(effect);
5389 SOUND_EFFECT_FILES_MAP[effect][1] = sampleId;
5390 poolId[SOUND_EFFECT_FILES_MAP[effect][0]] = sampleId;
5394 SOUND_EFFECT_FILES_MAP[effect][1] =
5395 poolId[SOUND_EFFECT_FILES_MAP[effect][0]];
5424 for (int effect = 0; effect < AudioManager.NUM_SOUND_EFFECTS; effect++) {
5425 if (SOUND_EFFECT_FILES_MAP[effect][1] > 0) {
5426 SOUND_EFFECT_FILES_MAP[effect][1] = -1;
5453 for (int effect = 0; effect < AudioManager.NUM_SOUND_EFFECTS; effect++) {
5454 if (SOUND_EFFECT_FILES_MAP[effect][1] <= 0) {
5457 if (poolId[SOUND_EFFECT_FILES_MAP[effect][0]] == 0) {
5458 mSoundPool.unload(SOUND_EFFECT_FILES_MAP[effect][1]);
5459 SOUND_EFFECT_FILES_MAP[effect][1] = -1;
5460 poolId[SOUND_EFFECT_FILES_MAP[effect][0]] = -1;
6623 Log.w(TAG, "effect broadcast already targeted to " + target);
6638 Log.w(TAG, "couldn't find receiver package for effect intent");