platform/core/connectivity/stc-manager.git
6 years agoAdd -fgnu89-inline to fix ISan build. sandbox/ibaravy/isan
Ivan Baravy [Tue, 31 Oct 2017 16:58:15 +0000 (19:58 +0300)]
Add -fgnu89-inline to fix ISan build.

6 years agoFetching /proc/<pid>/status entry after validation. 76/157576/1 accepted/tizen/4.0/unified/20171026.153011 submit/tizen_4.0/20171025.074110 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Nishant Chaprana [Wed, 25 Oct 2017 05:46:07 +0000 (11:16 +0530)]
Fetching /proc/<pid>/status entry after validation.

Description: This patch adds validation check before storing status
entries and assignes proper index for storing value.

In TM1 reference device kernel makes below entries in status file.
proc entry is like below:-
sh-3.2# cat /proc/373/status
Name:   stc-manager
State:  S (sleeping)
Tgid:   373
Pid:    373
PPid:   1
TracerPid:      0

However in Odroid reference device, kernel makes below entries in status.
sh-3.2# cat /proc/3404/status
Name:   stc-manager
State:  S (sleeping)
Tgid:   3404
Ngid:   0
Pid:    3404
PPid:   1
TracerPid:      0

Odroid kernel has an extra entry "Ngid" which breaks current extraction logic.
So added logic to match entry key before extracting value when reading status file.

Change-Id: I393ed476919fc8c101a8ce6a11ab835230a39021
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved inotify helper 90/156790/1 accepted/tizen/4.0/unified/20171020.092607 submit/tizen_4.0/20171020.040928
hyunuktak [Fri, 20 Oct 2017 04:00:04 +0000 (13:00 +0900)]
Removed inotify helper

Change-Id: I4de98b665307d02a75738dd8fd372eb85bfffaff
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoUse heap instead of stack, to aviod large stack usage issue in __process_contr_reply() 16/156016/1 accepted/tizen/4.0/unified/20171018.231438 submit/tizen_4.0/20171018.043439
Nishant Chaprana [Tue, 17 Oct 2017 03:15:18 +0000 (08:45 +0530)]
Use heap instead of stack, to aviod large stack usage issue in __process_contr_reply()

Change-Id: Ia9be7b4d0612b1aec55d1a8fd05ef68e5106b84d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years ago[nfacct-rule] Use heap instead of stack, to aviod large stack usage issue. 44/155844/1
Nishant Chaprana [Mon, 16 Oct 2017 09:23:54 +0000 (14:53 +0530)]
[nfacct-rule] Use heap instead of stack, to aviod large stack usage issue.

Change-Id: Id3e52e80554a1c25348808a9173afaf6481f32ab
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years ago[Fix] Memory leak while fetching data from config file 71/155771/1
Nishant Chaprana [Mon, 16 Oct 2017 06:20:12 +0000 (11:50 +0530)]
[Fix] Memory leak while fetching data from config file

Change-Id: Ie609cbf8cc9b71d22f8416404a854c62a11efbb5
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoUpdate ground state in table while updating data usage. 59/155059/1 accepted/tizen/4.0/unified/20171018.060816 submit/tizen_4.0/20171016.080645 submit/tizen_4.0/20171017.050934 submit/tizen_4.0/20171017.075830
Nishant Chaprana [Tue, 3 Oct 2017 09:02:45 +0000 (14:32 +0530)]
Update ground state in table while updating data usage.

Change-Id: I7bd13c92fac2994f2be22fa3000896ded3a5b70a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded information config with inotify 00/154400/3 accepted/tizen/4.0/unified/20171012.230309 submit/tizen_4.0/20171011.035617 tizen_4.0.IoT.p1_release
hyunuktak [Tue, 10 Oct 2017 05:48:27 +0000 (14:48 +0900)]
Added information config with inotify

Change-Id: If6faf890e69fa7a2de05d362aada815c29778411
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded exceptions for system call and bracket 99/154399/1
hyunuktak [Tue, 10 Oct 2017 05:42:33 +0000 (14:42 +0900)]
Added exceptions for system call and bracket

Change-Id: Ib28764520292f29b4378620680d3391ef2308c93
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed coverity issues 98/154398/1
hyunuktak [Tue, 10 Oct 2017 05:37:42 +0000 (14:37 +0900)]
Fixed coverity issues

Change-Id: I19f27469c22bc1662c8a33afc92f3bebdc2c560d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoExtract file name using /usr/apps keyword 97/154397/1
hyunuktak [Tue, 10 Oct 2017 05:33:38 +0000 (14:33 +0900)]
Extract file name using /usr/apps keyword

And ignore blank space

Change-Id: I36813811a9f0ad358d591ae197de0034c326486a
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded extra debug logs under STC_DEBUG_LOG tag 96/154396/1
hyunuktak [Tue, 10 Oct 2017 05:27:08 +0000 (14:27 +0900)]
Added extra debug logs under STC_DEBUG_LOG tag

Change-Id: I40b7a6eae7e2adbf919b6f0359b162d221fbc124
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMonitoring threads of a process using tgid and PROC_EVENT_FORK 95/154395/1
hyunuktak [Tue, 10 Oct 2017 05:17:01 +0000 (14:17 +0900)]
Monitoring threads of a process using tgid and PROC_EVENT_FORK

Change-Id: I7502aa99b04e06e7e7cce0067b43c5f400d99f4d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved is_rule_present which is not valid 94/154394/1
hyunuktak [Tue, 10 Oct 2017 05:04:47 +0000 (14:04 +0900)]
Removed is_rule_present which is not valid

Change-Id: I783916db78b09d9351f2d322be9eb0007d3dfb69
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoSet STC_DEBUG_LOG flag 86/151486/1 accepted/tizen/4.0/unified/20170927.055137 submit/tizen_4.0/20170922.070056 submit/tizen_4.0/20170926.021546
hyunuktak [Thu, 21 Sep 2017 05:15:51 +0000 (14:15 +0900)]
Set STC_DEBUG_LOG flag

Change-Id: Ic4cfd5f7eb3fa1014db9486479d567e092486e1c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoChanged cur classid path and initialize 21/151421/1
hyunuktak [Thu, 21 Sep 2017 01:30:02 +0000 (10:30 +0900)]
Changed cur classid path and initialize

Change-Id: Ib7c6bd5ce363a8079750e66943d287e86224e5c6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoReplaced imsi to subscriber ID 16/151416/1
hyunuktak [Wed, 20 Sep 2017 07:35:35 +0000 (16:35 +0900)]
Replaced imsi to subscriber ID

Change-Id: Ie137cb045ab279416b3d3711f0cd55a1fe4543bd
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded application exception list 15/151415/1
hyunuktak [Tue, 19 Sep 2017 07:44:25 +0000 (16:44 +0900)]
Added application exception list

it is checking internet privilege
it has used pkginfo package
it has a cycle as one day

Change-Id: I4dd8f2d0a8eec709790ea6929f8233c84cbd43a8
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Fixed a svace issue for 293218" into tizen_4.0 accepted/tizen/4.0/unified/20170920.081551 submit/tizen_4.0/20170918.114848
taesub kim [Mon, 18 Sep 2017 11:31:20 +0000 (11:31 +0000)]
Merge "Fixed a svace issue for 293218" into tizen_4.0

6 years agoFixed a svace issue for 293218 30/150730/1
hyunuktak [Mon, 18 Sep 2017 09:29:20 +0000 (18:29 +0900)]
Fixed a svace issue for 293218

Change-Id: I0dff5c0cf7f228243c090a1213aee280ddc6bb63
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoGet process status from procfs 25/150725/1
hyunuktak [Fri, 15 Sep 2017 02:04:23 +0000 (11:04 +0900)]
Get process status from procfs

Change-Id: I8c9916ce129ec35f0f93d4d3c35afc0e67f3b7f1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded exception lists for monitoring 24/150724/1
hyunuktak [Wed, 6 Sep 2017 06:54:56 +0000 (15:54 +0900)]
Added exception lists for monitoring

Change-Id: I4f010db523cc8421a2cabcc62f868db976138597
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMoved application ground status monitor to plugin. 23/150723/1
Nishant Chaprana [Thu, 14 Sep 2017 04:01:10 +0000 (09:31 +0530)]
Moved application ground status monitor to plugin.

Change-Id: Ie9680b6d25b73b8262529d02a7885e86396dfc32
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded netlink connector for monitoring processes 24/144724/3 accepted/tizen/4.0/unified/20170901.202608 accepted/tizen/unified/20170825.043904 submit/tizen/20170824.072921 submit/tizen_4.0/20170831.131058
Nishant Chaprana [Thu, 17 Aug 2017 14:08:03 +0000 (19:38 +0530)]
Added netlink connector for monitoring processes

Change-Id: I43335ff9d4daf2ca0d01decb29d7837a8f76af9c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoFixed a issue for using heap after free 74/142974/1 accepted/tizen/4.0/unified/20170828.223511 accepted/tizen/unified/20170811.021041 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100003
hyunuktak [Tue, 8 Aug 2017 05:37:56 +0000 (14:37 +0900)]
Fixed a issue for using heap after free

Change-Id: I6d79e47857211945aa29de2de71072dc98835bd4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoIgnoring values of TOTAL_* details when fetching interface data. 83/140683/2 accepted/tizen/4.0/unified/20170816.013628 accepted/tizen/4.0/unified/20170816.020059 accepted/tizen/unified/20170728.195400 submit/tizen/20170727.063916 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Nishant Chaprana [Wed, 26 Jul 2017 05:01:13 +0000 (10:31 +0530)]
Ignoring values of TOTAL_* details when fetching interface data.

Description: When fetching interface related data and chunk data
TOTAL_IPV4, TOTAL_IPV6, TOTAL_WIFI, TOTAL_BLUETOOTH, TOTAL_DATACALL
app_id were increasing redundant data in fetch query.

Change-Id: Icc074219dfd9e83832d7f193040969fd23a30d43
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoFix: Fetching granularized data usage issue. 00/140600/1
Nishant Chaprana [Tue, 25 Jul 2017 13:31:31 +0000 (19:01 +0530)]
Fix: Fetching granularized data usage issue.

Description: This patch fixes the scenario where multiple entries
are sent to upper layer because of granularity, also this patch fixes
faulty fill operation when data is fetched from database.

Change-Id: Ifbd7fcd646f461277bdd8bc90379f452032b05fe
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoMonitoring system wide IPv4 and IPv6 data usage. 96/139796/1
Nishant Chaprana [Thu, 20 Jul 2017 10:53:51 +0000 (16:23 +0530)]
Monitoring system wide IPv4 and IPv6 data usage.

Change-Id: I66e8b7af58f7e4fc79b4cbf94581738218726311
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoFix: Extra "_BACKGROUND" was added in background cgroups. 86/139686/1
Nishant Chaprana [Thu, 20 Jul 2017 06:17:43 +0000 (11:47 +0530)]
Fix: Extra "_BACKGROUND" was added in background cgroups.

Description: An extra "_BACKGROUN" keywork was added when any update
in ground status was performed.

Change-Id: Ib297853b08c7516483d88674535b032f1ccd932c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded default sim's IMSI fetch logic. 68/139668/3
Nishant Chaprana [Thu, 20 Jul 2017 05:12:45 +0000 (10:42 +0530)]
Added default sim's IMSI fetch logic.

Change-Id: I9040fb2bec433e828c4289e3ce7841a901989dc8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded background restriction for data saver 81/138381/1 accepted/tizen/unified/20170717.165453 submit/tizen/20170713.075847
hyunuktak [Wed, 12 Jul 2017 04:53:50 +0000 (13:53 +0900)]
Added background restriction for data saver

Change-Id: I8bb5ae5c54affe6cf1c6bd35e4952b45cac04173
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Corrected and optimized usage of fork and waitpid." into tizen accepted/tizen/unified/20170705.162743 submit/tizen/20170705.021946
taesub kim [Tue, 4 Jul 2017 03:41:26 +0000 (03:41 +0000)]
Merge "Corrected and optimized usage of fork and waitpid." into tizen

6 years agoCorrected and optimized usage of fork and waitpid. 98/136898/4
Nishant Chaprana [Mon, 3 Jul 2017 10:36:06 +0000 (16:06 +0530)]
Corrected and optimized usage of fork and waitpid.

The patch fixes below things:-
1. Do not call fork when arguments not present.
2. Do not call waitpid when fork returned pid as -1 from fork.
3. Corrected wrong english usage in function name by changing name
   of is_rule_exists => is_rule_present.

Change-Id: Ic42233a846df91cc1b7871a52b830fd59433a970
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoRemoved dbus service file 88/136888/1
hyunuktak [Mon, 3 Jul 2017 09:36:09 +0000 (18:36 +0900)]
Removed dbus service file

Change-Id: I2f05e6b55b263448f6881906df4bd949e3c6e352
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved dbus activation 59/136859/2 submit/tizen/20170703.091801
hyunuktak [Mon, 3 Jul 2017 07:59:16 +0000 (16:59 +0900)]
Removed dbus activation

Change-Id: I14f1ffb8979540b4c5829f1e071647adb36cea56
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoCalled appropriately waitpid() function 79/136779/1
hyunuktak [Mon, 3 Jul 2017 06:59:26 +0000 (15:59 +0900)]
Called appropriately waitpid() function

to wait for the child process to terminate.

Change-Id: I01778a0270026c0779f3484d31870278a7cd4a58
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed restriction update logic, when user data limit of a restriction. 13/136513/2
Nishant Chaprana [Fri, 30 Jun 2017 05:17:29 +0000 (10:47 +0530)]
Fixed restriction update logic, when user data limit of a restriction.

Change-Id: I1784d6ad9485f2ebc21c26cc1e3941594b12ca04
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoMerge "Added logic to monitor and restrict data usage per interface" into tizen
taesub kim [Mon, 3 Jul 2017 01:58:13 +0000 (01:58 +0000)]
Merge "Added logic to monitor and restrict data usage per interface" into tizen

6 years agoAdded logic to monitor and restrict data usage per interface 82/135882/7
hyunuktak [Tue, 27 Jun 2017 07:33:14 +0000 (16:33 +0900)]
Added logic to monitor and restrict data usage per interface

Change-Id: I597acaa133cec9cd322309201ebf724582810cc4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoReopening socket if G_IO error is received and updated debug logs. 96/136196/3 accepted/tizen/unified/20170703.064211 submit/tizen/20170630.014944
Nishant Chaprana [Wed, 28 Jun 2017 11:15:39 +0000 (16:45 +0530)]
Reopening socket if G_IO error is received and updated debug logs.

Change-Id: I58ee40fe4b3349dd26117907347893d892fd0a63
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoIgnoring SIGCHLD signal as exit status if child process is not required. 07/135907/1 accepted/tizen/unified/20170628.164020 submit/tizen/20170628.081621
Nishant Chaprana [Tue, 27 Jun 2017 08:49:33 +0000 (14:19 +0530)]
Ignoring SIGCHLD signal as exit status if child process is not required.

Description: This patch ignores the SIGCHLD event, so that kernel can
reap the child process automatically so that process table is properly updated.

Change-Id: I09283dbee630359a5daa5c2d25f97a65ac6dda3e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded check emulator environment 85/135185/2 accepted/tizen/unified/20170622.104910 submit/tizen/20170621.080105
hyunuktak [Wed, 21 Jun 2017 06:48:07 +0000 (15:48 +0900)]
Added check emulator environment

Change-Id: Ied3e0a4abe59f93445aa46c8a44868f52c82876c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Added a icon for datausage noti in plugin" into tizen submit/tizen/20170620.103311
taesub kim [Mon, 19 Jun 2017 05:54:47 +0000 (05:54 +0000)]
Merge "Added a icon for datausage noti in plugin" into tizen

6 years agoAdded a icon for datausage noti in plugin 98/134398/1
hyunuktak [Fri, 16 Jun 2017 07:56:49 +0000 (16:56 +0900)]
Added a icon for datausage noti in plugin

Change-Id: Ib6524cb938f0e5155951123cce092dff403701ab
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years ago[STC Manager] Added logic to add and remove iptable rule of restriction. 62/134362/1
Nishant Chaprana [Fri, 16 Jun 2017 06:30:46 +0000 (12:00 +0530)]
[STC Manager] Added logic to add and remove iptable rule of restriction.

Description: This patch adds logic to add and remove iptable rule of
applied restriction, when application starts and exit respectively.

Change-Id: I873183cbd94c94b4d4fc8987cdcea66d82aaa7e9
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years ago[STC Manager] Support set/get for total data usage(Tx + Rx) in restriction. 49/134149/3
Nishant Chaprana [Thu, 15 Jun 2017 04:10:04 +0000 (09:40 +0530)]
[STC Manager] Support set/get for total data usage(Tx + Rx) in restriction.

Description: This patch removes seperate data usage limits for Tx
and Rx data and uses total data limit for setting Tx and Rx limits.

Change-Id: I6882e936c9cb076dda548ef95a10e105071df767
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoMerge "Removed unwanted function send_net_restriction() and its related code." into...
taesub kim [Fri, 16 Jun 2017 04:23:51 +0000 (04:23 +0000)]
Merge "Removed unwanted function send_net_restriction() and its related code." into tizen

6 years agoMerge "Blocking incoming and outgoing traffic when specified limits are crosssed...
taesub kim [Fri, 16 Jun 2017 04:23:47 +0000 (04:23 +0000)]
Merge "Blocking incoming and outgoing traffic when specified limits are crosssed." into tizen

6 years agoMerge "Monitoring application wise background data usage." into tizen
taesub kim [Fri, 16 Jun 2017 04:23:30 +0000 (04:23 +0000)]
Merge "Monitoring application wise background data usage." into tizen

6 years agoMerge "Added a plugin for net popup" into tizen
Jaehyun Kim [Fri, 16 Jun 2017 02:30:40 +0000 (02:30 +0000)]
Merge "Added a plugin for net popup" into tizen

6 years agoAdded a plugin for net popup 18/131918/5
hyunuktak [Wed, 31 May 2017 08:05:26 +0000 (17:05 +0900)]
Added a plugin for net popup

Change-Id: I8ebc30530c1f819832f144fb78528193b48007f6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved unwanted function send_net_restriction() and its related code. 67/133767/1
Nishant Chaprana [Tue, 13 Jun 2017 09:12:11 +0000 (14:42 +0530)]
Removed unwanted function send_net_restriction() and its related code.

Change-Id: I68390c4d018778f6811fc1a9f2c0852b7aca1317
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoBlocking incoming and outgoing traffic when specified limits are crosssed. 65/133765/1
Nishant Chaprana [Tue, 13 Jun 2017 09:08:06 +0000 (14:38 +0530)]
Blocking incoming and outgoing traffic when specified limits are crosssed.

Change-Id: I39e872adf9980b457a2b4427ce06c5798ed88f14
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoMonitoring application wise background data usage. 14/133614/1
Nishant Chaprana [Fri, 9 Jun 2017 08:11:44 +0000 (13:41 +0530)]
Monitoring application wise background data usage.

Description: This patch updates logic to monitor application wise
background data usage.
When background data usage is notified, app_id will be appended with "_BACKGROUND".

Below is the test result performed using stc_test application.
=================================================================
 Main >> STC >> [Statistics] >> [Stats]
-----------------------------------------------------------------
 [  1] [Set] stats rule                                        >
 [  2] [Get] stats
 [  3] [Get] all stats
 [  4] [Get] total stats
 ---------------------------------------------------------------
 [ p ] Previous Menu
 [ m ] Show Menu
 [ q ] Quit
=================================================================
( 1354) >> 3
Success to set time interval
Success to request stats all info
( 1354) >> -----------------------------------------------------------------
App_id:   [org.tizen.browser]
Ifname:   []
Imsi:     [noneimsi]
Iftype:   [Undefined]
Received: [2182136]
Sent:     [102681]
Roaming:  [Unknown]
Protocol: [Unknown]
Process:  [Unknown]
From:     [0]
To:       [0]
-----------------------------------------------------------------
-----------------------------------------------------------------
App_id:   [org.tizen.browser_BACKGROUND]
Ifname:   []
Imsi:     [noneimsi]
Iftype:   [Undefined]
Received: [1872]
Sent:     [1872]
Roaming:  [Unknown]
Protocol: [Unknown]
Process:  [Unknown]
From:     [0]
To:       [0]
-----------------------------------------------------------------

Change-Id: Id8175494e559790e2959e5a6e7164de24e00a548
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoRemoved unused preset restrictions list. 85/132585/1
Nishant Chaprana [Wed, 7 Jun 2017 04:46:46 +0000 (10:16 +0530)]
Removed unused preset restrictions list.

Change-Id: I8b2c4fab85db417a1831668c6172924d3e9452b5
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoRemoved unused StatusChanged signal from dbus interface xml 93/130493/1 accepted/tizen/unified/20170602.154228 submit/tizen/20170601.042236
Nishant Chaprana [Mon, 22 May 2017 11:36:42 +0000 (17:06 +0530)]
Removed unused StatusChanged signal from dbus interface xml

Change-Id: Ic944f680f1a9c589abf29fdd327a6930a6a84214
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded RestrictionThresholdCrossed signal on restriction interface. 92/130492/1
Nishant Chaprana [Mon, 22 May 2017 11:31:09 +0000 (17:01 +0530)]
Added RestrictionThresholdCrossed signal on restriction interface.

Change-Id: Id061a20270d6859a946ed1cba07d3abf512e884a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdded WarnThresholdCrossed signal on restriction interface. 91/130491/1
Nishant Chaprana [Mon, 22 May 2017 11:29:59 +0000 (16:59 +0530)]
Added WarnThresholdCrossed signal on restriction interface.

Change-Id: I0cee09ac57abe21b64454968ef3e7644f12fe7dc
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoExtract send_limit, rcv_limit, rcv_warn_limit and send_warn_limit as int64 81/130381/3
Nishant Chaprana [Mon, 22 May 2017 11:28:35 +0000 (16:58 +0530)]
Extract send_limit, rcv_limit, rcv_warn_limit and send_warn_limit as int64

Description: smart-traffic-control library sends limits as int64 but manager
was extracting these values as uint64, due to which values were not extracted
and limits were not updated.

Below is the error log:-

D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [rcv_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1024000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(207) > rcv_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [send_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1024000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(211) > send_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [rcv_warn_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1020000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(215) > rcv_warn_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [send_warn_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1020000]

Change-Id: I2e5ea475bc5545f631b7c74d208b2b1a27d41308
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoRemoved unreachable code 96/130396/1 accepted/tizen/unified/20170531.082343 submit/tizen/20170522.074618
hyunuktak [Mon, 22 May 2017 07:32:41 +0000 (16:32 +0900)]
Removed unreachable code

Change-Id: Iac675e67967222ab7626b8ab0633a330685d8bf0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed some svaces for unreachable 06/130106/1 accepted/tizen/unified/20170519.200204 submit/tizen/20170519.072940 tizen_4.0.m1_release
hyunuktak [Fri, 19 May 2017 06:45:06 +0000 (15:45 +0900)]
Fixed some svaces for unreachable

Change-Id: I2612fe4c4fa063d36fca79ad7a423b27b3fbad63
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed a svace for 212550 34/129534/1 accepted/tizen/unified/20170517.125458 submit/tizen/20170517.032711
hyunuktak [Wed, 17 May 2017 01:13:33 +0000 (10:13 +0900)]
Fixed a svace for 212550

Change-Id: I8d0fc13c0ac76e477393079fd5533d4f2de8db6c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoModified the privilege to network.get from network.stc 33/129533/1
hyunuktak [Wed, 17 May 2017 01:03:39 +0000 (10:03 +0900)]
Modified the privilege to network.get from network.stc

Change-Id: I829eb23e7eaaa993c544e902b6636082addd6f21
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded init service method 46/128946/2 accepted/tizen/unified/20170512.165706 submit/tizen/20170512.071139
hyunuktak [Fri, 12 May 2017 06:37:56 +0000 (15:37 +0900)]
Added init service method

Change-Id: I4afe3bf1c75119e97f3e27264db1239d44a8bbbf
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoModified properly data type 50/128750/1 accepted/tizen/unified/20170512.023827 submit/tizen/20170512.003940
hyunuktak [Thu, 11 May 2017 07:59:18 +0000 (16:59 +0900)]
Modified properly data type

Change-Id: Ie0e775abb7c349847aa5d43fce211c0b60b6c8d1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed some svace issues 05/128505/1 accepted/tizen/unified/20170510.183716 submit/tizen/20170510.102153
hyunuktak [Wed, 10 May 2017 08:23:58 +0000 (17:23 +0900)]
Fixed some svace issues

Change-Id: I1e02c3655b3601b6b855c33f5660940c696595c6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
7 years agoInitialize smart traffic control manager package 55/127455/1 accepted/tizen/unified/20170502.041156 submit/tizen/20170502.020209
hyunuktak [Thu, 27 Apr 2017 09:37:48 +0000 (18:37 +0900)]
Initialize smart traffic control manager package

Change-Id: I099c864838aabaf85ee7f6a41742d78f57910580
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 4 Jan 2017 04:03:12 +0000 (20:03 -0800)]
Initial empty repository