Change attribute of fingerprint vibrations

Test: turn haptic feedback vibration strength to low. Double-power to
camera, squeeze for Assistant and fingerprint vibrations should still
feel high strength.
Bug:123870990
Change-Id: Idca963a0bf042b7930836400ae86b8311bb24f51
This commit is contained in:
Alexey Kuzmin
2019-04-23 19:35:01 +01:00
parent d06c6d2932
commit 8a44bc9508

View File

@@ -42,7 +42,12 @@ public abstract class ClientMonitor extends LoggableMonitor implements IBinder.D
private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES =
new AudioAttributes.Builder()
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
// Temporary fix for b/123870990. No time in this release to
// introduce a new vibration type, but we need to distinguish these vibrations
// from other haptic feedback vibrations. Fortunately, Alarm vibrations have
// exactly the same behavior as we need
// TODO: refactor within the scope of b/132170758
.setUsage(AudioAttributes.USAGE_ALARM)
.build();
private final Context mContext;