[TBT][widget,voluem][NonACR][Fixed widget instruction guide and volume testcase funct... 19/200519/2 tizen_5.0_wearable
authorNibha Sharma <nibha.sharma@samsung.com>
Tue, 26 Feb 2019 06:27:10 +0000 (11:57 +0530)
committerPriya Kohli <priya.kohli@samsung.com>
Tue, 26 Feb 2019 06:34:22 +0000 (06:34 +0000)
Change-Id: I8f5fb8aea8e9d8b100628b5f9679b13ed9a265f4
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk
tbtcoreapp/src/model/tbt-list.c
tbtcoreapp/src/view/tbt-sound-view.c

index b3400bc4a37f534d4738e013ad588bd381ceda10..9d2bf98efa4907dfbb93725691ace53988dd21c9 100755 (executable)
Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ
index 34a4a55f555a9fffd0f7b78124f737b5e987d9ad..36bea6366649fa1a4c9227ec69d59b923fce125b 100755 (executable)
Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ
index d92f2cb2e092f15664b9446e20ebd5c082709951..44a36b4638092d3679856dfd1c3c6ffe8a92fd7e 100644 (file)
@@ -1731,7 +1731,7 @@ static tbt_info tbtapps[] =
                        .parent = "WIDGET",
                        .apptype = TBT_APP_WIDGET,
                        .icon_name = "dummy",
-                       .info = "1.     Press button View Widget UI.<br/>"
+                       .info = "1.     Press button Launch Widget.<br/>"
                                        "2. A Widget UI written <b>Hello widget</b> will be shown",
                        .result = 0,
                        .required_features_count = 0
index 3b1f243d40329f401f9b6cc5727b4d7dd000b71e..91133755e2cb840c6f4f042a9ec9571dbf4fd99c 100644 (file)
@@ -83,7 +83,7 @@ static Eina_Bool __progressbar_timer_cb(void *data);
 
 static bool was_playing;
 static sound_view *view;
-
+double pauseVolumeLevel;
 
 static Eina_Bool __progressbar_timer_cb(void *data)
 {
@@ -298,6 +298,7 @@ sound_view *sound_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Ite
        RETVM_IF(NULL == navi, NULL, "navi is null");
 
     sound_view *this = NULL;
+    pauseVolumeLevel = 0.0;
     int ret;
     this = calloc(1, sizeof(sound_view));
     RETVM_IF(!this, NULL, "calloc failed");
@@ -393,9 +394,26 @@ static void start_player(sound_view *this)
 
                if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME){
                        if (this->progressbar_timer)
-                           ecore_timer_del(this->progressbar_timer);
+                       {
+                               if(pauseVolumeLevel == 0.0)
+                               {
+                                       ecore_timer_del(this->progressbar_timer);
+                                       double value = 0.0;
+                                       if(value == 1.0) value = 0.0;
+                                       value = value + 0.01;
+                                       elm_progressbar_value_set(this->volume_bar, value);
+                                       this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+                               }
+                               else
+                               {
+                                       elm_progressbar_value_set(this->volume_bar, pauseVolumeLevel);
+                                       this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+                               }
+                       }
                        else
+                       {
                                this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+                       }
                }
        }
 }
@@ -425,6 +443,14 @@ static void stop_player(sound_view *this)
             ret = player_set_display_visible(this->player, false);
             RETM_IF(PLAYER_ERROR_NONE!=ret, "player_set_display_visible failed:%s", get_player_error(ret));
         }
+        if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME)
+        {
+            if (this->progressbar_timer)
+            {
+                 pauseVolumeLevel = 0.0;
+                 ecore_timer_del(this->progressbar_timer);
+            }
+        }
     }
 }
 
@@ -451,6 +477,14 @@ static void pause_player(sound_view *this)
             ret = player_pause(this->player);
             RETM_IF(PLAYER_ERROR_NONE!=ret, "player_pause failed:%s", get_player_error(ret));
         }
+        if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME)
+        {
+            if (this->progressbar_timer)
+            {
+                 pauseVolumeLevel = elm_progressbar_value_get(view->volume_bar);
+                 ecore_timer_del(this->progressbar_timer);
+            }
+        }
     }
 }