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.java82 assertEquals(DEFAULT_BRIGHTNESS, mServiceFake.screenBrightness); in testInitialize_setsScreenBrightnessToValidValue()
83 assertTrue(mServiceFake.screenBrightness <= PowerManager.BRIGHTNESS_ON); in testInitialize_setsScreenBrightnessToValidValue()
93 assertEquals(3, mServiceFake.screenBrightness); in testAod_usesLightSensor()
106 assertEquals(1, mServiceFake.screenBrightness); in testAod_usesDebugValue()
117 assertEquals(maxBrightness, mServiceFake.screenBrightness); in testAod_usesLightSensorRespectingUserSetting()
132 assertEquals(2, mServiceFake.screenBrightness); in testPausingAod_doesntPauseLightSensor()
145 assertEquals(1, mServiceFake.screenBrightness); in testPausingAod_doesNotResetBrightness()
156 assertEquals(1, mServiceFake.screenBrightness); in testPulsing_usesLightSensor()
184 assertEquals(DEFAULT_BRIGHTNESS, mServiceFake.screenBrightness); in testDozingAfterPulsing_pausesLightSensor()
208 assertNotEquals(1, mServiceFake.screenBrightness); in testNoBrightnessDeliveredAfterFinish()
[all …]
DDozeServiceFake.java33 public int screenBrightness; field in DozeServiceFake
57 screenBrightness = brightness; in setDozeScreenBrightness()
65 screenBrightness = PowerManager.BRIGHTNESS_DEFAULT; in reset()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java225 int screenBrightness) { in startDozingInternal() argument
229 + ", screenBrightness=" + screenBrightness); in startDozingInternal()
235 mCurrentDreamDozeScreenBrightness = screenBrightness; in startDozingInternal()
237 screenState, screenBrightness); in startDozingInternal()
617 public void startDozing(IBinder token, int screenState, int screenBrightness) { in startDozing() argument
625 startDozingInternal(token, screenState, screenBrightness); in startDozing()
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl39 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
/frameworks/base/core/java/android/view/
DWindowManager.java2271 public float screenBrightness = BRIGHTNESS_OVERRIDE_NONE; field in WindowManager.LayoutParams
2760 out.writeFloat(screenBrightness); in writeToParcel()
2816 screenBrightness = in.readFloat(); in LayoutParams()
2986 if (screenBrightness != o.screenBrightness) { in copyFrom()
2987 screenBrightness = o.screenBrightness; in copyFrom()
3158 if (screenBrightness != BRIGHTNESS_OVERRIDE_NONE) { in toString()
3160 sb.append(screenBrightness); in toString()
3244 proto.write(SCREEN_BRIGHTNESS, screenBrightness); in writeToProto()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java142 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java3239 int screenState, int screenBrightness) { in setDozeOverrideFromDreamManagerInternal() argument
3242 || mDozeScreenBrightnessOverrideFromDreamManager != screenBrightness) { in setDozeOverrideFromDreamManagerInternal()
3244 mDozeScreenBrightnessOverrideFromDreamManager = screenBrightness; in setDozeOverrideFromDreamManagerInternal()
4912 public void setScreenBrightnessOverrideFromWindowManager(int screenBrightness) { in setScreenBrightnessOverrideFromWindowManager() argument
4913 if (screenBrightness < PowerManager.BRIGHTNESS_DEFAULT in setScreenBrightnessOverrideFromWindowManager()
4914 || screenBrightness > PowerManager.BRIGHTNESS_ON) { in setScreenBrightnessOverrideFromWindowManager()
4915 screenBrightness = PowerManager.BRIGHTNESS_DEFAULT; in setScreenBrightnessOverrideFromWindowManager()
4917 setScreenBrightnessOverrideFromWindowManagerInternal(screenBrightness); in setScreenBrightnessOverrideFromWindowManager()
4921 public void setDozeOverrideFromDreamManager(int screenState, int screenBrightness) { in setDozeOverrideFromDreamManager() argument
4935 if (screenBrightness < PowerManager.BRIGHTNESS_DEFAULT in setDozeOverrideFromDreamManager()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowController.java414 mLpChanged.screenBrightness = mScreenBrightnessDoze; in applyBrightness()
416 mLpChanged.screenBrightness = LayoutParams.BRIGHTNESS_OVERRIDE_NONE; in applyBrightness()
/frameworks/base/services/core/java/com/android/server/wm/
DRootWindowContainer.java897 if (!syswin && w.mAttrs.screenBrightness >= 0 && mScreenBrightness < 0) { in handleNotObscuredLocked()
898 mScreenBrightness = w.mAttrs.screenBrightness; in handleNotObscuredLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt34792 field public float screenBrightness;
/frameworks/base/non-updatable-api/
Dcurrent.txt53295 field public float screenBrightness;
/frameworks/base/api/
Dcurrent.txt53439 field public float screenBrightness;