From: jihun park Date: Thu, 9 Mar 2017 08:48:19 +0000 (+0900) Subject: [TBT][Fix tts feature checking] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d8e11f3c1230b2d7a853eaa3f5c27f7fefe43d0;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Fix tts feature checking] Change-Id: I6cdad9daf75905dfa3192832b91d9abe2c119aa8 Signed-off-by: jihun park --- diff --git a/release/binary-aarch64/SampleMP3.mp3 b/release/binary-aarch64/SampleMP3.mp3 deleted file mode 100644 index c608a70..0000000 Binary files a/release/binary-aarch64/SampleMP3.mp3 and /dev/null differ diff --git a/release/binary-aarch64/dog_1024_960.gif b/release/binary-aarch64/dog_1024_960.gif deleted file mode 100644 index 1a2e0ba..0000000 Binary files a/release/binary-aarch64/dog_1024_960.gif and /dev/null differ diff --git a/release/binary-aarch64/install.sh b/release/binary-aarch64/install.sh deleted file mode 100644 index c709f5c..0000000 --- a/release/binary-aarch64/install.sh +++ /dev/null @@ -1,66 +0,0 @@ -############################################################################### - # Copyright (c) 2014 Samsung Electronics Co., Ltd. - # - # 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. - # - ###############################################################################/ - ## - # @file install.sh - # @brief install script for TBT - # - # - # @author A. B. M. Nazibullah(nazib.ullah@samsung.com) - # @date November, 2016 - - # -EXECUTION_USER=owner - -sdb push org.tizen.coretbt_dataprovider-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.coretbt_serviceapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.coretbt_uiapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.operationpickviewapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.coretbtwidgetapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.tbt-ime-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.tbtcoreapp-dali-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.tbtcoreapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.tbt_pushtestapp-1.0.0-aarch64.tpk /tmp -sdb push org.tizen.tbt_ui_viewmgr-1.0.0-aarch64.tpk /tmp - -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_dataprovider-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_serviceapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_uiapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.operationpickviewapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-aarch64.tpk -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-aarch64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_ui_viewmgr-1.0.0-aarch64.tpk" $EXECUTION_USER - -sdb root on - -sdb push dog_1024_960.gif /home/$EXECUTION_USER/media/Images -sdb push SampleMP3.mp3 /home/$EXECUTION_USER/media/Sounds -sdb push sampleH263.3gp /home/$EXECUTION_USER/media/Videos -sdb push tbt_push_auth.xml /home/$EXECUTION_USER/media/Others -sdb push iotcon-test-svr-db-client.dat /home/$EXECUTION_USER/media/Others -sdb push iotcon-test-svr-db-server.dat /home/$EXECUTION_USER/media/Others - -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Images/dog_1024_960.gif -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Sounds/SampleMP3.mp3 -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Videos/sampleH263.3gp -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Others/tbt_push_auth.xml -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Others/iotcon-test-svr-db-client.dat -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Others/iotcon-test-svr-db-server.dat - -sdb root off diff --git a/release/binary-aarch64/iotcon-test-svr-db-client.dat b/release/binary-aarch64/iotcon-test-svr-db-client.dat deleted file mode 100644 index 0abd136..0000000 Binary files a/release/binary-aarch64/iotcon-test-svr-db-client.dat and /dev/null differ diff --git a/release/binary-aarch64/iotcon-test-svr-db-server.dat b/release/binary-aarch64/iotcon-test-svr-db-server.dat deleted file mode 100644 index 2f5922b..0000000 Binary files a/release/binary-aarch64/iotcon-test-svr-db-server.dat and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.coretbt_dataprovider-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.coretbt_dataprovider-1.0.0-aarch64.tpk deleted file mode 100644 index 5b73c7d..0000000 Binary files a/release/binary-aarch64/org.tizen.coretbt_dataprovider-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.coretbt_serviceapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.coretbt_serviceapp-1.0.0-aarch64.tpk deleted file mode 100644 index 72c857e..0000000 Binary files a/release/binary-aarch64/org.tizen.coretbt_serviceapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.coretbt_uiapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.coretbt_uiapp-1.0.0-aarch64.tpk deleted file mode 100644 index 2bf8022..0000000 Binary files a/release/binary-aarch64/org.tizen.coretbt_uiapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.coretbtwidgetapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.coretbtwidgetapp-1.0.0-aarch64.tpk deleted file mode 100644 index e75dce7..0000000 Binary files a/release/binary-aarch64/org.tizen.coretbtwidgetapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.operationpickviewapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.operationpickviewapp-1.0.0-aarch64.tpk deleted file mode 100644 index 466b1b2..0000000 Binary files a/release/binary-aarch64/org.tizen.operationpickviewapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.tbt-ime-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.tbt-ime-1.0.0-aarch64.tpk deleted file mode 100644 index 60594b1..0000000 Binary files a/release/binary-aarch64/org.tizen.tbt-ime-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.tbt_pushtestapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.tbt_pushtestapp-1.0.0-aarch64.tpk deleted file mode 100644 index 77ae791..0000000 Binary files a/release/binary-aarch64/org.tizen.tbt_pushtestapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.tbt_ui_viewmgr-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.tbt_ui_viewmgr-1.0.0-aarch64.tpk deleted file mode 100644 index d67d05c..0000000 Binary files a/release/binary-aarch64/org.tizen.tbt_ui_viewmgr-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.tbtcoreapp-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.tbtcoreapp-1.0.0-aarch64.tpk deleted file mode 100644 index cb838d0..0000000 Binary files a/release/binary-aarch64/org.tizen.tbtcoreapp-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/org.tizen.tbtcoreapp-dali-1.0.0-aarch64.tpk b/release/binary-aarch64/org.tizen.tbtcoreapp-dali-1.0.0-aarch64.tpk deleted file mode 100644 index 9700c6c..0000000 Binary files a/release/binary-aarch64/org.tizen.tbtcoreapp-dali-1.0.0-aarch64.tpk and /dev/null differ diff --git a/release/binary-aarch64/sampleH263.3gp b/release/binary-aarch64/sampleH263.3gp deleted file mode 100644 index c0a0b39..0000000 Binary files a/release/binary-aarch64/sampleH263.3gp and /dev/null differ diff --git a/release/binary-aarch64/tbt_push_auth.xml b/release/binary-aarch64/tbt_push_auth.xml deleted file mode 100644 index d50be68..0000000 --- a/release/binary-aarch64/tbt_push_auth.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 24492bf..325eb03 100644 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 diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index 5196a49..b5a62f7 100644 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 diff --git a/release/binary-x86_64/SampleMP3.mp3 b/release/binary-x86_64/SampleMP3.mp3 deleted file mode 100644 index c608a70..0000000 Binary files a/release/binary-x86_64/SampleMP3.mp3 and /dev/null differ diff --git a/release/binary-x86_64/dog_1024_960.gif b/release/binary-x86_64/dog_1024_960.gif deleted file mode 100644 index 1a2e0ba..0000000 Binary files a/release/binary-x86_64/dog_1024_960.gif and /dev/null differ diff --git a/release/binary-x86_64/install.sh b/release/binary-x86_64/install.sh deleted file mode 100644 index d0b34cb..0000000 --- a/release/binary-x86_64/install.sh +++ /dev/null @@ -1,62 +0,0 @@ -############################################################################### - # Copyright (c) 2014 Samsung Electronics Co., Ltd. - # - # 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. - # - ###############################################################################/ - ## - # @file install.sh - # @brief install script for TBT - # - # - # @author A. B. M. Nazibullah(nazib.ullah@samsung.com) - # @date November, 2016 - - # -EXECUTION_USER=owner - -sdb push org.tizen.coretbt_dataprovider-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.coretbt_serviceapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.coretbt_uiapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.operationpickviewapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.coretbtwidgetapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.tbt-ime-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.tbtcoreapp-dali-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.tbtcoreapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.tbt_pushtestapp-1.0.0-x86_64.tpk /tmp -sdb push org.tizen.tbt_ui_viewmgr-1.0.0-x86_64.tpk /tmp - -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_dataprovider-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_serviceapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_uiapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.operationpickviewapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-x86_64.tpk -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-x86_64.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_ui_viewmgr-1.0.0-x86_64.tpk" $EXECUTION_USER - -sdb root on - -sdb push dog_1024_960.gif /home/$EXECUTION_USER/media/Images -sdb push SampleMP3.mp3 /home/$EXECUTION_USER/media/Sounds -sdb push sampleH263.3gp /home/$EXECUTION_USER/media/Videos -sdb push tbt_push_auth.xml /home/$EXECUTION_USER/media/Others - -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Images/dog_1024_960.gif -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Sounds/SampleMP3.mp3 -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Videos/sampleH263.3gp -sdb shell chown $EXECUTION_USER:priv_mediastorage /home/$EXECUTION_USER/media/Others/tbt_push_auth.xml - -sdb root off diff --git a/release/binary-x86_64/org.tizen.coretbt_dataprovider-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.coretbt_dataprovider-1.0.0-x86_64.tpk deleted file mode 100644 index 630985b..0000000 Binary files a/release/binary-x86_64/org.tizen.coretbt_dataprovider-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.coretbt_serviceapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.coretbt_serviceapp-1.0.0-x86_64.tpk deleted file mode 100644 index 0508ebb..0000000 Binary files a/release/binary-x86_64/org.tizen.coretbt_serviceapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.coretbt_uiapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.coretbt_uiapp-1.0.0-x86_64.tpk deleted file mode 100644 index 8fd5d40..0000000 Binary files a/release/binary-x86_64/org.tizen.coretbt_uiapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.coretbtwidgetapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.coretbtwidgetapp-1.0.0-x86_64.tpk deleted file mode 100644 index 87dba99..0000000 Binary files a/release/binary-x86_64/org.tizen.coretbtwidgetapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.operationpickviewapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.operationpickviewapp-1.0.0-x86_64.tpk deleted file mode 100644 index d7c3074..0000000 Binary files a/release/binary-x86_64/org.tizen.operationpickviewapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.tbt-ime-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.tbt-ime-1.0.0-x86_64.tpk deleted file mode 100644 index 28c70ac..0000000 Binary files a/release/binary-x86_64/org.tizen.tbt-ime-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.tbt_pushtestapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.tbt_pushtestapp-1.0.0-x86_64.tpk deleted file mode 100644 index 56e7bc4..0000000 Binary files a/release/binary-x86_64/org.tizen.tbt_pushtestapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.tbt_ui_viewmgr-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.tbt_ui_viewmgr-1.0.0-x86_64.tpk deleted file mode 100644 index c15fb49..0000000 Binary files a/release/binary-x86_64/org.tizen.tbt_ui_viewmgr-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.tbtcoreapp-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.tbtcoreapp-1.0.0-x86_64.tpk deleted file mode 100644 index dde4c9f..0000000 Binary files a/release/binary-x86_64/org.tizen.tbtcoreapp-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/org.tizen.tbtcoreapp-dali-1.0.0-x86_64.tpk b/release/binary-x86_64/org.tizen.tbtcoreapp-dali-1.0.0-x86_64.tpk deleted file mode 100644 index d05cb63..0000000 Binary files a/release/binary-x86_64/org.tizen.tbtcoreapp-dali-1.0.0-x86_64.tpk and /dev/null differ diff --git a/release/binary-x86_64/sampleH263.3gp b/release/binary-x86_64/sampleH263.3gp deleted file mode 100644 index c0a0b39..0000000 Binary files a/release/binary-x86_64/sampleH263.3gp and /dev/null differ diff --git a/release/binary-x86_64/tbt_push_auth.xml b/release/binary-x86_64/tbt_push_auth.xml deleted file mode 100644 index d50be68..0000000 --- a/release/binary-x86_64/tbt_push_auth.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tbtcoreapp/inc/view/tbt-d2d-view.h b/tbtcoreapp/inc/view/tbt-d2d-view.h deleted file mode 100644 index e4d0fa0..0000000 --- a/tbtcoreapp/inc/view/tbt-d2d-view.h +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. - * - * 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. - *******************************************************************************/ -/** - * @file tbt-d2d-view.h - * @brief covers device to device convergence communication - * @since_tizen 3.0 - * @author golam kayes(g.kayes@samsung.com) - * @date June, 2016 - * @bug - * @credit Tizen SDK Version 3.0 Test app - * - */ - - -#ifndef __TBT_D2D_VIEW_H__ -#define __TBT_D2D_VIEW_H__ - -#include "utils/app_module_config.h" -#ifdef TBT_MODULE_D2D - -#include "model/tbt-list.h" - - -/** - * @typedef d2d_viewer_view - * @since_tizen 2.3 - * @brief A d2d viewer view handle. - */ -typedef struct _d2d_view d2d_view; - -/** - * @brief Create tbt d2d view - * @since_tizen 2.3 - * @param[in] navi Parent naviframe - * @param[in] custom structute to hold tbt application information - * @param[in] item of the main tbt menu - * @return Pointer of d2d on success, otherwise NULL - */ -d2d_view *d2d_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item); - -#endif -#endif // __TBT_D2D_VIEW_H__ diff --git a/tbtcoreapp/src/model/tbt-list.c b/tbtcoreapp/src/model/tbt-list.c index 9cef15b..009e857 100755 --- a/tbtcoreapp/src/model/tbt-list.c +++ b/tbtcoreapp/src/model/tbt-list.c @@ -2389,7 +2389,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_TTS, .icon_name = "dummy", .info = "Text to speech
", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #endif diff --git a/tbtcoreapp/src/view/tbt-d2d-view.c b/tbtcoreapp/src/view/tbt-d2d-view.c deleted file mode 100644 index ce8d361..0000000 --- a/tbtcoreapp/src/view/tbt-d2d-view.c +++ /dev/null @@ -1,405 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. - * - * 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. - *******************************************************************************/ -/** - * @file tbt-d2d-view.c - * @brief covers d2d convergence apis - * - * @author A. B. M. Nazibullah(nazib.ullah@samsung.com) - * @date October, 2016 - * @credit - * - */ - -#include "utils/app_module_config.h" -#ifdef TBT_MODULE_D2D - - -#include "utils/logger.h" -#include "utils/config.h" -#include "utils/ui-utils.h" -#include "view/tbt-d2d-view.h" -#include "view/tbt-common-view.h" -#include -#include - -struct _d2d_view -{ - common_view* view; - Evas_Object *server_list; - Evas_Object *client_msg_list; - conv_h gl_conv_h; - GList *devices_list; -}; - -typedef struct _device_data{ - d2d_view *this; - conv_device_h selected_device; -}device_data; - -typedef struct _service_data{ - d2d_view *view; - conv_service_h service_handle; -}service_data; - -static Evas_Object *found_device_list; -static Evas_Object *service_list; -static Evas_Object *app_comm_menu_list; - - -static void _app_destroy_cb(void* this); -static void discovery_cb(conv_device_h device, int result, void* user_data); -static void device_selected_cb(void *data, Evas_Object *obj, void *event_info); -static void message_listener(conv_service_h handle, conv_channel_h channel, int error, conv_payload_h result, void* user_data); -static void start_discovery_cb(void *data, Evas_Object *obj, void *event_info); - -/** - * @function d2d_view_add - * @since_tizen 2.3 - * @description Gps View Add - * @parameter Evas_Object*: Evas Object Pointer, tbt_info*: Tbt Info Pointer, Elm_Object_Item*: Elm Object Item Pointer - * @return d2d_view* - */ -d2d_view *d2d_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item) -{ - RETVM_IF(NULL == navi, NULL, "navi is null"); - RETVM_IF(NULL == tbt_info, NULL, "tbt_info is null"); - RETVM_IF(NULL == item, NULL, "item is NULL"); - - - d2d_view *this = NULL; - this = calloc(1, sizeof(d2d_view)); - RETVM_IF(!this, NULL, "calloc failed"); - this->view = calloc(1, sizeof(common_view)); - RETVM_IF(!this->view, NULL, "calloc failed"); - - tbt_info->layout_group = "d2d_viewer"; - tbt_info->layout_file = get_edje_path("d2d_viewer.edj"); - - common_view_add(navi, tbt_info, item, this->view, _app_destroy_cb, this); - - if (tbt_info->apptype == TBT_APP_D2D_CLIENT) - { - this->server_list = elm_list_add(this->view->layout); - elm_list_mode_set(this->server_list, ELM_LIST_COMPRESS); - evas_object_smart_callback_add(this->server_list, "selected", NULL, NULL); - elm_list_item_append(this->server_list, "D2D discover", NULL, NULL, start_discovery_cb, this); - - elm_list_go(this->server_list); - - elm_object_part_content_set(this->view->layout, "list_container", this->server_list); - - found_device_list = elm_list_add(this->view->layout); - elm_list_mode_set(found_device_list, ELM_LIST_COMPRESS); - evas_object_smart_callback_add(found_device_list, "selected", NULL, NULL); - - service_list = elm_list_add(this->view->layout); - elm_list_mode_set(service_list, ELM_LIST_COMPRESS); - evas_object_smart_callback_add(service_list, "selected", NULL, NULL); - elm_list_select_mode_set(service_list, ELM_OBJECT_SELECT_MODE_ALWAYS); - - app_comm_menu_list = elm_list_add(this->view->layout); - elm_list_mode_set(app_comm_menu_list, ELM_LIST_COMPRESS); - evas_object_smart_callback_add(app_comm_menu_list, "selected", NULL, NULL); - - } - else if (tbt_info->apptype == TBT_APP_D2D_SERVER) - { - this->client_msg_list = elm_list_add(this->view->layout); - elm_list_mode_set(this->client_msg_list, ELM_LIST_COMPRESS); - elm_list_item_append(this->client_msg_list, "Ready", NULL, NULL, NULL, NULL); - - elm_list_go(this->client_msg_list); - - elm_object_part_content_set(this->view->layout, "list_container", this->client_msg_list); - } - - return this; -} - - -/** - * @function get_d2d_error - * @since_tizen 3.0 - * @description get the name of the error for d2d - * @parameter int: error int - * @return char*: error string - */ -static char* get_d2d_error(int e) -{ - switch (e) { - case CONV_ERROR_NONE: - return "CONV_ERROR_NONE"; - case CONV_ERROR_INVALID_PARAMETER: - return "CONV_ERROR_INVALID_PARAMETER"; - case CONV_ERROR_INVALID_OPERATION: - return "CONV_ERROR_INVALID_OPERATION"; - case CONV_ERROR_OUT_OF_MEMORY: - return "CONV_ERROR_OUT_OF_MEMORY"; - case CONV_ERROR_PERMISSION_DENIED: - return "CONV_ERROR_PERMISSION_DENIED"; - case CONV_ERROR_NOT_SUPPORTED: - return "CONV_ERROR_NOT_SUPPORTED"; - case CONV_ERROR_NO_DATA: - return "CONV_ERROR_NO_DATA"; - default: - return "UNKNOWN_ERROR"; - } - - return "UNKNOWN_ERROR"; -} - -static void start_discovery_cb(void *data, Evas_Object *obj, void *event_info) -{ - d2d_view* this = (d2d_view*) data; - DBG("Inside start server discovery cb"); - - int ret = conv_create(&this->gl_conv_h); - RETM_IF(ret != CONV_ERROR_NONE, "conv_create failed with error : %s", get_d2d_error(ret)); - - ret = conv_discovery_start(this->gl_conv_h, 90, discovery_cb, this);/*Timeout 90 seconds*/ - RETM_IF(ret != CONV_ERROR_NONE, "conv_discovery_start failed with error : %s", get_d2d_error(ret)); -} - - -static int app_control_start(conv_service_h service_handle, void* data) -{ - DBG("app_control_start"); - int ret; - - service_data *s_data = (service_data*) data; - s_data->service_handle = service_handle; - ret = conv_service_set_listener_cb(service_handle, message_listener, (void*)s_data); - RETVM_IF(ret != CONV_ERROR_NONE,0,"conv_service_set_listener_cb failed with error : %s", get_d2d_error(ret)); - ret = conv_service_read(service_handle, NULL, NULL); - RETVM_IF(ret != CONV_ERROR_NONE,0,"conv_service_read failed with error : %s", get_d2d_error(ret)); - ret = conv_service_start(service_handle, NULL, NULL); - RETVM_IF(ret != CONV_ERROR_NONE,0, "conv_service_start failed with error : %s", get_d2d_error(ret)); - - return 0; -} - -static void service_selected_cb(void *data, Evas_Object *obj, void *event_info) -{ - DBG("service_selected_cb"); - - service_data *s_data = (service_data*) data; - - RETM_IF(NULL==s_data, "s_data is NULL"); - - conv_service_e e = CONV_SERVICE_NONE; - - if(s_data->service_handle == NULL) - { - ERR("s_data->service_handle is NULL"); - } - - conv_service_h service_handle =s_data->service_handle; - - - int ret = conv_service_get_type(service_handle, &e); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_get_type failed with error : %s", get_d2d_error(ret)); - - switch (e) - { - case CONV_SERVICE_APP_TO_APP_COMMUNICATION : - DBG("CONV_SERVICE_APP_TO_APP_COMMUNICATION"); - break; - - case CONV_SERVICE_REMOTE_APP_CONTROL : - DBG("CONV_SERVICE_REMOTE_APP_CONTROL"); - ret = app_control_start(service_handle, s_data); - RETM_IF(ret != CONV_ERROR_NONE, "app_control_start failed with error : %s", get_d2d_error(ret)); - break; - case CONV_SERVICE_REMOTE_INTERACTION: - DBG("CONV_SERVICE_REMOTE_INTERACTION"); - break; - - default : - DBG( "UNKNOWN_SERVICE"); - break; - } - -} - -static void message_listener(conv_service_h handle, conv_channel_h channel, int error, conv_payload_h result, void* user_data) -{ - DBG("message_listener"); - - char* test; - service_data* s_data = (service_data*) user_data; - conv_payload_get_string(result, "result_type", &test); - int ret; - - DBG("result_type : %s", test); - - if (!strcmp(test, "onStart")) - { - conv_payload_h payload_handle; - - ret = conv_payload_create(&payload_handle); - RETM_IF(ret != CONV_ERROR_NONE, "conv_payload_create failed with error : %s", get_d2d_error(ret)); - - app_control_h app_control = NULL; - app_control_create(&app_control); - app_control_set_app_id(app_control, "org.tizen.coretbt_uiapp"); - app_control_set_operation(app_control, APP_CONTROL_OPERATION_MAIN); - - ret = conv_payload_set_app_control(payload_handle, "app_control", app_control); - RETM_IF(ret != CONV_ERROR_NONE, "conv_payload_set_app_control failed with error : %s", get_d2d_error(ret)); - ret = conv_payload_set_string(payload_handle, "reply", "0"); - RETM_IF(ret != CONV_ERROR_NONE, "conv_payload_set_string failed with error : %s", get_d2d_error(ret)); - ret = conv_service_publish(s_data->service_handle, NULL, payload_handle); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_publish failed with error : %s", get_d2d_error(ret)); - sleep(3); - - ret = conv_service_stop(s_data->service_handle, NULL, NULL); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_stop failed with error : %s", get_d2d_error(ret)); - - DBG("conv_payload_destroy called.."); - ret = conv_payload_destroy(payload_handle); - RETM_IF(ret != CONV_ERROR_NONE, "conv_payload_destroy failed with error : %s", get_d2d_error(ret)); - - ret = conv_service_destroy(s_data->service_handle); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_destroy failed with error : %s", get_d2d_error(ret)); - - } - -} - - -static void service_foreach_cb(conv_service_h service_handle, void *user_data) -{ - conv_service_e e; - d2d_view* this = (d2d_view*) user_data; - - DBG( "service_foreach_cb"); - service_data* s_data = (service_data*)malloc(sizeof(service_data)); - s_data->view = this; - - - int ret = conv_service_get_type(service_handle, &e); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_get_type failed with error : %s", get_d2d_error(ret)); - DBG( "service_get_type = %d", (int)e); - - char* value = NULL; - char* service_id = NULL; - - ret = conv_service_get_property_string(service_handle, CONV_SERVICE_ID, &service_id); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_get_property_string failed with error : %s", get_d2d_error(ret)); - DBG( "service id = %s", service_id); - - ret = conv_service_get_property_string(service_handle, CONV_SERVICE_VERSION, &value); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_get_property_string failed with error : %s", get_d2d_error(ret)); - DBG( "service version = %s", value); - - conv_service_h clone_service_handle; - - ret = conv_service_clone(service_handle, &clone_service_handle); - RETM_IF(ret != CONV_ERROR_NONE, "conv_service_clone failed with error : %s", get_d2d_error(ret)); - - s_data->service_handle = clone_service_handle; - - elm_list_item_append(service_list, service_id, NULL, NULL, service_selected_cb, s_data); - - elm_list_go(service_list); - elm_object_part_content_set(this->view->layout, "list_container", service_list); - -} - -static void device_selected_cb(void *data, Evas_Object *obj, void *event_info) -{ - device_data* new_device_data = (device_data*) data; - d2d_view* this = new_device_data->this; - char* device_name; - conv_device_get_property_string(new_device_data->selected_device, CONV_DEVICE_NAME, &device_name); - DBG("%s is the device name inside device_selected_cb.", device_name ); - - elm_list_clear(this->server_list); - conv_device_h clone_device; - int ret = conv_device_clone(new_device_data->selected_device, &clone_device); - RETM_IF(ret != CONV_ERROR_NONE, "conv_device_clone failed with error : %s", get_d2d_error(ret)); - - ret = conv_device_foreach_service(clone_device, service_foreach_cb, this); - RETM_IF(ret != CONV_ERROR_NONE, "conv_device_foreach_service failed with error : %s", get_d2d_error(ret)); - - -} - -static void discovery_cb(conv_device_h device, int result, void* user_data) -{ - char* value = NULL; - char* device_name = NULL; - d2d_view* this = (d2d_view*) user_data; - DBG("Inside server discovery cb."); - int ret = conv_device_get_property_string(device, CONV_DEVICE_ID, &value); - DBG("conv_device_get_property_string failed with error : %s", get_d2d_error(ret)); - DBG("device id = %s", value); - - ret = conv_device_get_property_string(device, CONV_DEVICE_NAME, &device_name); - DBG("conv_device_get_property_string failed with error : %s", get_d2d_error(ret)); - DBG("device name = %s", device_name); - - ret = conv_device_get_property_string(device, CONV_DEVICE_TYPE, &value); - DBG("conv_device_get_property_string failed with error : %s", get_d2d_error(ret)); - DBG( "device TYPE = %s", value); - -// this->selected_device = device; - - - if( device_name!=NULL) - { - //FIX_ME - device_data *new_device_data = (device_data*) malloc(sizeof(device_data)); - new_device_data->this = this; - new_device_data->selected_device = device; - this->devices_list = g_list_append(this->devices_list, (gpointer) new_device_data); - elm_list_item_append(found_device_list, device_name, NULL, NULL, device_selected_cb, new_device_data); - elm_list_go(found_device_list); - elm_object_part_content_set(this->view->layout, "list_container", found_device_list); - - } -} - - -/** - * @function _app_destroy_cb - * @since_tizen 2.3 - * @description App Destroy Cb - * @parameter void*: Void Pointer - * @return static void - */ -static void _app_destroy_cb(void* this) -{ - RETM_IF(NULL == this, "data is NULL"); - - d2d_view *view = NULL; - view = (d2d_view*)this; - RETM_IF(NULL == view, "view is NULL"); - - GList *l; - device_data *d; - for(l = view->devices_list; l != NULL; l = l->next) - { - d = (device_data*)l->data; - conv_device_destroy(d->selected_device); - SAFE_DELETE(d); - } - - SAFE_DELETE(view->view); - SAFE_DELETE(view); -} - -#endif diff --git a/tbtcoreapp/src/view/tbt-genlist-view.c b/tbtcoreapp/src/view/tbt-genlist-view.c index b88b7c7..6af4177 100755 --- a/tbtcoreapp/src/view/tbt-genlist-view.c +++ b/tbtcoreapp/src/view/tbt-genlist-view.c @@ -93,7 +93,6 @@ #include "view/tbt-connection-view.h" #include "view/tbt-systemsettings-view.h" #include "view/tbt-contacts-view.h" -#include "view/tbt-d2d-view.h" #include "view/tbt-tts-view.h" #include "view/tbt-stt-view.h" #include "view/tbt-voice-control-view.h" @@ -1121,15 +1120,6 @@ static void _gl_item_selected_cb(void *data, Evas_Object *obj EINA_UNUSED, void contacts_view_add(view->navi, info, it); break; #endif - #ifdef TBT_MODULE_D2D - case TBT_APP_D2D_CLIENT: - d2d_view_add(view->navi, info, it); - break; - case TBT_APP_D2D_SERVER: - d2d_view_add(view->navi, info, it); - break; - #endif - #ifdef TBT_MODULE_TTS case TBT_APP_TTS: tts_view_add(view->navi, info, it); diff --git a/tbtcoreapp/src/view/tbt-tts-view.c b/tbtcoreapp/src/view/tbt-tts-view.c index 1875813..d9cdbe8 100755 --- a/tbtcoreapp/src/view/tbt-tts-view.c +++ b/tbtcoreapp/src/view/tbt-tts-view.c @@ -27,7 +27,6 @@ #include "utils/app_module_config.h" #ifdef TBT_MODULE_TTS -#include #include #include #include "utils/logger.h" @@ -193,17 +192,8 @@ static void _btn_tts_pressed_cb(void *data, Evas_Object *obj, void *event_info) RETM_IF(NULL == this, "view is NULL"); this->is_tts_btn_pressed = true; int ret; - bool is_tts_supported = false; - system_info_get_platform_bool("tizen.org/feature/speech.synthesis", &is_tts_supported); ret = tts_create(&this->tts_handle); - if ( (is_tts_supported == false) && (ret == TTS_ERROR_NOT_SUPPORTED) ) - { - notification_status_message_post("PASS the tc"); - } - else - { - RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret)); - } + RETM_IF(ret != TTS_ERROR_NONE, "tts_create fail > Error = %s", get_tts_error(ret)); ret = tts_set_state_changed_cb(this->tts_handle, _tts_state_changed_cb, this); RETM_IF(ret != TTS_ERROR_NONE, "tts_set_state_changed_cb fail > Error = %s", get_tts_error(ret)); ret = tts_foreach_supported_voices(this->tts_handle, _tts_supported_voice_cb, this);