Lines Matching full:state
102 static int rgb_to_brightness(struct light_state_t const *state)
105 int color = state->color & 0x00ffffff;
121 struct light_state_t const *state)
124 int brightness = rgb_to_brightness(state);
134 set_notification_light(struct light_state_t const* state)
136 unsigned int brightness = rgb_to_brightness(state);
137 int blink = state->flashOnMS;
140 state->color, state->flashOnMS, state->flashOffMS);
160 /* go back to notify state */
169 /* attention takes priority over notify state */
187 struct light_state_t const* state)
191 g_notify->color = state->color;
192 if (state->flashMode != LIGHT_FLASH_NONE) {
194 g_notify->flashOnMS = state->flashOnMS;
195 g_notify->flashOffMS = state->flashOffMS;
208 struct light_state_t const* state)
212 g_attention->flashMode = state->flashMode;
213 g_attention->flashOnMS = state->flashOnMS;
214 g_attention->color = state->color;
243 struct light_state_t const *state);