Add option definition for vibration during zen mode.

Change-Id: I7398adbaa691bc6ec50b56328190a317bee805eb
This commit is contained in:
Danny Baumann 2016-10-17 16:41:40 +02:00
parent d755121d2c
commit fac872cfde
1 changed files with 14 additions and 0 deletions

View File

@ -864,6 +864,19 @@ public final class CMSettings {
/** @hide */
public static final Validator ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR = sBooleanValidator;
/**
* Whether vibrations are allowed when in zen priority mode during downtime
* 0: no vibrations
* 1: vibrations for calls only
* 2: vibrations for calls and notifications
* @hide
*/
public static final String ZEN_PRIORITY_VIBRATION_MODE = "zen_priority_vibration_mode";
/** @hide */
public static final Validator ZEN_PRIORITY_VIBRATION_VALIDATOR =
new InclusiveIntegerRangeValidator(0, 2);
/**
* Display style of AM/PM next to clock in status bar
* 0: Normal display (Eclair stock)
@ -2109,6 +2122,7 @@ public final class CMSettings {
VALIDATORS.put(HEADSET_CONNECT_PLAYER, HEADSET_CONNECT_PLAYER_VALIDATOR);
VALIDATORS.put(ZEN_ALLOW_LIGHTS, ZEN_ALLOW_LIGHTS_VALIDATOR);
VALIDATORS.put(ZEN_PRIORITY_ALLOW_LIGHTS, ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR);
VALIDATORS.put(ZEN_PRIORITY_VIBRATION_MODE, ZEN_PRIORITY_VIBRATION_VALIDATOR);
VALIDATORS.put(TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK,
TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK_VALIDATOR);
VALIDATORS.put(DISPLAY_PICTURE_ADJUSTMENT,