Home
last modified time | relevance | path

Searched refs:zenDeviceEffects (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/service/notification/
DZenDeviceEffects.java402 public Builder(@NonNull ZenDeviceEffects zenDeviceEffects) { in Builder() argument
403 mGrayscale = zenDeviceEffects.shouldDisplayGrayscale(); in Builder()
404 mSuppressAmbientDisplay = zenDeviceEffects.shouldSuppressAmbientDisplay(); in Builder()
405 mDimWallpaper = zenDeviceEffects.shouldDimWallpaper(); in Builder()
406 mNightMode = zenDeviceEffects.shouldUseNightMode(); in Builder()
407 mDisableAutoBrightness = zenDeviceEffects.shouldDisableAutoBrightness(); in Builder()
408 mDisableTapToWake = zenDeviceEffects.shouldDisableTapToWake(); in Builder()
409 mDisableTiltToWake = zenDeviceEffects.shouldDisableTiltToWake(); in Builder()
410 mDisableTouch = zenDeviceEffects.shouldDisableTouch(); in Builder()
411 mMinimizeRadioUsage = zenDeviceEffects.shouldMinimizeRadioUsage(); in Builder()
[all …]
DZenModeDiff.java552 if (!Objects.equals(from.zenDeviceEffects, to.zenDeviceEffects)) { in RuleDiff()
554 new FieldDiff<>(from.zenDeviceEffects, to.zenDeviceEffects)); in RuleDiff()
DZenModeConfig.java1159 rt.zenDeviceEffects = readZenDeviceEffectsXml(parser); in readRuleXml()
1206 if (Flags.modesApi() && rule.zenDeviceEffects != null) { in writeRuleXml()
1207 writeZenDeviceEffectsXml(rule.zenDeviceEffects, out); in writeRuleXml()
2478 @Nullable public ZenDeviceEffects zenDeviceEffects; field in ZenModeConfig.ZenRule
2513 zenDeviceEffects = source.readParcelable(null, ZenDeviceEffects.class); in ZenRule()
2584 dest.writeParcelable(zenDeviceEffects, 0); in writeToParcel()
2626 sb.append(",deviceEffects=").append(zenDeviceEffects) in toString()
2701 && Objects.equals(other.zenDeviceEffects, zenDeviceEffects) in equals()
2721 zenDeviceEffects, modified, allowManualInvocation, iconResName, in hashCode()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java459 rule.zenDeviceEffects = null; in testCanBeUpdatedByApp_nullPolicyAndDeviceEffects()
481 rule.zenDeviceEffects = new ZenDeviceEffects.Builder().build(); in testCanBeUpdatedByApp_deviceEffectsModified()
600 rule.zenDeviceEffects = new ZenDeviceEffects.Builder() in testRuleXml()
645 assertEquals(rule.zenDeviceEffects, fromXml.zenDeviceEffects); in testRuleXml()
661 rule.zenDeviceEffects = new ZenDeviceEffects.Builder() in testRuleXml_weirdEffects()
674 assertThat(fromXml.zenDeviceEffects.getExtraEffects()).isNotNull(); in testRuleXml_weirdEffects()
675 assertThat(fromXml.zenDeviceEffects.getExtraEffects()) in testRuleXml_weirdEffects()
DZenModeDiffTest.java340 rule.zenDeviceEffects = new ZenDeviceEffects.Builder() in makeRule()
DZenModeHelperTest.java4473 assertThat(storedRule.zenDeviceEffects.shouldDisplayGrayscale()).isTrue(); in updateAutomaticZenRule_fromApp_updatesValuesIfRuleNotUserModified()
5172 user1Rule.zenDeviceEffects = new ZenDeviceEffects.Builder() in testDeviceEffects_onUserSwitch_appliedImmediately()
5182 verify(mDeviceEffectsApplier).apply(eq(user1Rule.zenDeviceEffects), in testDeviceEffects_onUserSwitch_appliedImmediately()
6169 assertThat(mZenModeHelper.getConfig().manualRule.zenDeviceEffects).isEqualTo(effects); in setManualZenRuleDeviceEffects_noPreexistingMode()
6185 assertThat(mZenModeHelper.getConfig().manualRule.zenDeviceEffects).isEqualTo(effects); in setManualZenRuleDeviceEffects_preexistingMode()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java1402 ZenDeviceEffects oldEffects = zenRule.zenDeviceEffects != null in updateZenDeviceEffects()
1403 ? zenRule.zenDeviceEffects in updateZenDeviceEffects()
1419 zenRule.zenDeviceEffects = newEffects; in updateZenDeviceEffects()
1474 .setDeviceEffects(rule.zenDeviceEffects) in zenRuleToAutomaticZenRule()
1590 newConfig.manualRule.zenDeviceEffects = deviceEffects; in setManualZenRuleDeviceEffects()
2095 deviceEffectsBuilder.add(mConfig.manualRule.zenDeviceEffects); in updateAndApplyConsolidatedPolicyAndDeviceEffects()
2108 deviceEffectsBuilder.add(automaticRule.zenDeviceEffects); in updateAndApplyConsolidatedPolicyAndDeviceEffects()