Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/java/android/view/
H A DSoundEffectConstants.java146 public static boolean isNavigationRepeat(@NavigationSoundEffect int effectId) { in isNavigationRepeat() argument
147 return effectId == SoundEffectConstants.NAVIGATION_REPEAT_DOWN in isNavigationRepeat()
148 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_LEFT in isNavigationRepeat()
149 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_RIGHT in isNavigationRepeat()
150 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_UP; in isNavigationRepeat()
H A DIWindowSession.aidl143 boolean performHapticFeedback(int effectId, boolean always); in performHapticFeedback() argument
149 oneway void performHapticFeedbackAsync(int effectId, boolean always); in performHapticFeedbackAsync() argument
H A DWindowlessWindowManager.java480 public boolean performHapticFeedback(int effectId, boolean always) { in performHapticFeedback() argument
485 public void performHapticFeedbackAsync(int effectId, boolean always) { in performHapticFeedbackAsync() argument
486 performHapticFeedback(effectId, always); in performHapticFeedbackAsync()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DHalVibration.java91 public VibrationEffect getFallback(int effectId) { in getFallback() argument
92 return mFallbacks.get(effectId); in getFallback()
99 public void addFallback(int effectId, VibrationEffect effect) { in addFallback() argument
100 mFallbacks.put(effectId, effect); in addFallback()
H A DVibrationSettings.java364 public VibrationEffect getFallbackEffect(int effectId) { in getFallbackEffect() argument
365 return mFallbackEffects.get(effectId); in getFallbackEffect()
H A DVibratorManagerService.java2134 int effectId = Integer.parseInt(getNextArgRequired()); in addPrebakedToComposition() local
2136 composition.addEffect(VibrationEffect.get(effectId, shouldFallback)); in addPrebakedToComposition()
/aosp14/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DSimplePlayer.java180 public void attachAuxEffect(int effectId) { in attachAuxEffect() argument
181 mEffectId = effectId; in attachAuxEffect()
183 Log.d(TAG,"attach effect: "+effectId); in attachAuxEffect()
184 mMediaPlayer.attachAuxEffect(effectId); in attachAuxEffect()
/aosp14/frameworks/base/core/java/android/os/
H A DVibrationEffect.java313 public static VibrationEffect createPredefined(@EffectType int effectId) { in createPredefined() argument
314 return get(effectId, true); in createPredefined()
336 public static VibrationEffect get(int effectId) { in get() argument
337 return get(effectId, true); in get()
363 public static VibrationEffect get(int effectId, boolean fallback) { in get() argument
365 new PrebakedSegment(effectId, fallback, EffectStrength.MEDIUM)); in get()
616 public static String effectIdToString(int effectId) { in effectIdToString() argument
617 switch (effectId) { in effectIdToString()
633 return Integer.toString(effectId); in effectIdToString()
H A DVibrator.java579 for (int effectId : effectIds) { in areAllEffectsSupported()
580 switch (info.isEffectSupported(effectId)) { in areAllEffectsSupported()
H A DSystemVibrator.java396 int effectId = firstVibratorEffects.keyAt(i); in supportedEffectsIntersection() local
403 if (infos[j].isEffectSupported(effectId) != VIBRATION_EFFECT_SUPPORT_YES) { in supportedEffectsIntersection()
409 intersection.put(effectId, true); in supportedEffectsIntersection()
H A DVibratorInfo.java276 public int isEffectSupported(@VibrationEffect.EffectType int effectId) { in isEffectSupported() argument
280 return mSupportedEffects.get(effectId) ? Vibrator.VIBRATION_EFFECT_SUPPORT_YES in isEffectSupported()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrebakedSegmentTest.java279 private static PrebakedSegment createSegmentWithFallback(int effectId) { in createSegmentWithFallback() argument
281 return new PrebakedSegment(effectId, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in createSegmentWithFallback()
284 private static PrebakedSegment createSegmentWithoutFallback(int effectId) { in createSegmentWithoutFallback() argument
286 return new PrebakedSegment(effectId, false, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in createSegmentWithoutFallback()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DVibratorHelper.java80 public void vibrate(final int effectId) { in vibrate() argument
85 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */), in vibrate()
/aosp14/frameworks/base/core/java/android/os/vibrator/
H A DPrebakedSegment.java47 public PrebakedSegment(int effectId, boolean shouldFallback, int effectStrength) { in PrebakedSegment() argument
48 mEffectId = effectId; in PrebakedSegment()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
H A DMagnetizedObject.kt465 private fun vibrateIfEnabled(effectId: Int) {
467 vibrator.vibrate(VibrationEffect.createPredefined(effectId), vibrationAttributes)
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibratorControllerTest.java324 private PrebakedSegment createPrebaked(int effectId, int effectStrength) { in createPrebaked() argument
325 return new PrebakedSegment(effectId, /* shouldFallback= */ false, effectStrength); in createPrebaked()
H A DVibratorManagerServiceTest.java2187 private VibrationEffectSegment expectedPrebaked(int effectId) { in expectedPrebaked() argument
2188 return expectedPrebaked(effectId, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in expectedPrebaked()
2191 private VibrationEffectSegment expectedPrebaked(int effectId, int effectStrength) { in expectedPrebaked() argument
2192 return new PrebakedSegment(effectId, false, effectStrength); in expectedPrebaked()
H A DVibrationThreadTest.java1650 private VibrationEffectSegment expectedPrebaked(int effectId) { in expectedPrebaked() argument
1651 return new PrebakedSegment(effectId, false, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in expectedPrebaked()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSession.java303 public boolean performHapticFeedback(int effectId, boolean always) { in performHapticFeedback() argument
307 effectId, always, null); in performHapticFeedback()
314 public void performHapticFeedbackAsync(int effectId, boolean always) { in performHapticFeedbackAsync() argument
315 performHapticFeedback(effectId, always); in performHapticFeedbackAsync()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTestWindowManagerPolicy.java267 public boolean performHapticFeedback(int uid, String packageName, int effectId, in performHapticFeedback() argument
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_MediaPlayer.cpp1049 static void android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) { in android_media_MediaPlayer_attachAuxEffect() argument
1050 ALOGV("attachAuxEffect(): %d", effectId); in android_media_MediaPlayer_attachAuxEffect()
1056 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL ); in android_media_MediaPlayer_attachAuxEffect()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DWindowManagerPolicy.java1066 public boolean performHapticFeedback(int uid, String packageName, int effectId, in performHapticFeedback() argument
H A DPhoneWindowManager.java5953 private boolean performHapticFeedback(int effectId, boolean always, String reason) {
5955 effectId, always, reason);
5964 public boolean performHapticFeedback(int uid, String packageName, int effectId,
5969 VibrationEffect effect = getVibrationEffect(effectId);
5973 VibrationAttributes attrs = getVibrationAttributes(effectId);
5983 private VibrationEffect getVibrationEffect(int effectId) {
5985 switch (effectId) {
6086 private VibrationAttributes getVibrationAttributes(int effectId) {
6087 switch (effectId) {
/aosp14/frameworks/base/media/java/android/media/
H A DAudioTrack.java3701 public int attachAuxEffect(int effectId) { in attachAuxEffect() argument
3705 return native_attachAuxEffect(effectId); in attachAuxEffect()
4504 private native final int native_attachAuxEffect(int effectId); in native_attachAuxEffect() argument
/aosp14/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp1174 jint effectId) { in android_media_AudioTrack_attachAuxEffect() argument
1181 return nativeToJavaStatus( lpTrack->attachAuxEffect(effectId) ); in android_media_AudioTrack_attachAuxEffect()

12