Age | Commit message (Collapse) | Author | Files | Lines |
|
This function is added to feedback.
- int feedback_put_theme_ids_internal(unsigned int **theme_ids);
- This function free the array of theme ids from feedback_get_theme_ids_internal().
After use the array of theme id, it should be freed by caller.
Also, it is possible for the user to release the array directly.
Change-Id: I7d2f2a4456d9e6662c59e3360a1eb0a5490ed6b1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support sound play with priority, new api is added.
This function is added to feedback.
- int feedback_play_type_with_flags_internal(feedback_type_e type, feedback_pattern_internal_e internal_pattern,
feedback_flag_e flag);
- This function plays feedback pattern by pre-defined feedback_flag_e.
Sound play behavior varies depending on feedback_flag_e.
- FEEDBACK_FLAG_NONE
- This flag works the same as feedback_play_type_internal().
- FEEDBACK_FLAG_PRIORITY_BASED_PLAY
- This flag will only work in sound play. Sound pattern will be played with priority.
The sound pattern priority value will be used as defined in the sound conf file.
Change-Id: Idba5314030d393af82d155cd8e4a258a9e6ab82f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Before, GHashTable did not guarantee conf file parsing order.
To guarantee conf file parsing order, sound theme id list has been changed
from GHashTable to GList.
Change-Id: Ib225e807d5d77dcf468b5999c36a2e7688ee58f8
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Allows getting feedback theme id array supported.
This function is added to feedback.
- int feedback_get_theme_ids_internal(feedback_type_e feedback_type,
unsigned int *count_of_theme, unsigned int **theme_ids);
- This function gets count of theme available and theme id array.
Test codes have also been added to check normal operation.
Change-Id: I396452314d9b87907bbc52658f788b8987bf67af
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Previously, the feedback theme was dealt with based on index.
As handling policy is changed, feedback theme can be selected through id.
Feedback themes are no longer treated sequentially, also not dependent on index.
It is managed through a unique id.
Change-Id: I7556e7d877c106f9a311bed1558cddf0ff61dcc9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
There are arrays which used for keeping enum id of supported/not supported patterns
in INIT_PATTERN_LIST() from tests.
However, arrays were being used inappropriately.
Therefore, arrays type and initialization size are fixed.
Change-Id: I1f8d3cb9a800414177572c9182f5a29843c12788
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
As support multi theme usage, new internal API test codes are added.
These are added to test-feedback-internal.h
- bool TEST_FEEDBACK_GET_COUNT_OF_SOUND_THEME_INTERNAL(void);
-> This function performs a test to get count of theme from the sound.conf.
- bool TEST_FEEDBACK_GET_SOUND_THEME_INDEX_INTERNAL(void);
-> This function performs a test to get index of sound theme selected.
- bool TEST_FEEDBACK_SET_SOUND_THEME_INDEX_INTERNAL(void);
-> This function performs a test to set index of sound theme, and then plays sound files from selected conf file.
It is possible to check sound file path from FEEDBACK_TEST dlog.
Change-Id: Ia2025141db8901676d5402f7ad0e836a9944fc3e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Change-Id: Ief52bbe3fc9e21ba63b0474967180406463cd67f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|