D | LightsService.java | 72 int color = brightness & 0x000000ff; in setBrightness() local 73 color = 0xff000000 | (color << 16) | (color << 8) | color; in setBrightness() 74 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); in setBrightness() 78 public void setColor(int color) { in setColor() argument 80 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); in setColor() 84 public void setFlashing(int color, int mode, int onMS, int offMS) { in setFlashing() argument 86 setLightLocked(color, mode, onMS, offMS, BRIGHTNESS_MODE_USER); in setFlashing() 95 public void pulse(int color, int onMS) { in pulse() argument 98 setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER); in pulse() 116 private void setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) { in setLightLocked() argument [all …]
|