extern Evas_Object* show_lockscreen_splash(const char *bg_path);
extern volume_error_e hide_lockscreen_splash(void);
+extern void volume_service_region_set(Evas_Object *win, Eina_Bool is_warning_visible);
#endif /* __VOLUME_VIEW_H__ */
<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.volume" version="0.1.148" install-location="internal-only" api-version="2.3.1">
+<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.volume" version="0.1.148" install-location="internal-only" api-version="2.4">
<label>Volume</label>
<author email="junkyu.han@samsung.com" href="www.samsung.com">junkyu Han</author>
<description>Volume Application</description>
<privilege>http://tizen.org/privilege/internal/default/public</privilege>
<privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
<privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+ <privilege>http://tizen.org/privilege/keygrab</privilege>
</privileges>
</manifest>
if (bt_opened == true && sound_type == SOUND_TYPE_CALL)
{
_bt_display_bt_volume_view(sound_type, sound, vibration, bt_opened);
+ _D("BT SCO volume level is : %d", volume);
if (VOLUME_ERROR_OK != volume_view_slider_value_set(volume))
_E("Failed to set slider value");
#include <bluetooth.h>
#include <bluetooth_internal.h>
#include <bluetooth_extension.h>
+#include <bundle_internal.h>
#include "main.h"
#include "_util_efl.h"
}
}
+static Eina_Bool _volume_region_set_timer_cb(void *data)
+{
+ Evas_Object *win = data;
+
+ volume_service_region_set(win, EINA_FALSE);
+
+ return EINA_FALSE;
+}
+
Eina_Bool volume_control_show_view(int status, sound_type_e sound_type, int sound, bool bt_opened)
{
_D("Volume control show");
if(VOLUME_ERROR_OK != volume_view_window_show(sound_type)) {
_E("Failed to show volume window");
}
+ ecore_timer_add(1.0f, _volume_region_set_timer_cb, win);
}
control_info.is_launching = EINA_TRUE;
//@TODO: need to check
volume_view_volume_icon_set(sound_type, sound, vibration, bt_opened);
- volume_service_region_set(win, false);
-
return EINA_TRUE;
}
}
elm_win_screen_size_get(win, NULL, NULL, &(control_info.viewport_width), &(control_info.viewport_height));
-
/* Set available rotations */
_control_set_window_rotation(win);
volume_error_e volume_view_window_show(sound_type_e type)
{
_D("Volume view window SHOW is [%p]", view_info.win);
+
elm_win_iconified_set(view_info.win, EINA_FALSE);
+
if (type == SOUND_TYPE_CALL) {
_D("Sound type is Call");
} else {
static Eina_Bool _key_grab_cb(void *data)
{
- int ret = 0;
+ int ret_up = 0;
+ int ret_down = 0;
Evas_Object *win = data;
_D("keygrab window is [%p]", win);
- ret = elm_win_keygrab_set(win, KEY_VOLUMEUP, 0, 0, 0, ELM_WIN_KEYGRAB_SHARED);
- _D("Result of volume up keygrab set : %d", ret);
- ret = elm_win_keygrab_set(win, KEY_VOLUMEDOWN, 0, 0, 0, ELM_WIN_KEYGRAB_SHARED);
- _D("Result of volume down keygrab set : %d", ret);
+ ret_up = elm_win_keygrab_set(win, KEY_VOLUMEUP, 0, 0, 0, ELM_WIN_KEYGRAB_SHARED);
+ _D("Result of volume up keygrab set : %d", ret_up);
+ ret_down = elm_win_keygrab_set(win, KEY_VOLUMEDOWN, 0, 0, 0, ELM_WIN_KEYGRAB_SHARED);
+ _D("Result of volume down keygrab set : %d", ret_down);
return EINA_FALSE;
}
view_info.win = win;
_D("view_info.win is [%p]", view_info.win);
- elm_win_iconified_set(win, EINA_TRUE);
+ evas_object_show(win);
ecore_timer_add(1.0f, _key_grab_cb, win);
- evas_object_show(win);
_connect_to_wm(win);
+ elm_win_iconified_set(win, EINA_TRUE);
+
return win;
}