Loading services/core/java/com/android/server/biometrics/ClientMonitor.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -42,7 +42,12 @@ public abstract class ClientMonitor extends LoggableMonitor implements IBinder.D private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES = private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES = new AudioAttributes.Builder() new AudioAttributes.Builder() .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .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(); .build(); private final Context mContext; private final Context mContext; Loading Loading
services/core/java/com/android/server/biometrics/ClientMonitor.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -42,7 +42,12 @@ public abstract class ClientMonitor extends LoggableMonitor implements IBinder.D private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES = private static final AudioAttributes FINGERPRINT_SONFICATION_ATTRIBUTES = new AudioAttributes.Builder() new AudioAttributes.Builder() .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .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(); .build(); private final Context mContext; private final Context mContext; Loading