Home
last modified time | relevance | path

Searched refs:mModifier (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/brightness/
DBrightnessReason.java67 private int mModifier; field in BrightnessReason
76 setModifier(other == null ? 0 : other.mModifier); in set()
85 setModifier(modifier | this.mModifier); in addModifier()
95 return other.mReason == mReason && other.mModifier == mModifier; in equals()
100 return Objects.hash(mReason, mModifier); in hashCode()
125 if ((mModifier & MODIFIER_LOW_POWER) != 0) { in toString()
128 if ((mModifier & MODIFIER_DIMMED) != 0) { in toString()
131 if ((mModifier & MODIFIER_HDR) != 0) { in toString()
134 if ((mModifier & MODIFIER_THROTTLED) != 0) { in toString()
137 if ((mModifier & MODIFIER_MIN_LUX) != 0) { in toString()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessLowPowerModeModifierTest.java42 private BrightnessLowPowerModeModifier mModifier; field in BrightnessLowPowerModeModifierTest
46 mModifier = new BrightnessLowPowerModeModifier(); in setUp()
55 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOff()
64 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOn()
76 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndLowPowerBrightnessFactorHigh()
87 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndMinBrightness()
96 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOnAndLowPowerAlreadyApplied()
99 mModifier.apply(mRequest, builder); in testApply_lowPowerModeOnAndLowPowerAlreadyApplied()
109 mModifier.apply(mRequest, mBuilder); in testApply_lowPowerModeOffAfterLowPowerOn()
113 mModifier.apply(mRequest, builder); in testApply_lowPowerModeOffAfterLowPowerOn()
DDisplayDimModifierTest.java59 private DisplayDimModifier mModifier; field in DisplayDimModifierTest
71 mModifier = new DisplayDimModifier(mMockContext); in setUp()
78 mModifier.apply(mRequest, mBuilder); in testApply_noDimPolicy()
88 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyFromResources()
98 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyFromConfig()
108 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyAndDimPolicyAlreadyApplied()
111 mModifier.apply(mRequest, builder); in testApply_dimPolicyAndDimPolicyAlreadyApplied()
122 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyAndMinBrightness()
131 mModifier.apply(mRequest, mBuilder); in testApply_dimPolicyOffAfterDimPolicyOn()
135 mModifier.apply(mRequest, builder); in testApply_dimPolicyOffAfterDimPolicyOn()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableTest.java95 private CarLaunchParamsModifier mModifier; field in CarLaunchParamsModifierUpdatableTest
244 mModifier = new CarLaunchParamsModifier(mContext); in setUp()
245 mBuiltin = mModifier.getBuiltinInterface(); in setUp()
247 mModifier.setUpdatable(mUpdatable); in setUp()
248 mModifier.init(); in setUp()
266 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAllowed()
281 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsReassigned()
294 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertDisplayIsAssigned()
304 assertThat(mModifier.onCalculate(mTask, mWindowLayout, mActivityRecordActivity, in assertNoDisplayIsAssigned()
366 mModifier.handleCurrentUserSwitching(driver1); in testAllowAllForDriverAfterUserSwitching()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessClamperController.java123 mModifiers.forEach(mModifier -> mModifier.setAmbientLux(lux)); in BrightnessClamperController()
446 mModifiers.forEach(mModifier -> mModifier.setAmbientLux(INVALID_LUX)); // set lux to invalid in unregisterSensorListener()