/hardware/qcom/display/msm8960/liblight/ |
D | lights.c | 148 int onMS, offMS; in set_speaker_light_locked() local 153 onMS = state->flashOnMS; in set_speaker_light_locked() 158 onMS = 0; in set_speaker_light_locked() 167 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 170 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked() 171 int totalMS = onMS + offMS; in set_speaker_light_locked() 179 pwm = (onMS * 255) / totalMS; in set_speaker_light_locked()
|
/hardware/qcom/sm8150/display/liblight/ |
D | lights.c | 177 static int set_rgb_led_timer_trigger(enum rgb_led led, int onMS, int offMS) in set_rgb_led_timer_trigger() argument 188 rc = write_int(file, onMS); in set_rgb_led_timer_trigger() 214 int onMS, offMS; in set_speaker_light_locked() local 228 onMS = state->flashOnMS; in set_speaker_light_locked() 231 if (onMS != 0 && offMS != 0) in set_speaker_light_locked() 247 rc = set_rgb_led_timer_trigger(LED_RED, onMS, offMS); in set_speaker_light_locked() 249 rc |= set_rgb_led_timer_trigger(LED_GREEN, onMS, offMS); in set_speaker_light_locked() 251 rc |= set_rgb_led_timer_trigger(LED_BLUE, onMS, offMS); in set_speaker_light_locked() 264 state->flashMode, colorRGB, onMS, offMS, rc); in set_speaker_light_locked()
|
/hardware/qcom/display/msm8996/liblight/ |
D | lights.c | 135 int onMS, offMS; in set_speaker_light_locked() local 144 onMS = state->flashOnMS; in set_speaker_light_locked() 149 onMS = 0; in set_speaker_light_locked() 158 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 165 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked() 172 if (onMS == offMS) in set_speaker_light_locked()
|
/hardware/qcom/sm7250/display/liblight/ |
D | lights.c | 212 static int set_rgb_led_timer_trigger(enum rgb_led led, int onMS, int offMS) in set_rgb_led_timer_trigger() argument 237 rc = write_int(file_on, onMS); in set_rgb_led_timer_trigger() 266 int onMS, offMS; in set_speaker_light_locked() local 280 onMS = state->flashOnMS; in set_speaker_light_locked() 283 if (onMS != 0 && offMS != 0) in set_speaker_light_locked() 299 rc = set_rgb_led_timer_trigger(LED_RED, onMS, offMS); in set_speaker_light_locked() 301 rc |= set_rgb_led_timer_trigger(LED_GREEN, onMS, offMS); in set_speaker_light_locked() 303 rc |= set_rgb_led_timer_trigger(LED_BLUE, onMS, offMS); in set_speaker_light_locked() 316 state->flashMode, colorRGB, onMS, offMS, rc); in set_speaker_light_locked()
|
/hardware/qcom/display/msm8998/liblight/ |
D | lights.c | 172 int onMS, offMS; in set_speaker_light_locked() local 181 onMS = state->flashOnMS; in set_speaker_light_locked() 186 onMS = 0; in set_speaker_light_locked() 195 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 202 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked() 209 if (onMS == offMS) in set_speaker_light_locked()
|
/hardware/qcom/display/msm8084/liblight/ |
D | lights.c | 134 int onMS, offMS; in set_speaker_light_locked() local 143 onMS = state->flashOnMS; in set_speaker_light_locked() 148 onMS = 0; in set_speaker_light_locked() 157 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 164 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked()
|
/hardware/qcom/display/msm8909/liblight/ |
D | lights.c | 172 int onMS, offMS; in set_speaker_light_locked() local 181 onMS = state->flashOnMS; in set_speaker_light_locked() 186 onMS = 0; in set_speaker_light_locked() 195 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 202 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked() 209 if (onMS == offMS) in set_speaker_light_locked()
|
/hardware/qcom/display/msm8226/liblight/ |
D | lights.c | 134 int onMS, offMS; in set_speaker_light_locked() local 143 onMS = state->flashOnMS; in set_speaker_light_locked() 148 onMS = 0; in set_speaker_light_locked() 157 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 164 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked()
|
/hardware/qcom/display/msm8994/liblight/ |
D | lights.c | 135 int onMS, offMS; in set_speaker_light_locked() local 144 onMS = state->flashOnMS; in set_speaker_light_locked() 149 onMS = 0; in set_speaker_light_locked() 158 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 165 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked()
|
/hardware/qcom/display/msm8909w_3100/liblight/ |
D | lights.c | 196 int onMS, offMS; in set_speaker_light_locked() local 205 onMS = state->flashOnMS; in set_speaker_light_locked() 210 onMS = 0; in set_speaker_light_locked() 219 state->flashMode, colorRGB, onMS, offMS); in set_speaker_light_locked() 226 if (onMS > 0 && offMS > 0) { in set_speaker_light_locked() 233 if (onMS == offMS) in set_speaker_light_locked()
|