Home
last modified time | relevance | path

Searched refs:brightnessMode (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java46 public void setBrightness(int brightness, int brightnessMode) { in setBrightness() argument
49 if (brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE) { in setBrightness()
57 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); in setBrightness()
125 private void setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) { in setLightLocked() argument
127 brightnessMode = BRIGHTNESS_MODE_LOW_PERSISTENCE; in setLightLocked()
128 } else if (brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE) { in setLightLocked()
129 brightnessMode = mLastBrightnessMode; in setLightLocked()
133 offMS != mOffMS || mBrightnessMode != brightnessMode) { in setLightLocked()
135 + Integer.toHexString(color) + ": brightnessMode=" + brightnessMode); in setLightLocked()
142 mBrightnessMode = brightnessMode; in setLightLocked()
[all …]
DLight.java43 public abstract void setBrightness(int brightness, int brightnessMode); in setBrightness() argument
/frameworks/base/services/core/jni/
Dcom_android_server_lights_LightsService.cpp110 jint brightnessMode){ in constructState() argument
112 Brightness brightness = static_cast<Brightness>(brightnessMode); in constructState()
126 state.brightnessMode = brightness; in constructState()
149 state.brightnessMode); in processReturn()
165 jint brightnessMode) { in setLight_native() argument
167 if (!validate(light, flashMode, brightnessMode)) { in setLight_native()
179 colorARGB, flashMode, onMS, offMS, brightnessMode); in setLight_native()