Home
last modified time | relevance | path

Searched refs:screenBrightness (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java145 assertEquals(DEFAULT_BRIGHTNESS, mServiceFake.screenBrightness); in testInitialize_setsScreenBrightnessToValidValue()
146 assertTrue(mServiceFake.screenBrightness <= PowerManager.BRIGHTNESS_ON); in testInitialize_setsScreenBrightnessToValidValue()
160 assertEquals(1, mServiceFake.screenBrightness); in testAod_usesDebugValue()
170 assertEquals(maxBrightness, mServiceFake.screenBrightness); in testAod_usesLightSensorRespectingUserSetting()
184 assertNotSame(3, mServiceFake.screenBrightness); in doze_doesNotUseLightSensor()
185 assertEquals(DEFAULT_BRIGHTNESS, mServiceFake.screenBrightness); in doze_doesNotUseLightSensor()
199 assertNotSame(3, mServiceFake.screenBrightness); in dozeSuspendTriggers_doesNotUseLightSensor()
200 assertEquals(DEFAULT_BRIGHTNESS, mServiceFake.screenBrightness); in dozeSuspendTriggers_doesNotUseLightSensor()
214 assertEquals(3, mServiceFake.screenBrightness); in aod_usesLightSensor()
229 assertEquals(3, mServiceFake.screenBrightness); in docked_usesLightSensor()
[all …]
DDozeServiceFake.java33 public int screenBrightness; field in DozeServiceFake
57 screenBrightness = brightness; in setDozeScreenBrightness()
65 screenBrightness = PowerManager.BRIGHTNESS_DEFAULT; in reset()
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl41 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java143 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java475 int screenBrightness) { in startDozingInternal() argument
479 + ", screenBrightness=" + screenBrightness); in startDozingInternal()
485 mCurrentDream.dozeScreenBrightness = screenBrightness; in startDozingInternal()
487 screenState, screenBrightness); in startDozingInternal()
982 public void startDozing(IBinder token, int screenState, int screenBrightness) { in startDozing() argument
990 startDozingInternal(token, screenState, screenBrightness); in startDozing()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/
DColorModeControls.kt112 window?.attributes?.screenBrightness = level in setBrightness()
/frameworks/base/core/java/android/view/
DWindowManager.java3425 public float screenBrightness = BRIGHTNESS_OVERRIDE_NONE; field in WindowManager.LayoutParams
4367 out.writeFloat(screenBrightness); in writeToParcel()
4437 screenBrightness = in.readFloat(); in LayoutParams()
4631 if (screenBrightness != o.screenBrightness) { in copyFrom()
4632 screenBrightness = o.screenBrightness; in copyFrom()
4891 if (screenBrightness != BRIGHTNESS_OVERRIDE_NONE) { in toString()
4893 sb.append(screenBrightness); in toString()
5038 proto.write(SCREEN_BRIGHTNESS, screenBrightness); in dumpDebug()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationShadeWindowControllerImpl.java582 mLpChanged.screenBrightness = mScreenBrightnessDoze; in applyBrightness()
584 mLpChanged.screenBrightness = LayoutParams.BRIGHTNESS_OVERRIDE_NONE; in applyBrightness()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java4235 int screenState, int screenBrightness) {
4238 || mDozeScreenBrightnessOverrideFromDreamManager != screenBrightness) {
4240 mDozeScreenBrightnessOverrideFromDreamManager = screenBrightness;
6569 public void setScreenBrightnessOverrideFromWindowManager(float screenBrightness) {
6570 if (screenBrightness < PowerManager.BRIGHTNESS_MIN
6571 || screenBrightness > PowerManager.BRIGHTNESS_MAX) {
6572 screenBrightness = PowerManager.BRIGHTNESS_INVALID_FLOAT;
6574 setScreenBrightnessOverrideFromWindowManagerInternal(screenBrightness);
6578 public void setDozeOverrideFromDreamManager(int screenState, int screenBrightness) {
6592 if (screenBrightness < PowerManager.BRIGHTNESS_DEFAULT
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DRootWindowContainer.java1068 if (!syswin && w.mAttrs.screenBrightness >= 0 in handleNotObscuredLocked()
1070 mScreenBrightnessOverride = w.mAttrs.screenBrightness; in handleNotObscuredLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt34792 field public float screenBrightness;
/frameworks/base/core/api/
Dcurrent.txt51569 field public float screenBrightness;