Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
The index of sound theme range is 1 ~ N according to conf file.
This index range should be considered when using feedback theme index getter/setter.
Change-Id: I250efd1885c2888c0395850f1e6f174a22e56254
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Below feedback patterns are supported.
- FEEDBACK_PATTERN_WELCOME
- FEEDBACK_PATTERN_AUTO_DOOR_OPEN
Change-Id: I934d9bd1d193d7d5c347d93c0e91080773e3b267
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
As support all_str_pattern for common/da profile, unnecessary branch is removed to keep
code quality.
Change-Id: Ib36af481b1e678afa44bcf9b5316a4f3e22fac59
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>
|
|
All_str_pattern is supported to be used in common profile.
Change-Id: If081f2610c314e58ab4b7ef71bf49ce4060ee6c1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support feedback stop according to the feedback type.
With this, it is possible to stop sound feedback play.
"http://tizen.org/privilege/haptic" haptic privilege is required to stop the vibrator.
Change-Id: I4798f805be9f2a6bebc0d6f7da68011a98c3e4f1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support general feedback pattern, all_str_pattern array is added.
With "da" profile, it is possible to use general feedback pattern from all_str_pattern.
Change-Id: Iccb52f7285adf3f05f0d5088ebbde1f37a6dc612
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Final null character comparison was missing from strncmp length.
To compare the end of the string, 1 index is added to strlen.
Change-Id: Ied9505ba95eef0b5a41826704d506ae34c9d201a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support new feedback_pattern from "da" profile,
new feedback_patterns are added to feedback_pattern_internal_e.
Also, "da" profile supports existing common profile feedback_pattern at the same time.
Thus, da_str_pattern has both profile feedback_pattern "da" and "common".
To use "da" profile feedback_pattern, "tizen.org/feature/profile" should be set to "da".
Change-Id: Ia7c544df4f9811a15617b7085fcd6a8c5d8f3a7b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Add line coverage exception.
Vibration feature is not supported from the line coverage test environment.
Thus, function and codes releated to vibration feature are excluded from the line coverage.
Change-Id: Idf2374f1891f450b572007e611e6f231cb3c51fd
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Add line coverage exception to below cases.
1. Internal API and functions used only in internal functions.
2. Profile specific functions that are not common profile.(ex - mobile/wearable)
3. Error handling code section.
Change-Id: If2efe1239e0738adaad09db2a2b2e8c479549709
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Allow apps to get theme index without read privilege dependencies.
Read privilege is removed from below functions.
- int feedback_get_count_of_theme_internal(feedback_type_e feedback_type, unsigned int *count_of_theme)
- int feedback_get_theme_index_internal(feedback_type_e feedback_type, unsigned int *index_of_theme)
Change-Id: I315dfcaf310f0948c7710ef366f73725505b490a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
The index of theme should be set by external parameter.
The wrong variable went into vconf setter as order changed.
Change-Id: I15b51552cf822cd26ac844a02609440561bec1f0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
feedback_get/set_theme_index_internal(), feedback_get_count_of_theme_internal() functions are
supported from tizen_7.0.
Change-Id: I1f49bd8dbc21710617460ba89a32907b034f6ebe
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Setting feedback theme index is required "http://tizen.org/privilege/systemsettings.admin" privilege.
Getting feedback theme is required "http://tizen.org/privilege/internal/default/public".
If application has above privilege, setting/getting theme index is successful.
Change-Id: I5aad3f3138e0fe0d0211832300929d78a4d7d47b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Support vconfkey notifier to inform feedback current theme value is changed.
Change-Id: I2d8d7cb52e844ff498c4294ae1b955b01042ed4b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
In the previous multi-theme support implementation,
default index was different according to multi-theme or single theme.
However default sound theme index should start with 0 to maintain consistency.
User should use index "1~N", and that index will be converted to 0~N-1 in intenral implementation.
Start index will be 0 in terms of implementation.
Change-Id: I8549d2039c399e875ace7c06303bb4d1fd10febb
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>
|
|
Allows users to select one of several theme files.
Conf file detailed usage is explained in the common/data/sound.conf file.
Example of conf file usage
[SoundMultiTheme] -> It means support multi theme
number_of_theme=2 -> It means how many confs are supported
name_of_default_theme=SoundTheme2 -> It means SoundTheme2 section file is set to default conf
[SoundTheme1] -> Match the conf file number and file path
file_path_of_theme=/usr/share/feedback/sound-theme1.conf
[SoundTheme2]
file_path_of_theme=/usr/share/feedback/sound-theme2.conf
To support this, below functions are newly added to feedback-internal.h.
- int feedback_get_count_of_theme_internal(feedback_type_e feedback_type, unsigned int *count_of_theme);
- This function gets the number of theme described in the config file.
- int feedback_get_theme_index_internal(feedback_type_e feedback_type, unsigned int *index_of_theme);
- This function gets the current index of theme selected.
- int feedback_set_theme_index_internal(feedback_type_e feedback_type, unsigned int index_of_theme);
- This function sets the index of theme will be used.
After that, It is possible to use the feedback files defined in the theme(index_of_theme) conf file.
In deed, this patch only supports sound theme.
Change-Id: Idd25bed7b091fffe6d9c7a5729a670f0f27469c4
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Change-Id: Ib3396c3e42ba2af9755550b029ec62ab0774a32d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: I5a9be1d968a48b4f817062003649831c2eda9e06
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: I359eb66d69148df08933758deb591fe549797164
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: I3b36f44a6acd0dae721959562d9086997ba9a99e
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
Change-Id: Ib602f152dcc49aecd903cc24f727d88a41c71400
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
|
|
- list to SYS_G_LIST
Change-Id: Ia491cf8b4705e8c2f58dbd60f271af12b2c836f9
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Id71a4088c732d202b7837992b10986ec8e6bbda8
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Ief52bbe3fc9e21ba63b0474967180406463cd67f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Iad097870ae8fe1dc47f2441ba97976a1a28fc038
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
To eliminate dbus proxy in feedback api, use libsyscommon instead.
Change-Id: I767494466cda183a33f91a5d7ad9a302ec2ebc49
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Icffa61c0f6851e00a7b6b65f22c97b56073a842f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Id59d34e563352c4f0aa48d4adfd20a3dbb847231
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I83f019623515374400ec083665062c1ddc1b7a0f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- Add additional internal ids
- Add additional product ids
- Add some check code for additional vconf value
Change-Id: I8e5420bb6d48aa280c4247ce769ed4276789c216
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
DD_LIST_FOREACH_SAFE function allows you to safely delete a list item
in a foreach statement.
Change-Id: Ic6bc0bf11e62161f9ff2769a66439197d6b81b39
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- Functionalization of duplicated code.
- Always alert when internal api is called.
Change-Id: I871d00c3812a85cb7e98ed48a4fd5183b673ef23
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I8b55827a8b4ca7e2ceb431e31f345709d790e1a2
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Noti app want to play feedback without any vconf changes.
But original API decides resource path for sound play with vconf value.
So add new API which has additional parameter of sound resource path.
Change-Id: I85bb37daacf14684c29e13cabfea6c7ee80e0008
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- When called this API, whole exist keytones will be stopped.
Change-Id: I5a11326e8b11f0e1e4532be615a0a84ed6fc6edd
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- Remove rescaling code for level
- Add default pattern for monotone vibration
Change-Id: Ie7b01518bb6c3995c3a3db0193ec7d148bf21611
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Id813b8518a2e44b4426efdeb153ed77243a1b80f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
|
|
- For fix svace issue
Change-Id: I1ed485fff3f01686c1120b30e3af85f0d463bced
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: I947b9157401648c0da495d12b45358aa972681b9
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- Make gcov package when --define 'gcov ON' is given
Change-Id: I0eb415edaeedc959053fcb6bbd04e8d9f42af9f5
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Ife9615f3709ecdcc3d2fa96ff4bc6a7d1bb104ea
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
Change-Id: Ibf38bb012c4dcb5bb03c18020cc48bad19c9f7dc
Signed-off-by: pr.jung <pr.jung@samsung.com>
|
|
Change-Id: Iccb792e56da624293117ca64839756e74f4c3c15
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: Ie5bf43c158b87afc27b16e0a13fb6191e1dbcb59
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
- feedback_get_resource_path
- feedback_set_resource_path
Change-Id: I33b0290b29cec9a9c839068a190fbd0387c379e5
Signed-off-by: pr.jung <pr.jung@samsung.com>
|