Lines Matching defs:effects
1165 * Visual effects to suppress for a notification that is filtered by Do Not Disturb mode.
1216 * {@link #SUPPRESSED_EFFECT_SCREEN_OFF} bits of the suppressed visual effects field.
1217 * All other suppressed effects will be ignored and reconstituted from the screen on
1221 * suppressed visual effects. However, if any suppressed effects >
1225 * specific effects instead of the deprecated {@link #SUPPRESSED_EFFECT_SCREEN_ON} and
1226 * {@link #SUPPRESSED_EFFECT_SCREEN_OFF} effects.
1328 int effects = 0;
1330 effects |= ALL_SUPPRESSED_EFFECTS[i];
1332 return effects;
1338 public static boolean areAllVisualEffectsSuppressed(int effects) {
1341 if ((effects & effect) == 0) {
1351 public static boolean areAnyScreenOffEffectsSuppressed(int effects) {
1354 if ((effects & effect) != 0) {
1364 public static boolean areAnyScreenOnEffectsSuppressed(int effects) {
1367 if ((effects & effect) != 0) {
1388 private static int toggleEffects(int currentEffects, int[] effects, boolean suppress) {
1389 for (int i = 0; i < effects.length; i++) {
1390 final int effect = effects[i];
1400 public static String suppressedEffectsToString(int effects) {
1401 if (effects <= 0) return "";
1405 if ((effects & effect) != 0) {
1409 effects &= ~effect;
1411 if (effects != 0) {
1413 sb.append("UNKNOWN_").append(effects);