Lines Matching refs:state

163 is_lit(struct light_state_t const* state)  in is_lit()  argument
165 return state->color & 0x00ffffff; in is_lit()
169 rgb_to_brightness(struct light_state_t const* state) in rgb_to_brightness() argument
171 int color = state->color & 0x00ffffff; in rgb_to_brightness()
178 struct light_state_t const* state) in set_light_backlight() argument
181 int brightness = rgb_to_brightness(state); in set_light_backlight()
182 unsigned int lpEnabled = state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; in set_light_backlight()
191 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || in set_light_backlight()
199 g_last_backlight_mode = state->brightnessMode; in set_light_backlight()
211 struct light_state_t const* state) in set_speaker_light_locked() argument
221 switch (state->flashMode) { in set_speaker_light_locked()
223 onMS = state->flashOnMS; in set_speaker_light_locked()
224 offMS = state->flashOffMS; in set_speaker_light_locked()
233 colorRGB = state->color; in set_speaker_light_locked()
237 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked()
272 struct light_state_t const* state) in set_light_battery() argument
275 g_battery = *state; in set_light_battery()
284 struct light_state_t const* state) in set_light_notifications() argument
287 g_notification = *state; in set_light_notifications()
295 struct light_state_t const* state) in set_light_attention() argument
298 if (state->flashMode == LIGHT_FLASH_HARDWARE) { in set_light_attention()
299 g_attention = state->flashOnMS; in set_light_attention()
300 } else if (state->flashMode == LIGHT_FLASH_NONE) { in set_light_attention()
330 struct light_state_t const* state); in open_lights()