summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyuho Jo <kyuho.jo@samsung.com>2017-01-24 20:28:30 +0900
committerKyuho Jo <kyuho.jo@samsung.com>2017-01-24 20:28:30 +0900
commit4b2b5fd178b550dc37300eaf9d3cbf9cd278f36b (patch)
treeef20e382b559abee774621eb46665cbe2028e5d1
parent24d553f6093a6eff8803403abf75a86c0e931b43 (diff)
downloadair_livetv-4b2b5fd178b550dc37300eaf9d3cbf9cd278f36b.tar.gz
air_livetv-4b2b5fd178b550dc37300eaf9d3cbf9cd278f36b.tar.bz2
air_livetv-4b2b5fd178b550dc37300eaf9d3cbf9cd278f36b.zip
Background image of TV profile
1. Background image supported for 'No signal case' 2. Launching on booting Change-Id: I69f83ebce76f0343f7e50438f8cd52f2428eef5b Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
-rw-r--r--data/view/error.edc26
-rw-r--r--packaging/org.tizen.live-tv.path5
-rw-r--r--packaging/org.tizen.live-tv.service7
-rw-r--r--packaging/org.tizen.live-tv.spec9
-rw-r--r--res/images/background.jpgbin0 -> 205181 bytes
-rw-r--r--src/tv.c2
6 files changed, 49 insertions, 0 deletions
diff --git a/data/view/error.edc b/data/view/error.edc
index 18d4bf6..044034f 100644
--- a/data/view/error.edc
+++ b/data/view/error.edc
@@ -18,6 +18,9 @@
group {
name, GRP_VIEW_ERROR;
+ images {
+ image, "background.jpg" COMP;
+ }
parts {
part {
name, "bg";
@@ -29,6 +32,27 @@ group {
}
}
part {
+ name, "part.bgimage";
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "background.jpg";
+ rel1 {
+ to, "bg";
+ relative, 0.0 0.0;
+ }
+ rel2 {
+ to, "bg";
+ relative, 1.0 1.0;
+ }
+ visible, 1;
+ min, 1920 1080;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
name, "part.error";
type, RECT;
scale, 1;
@@ -59,6 +83,7 @@ group {
min, 0 36;
align, 0.5 0.0;
fixed, 1 1;
+ visible, 0;
}
}
part {
@@ -79,6 +104,7 @@ group {
min, 0 48;
align, 0.5 1.0;
fixed, 1 1;
+ visible, 0;
}
}
}
diff --git a/packaging/org.tizen.live-tv.path b/packaging/org.tizen.live-tv.path
new file mode 100644
index 0000000..74d8137
--- /dev/null
+++ b/packaging/org.tizen.live-tv.path
@@ -0,0 +1,5 @@
+[Unit]
+Description=This path will tell you that live-tv is ready to launch
+
+[Path]
+PathExists=/run/.wm_ready
diff --git a/packaging/org.tizen.live-tv.service b/packaging/org.tizen.live-tv.service
new file mode 100644
index 0000000..db4a1fd
--- /dev/null
+++ b/packaging/org.tizen.live-tv.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=live-tv
+Requires=launchpad-process-pool.service
+After=launchpad-process-pool.service
+
+[Service]
+ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.live-tv'
diff --git a/packaging/org.tizen.live-tv.spec b/packaging/org.tizen.live-tv.spec
index 8f86378..4ef6481 100644
--- a/packaging/org.tizen.live-tv.spec
+++ b/packaging/org.tizen.live-tv.spec
@@ -5,6 +5,8 @@ Release: 1
Group: Applications
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.service
+Source2: %{name}.path
Source3: %{name}.manifest
BuildRequires: cmake
@@ -51,6 +53,10 @@ make %{?jobs:-j%jobs}
%install
%make_install
+install --directory %{buildroot}%{_prefix}/lib/%{_servicedir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
+install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/%{_sysuserdir}
+ln -sf ../%{name}.path %{buildroot}%{_prefix}/lib/%{_servicedir}
%clean
rm -rf %{buildroot}
@@ -61,4 +67,7 @@ rm -rf %{buildroot}
%{_bindir}/*
%{_resdir}/*
%{_manifestdir}/%{name}.xml
+%{_prefix}/lib/%{_sysuserdir}/%{name}.service
+%{_prefix}/lib/%{_sysuserdir}/%{name}.path
+%{_prefix}/lib/%{_servicedir}/%{name}.path
%{_datarootdir}/license/*
diff --git a/res/images/background.jpg b/res/images/background.jpg
new file mode 100644
index 0000000..b69f52d
--- /dev/null
+++ b/res/images/background.jpg
Binary files differ
diff --git a/src/tv.c b/src/tv.c
index 054892a..cfd92dc 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -1081,11 +1081,13 @@ int tv_create(void)
goto err;
}
+ /*
r = tv_service_epg_create(&g_tv_info.epg_svc);
if (r != TVS_ERROR_OK) {
_ERR("failed to create epg service");
goto err;
}
+ */
memset(&g_tv_info.history, 0, sizeof(g_tv_info.history));