Drop unsupported EFFECT_TEXTURE_TICK effect
We don't support EFFECT_TEXTURE_TICK, this effect is
a new effect introduced in Android Q.
Issue: PRJ8901-980
Issue: FP3-A11#183
Issue: FP3-A11#233
Change-Id: I2f3d2da918e3c4d2a4cbd92a64d9a0faf36b05a8
(cherry picked from commit 42a4ccf5ce03f3258ee80ffeee0b2e232b0f2116)
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 1760ae9..c754c65 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -5285,15 +5285,13 @@
private VibrationEffect getVibrationEffect(int effectId) {
long[] pattern;
switch (effectId) {
+ case HapticFeedbackConstants.CLOCK_TICK:
case HapticFeedbackConstants.CONTEXT_CLICK:
return VibrationEffect.get(VibrationEffect.EFFECT_TICK);
case HapticFeedbackConstants.TEXT_HANDLE_MOVE:
if (!mHapticTextHandleEnabled) {
return null;
}
- // fallthrough
- case HapticFeedbackConstants.CLOCK_TICK:
- return VibrationEffect.get(VibrationEffect.EFFECT_TEXTURE_TICK);
case HapticFeedbackConstants.KEYBOARD_RELEASE:
case HapticFeedbackConstants.VIRTUAL_KEY_RELEASE:
case HapticFeedbackConstants.ENTRY_BUMP: