Add device-policy-manager api
authorSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 9 Mar 2020 01:28:15 +0000 (10:28 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 9 Mar 2020 01:28:15 +0000 (10:28 +0900)
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
doc/:q [new file with mode: 0644]
doc/tizen-dpm-api.md [new file with mode: 0644]

diff --git a/doc/:q b/doc/:q
new file mode 100644 (file)
index 0000000..d659723
--- /dev/null
+++ b/doc/:q
@@ -0,0 +1,25 @@
+
+  7 +--------------------------------+----------------------+----------------------------------------------------------+
+  8 |            Policy Name         |     Policy state     |                       Query API                          |
+  9 +--------------------------------+----------------------+----------------------------------------------------------+
+ 10 | wifi                           | allowed / disallowed | dpm_restriction_get_wifi_state                           |
+ 11 | wifi-hotspot                   | allowed / disallowed | dpm_restriction_get_wifi_hotspot                         |
+ 12 | wifi-profile-change            | allowed / disallowed | dpm_wifi_is_profile_change_restricted                    |
+ 13 | wifi-ssid-restriction          | allowed / disallowed | dpm_wifi_is_network_access_restricted                    |
+ 14 | bluetooth                      | allowed / disallowed | dpm_restriction_get_bluetooth_mode_change_state          |
+ 15 | bluetooth-tethering            | allowed / disallowed | dpm_restriction_get_bluetooth_tethering_state            |
+ 16 | bluetooth-desktop-connectivity | allowed / disallowed | dpm_restriction_get_bluetooth_desktop_connectivity_state |
+ 17 | bluetooth-pairing              | allowed / disallowed | dpm_restriction_get_bluetooth_pairing_state              |
+ 18 | bluetooth-device-restriction   | allowed / disallowed | dpm_bluetooth_is_device_restricted                       |
+ 19 | bluetooth-uuid-restriction     | allowed / disallowed | dpm_bluetooth_is_uuid_restricted                         |
+ 20 | usb                            | allowed / disallowed | dpm_restriction_get_usb_state                            |
+ 21 | usb-tethering                  | allowed / disallowed | dpm_restriction_get_usb_tethering_state                  |
+ 22 | usb-debugging                  | allowed / disallowed | dpm_restriction_get_usb_debugging_state                  |
+ 23 | settings-changes               | allowed / disallowed | dpm_restriction_get_setting_changes_state                |
+ 24 | external-storage               | allowed / disallowed | dpm_restriction_get_external_storage_state               |
+ 25 | camera                         | allowed / disallowed | dpm_restriction_get_camera_state                         |
+ 26 | clipboard                      | allowed / disallowed | dpm_restriction_get_clipboard_state                      |
+ 27 | location                       | allowed / disallowed | dpm_restriction_get_location_state                       |
+ 28 | microphone                     | allowed / disallowed | dpm_restriction_get_microphone_state                     |
+ 29 +--------------------------------+----------------------+----------------------------------------------------------+
+
diff --git a/doc/tizen-dpm-api.md b/doc/tizen-dpm-api.md
new file mode 100644 (file)
index 0000000..a1e76fc
--- /dev/null
@@ -0,0 +1,25 @@
+```
++--------------------------------+----------------------+----------------------------------------------------------+
+|            Policy Name         |     Policy state     |                       Query API                          |
++--------------------------------+----------------------+----------------------------------------------------------+
+| wifi                           | allowed / disallowed | dpm_restriction_get_wifi_state                           |
+| wifi-hotspot                   | allowed / disallowed | dpm_restriction_get_wifi_hotspot                         |
+| wifi-profile-change            | allowed / disallowed | dpm_wifi_is_profile_change_restricted                    |
+| wifi-ssid-restriction          | allowed / disallowed | dpm_wifi_is_network_access_restricted                    |
+| bluetooth                      | allowed / disallowed | dpm_restriction_get_bluetooth_mode_change_state          |
+| bluetooth-tethering            | allowed / disallowed | dpm_restriction_get_bluetooth_tethering_state            |
+| bluetooth-desktop-connectivity | allowed / disallowed | dpm_restriction_get_bluetooth_desktop_connectivity_state |
+| bluetooth-pairing              | allowed / disallowed | dpm_restriction_get_bluetooth_pairing_state              |
+| bluetooth-device-restriction   | allowed / disallowed | dpm_bluetooth_is_device_restricted                       |
+| bluetooth-uuid-restriction     | allowed / disallowed | dpm_bluetooth_is_uuid_restricted                         |
+| usb                            | allowed / disallowed | dpm_restriction_get_usb_state                            |
+| usb-tethering                  | allowed / disallowed | dpm_restriction_get_usb_tethering_state                  |
+| usb-debugging                  | allowed / disallowed | dpm_restriction_get_usb_debugging_state                  |
+| settings-changes               | allowed / disallowed | dpm_restriction_get_setting_changes_state                |
+| external-storage               | allowed / disallowed | dpm_restriction_get_external_storage_state               |
+| camera                         | allowed / disallowed | dpm_restriction_get_camera_state                         |
+| clipboard                      | allowed / disallowed | dpm_restriction_get_clipboard_state                      |
+| location                       | allowed / disallowed | dpm_restriction_get_location_state                       |
+| microphone                     | allowed / disallowed | dpm_restriction_get_microphone_state                     |
++--------------------------------+----------------------+----------------------------------------------------------+
+```