CMSDK: Allow/Prevent notification light in Zen mode (3 of 3)

Change-Id: Icad93cf6166359debd774259aa186640de34d432
This commit is contained in:
niks255 2016-01-29 12:13:00 +03:00 committed by Adnan Begovic
parent ba31b78d15
commit 783463c739
3 changed files with 23 additions and 0 deletions

View File

@ -873,6 +873,8 @@ package cyanogenmod.providers {
field public static final java.lang.String VOLUME_ADJUST_SOUNDS_ENABLED = "volume_adjust_sounds_enabled";
field public static final java.lang.String VOLUME_KEYS_CONTROL_RING_STREAM = "volume_keys_control_ring_stream";
field public static final java.lang.String VOLUME_WAKE_SCREEN = "volume_wake_screen";
field public static final java.lang.String ZEN_ALLOW_LIGHTS = "allow_lights";
field public static final java.lang.String ZEN_PRIORITY_ALLOW_LIGHTS = "zen_priority_allow_lights";
}
}

View File

@ -811,6 +811,22 @@ public final class CMSettings {
public static final Validator STATUS_BAR_CLOCK_VALIDATOR =
new InclusiveIntegerRangeValidator(0, 3);
/**
* Whether the notification light will be allowed when in zen mode during downtime
*/
public static final String ZEN_ALLOW_LIGHTS = "allow_lights";
/** @hide */
public static final Validator ZEN_ALLOW_LIGHTS_VALIDATOR = sBooleanValidator;
/**
* Whether the notification light will be allowed when in zen priority mode during downtime
*/
public static final String ZEN_PRIORITY_ALLOW_LIGHTS = "zen_priority_allow_lights";
/** @hide */
public static final Validator ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR = sBooleanValidator;
/**
* Display style of AM/PM next to clock in status bar
* 0: Normal display (Eclair stock)
@ -1838,6 +1854,7 @@ public final class CMSettings {
CMSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
CMSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
CMSettings.System.HEADSET_CONNECT_PLAYER,
CMSettings.System.ZEN_ALLOW_LIGHTS,
};
/**
@ -1983,6 +2000,8 @@ public final class CMSettings {
VALIDATORS.put(NOTIFICATION_LIGHT_COLOR_AUTO,
NOTIFICATION_LIGHT_COLOR_AUTO_VALIDATOR);
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(__MAGICAL_TEST_PASSING_ENABLER,
__MAGICAL_TEST_PASSING_ENABLER_VALIDATOR);
};

View File

@ -873,6 +873,8 @@ package cyanogenmod.providers {
field public static final java.lang.String VOLUME_ADJUST_SOUNDS_ENABLED = "volume_adjust_sounds_enabled";
field public static final java.lang.String VOLUME_KEYS_CONTROL_RING_STREAM = "volume_keys_control_ring_stream";
field public static final java.lang.String VOLUME_WAKE_SCREEN = "volume_wake_screen";
field public static final java.lang.String ZEN_ALLOW_LIGHTS = "allow_lights";
field public static final java.lang.String ZEN_PRIORITY_ALLOW_LIGHTS = "zen_priority_allow_lights";
}
}