add tizen-default-modes package accepted/tizen/unified/20200706.064226 submit/tizen/20200706.012610
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 6 Jul 2020 01:21:44 +0000 (10:21 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 6 Jul 2020 01:25:38 +0000 (10:25 +0900)
Change-Id: Idc8d86ed85d6550f763a5a6c1c3307b955d50bb7

22 files changed:
CMakeLists.txt
default-modes/CMakeLists.txt [new file with mode: 0644]
default-modes/tizen_airplane_mode.xml [new file with mode: 0644]
packaging/modes-plugins.spec
tests/mode/tizen_Power-Save_mode.xml [deleted file]
tests/mode/tizen_Quick-Panel_mode.xml [deleted file]
tests/mode/tizen_TESTPower-Save_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTQuick-Panel_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTWater-Lock_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTappLaunch_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTbtAudioConnect_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTbtOff_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTbtOn_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTdisplayBlock_mode.xml [new file with mode: 0644]
tests/mode/tizen_TESTwifi-on_mode.xml [new file with mode: 0644]
tests/mode/tizen_Water-Lock_mode.xml [deleted file]
tests/mode/tizen_appLaunch_mode.xml [deleted file]
tests/mode/tizen_btAudioConnect_mode.xml [deleted file]
tests/mode/tizen_btOff_mode.xml [deleted file]
tests/mode/tizen_btOn_mode.xml [deleted file]
tests/mode/tizen_displayBlock_mode.xml [deleted file]
tests/mode/tizen_wifi-on_mode.xml [deleted file]

index 446d003cceaf8166b031012cd965b3e658e45487..66839c1aab0e7235ffb1af129e8cb03a2fe62227 100644 (file)
@@ -35,4 +35,5 @@ ADD_SUBDIRECTORY(vconf)
 SET(WIFI_PLUGIN "modes-plugin-wifi")
 ADD_SUBDIRECTORY(wifi)
 
+ADD_SUBDIRECTORY(default-modes)
 ADD_SUBDIRECTORY(tests)
diff --git a/default-modes/CMakeLists.txt b/default-modes/CMakeLists.txt
new file mode 100644 (file)
index 0000000..360fb98
--- /dev/null
@@ -0,0 +1,2 @@
+FILE(GLOB MODE_SET *.xml)
+INSTALL(FILES ${MODE_SET} DESTINATION ${MODES_MODE_DEFAULT_DIR})
diff --git a/default-modes/tizen_airplane_mode.xml b/default-modes/tizen_airplane_mode.xml
new file mode 100644 (file)
index 0000000..352b425
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/airplane" name="airplane" type="normal">
+    <action rule="wifi.power">off</action>
+    <action rule="bluetooth.power">off</action>
+  </mode>
+</tizenModes>
index dc41490bc69628f4b433b376e25c420d7ffa56f4..c9de9a8d81c644fb7293a6d33eb7fed55af9e70f 100644 (file)
@@ -37,13 +37,21 @@ BuildRequires: lcov
 %description
 Plugin Libraries for Mode Supervisor
 
+%package -n tizen-default-modes
+Summary: Tizen Default Mode Set
+Group: System/Management
+Requires: %{name} = %{version}
+
+%description -n tizen-default-modes
+The tizen-default-modes package contains mode descriptions for tizen.
+
 %package unittests
 Summary: Test Programs for %{name}
 Group: System/Testing
 Requires: %{name} = %{version}
 
 %description unittests
-The %{name}-unittests pacakge contains programs for checking quality the %{name}.
+The %{name}-unittests package contains programs for checking quality the %{name}.
 
 %if 0%{?gcov:1}
 %package gcov
@@ -121,10 +129,14 @@ systemctl restart modes.service
 %{modes_ro_dir}/rule/*
 %license LICENSE.APLv2
 
+%files -n tizen-default-modes
+%manifest %{name}.manifest
+%{modes_ro_dir}/mode/tizen_airplane_mode.xml
+
 %files unittests
 %manifest %{name}.manifest
 %{modes_plugin_test_dir}/*
-%{modes_ro_dir}/mode/*.xml
+%{modes_ro_dir}/mode/*TEST*.xml
 %license LICENSE.APLv2
 
 %if 0%{?gcov:1}
diff --git a/tests/mode/tizen_Power-Save_mode.xml b/tests/mode/tizen_Power-Save_mode.xml
deleted file mode 100644 (file)
index c899143..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.Power-Save" name="Power-Save" type="normal">
-    <action rule="pkg.supportMode" restrict="lock">ULTRA_POWER_SAVING</action>
-    <action rule="wifi.power" restrict="lock">off</action>
-    <action rule="bluetooth.power" restrict="lock">off</action>
-    <action rule="display.brightness" restrict="lock">30</action>
-    <action rule="vconf.db.setting.sound.sound_on" restrict="lock">0</action>
-    <action rule="vconf.db.setting.sound.vibration_on" restrict="lock">0</action>
-    <action rule="vconf.db.location.setting.Usemylocation" restrict="lock">0</action>
-    <undo rule="vconf.db.setting.menuscreen.package_name" restrict="lock">org.tizen.homescreen-efl</undo>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_Quick-Panel_mode.xml b/tests/mode/tizen_Quick-Panel_mode.xml
deleted file mode 100644 (file)
index a50e3e9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.Quick-Panel" name="Quick-Panel" type="normal">
-    <action rule="wifi.power">on</action>
-    <action rule="vconf.db.setting.sound.sound_on">1</action>
-    <action rule="vconf.db.setting.sound.vibration_on">1</action>
-    <action rule="vconf.db.location.setting.Usemylocation">1</action>
-    <action rule="vconf.db.setting.auto_rotate_screen">1</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_TESTPower-Save_mode.xml b/tests/mode/tizen_TESTPower-Save_mode.xml
new file mode 100644 (file)
index 0000000..c899143
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.Power-Save" name="Power-Save" type="normal">
+    <action rule="pkg.supportMode" restrict="lock">ULTRA_POWER_SAVING</action>
+    <action rule="wifi.power" restrict="lock">off</action>
+    <action rule="bluetooth.power" restrict="lock">off</action>
+    <action rule="display.brightness" restrict="lock">30</action>
+    <action rule="vconf.db.setting.sound.sound_on" restrict="lock">0</action>
+    <action rule="vconf.db.setting.sound.vibration_on" restrict="lock">0</action>
+    <action rule="vconf.db.location.setting.Usemylocation" restrict="lock">0</action>
+    <undo rule="vconf.db.setting.menuscreen.package_name" restrict="lock">org.tizen.homescreen-efl</undo>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTQuick-Panel_mode.xml b/tests/mode/tizen_TESTQuick-Panel_mode.xml
new file mode 100644 (file)
index 0000000..a50e3e9
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.Quick-Panel" name="Quick-Panel" type="normal">
+    <action rule="wifi.power">on</action>
+    <action rule="vconf.db.setting.sound.sound_on">1</action>
+    <action rule="vconf.db.setting.sound.vibration_on">1</action>
+    <action rule="vconf.db.location.setting.Usemylocation">1</action>
+    <action rule="vconf.db.setting.auto_rotate_screen">1</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTWater-Lock_mode.xml b/tests/mode/tizen_TESTWater-Lock_mode.xml
new file mode 100644 (file)
index 0000000..2d73294
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.Water-Lock" name="Water-Lock" type="normal">
+    <action rule="vconf.db.setting.sound.sound_on" restrict="lock">false</action>
+    <action rule="vconf.db.setting.sound.vibration_on" restrict="lock">true</action>
+    <undo rule="media.player">/opt/usr/data/settings/Alarms/Alarms_on_call.ogg</undo>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTappLaunch_mode.xml b/tests/mode/tizen_TESTappLaunch_mode.xml
new file mode 100644 (file)
index 0000000..f43773e
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.EssentialCheck" name="EssentialCheck" type="normal">
+    <action rule="app.launch" restrict="essential">org.tizen.modesupervisor</action>
+    <action rule="wifi.power">off</action>
+    <action rule="bluetooth.power">off</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTbtAudioConnect_mode.xml b/tests/mode/tizen_TESTbtAudioConnect_mode.xml
new file mode 100644 (file)
index 0000000..add9cfb
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.btAudioConnect" name="btAudioConnect" type="normal">
+    <action rule="bluetooth.power" restrict="lock">on</action>
+    <action rule="bluetooth.audioConnect" restrict="lock">08:AE:D6:5E:AE:16</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTbtOff_mode.xml b/tests/mode/tizen_TESTbtOff_mode.xml
new file mode 100644 (file)
index 0000000..b20936d
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.btOff" name="btOff" type="normal">
+    <action rule="bluetooth.power" restrict="lock">off</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTbtOn_mode.xml b/tests/mode/tizen_TESTbtOn_mode.xml
new file mode 100644 (file)
index 0000000..4f7396d
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.btOn" name="btOn" type="normal">
+    <action rule="bluetooth.power" restrict="lock">on</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTdisplayBlock_mode.xml b/tests/mode/tizen_TESTdisplayBlock_mode.xml
new file mode 100644 (file)
index 0000000..8d6f7d9
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.displayBlock" name="displayBlock" type="normal">
+    <action rule="display.timeout" restrict="lock">ALWAYS_ON</action>
+    <action rule="display.denyPalmTouch" restrict="lock">on</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_TESTwifi-on_mode.xml b/tests/mode/tizen_TESTwifi-on_mode.xml
new file mode 100644 (file)
index 0000000..2120907
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<tizenModes xmlns="http://www.tizen.org" version="6.0">
+  <mode ID="http://tizen.org/mode/example.wifi-on" name="wifi-on" type="normal">
+    <action rule="wifi.power">on</action>
+  </mode>
+</tizenModes>
diff --git a/tests/mode/tizen_Water-Lock_mode.xml b/tests/mode/tizen_Water-Lock_mode.xml
deleted file mode 100644 (file)
index 9f5fabd..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.Water-Lock" name="Water-Lock" type="normal">
-    <action rule="vconf.db.setting.sound.sound_on" restrict="lock">false</action>
-    <action rule="vconf.db.setting.sound.vibration_on" restrict="lock">true</action>
-    <undo rule="media.player">/opt/usr/data/settings/Alarms/Alarms_on_call.ogg</undo>
-  </mode>
-</tizenModes>
-
-
diff --git a/tests/mode/tizen_appLaunch_mode.xml b/tests/mode/tizen_appLaunch_mode.xml
deleted file mode 100644 (file)
index f43773e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.EssentialCheck" name="EssentialCheck" type="normal">
-    <action rule="app.launch" restrict="essential">org.tizen.modesupervisor</action>
-    <action rule="wifi.power">off</action>
-    <action rule="bluetooth.power">off</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_btAudioConnect_mode.xml b/tests/mode/tizen_btAudioConnect_mode.xml
deleted file mode 100644 (file)
index add9cfb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.btAudioConnect" name="btAudioConnect" type="normal">
-    <action rule="bluetooth.power" restrict="lock">on</action>
-    <action rule="bluetooth.audioConnect" restrict="lock">08:AE:D6:5E:AE:16</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_btOff_mode.xml b/tests/mode/tizen_btOff_mode.xml
deleted file mode 100644 (file)
index b20936d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.btOff" name="btOff" type="normal">
-    <action rule="bluetooth.power" restrict="lock">off</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_btOn_mode.xml b/tests/mode/tizen_btOn_mode.xml
deleted file mode 100644 (file)
index 4f7396d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.btOn" name="btOn" type="normal">
-    <action rule="bluetooth.power" restrict="lock">on</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_displayBlock_mode.xml b/tests/mode/tizen_displayBlock_mode.xml
deleted file mode 100644 (file)
index 8d6f7d9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.displayBlock" name="displayBlock" type="normal">
-    <action rule="display.timeout" restrict="lock">ALWAYS_ON</action>
-    <action rule="display.denyPalmTouch" restrict="lock">on</action>
-  </mode>
-</tizenModes>
diff --git a/tests/mode/tizen_wifi-on_mode.xml b/tests/mode/tizen_wifi-on_mode.xml
deleted file mode 100644 (file)
index 2120907..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode ID="http://tizen.org/mode/example.wifi-on" name="wifi-on" type="normal">
-    <action rule="wifi.power">on</action>
-  </mode>
-</tizenModes>