pmqos: Add new SetScenario method for pmqos dbus interface 12/240512/2
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Aug 2020 09:57:01 +0000 (18:57 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 7 Aug 2020 06:38:03 +0000 (15:38 +0900)
commit6c5032e3886c05880ec169eef0707fa507892865
tree7d08374b7085ef437cf58cfad6d2f48330f0143f
parenta6bf74920a269f150e4cb139e1f01b76171abc62
pmqos: Add new SetScenario method for pmqos dbus interface

When add new scenario to pmqos, it have to edit the code.
It is not extensible. In order to improve the extensiblity
without code changes, add new SetScenario method for pmqos dbus interface
as following: When need to add new scenario, just add new scenario info.
to scripts/pass-pmqos.conf (/etc/pass/pass-pmqos.conf) without any code
changes.

[Interface for new SetScenario method of pmqos dbus]
- dbus interface : org.tizen.system.pass.pmqos.SetScenario
- parameter 1: scenario name like AppLaunch
- parameter 2: duration time like 3000 means 3 second

Change-Id: I5ee8da4ec62a9cf1d55ea51f6c7fb8ca9ce7b9e7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/pass/gdbus-definition.h
scripts/pmqos-dbus.xml
src/pmqos/pmqos.c