__block_display();
} else {
__D("EXIT on BOOTING");
- if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0) {
+ if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0)
__E("Failed to set finished set");
- }
+
boot_exit();
}
return ECORE_CALLBACK_CANCEL;
{
if (s_animation.animation_type == TYPE_OFF) {
__D("TYPE OFF");
- if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0) {
+ if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 1) != 0)
__E("Failed to set finished set");
- }
+
ecore_timer_add(1, __end_cb, (void *)TYPE_OFF);
} else {
__D("TYPE_ON");
char file_name[1024];
int ret = 0;
- if (animation_type == TYPE_OFF) {
+ if (animation_type == TYPE_OFF)
snprintf(file_name, sizeof(file_name), FILE_PATH"%dx%d_PowerOff.edj", w, h);
- } else {
+ else
snprintf(file_name, sizeof(file_name), FILE_PATH"%dx%d_PowerOn.edj", w, h);
- }
+
__D("File name for Animation is: %s", file_name);
ret = access(file_name, 0);
- if (ret == 0) {
- } else {
+ if (ret != 0) {
__E("There's no Image same with [%s], So set Default[720x1280] image", file_name);
- if (animation_type == TYPE_OFF) {
+ if (animation_type == TYPE_OFF)
snprintf(file_name, sizeof(file_name), "%s", DEFAULT_OFF);
- } else {
+ else
snprintf(file_name, sizeof(file_name), "%s", DEFAULT_ON);
- }
ret = access(file_name, 0);
if (ret) {
int ret = 0;
ret = access(file_name, 0);
- if (ret == 0) {
+ if (ret == 0)
return EINA_TRUE;
- } else {
+ else
return EINA_FALSE;
- }
}
int animation_init(int animation_type)
argc = args->argc;
argv = args->argv;
- for (i = 0; i < argc; i++) {
+ for (i = 0; i < argc; i++)
__D("argc %d [%s]", i, argv[i]);
- }
while ((c = getopt_long(argc, argv, "sopc", long_options, NULL)) >= 0) {
args.argv = argv;
static int invoked_flag = 0;
- if (invoked_flag == 1) {
+ if (invoked_flag == 1)
return -1;
- }
+
invoked_flag = 1;
close(1);
return 1;
}
- if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 0) != 0) {
+ if (vconf_set_int(VCONFKEY_BOOT_ANIMATION_FINISHED, 0) != 0)
__D("Failed to set finished value to 0\n");
- }
play_boot_sound(boot_type);
{
int soundon = 1;
- if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &soundon) < 0) {
+ if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &soundon) < 0)
__D("VCONFKEY_SETAPPL_SOUND_STATUS_BOOL ==> FAIL!!");
- }
__D("Sound status: %d", soundon);
void play_boot_sound(int boot_type)
{
- if(!is_supported) return ;
+ if (!is_supported)
+ return;
int soundon = __get_sound_status();
if (soundon) {
static int __get_step_max(int w, int h)
{
- if (w == 360 && h == 360) {
+ if (w == 360 && h == 360)
return 3;
- } else if (w == 360 && h == 480) {
+ else if (w == 360 && h == 480)
return 3;
- } else if (w == 480 && h == 800) {
- if (s_info.animation_type == TYPE_ON) {
+ else if (w == 480 && h == 800) {
+ if (s_info.animation_type == TYPE_ON)
return 4;
- } else {
+ else
return 3;
- }
} else if (w == 720 && h == 1280) {
- if (s_info.animation_type == TYPE_ON) {
+ if (s_info.animation_type == TYPE_ON)
return 7;
- } else {
+ else
return 3;
- }
} else {
- if (s_info.animation_type == TYPE_ON) {
+ if (s_info.animation_type == TYPE_ON)
return 7;
- } else {
+ else
return 3;
- }
}
}
free(expected_file_name);
int current_step = (int)data;
- if (current_step < __get_step_max(screen_w, screen_h)) {
+ if (current_step < __get_step_max(screen_w, screen_h))
TEST_CASE_CONTINUE(0.8, __continue_check_animation_layout, (void*)(current_step + 1));
- }
if (s_info.animation_type == TYPE_ON)
TEST_CASE_CONTINUE(0.8, __continue_check_finish_on_animation, NULL);
void unit_test_log_buf_function(void)
{
- __unit_test_run_function( __unit_test_write_log() == EINA_TRUE);
+ __unit_test_run_function(__unit_test_write_log() == EINA_TRUE);
__unit_test_run_function(__unit_test_clear_log() == EINA_TRUE);
}
lifecycle_callback.terminate = __terminate;
int ret = ui_app_main(argc, argv, &lifecycle_callback, NULL);
- if (ret != APP_ERROR_NONE) {
+ if (ret != APP_ERROR_NONE)
__T("app_main() is failed. err = %d", ret);
- }
return 0;
}