summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-11-13feedback: Add feedback_get_theme_ids_internal()Yunhee Seo10-0/+128
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>
2023-11-13feedback: Change feedback theme index handling to id-baseYunhee Seo15-303/+519
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>
2023-10-20feedback: Add feedback theme index range descriptionYunhee Seo1-0/+2
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>
2023-10-12feedback: Add new feedback patternsaccepted/tizen/unified/20231014.105737Yunhee Seo2-0/+4
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>
2023-09-19feedback: Remove unnecessary branchaccepted/tizen/unified/20230920.161448accepted/tizen/8.0/unified/20231005.093811Yunhee Seo1-12/+0
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>
2023-09-19tests: Fix wrong array size for test pattern array initializationYunhee Seo1-7/+9
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>
2023-09-15feedback: Support using all_str_pattern for common profileaccepted/tizen/unified/20230918.063835Yunhee Seo1-62/+5
All_str_pattern is supported to be used in common profile. Change-Id: If081f2610c314e58ab4b7ef71bf49ce4060ee6c1 Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2023-09-15feedback: Add feedback_stop_type_internal()Yunhee Seo4-0/+54
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>
2023-09-15feedback: Add new str pattern for all patternYunhee Seo1-6/+192
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>
2023-09-15feedback: Modify strncmp indexing comparisonYunhee Seo3-4/+4
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>
2023-09-07feedback: Add new feedback_pattern for "da" profileaccepted/tizen/unified/20230912.013605Yunhee Seo2-4/+130
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>
2023-09-01feedback: Add lcov exception code to exclude vibration feature funcsaccepted/tizen/unified/20230904.165043Yunhee Seo2-1/+33
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>
2023-08-30feedback: Add lcov exception codeaccepted/tizen/unified/20230831.081043Yunhee Seo5-16/+77
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>
2023-08-23feedback: Remove read privilege checkingaccepted/tizen/unified/20230825.044235Yunhee Seo2-13/+0
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>
2023-08-22sound: Fix wrong variable from sound_set_theme_index()Yunhee Seo1-1/+1
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>
2023-08-21feedback: Fix typo tizen versionaccepted/tizen/unified/20230822.162230Yunhee Seo1-3/+3
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>
2023-08-21feedback: Add checking privilege for multi-theme support funcsYunhee Seo6-2/+131
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>
2023-08-21feedback: Add vconfkey notifier callback from multi-theme selectionYunhee Seo2-0/+44
Support vconfkey notifier to inform feedback current theme value is changed. Change-Id: I2d8d7cb52e844ff498c4294ae1b955b01042ed4b Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2023-08-21sound: Fix multi-theme start index with 0Yunhee Seo3-13/+29
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>
2023-08-08tests: Add test of sound multi-theme internal APIaccepted/tizen/unified/20230810.070105Yunhee Seo3-0/+89
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>
2023-08-08sound: Support multi-theme sound conf usageYunhee Seo7-22/+366
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>
2022-06-10Apply requirement for gcov automationtizen_7.0_m2_releasesubmit/tizen/20220610.020359accepted/tizen/unified/20220613.161551accepted/tizen/7.0/unified/hotfix/20221116.105736accepted/tizen/7.0/unified/20221110.061757tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfixYoungjae Cho1-6/+6
Change-Id: Ib3396c3e42ba2af9755550b029ec62ab0774a32d Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2022-01-25Change gcov object install pathsubmit/tizen/20220127.011830accepted/tizen/unified/20220128.144429Youngjae Cho1-2/+2
Change-Id: I5a9be1d968a48b4f817062003649831c2eda9e06 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-03-19Change dbus function nametizen_6.5.m2_releasesubmit/tizen_6.5/20211028.162501submit/tizen/20210319.090004accepted/tizen/unified/20210321.225728accepted/tizen/6.5/unified/20211028.115020taemin.yeom2-9/+9
Change-Id: I359eb66d69148df08933758deb591fe549797164 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-03-15Improve variable naming stylesubmit/tizen/20210315.085912accepted/tizen/unified/20210317.115949taemin.yeom3-130/+130
Change-Id: I3b36f44a6acd0dae721959562d9086997ba9a99e Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-03-09Apply libsyscommon gdbus api improvement on error handlingsubmit/tizen/20210309.090957accepted/tizen/unified/20210310.144949taemin.yeom1-9/+29
Change-Id: Ib602f152dcc49aecd903cc24f727d88a41c71400 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-01-06Change prefix of list definitionsubmit/tizen/20210108.041937accepted/tizen/unified/20210111.125501Yunmi Ha1-15/+15
- list to SYS_G_LIST Change-Id: Ia491cf8b4705e8c2f58dbd60f271af12b2c836f9 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-06Use libsyscommon for list and ini-parserYunmi Ha8-147/+26
Change-Id: Id71a4088c732d202b7837992b10986ec8e6bbda8 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-04Add API test toolYunmi Ha9-0/+1042
Change-Id: Ief52bbe3fc9e21ba63b0474967180406463cd67f Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-04Add excluding line for coverage testYunmi Ha4-48/+50
Change-Id: Iad097870ae8fe1dc47f2441ba97976a1a28fc038 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-10-22Use libsyscommonYunmi Ha6-478/+40
To eliminate dbus proxy in feedback api, use libsyscommon instead. Change-Id: I767494466cda183a33f91a5d7ad9a302ec2ebc49 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-06-24Add comment for excluding coveragetizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen/20200625.015457accepted/tizen/unified/20200626.133531accepted/tizen/6.0/unified/hotfix/20201103.002644accepted/tizen/6.0/unified/20201030.115623tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedYunmi Ha1-36/+36
Change-Id: Icffa61c0f6851e00a7b6b65f22c97b56073a842f Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-06-23Add comment for excluding coverageYunmi Ha5-41/+38
Change-Id: Id59d34e563352c4f0aa48d4adfd20a3dbb847231 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-06-23Remove unused fuctionYunmi Ha2-63/+0
Change-Id: I83f019623515374400ec083665062c1ddc1b7a0f Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-06-16Sync code with mcd productYunmi Ha170-146/+2377
- 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>
2020-06-02Add DD_LIST_FOREACH_SAFE functionYunmi Ha2-2/+6
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>
2020-05-21Sync internal API behavior with product codeYunmi Ha6-106/+66
- Functionalization of duplicated code. - Always alert when internal api is called. Change-Id: I871d00c3812a85cb7e98ed48a4fd5183b673ef23 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-05-12change vibration config to standard typeYunmi Ha11-17/+88
Change-Id: I8b55827a8b4ca7e2ceb431e31f345709d790e1a2 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-05-06Add interanl API for supporting resource pathYunmi Ha5-0/+263
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>
2020-03-19Add sound_stop functionsubmit/tizen/20200402.112144accepted/tizen/unified/20200406.133208Yunmi Ha1-0/+18
- When called this API, whole exist keytones will be stopped. Change-Id: I5a11326e8b11f0e1e4532be615a0a84ed6fc6edd Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-03-09Support multi effect patternsubmit/tizen/20200310.104300accepted/tizen/unified/20200311.130818Yunmi Ha6-91/+97
- Remove rescaling code for level - Add default pattern for monotone vibration Change-Id: Ie7b01518bb6c3995c3a3db0193ec7d148bf21611 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2020-02-11dbus: replace old dbus api with GVariant support apisubmit/tizen/20200214.104642accepted/tizen/unified/20200216.215217sanghyeok.oh3-63/+40
Change-Id: Id813b8518a2e44b4426efdeb153ed77243a1b80f Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
2020-02-06sound: Add logic for checking NULLsubmit/tizen/20200207.103010accepted/tizen/unified/20200210.131812Yunmi Ha1-2/+6
- For fix svace issue Change-Id: I1ed485fff3f01686c1120b30e3af85f0d463bced Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2019-12-12Change "developer.tizen.org" link to "docs.tizen.org"Yunmi Ha1-1/+1
Change-Id: I947b9157401648c0da495d12b45358aa972681b9 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2019-11-21Make gcov packageYunmi Ha1-0/+29
- Make gcov package when --define 'gcov ON' is given Change-Id: I0eb415edaeedc959053fcb6bbd04e8d9f42af9f5 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2019-05-14Add comment for excluding coverage - not used functiontizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185104submit/tizen_5.5/20191031.000004submit/tizen/20190514.074846accepted/tizen/unified/20190514.080702accepted/tizen/5.5/unified/mobile/hotfix/20201027.085701accepted/tizen/5.5/unified/20191031.021351tizen_5.5_tvtizen_5.5_mobile_hotfixaccepted/tizen_5.5_unified_mobile_hotfixYunmi Ha1-0/+4
Change-Id: Ife9615f3709ecdcc3d2fa96ff4bc6a7d1bb104ea Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2019-03-11Change VibrateEffect to VibratePatternsubmit/tizen/20190312.062217accepted/tizen/unified/20190313.075425pr.jung1-2/+2
Change-Id: Ibf38bb012c4dcb5bb03c18020cc48bad19c9f7dc Signed-off-by: pr.jung <pr.jung@samsung.com>
2019-02-28Add .gitignoreHyotaek Shim1-0/+3
Change-Id: Iccb792e56da624293117ca64839756e74f4c3c15 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2019-02-28Add a new ids range for IoT devicesHyotaek Shim1-3/+4
Change-Id: Ie5bf43c158b87afc27b16e0a13fb6191e1dbcb59 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2019-02-15Delete unused apispr.jung2-119/+0
- feedback_get_resource_path - feedback_set_resource_path Change-Id: I33b0290b29cec9a9c839068a190fbd0387c379e5 Signed-off-by: pr.jung <pr.jung@samsung.com>