TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
#IF("${TIZEN_PROFILE_NAME}" STREQUAL "mobile")
+ADD_CUSTOM_COMMAND(OUTPUT 360x360_PowerOn.edj
+ COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/image/
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOn.edc ${CMAKE_BINARY_DIR}/360x360_PowerOn.edj
+ DEPENDS ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOn.edc
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOn_image.h
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOn_part.h
+)
+ADD_CUSTOM_COMMAND(OUTPUT 360x360_PowerOff.edj
+ COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/image/
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOff.edc ${CMAKE_BINARY_DIR}/360x360_PowerOff.edj
+ DEPENDS ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOff.edc
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOff_image.h
+ ${CMAKE_SOURCE_DIR}/data/edje/360x360/360x360_PowerOff_part.h
+)
ADD_CUSTOM_COMMAND(OUTPUT 360x480_PowerOn.edj
COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/data/image/
${CMAKE_SOURCE_DIR}/data/edje/360x480/360x480_PowerOn.edc ${CMAKE_BINARY_DIR}/360x480_PowerOn.edj
${CMAKE_SOURCE_DIR}/data/edje/720x1280/720x1280_PowerOff_image.h
${CMAKE_SOURCE_DIR}/data/edje/720x1280/720x1280_PowerOff_part.h
)
-ADD_CUSTOM_TARGET(edj_build DEPENDS 360x480_PowerOn.edj 360x480_PowerOff.edj 480x800_PowerOn.edj 480x800_PowerOff.edj 720x1280_PowerOn.edj 720x1280_PowerOff.edj)
+ADD_CUSTOM_TARGET(edj_build DEPENDS 360x360_PowerOn.edj 360x360_PowerOff.edj 360x480_PowerOn.edj 360x480_PowerOff.edj 480x800_PowerOn.edj 480x800_PowerOff.edj 720x1280_PowerOn.edj 720x1280_PowerOff.edj)
ADD_DEPENDENCIES(${PROJECT_NAME} edj_build)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/360x360_PowerOn.edj DESTINATION share/edje)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/360x360_PowerOff.edj DESTINATION share/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/360x480_PowerOn.edj DESTINATION share/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/360x480_PowerOff.edj DESTINATION share/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/480x800_PowerOn.edj DESTINATION share/edje)
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+images {
+#include "360x360_PowerOff_image.h"
+}
+
+collections {
+ group { name: "poweroff";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default";
+ color: 0 0 0 255;
+ }
+ }
+
+ part {
+ name: "poweroff";
+ type: IMAGE;
+ mouse_events: 0;
+ description {
+ rel1 { relative: 0.0 (800-640)/2/800; }
+ rel2 { relative: 1.0 (((800-640)/2)+640)/800; }
+ state: "default" 0.0;
+ image {
+#include "360x360_PowerOff_part.h"
+ }
+ visible: 1;
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "poweroff";
+ signal: "show";
+ action: STATE_SET "default" 0.0;
+ target: "poweroff";
+ transition: LINEAR 2;
+ after: "poweroff_end";
+ }
+
+ program {
+ name: "poweroff_end";
+ action: SIGNAL_EMIT "end" "animation";
+ }
+ }
+ }
+}
+
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+ image:"360x360_PowerOff/Tizen_power_off_01.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_02.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_03.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_04.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_05.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_06.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_07.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_08.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_09.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_10.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_11.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_12.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_13.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_14.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_15.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_16.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_17.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_18.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_19.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_20.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_21.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_22.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_23.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_24.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_25.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_26.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_27.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_28.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_29.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_30.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_31.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_32.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_33.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_34.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_35.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_36.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_37.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_38.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_39.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_40.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_41.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_42.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_43.png" LOSSY 85;
+ image:"360x360_PowerOff/Tizen_power_off_44.png" LOSSY 85;
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+ normal:"360x360_PowerOff/Tizen_power_off_44.png";
+ tween:"360x360_PowerOff/Tizen_power_off_01.png";
+ tween:"360x360_PowerOff/Tizen_power_off_02.png";
+ tween:"360x360_PowerOff/Tizen_power_off_03.png";
+ tween:"360x360_PowerOff/Tizen_power_off_04.png";
+ tween:"360x360_PowerOff/Tizen_power_off_05.png";
+ tween:"360x360_PowerOff/Tizen_power_off_06.png";
+ tween:"360x360_PowerOff/Tizen_power_off_07.png";
+ tween:"360x360_PowerOff/Tizen_power_off_08.png";
+ tween:"360x360_PowerOff/Tizen_power_off_09.png";
+ tween:"360x360_PowerOff/Tizen_power_off_10.png";
+ tween:"360x360_PowerOff/Tizen_power_off_11.png";
+ tween:"360x360_PowerOff/Tizen_power_off_12.png";
+ tween:"360x360_PowerOff/Tizen_power_off_13.png";
+ tween:"360x360_PowerOff/Tizen_power_off_14.png";
+ tween:"360x360_PowerOff/Tizen_power_off_15.png";
+ tween:"360x360_PowerOff/Tizen_power_off_16.png";
+ tween:"360x360_PowerOff/Tizen_power_off_17.png";
+ tween:"360x360_PowerOff/Tizen_power_off_18.png";
+ tween:"360x360_PowerOff/Tizen_power_off_19.png";
+ tween:"360x360_PowerOff/Tizen_power_off_20.png";
+ tween:"360x360_PowerOff/Tizen_power_off_21.png";
+ tween:"360x360_PowerOff/Tizen_power_off_22.png";
+ tween:"360x360_PowerOff/Tizen_power_off_23.png";
+ tween:"360x360_PowerOff/Tizen_power_off_24.png";
+ tween:"360x360_PowerOff/Tizen_power_off_25.png";
+ tween:"360x360_PowerOff/Tizen_power_off_26.png";
+ tween:"360x360_PowerOff/Tizen_power_off_27.png";
+ tween:"360x360_PowerOff/Tizen_power_off_28.png";
+ tween:"360x360_PowerOff/Tizen_power_off_29.png";
+ tween:"360x360_PowerOff/Tizen_power_off_30.png";
+ tween:"360x360_PowerOff/Tizen_power_off_31.png";
+ tween:"360x360_PowerOff/Tizen_power_off_32.png";
+ tween:"360x360_PowerOff/Tizen_power_off_33.png";
+ tween:"360x360_PowerOff/Tizen_power_off_34.png";
+ tween:"360x360_PowerOff/Tizen_power_off_35.png";
+ tween:"360x360_PowerOff/Tizen_power_off_36.png";
+ tween:"360x360_PowerOff/Tizen_power_off_37.png";
+ tween:"360x360_PowerOff/Tizen_power_off_38.png";
+ tween:"360x360_PowerOff/Tizen_power_off_39.png";
+ tween:"360x360_PowerOff/Tizen_power_off_40.png";
+ tween:"360x360_PowerOff/Tizen_power_off_41.png";
+ tween:"360x360_PowerOff/Tizen_power_off_42.png";
+ tween:"360x360_PowerOff/Tizen_power_off_43.png";
+ tween:"360x360_PowerOff/Tizen_power_off_44.png";
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+images {
+#include "360x360_PowerOn_image.h"
+}
+
+collections {
+ group {
+ name: "poweron";
+
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default";
+ color: 0 0 0 255;
+ }
+ }
+ part {
+ name: "poweron";
+ type: IMAGE;
+ mouse_events: 0;
+ description {
+ rel1 { relative: 0.0 (800-640)/2/800; }
+ rel2 { relative: 1.0 (((800-640)/2)+640)/800; }
+ state: "default" 0.0;
+ image {
+#include "360x360_PowerOn_part.h"
+ }
+ visible: 1;
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "poweron";
+ signal: "show";
+ action: STATE_SET "default" 0.0;
+ target: "poweron";
+ transition: LINEAR 3;
+ after: "poweron_end";
+ }
+ program {
+ name: "poweron_end";
+ action: SIGNAL_EMIT "end" "animation";
+ }
+ }
+ }
+}
+
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+ image:"360x360_PowerOn/Tizen_power_on_01.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_02.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_03.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_04.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_05.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_06.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_07.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_08.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_09.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_10.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_11.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_12.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_13.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_14.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_15.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_16.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_17.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_18.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_19.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_20.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_21.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_22.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_23.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_24.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_25.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_26.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_27.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_28.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_29.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_30.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_31.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_32.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_33.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_34.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_35.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_36.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_37.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_38.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_39.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_40.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_41.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_42.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_43.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_44.png" LOSSY 85;
+ image:"360x360_PowerOn/Tizen_power_on_45.png" LOSSY 85;
--- /dev/null
+/*
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+ normal:"360x360_PowerOn/Tizen_power_on_01.png";
+ tween:"360x360_PowerOn/Tizen_power_on_01.png";
+ tween:"360x360_PowerOn/Tizen_power_on_02.png";
+ tween:"360x360_PowerOn/Tizen_power_on_04.png";
+ tween:"360x360_PowerOn/Tizen_power_on_05.png";
+ tween:"360x360_PowerOn/Tizen_power_on_07.png";
+ tween:"360x360_PowerOn/Tizen_power_on_08.png";
+ tween:"360x360_PowerOn/Tizen_power_on_10.png";
+ tween:"360x360_PowerOn/Tizen_power_on_11.png";
+ tween:"360x360_PowerOn/Tizen_power_on_13.png";
+ tween:"360x360_PowerOn/Tizen_power_on_14.png";
+ tween:"360x360_PowerOn/Tizen_power_on_16.png";
+ tween:"360x360_PowerOn/Tizen_power_on_17.png";
+ tween:"360x360_PowerOn/Tizen_power_on_19.png";
+ tween:"360x360_PowerOn/Tizen_power_on_20.png";
+ tween:"360x360_PowerOn/Tizen_power_on_22.png";
+ tween:"360x360_PowerOn/Tizen_power_on_23.png";
+ tween:"360x360_PowerOn/Tizen_power_on_25.png";
+ tween:"360x360_PowerOn/Tizen_power_on_26.png";
+ tween:"360x360_PowerOn/Tizen_power_on_28.png";
+ tween:"360x360_PowerOn/Tizen_power_on_29.png";
+ tween:"360x360_PowerOn/Tizen_power_on_31.png";
+ tween:"360x360_PowerOn/Tizen_power_on_32.png";
+ tween:"360x360_PowerOn/Tizen_power_on_34.png";
+ tween:"360x360_PowerOn/Tizen_power_on_35.png";
+ tween:"360x360_PowerOn/Tizen_power_on_37.png";
+ tween:"360x360_PowerOn/Tizen_power_on_38.png";
+ tween:"360x360_PowerOn/Tizen_power_on_40.png";
+ tween:"360x360_PowerOn/Tizen_power_on_41.png";
+ tween:"360x360_PowerOn/Tizen_power_on_43.png";
+ tween:"360x360_PowerOn/Tizen_power_on_44.png";
+ tween:"360x360_PowerOn/Tizen_power_on_45.png";
#define PREFIX "/usr"
#endif
-#define WEARABLE_POWER_ON PREFIX"/share/edje/360x480_PowerOn.edj"
-#define WEARABLE_POWER_OFF PREFIX"/share/edje/360x480_PowerOff.edj"
-#define WVGA_POWER_ON PREFIX"/share/edje/480x800_PowerOn.edj"
-#define WVGA_POWER_OFF PREFIX"/share/edje/480x800_PowerOff.edj"
-#define HD_POWER_ON PREFIX"/share/edje/720x1280_PowerOn.edj"
-#define HD_POWER_OFF PREFIX"/share/edje/720x1280_PowerOff.edj"
-#define EDJ_OFF "poweroff.edj"
-#define EDJ_ON "poweron.edj"
+#define FILE_PATH PREFIX"/share/edje/"
+#define DEFAULT_ON PREFIX"/share/edje/720x1280_PowerOn.edj"
+#define DEFAULT_OFF PREFIX"/share/edje/720x1280_PowerOff.edj"
#define GRP_OFF "poweroff"
#define GRP_ON "poweron"
#define NICE_VALUE -20
-
-#define TITLE "Password Application"
-
-#define BA_DEFAULT_WINDOW_H 800 /* Default is HD(720 X 1280) */
-#define BA_DEFAULT_WINDOW_W 1280 /* Default is WXGA(1280 X 800) */
-
#define FILE_PATH_MAX 128
enum {
%files
%manifest boot-animation.manifest
+/usr/share/edje/360x360_PowerOn.edj
+/usr/share/edje/360x360_PowerOff.edj
/usr/share/edje/360x480_PowerOn.edj
/usr/share/edje/360x480_PowerOff.edj
/usr/share/edje/480x800_PowerOn.edj
}
}
-#define DEFAULT_W 480
static void layout_file_set(int state)
{
- _D("Layout file set according to resolution");
- _D("Screen Width: %d, DEFAULT_WIDTH: %d", s_animation.w, DEFAULT_W);
-
- switch(s_animation.w)
- {
- case 360:
- _D("Resolution is %dx%d", s_animation.w, s_animation.h);
- if (state == TYPE_ON) {
- elm_layout_file_set(s_animation.layout, WEARABLE_POWER_ON, GRP_ON);
- } else {
- elm_layout_file_set(s_animation.layout, WEARABLE_POWER_OFF, GRP_OFF);
- }
- break;
- case 480:
- _D("Resolution is %dx%d", s_animation.w, s_animation.h);
- if (state == TYPE_ON) {
- elm_layout_file_set(s_animation.layout, WVGA_POWER_ON, GRP_ON);
- } else {
- elm_layout_file_set(s_animation.layout, WVGA_POWER_OFF, GRP_OFF);
- }
- break;
- case 720:
- _D("Resolution is %dx%d", s_animation.w, s_animation.h);
- if (state == TYPE_ON) {
- elm_layout_file_set(s_animation.layout, HD_POWER_ON, GRP_ON);
- } else {
- elm_layout_file_set(s_animation.layout, HD_POWER_OFF, GRP_OFF);
- }
- break;
- default:
- _D("This is Strange resolution, Plz check, %dx%d", s_animation.w, s_animation.h);
- if (state == TYPE_ON) {
- elm_layout_file_set(s_animation.layout, HD_POWER_ON, GRP_ON);
- } else {
- elm_layout_file_set(s_animation.layout, HD_POWER_ON, GRP_OFF);
- }
- break;
+ char file_name[1024];
+ char *on_off;
+ int ret;
+
+ if (state == TYPE_ON) {
+ snprintf(file_name, sizeof(file_name), FILE_PATH"%dx%d_PowerOn.edj", s_animation.w, s_animation.h);
+ on_off = GRP_ON;
+ } else {
+ snprintf(file_name, sizeof(file_name), FILE_PATH"%dx%d_PowerOff.edj", s_animation.w, s_animation.h);
+ on_off = GRP_OFF;
+ }
+ _D("File name for Animation is: %s", file_name);
+
+ ret = access(file_name, 0);
+ if (ret == 0) {
+ _D("This Resolution[%d]x[%d] is supported !!", s_animation.w, s_animation.h);
+ elm_layout_file_set(s_animation.layout, file_name, on_off);
+ } else {
+ _E("This Resolution[%d]x[%d] is STRANGE !!, Set default image '720x1280'", s_animation.w, s_animation.h);
+ if (state == TYPE_ON) {
+ elm_layout_file_set(s_animation.layout, DEFAULT_ON, on_off);
+ } else {
+ elm_layout_file_set(s_animation.layout, DEFAULT_OFF, on_off);
+ }
}
}