Lines Matching refs:state
124 is_lit(struct light_state_t const* state)
126 return state->color & 0x00ffffff;
150 rgb_to_brightness(struct light_state_t const* state)
152 int color = state->color & 0x00ffffff;
159 struct light_state_t const* state)
162 int brightness = rgb_to_brightness(state);
175 struct light_state_t const* state)
178 int on = is_lit(state);
187 struct light_state_t const* state)
190 int on = is_lit(state);
200 struct light_state_t const* state)
208 switch (state->flashMode) {
210 onMS = state->flashOnMS;
211 offMS = state->flashOffMS;
220 colorRGB = state->color;
296 struct light_state_t const* state)
299 g_battery = *state;
301 set_speaker_light_locked(dev, state);
310 struct light_state_t const* state)
313 g_notification = *state;
315 g_trackball, state->color);
326 struct light_state_t const* state)
330 g_trackball, state->color);
331 if (state->flashMode == LIGHT_FLASH_HARDWARE) {
332 g_attention = state->flashOnMS;
333 } else if (state->flashMode == LIGHT_FLASH_NONE) {
366 struct light_state_t const* state);