platform/core/system/batterymonitor.git
4 years agoReduce static array size 17/243617/1
Dewal Agarwal [Tue, 8 Sep 2020 12:12:54 +0000 (17:42 +0530)]
Reduce static array size

Change-Id: I7e3f9eb47cefbeed756a3c24968e19225a606967
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoFree memory if pthread create fails 58/243558/1
Dewal Agarwal [Tue, 23 Jun 2020 11:04:46 +0000 (16:34 +0530)]
Free memory if pthread create fails

Change-Id: Ic5dbe28b0ad4d1ee218831fa70a2d9bdc14bb4bf
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
(cherry picked from commit b403b7ab6b9e09a76bd116a216a95e40d62b83ba)

4 years agoChange CPU power param. to mA 77/242877/2 submit/tizen_5.5/20200903.062740
Dewal Agarwal [Tue, 1 Sep 2020 12:34:16 +0000 (18:04 +0530)]
Change CPU power param. to mA

Change-Id: Ib888e5e1c31b5ae1090a604b1cd024ecb7a7e9a0
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years ago[Non-ACR] Change API to get battery info directly 54/239254/2 accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200807.144750 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113312 submit/tizen_5.5/20200724.110739 submit/tizen_5.5/20200806.071428 submit/tizen_5.5_wearable_hotfix/20201026.184304
Abhishek Vijay [Thu, 23 Jul 2020 06:33:37 +0000 (12:03 +0530)]
[Non-ACR] Change API to get battery info directly

Change-Id: Ieb5cdcd3c70e8c241da1056f328ce40eb2724907
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoFix battery_info structure name 33/239133/1 accepted/tizen/5.5/unified/20200724.222754 submit/tizen_5.5/20200721.065743
Hyotaek Shim [Wed, 22 Jul 2020 01:52:55 +0000 (10:52 +0900)]
Fix battery_info structure name

(Before) struct battery_info
(After) struct device_battery_info

Change-Id: I9b8e4f9bb1c99ccca444cce9c54d0c02580b093e
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 22b20e3ad70f212112683797b286a6d2c127add6)

4 years agoRevert "Separate parameter file for TW3" 72/236872/1 accepted/tizen/5.5/unified/20200623.152247 submit/tizen_5.5/20200623.051032 submit/tizen_5.5/20200626.064930
Kichan Kwon [Tue, 23 Jun 2020 05:05:05 +0000 (14:05 +0900)]
Revert "Separate parameter file for TW3"

- This reverts commit 47a34ff11ed11f66d19aa4334348152303de1be0.

- MCD uses their own config file
- Revert this patch to prevent overwritng MCD config file

Change-Id: I628405a1c6c264f9709a25b228c8807be8e32f8e
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoFix to reduce overall dbus calls to get battery related information 34/236834/1 submit/tizen_5.5/20200622.125807 submit/tizen_5.5/20200623.044855
kamaljeet chauhan [Thu, 18 Jun 2020 11:48:37 +0000 (17:18 +0530)]
Fix to reduce overall dbus calls to get battery related information

Change-Id: Ic42c7e6633a457eb9f269d139e82c6745cd420a8
Signed-off-by: kamaljeet chauhan <kamal.jc@samsung.com>
4 years agoFix Memory Leak in AppStatus Callback Implementation 95/236595/1
Dewal Agarwal [Thu, 18 Jun 2020 06:57:56 +0000 (12:27 +0530)]
Fix Memory Leak in AppStatus Callback Implementation

- No more duplicate one-time used string for appid from GVariant
- Handle memory free in both positve and fail case scenarios

Change-Id: Iebc1bcf92386815fd1f57e68c4516788ad05471e
(cherry picked from commit 6ecad1072fe0d284da5f5741859177813fed3be6)

4 years agoPrevent memory leak in fail case 72/236072/4
Dewal Agarwal [Fri, 12 Jun 2020 11:39:05 +0000 (17:09 +0530)]
Prevent memory leak in fail case

Change-Id: If28ad0e5e976cf57376bfe31cedce561867bc76b
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoRemove dynamic allocation 70/236170/1
Dewal Agarwal [Fri, 5 Jun 2020 10:47:00 +0000 (16:17 +0530)]
Remove dynamic allocation

Change-Id: I9895c2b81d9e667205840c72eadac20ad10d9ffb
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "[Non-ACR] adding dependency(telephony daemon)" into tizen_5.5
Abhishek Vijay [Wed, 10 Jun 2020 07:09:47 +0000 (07:09 +0000)]
Merge "[Non-ACR] adding dependency(telephony daemon)" into tizen_5.5

4 years agoUncomment misc field 16/235816/1
Dewal Agarwal [Thu, 4 Jun 2020 07:15:51 +0000 (12:45 +0530)]
Uncomment misc field

Change-Id: I8fbbe86b0ab7d09ec9deec2052928c04058fd3c2
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
(cherry picked from commit 311037fd551f2a674d1e4a5809fad0f15e876d7d)

4 years ago[Non-ACR] adding dependency(telephony daemon) 70/235770/1
Abhishek Vijay [Tue, 9 Jun 2020 13:19:05 +0000 (18:49 +0530)]
[Non-ACR] adding dependency(telephony daemon)

Change-Id: Iec1a101637721b4dc4e0829d742cc3c6d3a6d4c1
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoSeparate parameter file for TW3 65/234565/4
Kichan Kwon [Wed, 27 May 2020 06:36:20 +0000 (15:36 +0900)]
Separate parameter file for TW3

- Read model_name from model-config
- Link bm_power_profile_params_MODEL.json
- If there is no MODEL.json file, use dummy.json

- If other device has a plan to use batterymonitor,
  measure their own parameter and make new package

Change-Id: Iffb00d4ef8aab80afe9b9c3be662d50823368200
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUpdate power profile parameters for TW3 94/234494/1
Kichan Kwon [Thu, 26 Mar 2020 02:37:41 +0000 (11:37 +0900)]
Update power profile parameters for TW3

- Parameters of disabled plugins are set to 0

Change-Id: I5ca35d14858e9af22cb9ca22a0b61d31b7f4a74c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Detach pthread after using it" into tizen_5.5 accepted/tizen/5.5/unified/20200526.224045 submit/tizen_5.5/20200526.005048
Kunhoon Baik [Tue, 26 May 2020 00:47:42 +0000 (00:47 +0000)]
Merge "Detach pthread after using it" into tizen_5.5

4 years agoDetach pthread after using it 77/234277/3
Kichan Kwon [Mon, 25 May 2020 03:12:37 +0000 (12:12 +0900)]
Detach pthread after using it

Change-Id: Id15d3b1943c95c669e2a44962d4cca23d6e55790
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "[Non-ACR][Batterymonitor] BT scan initialization modified" into tizen_5.5
Randeep Singh [Tue, 26 May 2020 00:36:33 +0000 (00:36 +0000)]
Merge "[Non-ACR][Batterymonitor] BT scan initialization modified" into tizen_5.5

4 years ago[Non-ACR][Batterymonitor] BT scan initialization modified 48/234248/1
kamaljeet chauhan [Sun, 24 May 2020 15:25:05 +0000 (20:55 +0530)]
[Non-ACR][Batterymonitor] BT scan initialization modified

Change-Id: I5f7e0bc81900396c8f2b92067be4b7eef2440017
Signed-off-by: kamaljeet chauhan <kamal.jc@samsung.com>
4 years agoNo more duplicate one-time used string from GVariant 55/234055/1
Kichan Kwon [Thu, 21 May 2020 08:54:13 +0000 (17:54 +0900)]
No more duplicate one-time used string from GVariant

Change-Id: Ie7aea4e8302c5f159afa13caef14c2f59c5d65f3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years ago[Non-ACR] added events & states for modem power 10/233710/7 accepted/tizen/5.5/unified/20200521.163211 submit/tizen_5.5/20200521.023747
Randeep Singh [Mon, 18 May 2020 09:59:38 +0000 (15:29 +0530)]
[Non-ACR] added events & states for modem power

Change-Id: Ife5db285499536a2719a91ba80182107303ae2eb
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
4 years ago[Non-ACR] add modem power state listener 54/233554/5
Abhishek Vijay [Fri, 15 May 2020 09:17:02 +0000 (14:47 +0530)]
[Non-ACR] add modem power state listener

Change-Id: I99664719e69106b8d5a556b89a8818f5ef180bf9

4 years agoModification in Listeners initialization 19/233619/1 accepted/tizen/5.5/unified/20200518.160950 submit/tizen_5.5/20200517.160518
kamaljeet chauhan [Sun, 17 May 2020 12:51:19 +0000 (18:21 +0530)]
Modification in Listeners initialization

Change-Id: I2be142cfc3945456b2fd1269f14ab7e953cae2d1
Signed-off-by: kamaljeet chauhan <kamal.jc@samsung.com>
4 years agoAdd wr(wakereason) tag 18/233518/2
Dewal Agarwal [Fri, 15 May 2020 06:47:12 +0000 (12:17 +0530)]
Add wr(wakereason) tag

Change-Id: I9db5835b3748d534ddc6a4c133bc2fe599bf1831
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoChange print order 43/233443/1 accepted/tizen/5.5/unified/20200514.230351 submit/tizen_5.5/20200514.170112
Dewal Agarwal [Thu, 14 May 2020 16:54:42 +0000 (22:24 +0530)]
Change print order

Change-Id: I3a089cf34369cbe7a73debd10868d719b7f28f86
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoFix: HSP sequence 25/233425/1
Dewal Agarwal [Thu, 14 May 2020 12:58:01 +0000 (18:28 +0530)]
Fix: HSP sequence

Change-Id: I931a103bb6cc86974d2578e86f17132017ecf887
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoDumpsys Tag for sleep/wakeup 55/233355/1
Dewal Agarwal [Thu, 14 May 2020 06:20:57 +0000 (11:50 +0530)]
Dumpsys Tag for sleep/wakeup

Change-Id: I350eec79af637922f27e3b4d74057daee19283b6
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoAC plug type for last charge 46/233346/2
Dewal Agarwal [Thu, 14 May 2020 05:48:04 +0000 (11:18 +0530)]
AC plug type for last charge

Change-Id: Ifff27e031c8cabd505e67eda0958cc5ae2572a99
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoEvents related to Application status ,power lock and sleep/wakeup added 99/232899/5 accepted/tizen/5.5/unified/20200514.032145 submit/tizen_5.5/20200513.145941
kamaljeet chauhan [Thu, 7 May 2020 16:49:19 +0000 (22:19 +0530)]
Events related to Application status ,power lock and sleep/wakeup added

Change-Id: I49f2da929ba518fd27d0a563ad140b912e4eb8e5
Signed-off-by: kamaljeet chauhan <kamal.jc@samsung.com>
4 years agoMerge "Integrate bm_atm_free" into tizen_5.5 accepted/tizen/5.5/unified/20200513.143940 submit/tizen_5.5/20200513.051042
Randeep Singh [Wed, 13 May 2020 05:08:20 +0000 (05:08 +0000)]
Merge "Integrate bm_atm_free" into tizen_5.5

4 years agoSVACE Fix 98/233098/1 submit/tizen_5.5/20200512.104717 submit/tizen_5.5/20200513.042906
Dewal Agarwal [Tue, 12 May 2020 07:00:10 +0000 (12:30 +0530)]
SVACE Fix

Change-Id: If00336758a96a6a4efd5bf0f732c4985de29c14d
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoadded check for missing resource 37/233037/1
Randeep Singh [Mon, 11 May 2020 12:35:08 +0000 (18:05 +0530)]
added check for missing resource

Change-Id: I5388e108da0850600c547ecf7d77d969bff528aa
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
4 years agoIntegrate bm_atm_free 61/232961/1
Kichan Kwon [Mon, 11 May 2020 02:12:15 +0000 (11:12 +0900)]
Integrate bm_atm_free

- st1_free and st2_free are same
- Now, st2_free isn't used
- So, remove one to increase function coverage

Change-Id: Id0cddd8099f3ed0051d30844242ba179df6bb972
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoNo more remove the ATM node of BLE usage via SAP 82/232882/1 accepted/tizen/5.5/unified/20200508.071413 submit/tizen_5.5/20200508.064108 submit/tizen_5.5/20200508.071207
Kichan Kwon [Fri, 8 May 2020 05:50:21 +0000 (14:50 +0900)]
No more remove the ATM node of BLE usage via SAP

- It was removed to prevent considering it as app usage
- However, it doesn't be considered without removing it

Change-Id: I0d210fed851ba2005ddfd22c2989fc47cf4e8d8b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUpdate CPU usage checker configuration 73/232573/3
Kichan Kwon [Wed, 6 May 2020 11:02:45 +0000 (20:02 +0900)]
Update CPU usage checker configuration

Change-Id: I03d5cded93a8113d1cee47aac9ca0783856e2f10
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUpdate CPU idle model 72/232572/3
Kichan Kwon [Wed, 6 May 2020 10:54:02 +0000 (19:54 +0900)]
Update CPU idle model

- Reset CPU idle counter on busy
- Threshold variance policy is changed
  - On idle, decrease threshold with variance
  - Initialize after idle accept count times

Change-Id: Ifdb04013689926e7cda512dbd1590817376b28bd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoPrevent mem leak upon return 24/232524/1 accepted/tizen/5.5/unified/20200507.152451 submit/tizen_5.5/20200506.062626
Dewal Agarwal [Wed, 6 May 2020 06:11:57 +0000 (11:41 +0530)]
Prevent mem leak upon return

Change-Id: I1f2c10c47c619d756de7e1282a132defc2159f62
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoBattery Last Charge time 26/232426/2 accepted/tizen/5.5/unified/20200506.125023 submit/tizen_5.5/20200504.124600
Dewal Agarwal [Mon, 4 May 2020 11:50:06 +0000 (17:20 +0530)]
Battery Last Charge time

Change-Id: I4de8f8bd9897c2e7c61f59037d0643c1f168d81a
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoCorrect code align 43/232343/1 accepted/tizen/5.5/unified/20200504.031611 submit/tizen_5.5/20200501.110700
Dewal Agarwal [Fri, 1 May 2020 10:44:44 +0000 (16:14 +0530)]
Correct code align

Change-Id: Ib17fabd11b5c53daaa3faabd68c22a91dfe3ffc9
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoFix memory leak 66/232266/1 submit/tizen_5.5/20200501.043834
Kichan Kwon [Wed, 29 Apr 2020 10:24:08 +0000 (19:24 +0900)]
Fix memory leak

Change-Id: I55e40606d05d0231c3e4db8abfcf95ce1d413ff7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoDon't allocate dynamic memory for app/res usage 65/232265/1
Kichan Kwon [Wed, 29 Apr 2020 09:54:20 +0000 (18:54 +0900)]
Don't allocate dynamic memory for app/res usage

- We need to free these variables below
  - app_usage->AppId
  - res_usage->ResourceId
- But, if they are freed on usage_free function,
  crash occurs because some code try to free
  without dynamic memory allocation
- Not to use usage_free function, declare without
  dynamic memory allocation and don't free it

Change-Id: I777f8408dcbc64da173f3edcf20d30a9aa932ad0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoCorrect AppId duplication 24/232224/1 accepted/tizen/5.5/unified/20200430.133049 submit/tizen_5.5/20200429.065847
Dewal Agarwal [Wed, 29 Apr 2020 06:34:08 +0000 (12:04 +0530)]
Correct AppId duplication

Change-Id: I8218a4af0436d2ba1743d321a647a0eef8859a2f
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoCorrect for last charge in runtime 83/232083/1 accepted/tizen/5.5/unified/20200428.222940 submit/tizen_5.5/20200428.093936
Dewal Agarwal [Tue, 28 Apr 2020 06:30:26 +0000 (12:00 +0530)]
Correct for last charge in runtime

Change-Id: I53df84feb058e42f22aca230c1357acabd25966e
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoCorrect rx & tx time 09/232009/1 accepted/tizen/5.5/unified/20200428.014328 submit/tizen_5.5/20200427.091705
Dewal Agarwal [Mon, 27 Apr 2020 09:12:09 +0000 (14:42 +0530)]
Correct rx & tx time

Change-Id: I608992436db3a20469848a33c60f4a247d005ca2
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoChnage usage to mah 81/231981/1 accepted/tizen/5.5/unified/20200427.221806 submit/tizen_5.5/20200427.061744
Dewal Agarwal [Mon, 27 Apr 2020 06:11:31 +0000 (11:41 +0530)]
Chnage usage to mah

Change-Id: I513b1fb7aabdd3c192f89898ab23e50517c73082
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "Add Base System Battery Usage Dump" into tizen_5.5 accepted/tizen/5.5/unified/20200427.221758 submit/tizen_5.5/20200427.040810
Randeep Singh [Mon, 27 Apr 2020 04:06:48 +0000 (04:06 +0000)]
Merge "Add Base System Battery Usage Dump" into tizen_5.5

4 years agoAdd Base System Battery Usage Dump 84/231784/1
Dewal Agarwal [Fri, 24 Apr 2020 06:39:20 +0000 (12:09 +0530)]
Add Base System Battery Usage Dump

Change-Id: I8c2d97b864393d34293a4f44391b8c15fcfcbc8c
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "Record System base usage" into tizen_5.5 accepted/tizen/5.5/unified/20200424.141722 submit/tizen_5.5/20200423.131508
Randeep Singh [Thu, 23 Apr 2020 12:24:56 +0000 (12:24 +0000)]
Merge "Record System base usage" into tizen_5.5

4 years agoDump BT/Wi-Fi usage as bytes per minute 29/231329/2 accepted/tizen/5.5/unified/20200422.123251 submit/tizen_5.5/20200421.092112
Kichan Kwon [Tue, 21 Apr 2020 07:23:38 +0000 (16:23 +0900)]
Dump BT/Wi-Fi usage as bytes per minute

- In addition, check period parameters to prevent divide by zero

Change-Id: I6b50f755961418b2eb63bcec6d063c4723f3067b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRecord System base usage 55/231255/1
Dewal Agarwal [Mon, 20 Apr 2020 13:22:25 +0000 (18:52 +0530)]
Record System base usage

Change-Id: Ib62082b047e4a2d39fa2b3e2bfad6e6019ce1e10
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "Correct log time wrt config param" into tizen_5.5 accepted/tizen/5.5/unified/20200421.150500 submit/tizen_5.5/20200420.114038
Randeep Singh [Mon, 20 Apr 2020 11:31:52 +0000 (11:31 +0000)]
Merge "Correct log time wrt config param" into tizen_5.5

4 years agoMerge "Remove old capi code" into tizen_5.5
Randeep Singh [Mon, 20 Apr 2020 07:50:10 +0000 (07:50 +0000)]
Merge "Remove old capi code" into tizen_5.5

4 years agoMerge "[Non ACR] Minimizing logs & source alignment" into tizen_5.5
Randeep Singh [Mon, 20 Apr 2020 07:49:05 +0000 (07:49 +0000)]
Merge "[Non ACR] Minimizing logs & source alignment" into tizen_5.5

4 years ago[Non ACR] Minimizing logs & source alignment 11/231211/4
Abhishek Vijay [Mon, 20 Apr 2020 07:11:34 +0000 (12:41 +0530)]
[Non ACR] Minimizing logs & source alignment

Change-Id: I8b1e1d46ed6189915bbb260d314b2db12833bb2f
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoCorrect log time wrt config param 09/231209/1
Dewal Agarwal [Mon, 20 Apr 2020 06:57:14 +0000 (12:27 +0530)]
Correct log time wrt config param

Change-Id: I8f89374553c2725886bf4442fc0e62a501f9b496
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoRemove old capi code 04/231204/2
Dewal Agarwal [Mon, 20 Apr 2020 05:39:58 +0000 (11:09 +0530)]
Remove old capi code

Change-Id: I86f3e7a66f30fff87340bd92af9d6ae40291d4bc
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years ago[Non-ACR]update conf. for receving signals 97/231197/2
Abhishek Vijay [Mon, 20 Apr 2020 05:08:19 +0000 (10:38 +0530)]
[Non-ACR]update conf. for receving signals

Change-Id: I36acddf4fa8b984fa34ff191c76bb6827ad072a2
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoMerge "Prevent SQL Injection" into tizen_5.5 accepted/tizen/5.5/unified/20200420.142751 submit/tizen_5.5/20200418.071559 submit/tizen_5.5/20200420.051245
Randeep Singh [Sat, 18 Apr 2020 06:58:56 +0000 (06:58 +0000)]
Merge "Prevent SQL Injection" into tizen_5.5

4 years agoPrevent SQL Injection 55/231155/1
Dewal Agarwal [Fri, 17 Apr 2020 15:47:22 +0000 (21:17 +0530)]
Prevent SQL Injection

Change-Id: I4ce01867ed3117507761b136fe566eaaeef4660f
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoDeny D-Bus message only having battery monitor's interface 50/231150/1 accepted/tizen/5.5/unified/20200420.142830 submit/tizen_5.5/20200417.121935
Kichan Kwon [Fri, 17 Apr 2020 12:05:43 +0000 (21:05 +0900)]
Deny D-Bus message only having battery monitor's interface

- Because different receiver can have same D-Bus ID,
  other process having same ID with battery monitor
  can be rejected
- To prevent this situation, we have to limit the policy
  to apply only for battery monitor's D-Bus message

Change-Id: If702b07cac89bbd77cc0dd9da80e3ee94bd4fa82
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRemove busy wait 43/231143/3
Kichan Kwon [Fri, 17 Apr 2020 11:05:41 +0000 (20:05 +0900)]
Remove busy wait

- In addition, remove ENTER/EXIT logs from data collection functions

Change-Id: Idc45299c0dc34dc338b7c6d3cd8f437496c34989
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Allow modifying data collection parameters via config file" into tizen_5.5
Abhishek Vijay [Fri, 17 Apr 2020 10:36:17 +0000 (10:36 +0000)]
Merge "Allow modifying data collection parameters via config file" into tizen_5.5

4 years agoMerge "Try to handle plugin data when CPU is idle" into tizen_5.5
Abhishek Vijay [Fri, 17 Apr 2020 10:36:09 +0000 (10:36 +0000)]
Merge "Try to handle plugin data when CPU is idle" into tizen_5.5

4 years agoAllow modifying data collection parameters via config file 98/231098/1
Kichan Kwon [Fri, 17 Apr 2020 07:14:49 +0000 (16:14 +0900)]
Allow modifying data collection parameters via config file

Change-Id: Ia88df720167ca5cd50416880f50bc1e085aff1c0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoTry to handle plugin data when CPU is idle 03/230203/4
Kichan Kwon [Wed, 8 Apr 2020 11:24:40 +0000 (20:24 +0900)]
Try to handle plugin data when CPU is idle

- Separate getting plugin data with calculating and DB restoring
- Period : 3 minutes -> 10 minutes
- Check whether CPU is idle before working
  - If CPU is busy, try on next time

Change-Id: I5c27880ad01c0f1142db4d1b804a4088770f95d5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Return record not found for AppId" into tizen_5.5 accepted/tizen/5.5/unified/20200417.152912 submit/tizen_5.5/20200416.055720
Randeep Singh [Thu, 16 Apr 2020 05:47:34 +0000 (05:47 +0000)]
Merge "Return record not found for AppId" into tizen_5.5

4 years ago[Non-ACR] Removing dead code 97/230697/1 accepted/tizen/5.5/unified/20200414.140154 submit/tizen_5.5/20200414.060615
Abhishek Vijay [Mon, 13 Apr 2020 11:26:04 +0000 (16:56 +0530)]
[Non-ACR] Removing dead code

Change-Id: I52e2b979ad6e89830376f54e0b77534dc9a91202
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoNo more convert Wi-Fi time to seconds 08/230508/3 accepted/tizen/5.5/unified/20200413.002434 submit/tizen_5.5/20200410.102835
Kichan Kwon [Fri, 10 Apr 2020 07:10:28 +0000 (16:10 +0900)]
No more convert Wi-Fi time to seconds

- start/endTime and scanTime are already seconds

Change-Id: I1f68c7c94b155ade90a782a862084532d83f990a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoModify Wi-Fi Power Model 70/229370/4
Dewal Agarwal [Tue, 31 Mar 2020 11:23:46 +0000 (16:53 +0530)]
Modify Wi-Fi Power Model
- Based scan time not included in rx and tx time

Change-Id: I1eb88067802074b177cd5ab2be1c6b67c4cba367
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "Coding rules related fixes incorporated" into tizen_5.5 submit/tizen_5.5/20200410.044846
Randeep Singh [Thu, 9 Apr 2020 04:37:54 +0000 (04:37 +0000)]
Merge "Coding rules related fixes incorporated" into tizen_5.5

4 years ago[Non-ACR] Correcting string name 09/230009/3
Abhishek Vijay [Tue, 7 Apr 2020 06:18:12 +0000 (11:48 +0530)]
[Non-ACR] Correcting string name

Change-Id: I79bd4acdfc7e70cd339b91cd2ed921e1c3bcde96
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years ago[Non-ACR]fixing memory issue 98/229998/2
Abhishek Vijay [Tue, 7 Apr 2020 05:39:36 +0000 (11:09 +0530)]
[Non-ACR]fixing memory issue

Change-Id: I333b77fe9f6cc6ca0f8ffd95802848045b1cd0d9
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoConvert BT time to seconds 94/229694/2
Kichan Kwon [Fri, 3 Apr 2020 01:46:05 +0000 (10:46 +0900)]
Convert BT time to seconds

- BT plugin is changed to use milliseconds

Change-Id: Id8545baf16b4318df422ce0c5359bdaf289d856b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoCode & Memory Fix 92/229492/1 accepted/tizen/5.5/unified/20200402.163431 submit/tizen_5.5/20200401.094620
Dewal Agarwal [Wed, 1 Apr 2020 09:41:01 +0000 (15:11 +0530)]
Code & Memory Fix

Change-Id: I128b416daa0098be2802880583b91697e5044185
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoMerge "Add Battery Screen On/Off stats - Add "misc" field" into tizen_5.5
Randeep Singh [Wed, 1 Apr 2020 09:21:27 +0000 (09:21 +0000)]
Merge "Add Battery Screen On/Off stats - Add "misc" field" into tizen_5.5

4 years agoMerge "Fix Memory Leak" into tizen_5.5
Randeep Singh [Wed, 1 Apr 2020 09:21:07 +0000 (09:21 +0000)]
Merge "Fix Memory Leak" into tizen_5.5

4 years agoRevert: Modify Wi-Fi Power Model 26/229426/1
Dewal Agarwal [Wed, 1 Apr 2020 04:42:40 +0000 (10:12 +0530)]
Revert: Modify Wi-Fi Power Model

Change-Id: Icddd756f91f77c1225103ae313d680aafa8ec25b
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoModify Wi-Fi Power Model
Dewal Agarwal [Tue, 31 Mar 2020 11:23:46 +0000 (16:53 +0530)]
Modify Wi-Fi Power Model

Change-Id: I1eb88067802074b177cd5ab2be1c6b67c4cba367
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoReturn record not found for AppId 45/229345/1
Dewal Agarwal [Tue, 31 Mar 2020 08:03:59 +0000 (13:33 +0530)]
Return record not found for AppId

Change-Id: Iad43957b538efa33ab434578eacb6e550e0b8700
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoFix Memory Leak 44/229144/3
Dewal Agarwal [Mon, 30 Mar 2020 05:09:41 +0000 (10:39 +0530)]
Fix Memory Leak

Change-Id: Iba2001aa96ed199131cb1b29110cac65d8be42a4
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoChange power profile parameters to double 16/228816/2
Kichan Kwon [Thu, 26 Mar 2020 01:33:46 +0000 (10:33 +0900)]
Change power profile parameters to double

- Because real parameters are floating point

Change-Id: Id49cfa3b5601bad8d26287ac842b85c0d89c56e4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Revert "Revert "[Non-ACR] Fixing memory issues""" into tizen_5.5
Randeep Singh [Tue, 31 Mar 2020 05:04:21 +0000 (05:04 +0000)]
Merge "Revert "Revert "[Non-ACR] Fixing memory issues""" into tizen_5.5

4 years agoRevert "Revert "[Non-ACR] Fixing memory issues"" 03/229303/1
Randeep Singh [Tue, 31 Mar 2020 05:04:05 +0000 (05:04 +0000)]
Revert "Revert "[Non-ACR] Fixing memory issues""

This reverts commit 392d624ddab8000e85754ba034db5a09d6148001.

Change-Id: Ib15d08db1ccdb93f0f6757b07d094e358a5150d8

4 years agoMerge "Revert "[Non-ACR] Fixing memory issues"" into tizen_5.5
Randeep Singh [Tue, 31 Mar 2020 04:55:24 +0000 (04:55 +0000)]
Merge "Revert "[Non-ACR] Fixing memory issues"" into tizen_5.5

4 years agoRevert "[Non-ACR] Fixing memory issues" 00/229300/1
Randeep Singh [Tue, 31 Mar 2020 04:55:07 +0000 (04:55 +0000)]
Revert "[Non-ACR] Fixing memory issues"

This reverts commit f23e878c8f287ccc7deb738e0ecd7e9dad4c6d84.

Change-Id: I12833216f68deafbb9f9c485f8ce41b48a3e6f8e

4 years agoMerge "[Non-ACR] Fixing memory issues" into tizen_5.5
Randeep Singh [Tue, 31 Mar 2020 04:29:33 +0000 (04:29 +0000)]
Merge "[Non-ACR] Fixing memory issues" into tizen_5.5

4 years agoMerge "Modify BT Power Model" into tizen_5.5 accepted/tizen/5.5/unified/20200331.180155 submit/tizen_5.5/20200331.041315 submit/tizen_5.5/20200331.041325
Randeep Singh [Tue, 31 Mar 2020 04:10:31 +0000 (04:10 +0000)]
Merge "Modify BT Power Model" into tizen_5.5

4 years ago[Non-ACR] Fixing memory issues 48/229148/3
Abhishek Vijay [Mon, 30 Mar 2020 05:27:00 +0000 (10:57 +0530)]
[Non-ACR] Fixing memory issues

Change-Id: Id05f44d81b41e68cb3043235106b990e08bc005f
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoModify BT Power Model 14/228514/2
Dewal Agarwal [Mon, 23 Mar 2020 10:54:15 +0000 (16:24 +0530)]
Modify BT Power Model

Change-Id: I26180b4f100fc5e979f60c104a148503ed1e9587

4 years agoAdd Battery Screen On/Off stats 61/228661/1
Dewal Agarwal [Tue, 24 Mar 2020 11:44:59 +0000 (17:14 +0530)]
Add Battery Screen On/Off stats
- Add "misc" field

Change-Id: I1ada9dc8c350a90b2e46d7ecdcab306120257c4c

4 years ago[Non-ACR] add service restart params 41/228641/1 accepted/tizen/5.5/unified/20200325.144903 submit/tizen_5.5/20200324.113101
Amogh Gaur [Thu, 12 Mar 2020 12:18:03 +0000 (17:48 +0530)]
[Non-ACR] add service restart params

Change-Id: I4ce6003d765aad4c1ac507a69b2d7dc895af0b23
Signed-off-by: Amogh Gaur <amogh.gaur@samsung.com>
4 years ago[Non-ACR] Fixing build error for x86_64 & aarch64 38/228638/2
Abhishek Vijay [Tue, 24 Mar 2020 09:08:09 +0000 (14:38 +0530)]
[Non-ACR] Fixing build error for x86_64 & aarch64

Change-Id: I965863040393a0271dd8507e290dedf21c37f39a
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
4 years agoCoding rules related fixes incorporated 00/228200/1
kamaljeet chauhan [Wed, 11 Mar 2020 13:00:06 +0000 (18:30 +0530)]
Coding rules related fixes incorporated

Change-Id: Ic2767ffea72412318b0f35c1a6a3b91818d0f304
Signed-off-by: kamaljeet chauhan <kamal.jc@samsung.com>
(cherry picked from commit c32f21846eab2c97c7848b00c5d3ecbc626858b6)

4 years agoAdd Battery Capacity in Dump 48/227548/2 submit/tizen_5.5/20200324.065222
Dewal Agarwal [Thu, 12 Mar 2020 12:46:39 +0000 (18:16 +0530)]
Add Battery Capacity in Dump

Change-Id: I8b7038d2a35c106ec04378f15a5cefc6ca0124e6
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
4 years agoAdd CPU stats for Battery Dump 48/227948/2
Dewal Agarwal [Tue, 17 Mar 2020 10:00:06 +0000 (15:30 +0530)]
Add CPU stats for Battery Dump

Change-Id: Iaaf36bea45b830c4876892e948a859b8c76e0518

4 years agoAdd Battery Monitor Server Implememtation for New APIs 47/227947/1
Dewal Agarwal [Mon, 9 Mar 2020 08:15:20 +0000 (13:45 +0530)]
Add Battery Monitor Server Implememtation for New APIs

- Add start and stop time for queries
- Add Dbus interface for New APIs

Change-Id: I2b0df540811493ee7b45e5cbdda0493b5da43934

4 years agoMerge "Set the base error code as Tizen official value" into tizen_5.5 accepted/tizen/5.5/unified/20200312.234547 submit/tizen_5.5/20200311.114948
Randeep Singh [Wed, 11 Mar 2020 11:46:10 +0000 (11:46 +0000)]
Merge "Set the base error code as Tizen official value" into tizen_5.5

4 years agoMerge "Separate system Bluetooth usage from app usage" into tizen_5.5
Randeep Singh [Wed, 11 Mar 2020 11:45:59 +0000 (11:45 +0000)]
Merge "Separate system Bluetooth usage from app usage" into tizen_5.5

4 years agoMerge "Initialize optind before getopt" into tizen_5.5
Randeep Singh [Wed, 11 Mar 2020 11:45:50 +0000 (11:45 +0000)]
Merge "Initialize optind before getopt" into tizen_5.5

4 years agoSet the base error code as Tizen official value 70/227370/1
Kichan Kwon [Tue, 10 Mar 2020 01:37:27 +0000 (10:37 +0900)]
Set the base error code as Tizen official value

Change-Id: Ie7b2c9e6c1ae9e24451006e37c65519e35b967d0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
(cherry picked from commit 756843935a647998f6cd7e03872ce02e008730dd)