From 2d6c839d894bcfca2506e45e313b4533f5532696 Mon Sep 17 00:00:00 2001 From: Lais Andrade Date: Thu, 23 Jun 2022 13:13:38 +0000 Subject: [PATCH] Update VibrationAttributes javadocs for FLAG_BYPASS_INTERRUPTION_POLICY Add clarification that this flag can only be applied by privileged apps, and will be ignored otherwise. Bug: 236932598 Change-Id: I78db484b9d479abed67689c827707b6f141b2c00 Test: N/A --- core/java/android/os/VibrationAttributes.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/os/VibrationAttributes.java b/core/java/android/os/VibrationAttributes.java index 43ea2e7810bc8..a52c989bb35a9 100644 --- a/core/java/android/os/VibrationAttributes.java +++ b/core/java/android/os/VibrationAttributes.java @@ -133,6 +133,9 @@ public final class VibrationAttributes implements Parcelable { /** * Flag requesting vibration effect to be played even under limited interruptions. + * + *

Only privileged apps can ignore user settings that limit interruptions, and this + * flag will be ignored otherwise. */ public static final int FLAG_BYPASS_INTERRUPTION_POLICY = 0x1;