static bool g_display_hal_backend_available = false;
static GList *display_dependent_device_ops;
static enum device_ops_status display_ops_status = DEVICE_OPS_STATUS_UNINIT;
+static bool is_on_silent_booting(void);
extern void init_save_userlock(void);
inline unsigned int get_pm_status_flag(void)
}
_I("Set brightness(%d) from setting app.", brightness);
display_backlight_set_default_brightness(brightness);
- display_backlight_set_brightness(brightness);
+ if (!is_on_silent_booting())
+ display_backlight_set_brightness(brightness);
}
/* FIXME: This function should be moved to battery module after battery plguin/module refactoring */
return done;
}
-int display_is_lcdon_blocked(void)
+static bool is_on_silent_booting(void)
{
bool silent_boot = false;
int ret = 0;
+ if (delayed_init_done(NULL))
+ return false;
+
ret = power_boot_get_silent_boot(&silent_boot);
if (ret < 0)
_W("Cannot get silent_boot please check function parameter, ret(%d)", ret);
- if (silent_boot && !delayed_init_done(NULL))
+ return silent_boot;
+}
+
+int display_is_lcdon_blocked(void)
+{
+ if (is_on_silent_booting())
return LCDON_BLOCK_DURING_SILENT_BOOT;
return LCDON_BLOCK_NONE;