tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.075926 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:11:21 +0000 (22:11 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:11:21 +0000 (22:11 +0900)
30 files changed:
CMakeLists.txt [changed mode: 0755->0644]
LICENSE [changed mode: 0755->0644]
NOTICE [new file with mode: 0644]
TC/_export_env.sh [new file with mode: 0755]
TC/_export_target_env.sh [new file with mode: 0755]
TC/build.sh [new file with mode: 0755]
TC/clean.sh [new file with mode: 0755]
TC/config [new file with mode: 0755]
TC/execute.sh [new file with mode: 0755]
TC/testcase/Makefile [new file with mode: 0755]
TC/testcase/tslist [new file with mode: 0755]
TC/testcase/utc_runtime_info.c [new file with mode: 0644]
TC/tet_scen [new file with mode: 0755]
TC/tetbuild.cfg [new file with mode: 0755]
TC/tetclean.cfg [new file with mode: 0755]
TC/tetexec.cfg [new file with mode: 0755]
capi-system-runtime-info.pc.in
debian/changelog [changed mode: 0755->0644]
doc/runtime_info_doc.h [new file with mode: 0644]
include/runtime_info.h [changed mode: 0755->0644]
include/runtime_info_doc.h [new file with mode: 0644]
include/runtime_info_private.h [changed mode: 0755->0644]
packaging/capi-system-runtime-info.manifest [new file with mode: 0644]
packaging/capi-system-runtime-info.spec [changed mode: 0755->0644]
src/runtime_info.c [changed mode: 0755->0644]
src/runtime_info_connectivity.c [changed mode: 0755->0644]
src/runtime_info_locale.c [changed mode: 0755->0644]
src/runtime_info_location.c [changed mode: 0755->0644]
src/runtime_info_system.c [changed mode: 0755->0644]
src/runtime_info_vconf.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index d13fc83..3293406
@@ -19,7 +19,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fvisibility=hidden")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" STREQUAL "arm")
@@ -29,7 +29,7 @@ ENDIF("${ARCH}" STREQUAL "arm")
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
 ADD_DEFINITIONS("-DSLP_DEBUG")
 
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
 aux_source_directory(src SOURCES)
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
@@ -43,11 +43,12 @@ SET_TARGET_PROPERTIES(${fw_name}
      CLEAN_DIRECT_OUTPUT 1
 )
 
-INSTALL(TARGETS ${fw_name} DESTINATION lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(
         DIRECTORY ${INC_DIR}/ DESTINATION include/system
         FILES_MATCHING
         PATTERN "*_private.h" EXCLUDE
+        PATTERN "*_doc.h" EXCLUDE
         PATTERN "${INC_DIR}/*.h"
         )
 
@@ -61,7 +62,7 @@ CONFIGURE_FILE(
     ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
     @ONLY
 )
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 IF(UNIX)
 
diff --git a/LICENSE b/LICENSE
old mode 100755 (executable)
new mode 100644 (file)
index bbe9d02..261eeb9
--- a/LICENSE
+++ b/LICENSE
-Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
-\r
-                                 Apache License\r
-                           Version 2.0, January 2004\r
-                        http://www.apache.org/licenses/\r
-\r
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r
-\r
-   1. Definitions.\r
-\r
-      "License" shall mean the terms and conditions for use, reproduction,\r
-      and distribution as defined by Sections 1 through 9 of this document.\r
-\r
-      "Licensor" shall mean the copyright owner or entity authorized by\r
-      the copyright owner that is granting the License.\r
-\r
-      "Legal Entity" shall mean the union of the acting entity and all\r
-      other entities that control, are controlled by, or are under common\r
-      control with that entity. For the purposes of this definition,\r
-      "control" means (i) the power, direct or indirect, to cause the\r
-      direction or management of such entity, whether by contract or\r
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the\r
-      outstanding shares, or (iii) beneficial ownership of such entity.\r
-\r
-      "You" (or "Your") shall mean an individual or Legal Entity\r
-      exercising permissions granted by this License.\r
-\r
-      "Source" form shall mean the preferred form for making modifications,\r
-      including but not limited to software source code, documentation\r
-      source, and configuration files.\r
-\r
-      "Object" form shall mean any form resulting from mechanical\r
-      transformation or translation of a Source form, including but\r
-      not limited to compiled object code, generated documentation,\r
-      and conversions to other media types.\r
-\r
-      "Work" shall mean the work of authorship, whether in Source or\r
-      Object form, made available under the License, as indicated by a\r
-      copyright notice that is included in or attached to the work\r
-      (an example is provided in the Appendix below).\r
-\r
-      "Derivative Works" shall mean any work, whether in Source or Object\r
-      form, that is based on (or derived from) the Work and for which the\r
-      editorial revisions, annotations, elaborations, or other modifications\r
-      represent, as a whole, an original work of authorship. For the purposes\r
-      of this License, Derivative Works shall not include works that remain\r
-      separable from, or merely link (or bind by name) to the interfaces of,\r
-      the Work and Derivative Works thereof.\r
-\r
-      "Contribution" shall mean any work of authorship, including\r
-      the original version of the Work and any modifications or additions\r
-      to that Work or Derivative Works thereof, that is intentionally\r
-      submitted to Licensor for inclusion in the Work by the copyright owner\r
-      or by an individual or Legal Entity authorized to submit on behalf of\r
-      the copyright owner. For the purposes of this definition, "submitted"\r
-      means any form of electronic, verbal, or written communication sent\r
-      to the Licensor or its representatives, including but not limited to\r
-      communication on electronic mailing lists, source code control systems,\r
-      and issue tracking systems that are managed by, or on behalf of, the\r
-      Licensor for the purpose of discussing and improving the Work, but\r
-      excluding communication that is conspicuously marked or otherwise\r
-      designated in writing by the copyright owner as "Not a Contribution."\r
-\r
-      "Contributor" shall mean Licensor and any individual or Legal Entity\r
-      on behalf of whom a Contribution has been received by Licensor and\r
-      subsequently incorporated within the Work.\r
-\r
-   2. Grant of Copyright License. Subject to the terms and conditions of\r
-      this License, each Contributor hereby grants to You a perpetual,\r
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
-      copyright license to reproduce, prepare Derivative Works of,\r
-      publicly display, publicly perform, sublicense, and distribute the\r
-      Work and such Derivative Works in Source or Object form.\r
-\r
-   3. Grant of Patent License. Subject to the terms and conditions of\r
-      this License, each Contributor hereby grants to You a perpetual,\r
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r
-      (except as stated in this section) patent license to make, have made,\r
-      use, offer to sell, sell, import, and otherwise transfer the Work,\r
-      where such license applies only to those patent claims licensable\r
-      by such Contributor that are necessarily infringed by their\r
-      Contribution(s) alone or by combination of their Contribution(s)\r
-      with the Work to which such Contribution(s) was submitted. If You\r
-      institute patent litigation against any entity (including a\r
-      cross-claim or counterclaim in a lawsuit) alleging that the Work\r
-      or a Contribution incorporated within the Work constitutes direct\r
-      or contributory patent infringement, then any patent licenses\r
-      granted to You under this License for that Work shall terminate\r
-      as of the date such litigation is filed.\r
-\r
-   4. Redistribution. You may reproduce and distribute copies of the\r
-      Work or Derivative Works thereof in any medium, with or without\r
-      modifications, and in Source or Object form, provided that You\r
-      meet the following conditions:\r
-\r
-      (a) You must give any other recipients of the Work or\r
-          Derivative Works a copy of this License; and\r
-\r
-      (b) You must cause any modified files to carry prominent notices\r
-          stating that You changed the files; and\r
-\r
-      (c) You must retain, in the Source form of any Derivative Works\r
-          that You distribute, all copyright, patent, trademark, and\r
-          attribution notices from the Source form of the Work,\r
-          excluding those notices that do not pertain to any part of\r
-          the Derivative Works; and\r
-\r
-      (d) If the Work includes a "NOTICE" text file as part of its\r
-          distribution, then any Derivative Works that You distribute must\r
-          include a readable copy of the attribution notices contained\r
-          within such NOTICE file, excluding those notices that do not\r
-          pertain to any part of the Derivative Works, in at least one\r
-          of the following places: within a NOTICE text file distributed\r
-          as part of the Derivative Works; within the Source form or\r
-          documentation, if provided along with the Derivative Works; or,\r
-          within a display generated by the Derivative Works, if and\r
-          wherever such third-party notices normally appear. The contents\r
-          of the NOTICE file are for informational purposes only and\r
-          do not modify the License. You may add Your own attribution\r
-          notices within Derivative Works that You distribute, alongside\r
-          or as an addendum to the NOTICE text from the Work, provided\r
-          that such additional attribution notices cannot be construed\r
-          as modifying the License.\r
-\r
-      You may add Your own copyright statement to Your modifications and\r
-      may provide additional or different license terms and conditions\r
-      for use, reproduction, or distribution of Your modifications, or\r
-      for any such Derivative Works as a whole, provided Your use,\r
-      reproduction, and distribution of the Work otherwise complies with\r
-      the conditions stated in this License.\r
-\r
-   5. Submission of Contributions. Unless You explicitly state otherwise,\r
-      any Contribution intentionally submitted for inclusion in the Work\r
-      by You to the Licensor shall be under the terms and conditions of\r
-      this License, without any additional terms or conditions.\r
-      Notwithstanding the above, nothing herein shall supersede or modify\r
-      the terms of any separate license agreement you may have executed\r
-      with Licensor regarding such Contributions.\r
-\r
-   6. Trademarks. This License does not grant permission to use the trade\r
-      names, trademarks, service marks, or product names of the Licensor,\r
-      except as required for reasonable and customary use in describing the\r
-      origin of the Work and reproducing the content of the NOTICE file.\r
-\r
-   7. Disclaimer of Warranty. Unless required by applicable law or\r
-      agreed to in writing, Licensor provides the Work (and each\r
-      Contributor provides its Contributions) on an "AS IS" BASIS,\r
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
-      implied, including, without limitation, any warranties or conditions\r
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r
-      PARTICULAR PURPOSE. You are solely responsible for determining the\r
-      appropriateness of using or redistributing the Work and assume any\r
-      risks associated with Your exercise of permissions under this License.\r
-\r
-   8. Limitation of Liability. In no event and under no legal theory,\r
-      whether in tort (including negligence), contract, or otherwise,\r
-      unless required by applicable law (such as deliberate and grossly\r
-      negligent acts) or agreed to in writing, shall any Contributor be\r
-      liable to You for damages, including any direct, indirect, special,\r
-      incidental, or consequential damages of any character arising as a\r
-      result of this License or out of the use or inability to use the\r
-      Work (including but not limited to damages for loss of goodwill,\r
-      work stoppage, computer failure or malfunction, or any and all\r
-      other commercial damages or losses), even if such Contributor\r
-      has been advised of the possibility of such damages.\r
-\r
-   9. Accepting Warranty or Additional Liability. While redistributing\r
-      the Work or Derivative Works thereof, You may choose to offer,\r
-      and charge a fee for, acceptance of support, warranty, indemnity,\r
-      or other liability obligations and/or rights consistent with this\r
-      License. However, in accepting such obligations, You may act only\r
-      on Your own behalf and on Your sole responsibility, not on behalf\r
-      of any other Contributor, and only if You agree to indemnify,\r
-      defend, and hold each Contributor harmless for any liability\r
-      incurred by, or claims asserted against, such Contributor by reason\r
-      of your accepting any such warranty or additional liability.\r
-\r
-   END OF TERMS AND CONDITIONS\r
-\r
-   APPENDIX: How to apply the Apache License to your work.\r
-\r
-      To apply the Apache License to your work, attach the following\r
-      boilerplate notice, with the fields enclosed by brackets "[]"\r
-      replaced with your own identifying information. (Don't include\r
-      the brackets!)  The text should be enclosed in the appropriate\r
-      comment syntax for the file format. We also recommend that a\r
-      file or class name and description of purpose be included on the\r
-      same "printed page" as the copyright notice for easier\r
-      identification within third-party archives.\r
-\r
-   Copyright [yyyy] [name of copyright owner]\r
-\r
-   Licensed under the Apache License, Version 2.0 (the "License");\r
-   you may not use this file except in compliance with the License.\r
-   You may obtain a copy of the License at\r
-\r
-       http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-   Unless required by applicable law or agreed to in writing, software\r
-   distributed under the License is distributed on an "AS IS" BASIS,\r
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-   See the License for the specific language governing permissions and\r
-   limitations under the License.\r
-\r
-\r
-\r
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/NOTICE b/NOTICE
new file mode 100644 (file)
index 0000000..07e6a53
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,3 @@
+Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.\r
+Except as noted, this software is licensed under Apache License, Version 2.\r
+Please, see the LICENSE file for Apache License terms and conditions.\r
diff --git a/TC/_export_env.sh b/TC/_export_env.sh
new file mode 100755 (executable)
index 0000000..72a11ec
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+. ./config
+export TET_INSTALL_PATH=$TET_INSTALL_HOST_PATH # tetware root path
+export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target # tetware target path
+export PATH=$TET_TARGET_PATH/bin:$PATH
+export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
+export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh
new file mode 100755 (executable)
index 0000000..5ddaa53
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+. ./config
+export TET_INSTALL_PATH=$TET_INSTALL_TARGET_PATH # path to path
+export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
+export PATH=$TET_TARGET_PATH/bin:$PATH
+export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
+export TET_ROOT=$TET_TARGET_PATH
diff --git a/TC/build.sh b/TC/build.sh
new file mode 100755 (executable)
index 0000000..72aad6c
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+. ./_export_env.sh                              # setting environment variables
+
+export TET_SUITE_ROOT=`pwd`
+FILE_NAME_EXTENSION=`date +%s`
+
+RESULT_DIR=results
+HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html
+JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal
+
+mkdir -p $RESULT_DIR
+
+tcc -c -p ./
+tcc -b -j $JOURNAL_RESULT -p ./
+grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/clean.sh b/TC/clean.sh
new file mode 100755 (executable)
index 0000000..29743e0
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. ./_export_env.sh                              # setting environment variables
+
+export TET_SUITE_ROOT=`pwd`
+RESULT_DIR=results
+
+tcc -c -p ./                                # executing tcc, with clean option (-c)
+rm -r $RESULT_DIR
+rm -r tet_tmp_dir
+rm testcase/tet_captured
diff --git a/TC/config b/TC/config
new file mode 100755 (executable)
index 0000000..6761a8b
--- /dev/null
+++ b/TC/config
@@ -0,0 +1,2 @@
+TET_INSTALL_HOST_PATH=/home/junghyuk/workspace/TETware
+TET_INSTALL_TARGET_PATH=/mnt/nfs/workspace/TETware
diff --git a/TC/execute.sh b/TC/execute.sh
new file mode 100755 (executable)
index 0000000..a4f6095
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. ./_export_target_env.sh                    # setting environment variables
+
+export TET_SUITE_ROOT=`pwd`
+FILE_NAME_EXTENSION=`date +%s`
+
+RESULT_DIR=results
+HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html
+JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal
+
+mkdir -p $RESULT_DIR
+
+tcc -e -j $JOURNAL_RESULT -p ./
+grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
new file mode 100755 (executable)
index 0000000..e2af6cd
--- /dev/null
@@ -0,0 +1,24 @@
+CC ?= gcc
+
+C_FILES = $(shell ls *.c)
+       
+PKGS = capi-system-runtime-info capi-base-common dlog gthread-2.0
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+TCS := $(shell ls -1 *.c | cut -d. -f1)
+
+all: $(TCS)
+
+%: %.c
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TCS)
\ No newline at end of file
diff --git a/TC/testcase/tslist b/TC/testcase/tslist
new file mode 100755 (executable)
index 0000000..31e70b6
--- /dev/null
@@ -0,0 +1,2 @@
+/testcase/utc_runtime_info
+
diff --git a/TC/testcase/utc_runtime_info.c b/TC/testcase/utc_runtime_info.c
new file mode 100644 (file)
index 0000000..d991b85
--- /dev/null
@@ -0,0 +1,2788 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <tet_api.h>
+#include <runtime_info.h>
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative1(void);
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative2(void);
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative3(void);
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive1(void);
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive2(void);
+static void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive3(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_negative1(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_negative2(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_negative3(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_positive1(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_positive2(void);
+static void utc_runtime_info_AUDIO_JACK_CONNECTED_positive3(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_negative1(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_negative2(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_negative3(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_positive1(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_positive2(void);
+static void utc_runtime_info_BATTERY_IS_CHARGING_positive3(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_negative1(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_negative2(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_negative3(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_positive1(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_positive2(void);
+static void utc_runtime_info_BLUETOOTH_ENABLED_positive3(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative1(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative2(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative3(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive1(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive2(void);
+static void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive3(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_negative1(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_negative2(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_negative3(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_positive1(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_positive2(void);
+static void utc_runtime_info_DATA_ROAMING_ENABLED_positive3(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_negative1(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_negative2(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_negative3(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_positive1(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_positive2(void);
+static void utc_runtime_info_FIRST_DAY_OF_WEEK_positive3(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_negative1(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_negative2(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_negative3(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_positive1(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_positive2(void);
+static void utc_runtime_info_FLIGHT_MODE_ENABLED_positive3(void);
+static void utc_runtime_info_GPS_STATUS_negative1(void);
+static void utc_runtime_info_GPS_STATUS_negative2(void);
+static void utc_runtime_info_GPS_STATUS_negative3(void);
+static void utc_runtime_info_GPS_STATUS_positive1(void);
+static void utc_runtime_info_GPS_STATUS_positive2(void);
+static void utc_runtime_info_GPS_STATUS_positive3(void);
+static void utc_runtime_info_LANGUAGE_negative1(void);
+static void utc_runtime_info_LANGUAGE_negative2(void);
+static void utc_runtime_info_LANGUAGE_negative3(void);
+static void utc_runtime_info_LANGUAGE_positive1(void);
+static void utc_runtime_info_LANGUAGE_positive2(void);
+static void utc_runtime_info_LANGUAGE_positive3(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative1(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative2(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative3(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive1(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive2(void);
+static void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive3(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative1(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative2(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative3(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive1(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive2(void);
+static void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive3(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative1(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative2(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative3(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive1(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive2(void);
+static void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive3(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_negative1(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_negative2(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_negative3(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_positive1(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_positive2(void);
+static void utc_runtime_info_PACKET_DATA_ENABLED_positive3(void);
+static void utc_runtime_info_REGION_negative1(void);
+static void utc_runtime_info_REGION_negative2(void);
+static void utc_runtime_info_REGION_negative3(void);
+static void utc_runtime_info_REGION_positive1(void);
+static void utc_runtime_info_REGION_positive2(void);
+static void utc_runtime_info_REGION_positive3(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_negative1(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_negative2(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_negative3(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_positive1(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_positive2(void);
+static void utc_runtime_info_AUTO_ROTATION_ENABLED_positive3(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_negative1(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_negative2(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_negative3(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_positive1(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_positive2(void);
+static void utc_runtime_info_SILENT_MODE_ENABLED_positive3(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_negative1(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_negative2(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_negative3(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_positive1(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_positive2(void);
+static void utc_runtime_info_USB_TETHERING_ENABLED_positive3(void);
+static void utc_runtime_info_VIBRATION_ENABLED_negative1(void);
+static void utc_runtime_info_VIBRATION_ENABLED_negative2(void);
+static void utc_runtime_info_VIBRATION_ENABLED_negative3(void);
+static void utc_runtime_info_VIBRATION_ENABLED_positive1(void);
+static void utc_runtime_info_VIBRATION_ENABLED_positive2(void);
+static void utc_runtime_info_VIBRATION_ENABLED_positive3(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative1(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative2(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative3(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive1(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive2(void);
+static void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive3(void);
+static void utc_runtime_info_WIFI_STATUS_negative1(void);
+static void utc_runtime_info_WIFI_STATUS_negative2(void);
+static void utc_runtime_info_WIFI_STATUS_negative3(void);
+static void utc_runtime_info_WIFI_STATUS_positive1(void);
+static void utc_runtime_info_WIFI_STATUS_positive2(void);
+static void utc_runtime_info_WIFI_STATUS_positive3(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_negative1(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_negative2(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_negative3(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_positive1(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_positive2(void);
+static void utc_runtime_info_TV_OUT_CONNECTED_positive3(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_negative1(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_negative2(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_negative3(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_positive1(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_positive2(void);
+static void utc_runtime_info_AUDIO_JACK_STATUS_positive3(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative1(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative2(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative3(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive1(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive2(void);
+static void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive3(void);
+static void utc_runtime_info_USB_CONNECTED_negative1(void);
+static void utc_runtime_info_USB_CONNECTED_negative2(void);
+static void utc_runtime_info_USB_CONNECTED_negative3(void);
+static void utc_runtime_info_USB_CONNECTED_positive1(void);
+static void utc_runtime_info_USB_CONNECTED_positive2(void);
+static void utc_runtime_info_USB_CONNECTED_positive3(void);
+static void utc_runtime_info_CHARGER_CONNECTED_negative1(void);
+static void utc_runtime_info_CHARGER_CONNECTED_negative2(void);
+static void utc_runtime_info_CHARGER_CONNECTED_negative3(void);
+static void utc_runtime_info_CHARGER_CONNECTED_positive1(void);
+static void utc_runtime_info_CHARGER_CONNECTED_positive2(void);
+static void utc_runtime_info_CHARGER_CONNECTED_positive3(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative1(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative2(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative3(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive1(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive2(void);
+static void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive3(void);
+static void utc_runtime_info_set_changed_cb(void);
+static void utc_runtime_info_unset_changed_cb(void);
+
+struct tet_testlist tet_testlist[] = {
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative1, 1},
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative2, 1},
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative3, 1},
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive1, 1},
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive2, 1},
+       {utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive3, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_negative1, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_negative2, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_negative3, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_positive1, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_positive2, 1},
+       {utc_runtime_info_AUDIO_JACK_CONNECTED_positive3, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_negative1, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_negative2, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_negative3, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_positive1, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_positive2, 1},
+       {utc_runtime_info_BATTERY_IS_CHARGING_positive3, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_negative1, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_negative2, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_negative3, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_positive1, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_positive2, 1},
+       {utc_runtime_info_BLUETOOTH_ENABLED_positive3, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative1, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative2, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative3, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive1, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive2, 1},
+       {utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive3, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_negative1, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_negative2, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_negative3, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_positive1, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_positive2, 1},
+       {utc_runtime_info_DATA_ROAMING_ENABLED_positive3, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_negative1, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_negative2, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_negative3, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_positive1, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_positive2, 1},
+       {utc_runtime_info_FIRST_DAY_OF_WEEK_positive3, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_negative1, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_negative2, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_negative3, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_positive1, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_positive2, 1},
+       {utc_runtime_info_FLIGHT_MODE_ENABLED_positive3, 1},
+       {utc_runtime_info_GPS_STATUS_negative1, 1},
+       {utc_runtime_info_GPS_STATUS_negative2, 1},
+       {utc_runtime_info_GPS_STATUS_negative3, 1},
+       {utc_runtime_info_GPS_STATUS_positive1, 1},
+       {utc_runtime_info_GPS_STATUS_positive2, 1},
+       {utc_runtime_info_GPS_STATUS_positive3, 1},
+       {utc_runtime_info_LANGUAGE_negative1, 1},
+       {utc_runtime_info_LANGUAGE_negative2, 1},
+       {utc_runtime_info_LANGUAGE_negative3, 1},
+       {utc_runtime_info_LANGUAGE_positive1, 1},
+       {utc_runtime_info_LANGUAGE_positive2, 1},
+       {utc_runtime_info_LANGUAGE_positive3, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative1, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative2, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative3, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive1, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive2, 1},
+       {utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive3, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative1, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative2, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative3, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive1, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive2, 1},
+       {utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive3, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_negative1, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_negative2, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_negative3, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_positive1, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_positive2, 1},
+       {utc_runtime_info_LOCATION_SERVICE_ENABLED_positive3, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_negative1, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_negative2, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_negative3, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_positive1, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_positive2, 1},
+       {utc_runtime_info_PACKET_DATA_ENABLED_positive3, 1},
+       {utc_runtime_info_REGION_negative1, 1},
+       {utc_runtime_info_REGION_negative2, 1},
+       {utc_runtime_info_REGION_negative3, 1},
+       {utc_runtime_info_REGION_positive1, 1},
+       {utc_runtime_info_REGION_positive2, 1},
+       {utc_runtime_info_REGION_positive3, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_negative1, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_negative2, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_negative3, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_positive1, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_positive2, 1},
+       {utc_runtime_info_AUTO_ROTATION_ENABLED_positive3, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_negative1, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_negative2, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_negative3, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_positive1, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_positive2, 1},
+       {utc_runtime_info_SILENT_MODE_ENABLED_positive3, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_negative1, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_negative2, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_negative3, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_positive1, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_positive2, 1},
+       {utc_runtime_info_USB_TETHERING_ENABLED_positive3, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_negative1, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_negative2, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_negative3, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_positive1, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_positive2, 1},
+       {utc_runtime_info_VIBRATION_ENABLED_positive3, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative1, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative2, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative3, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive1, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive2, 1},
+       {utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive3, 1},
+       {utc_runtime_info_WIFI_STATUS_negative1, 1},
+       {utc_runtime_info_WIFI_STATUS_negative2, 1},
+       {utc_runtime_info_WIFI_STATUS_negative3, 1},
+       {utc_runtime_info_WIFI_STATUS_positive1, 1},
+       {utc_runtime_info_WIFI_STATUS_positive2, 1},
+       {utc_runtime_info_WIFI_STATUS_positive3, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_negative1, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_negative2, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_negative3, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_positive1, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_positive2, 1},
+       {utc_runtime_info_TV_OUT_CONNECTED_positive3, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_negative1, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_negative2, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_negative3, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_positive1, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_positive2, 1},
+       {utc_runtime_info_AUDIO_JACK_STATUS_positive3, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative1, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative2, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative3, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive1, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive2, 1},
+       {utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive3, 1},
+       {utc_runtime_info_USB_CONNECTED_negative1, 1},
+       {utc_runtime_info_USB_CONNECTED_negative2, 1},
+       {utc_runtime_info_USB_CONNECTED_negative3, 1},
+       {utc_runtime_info_USB_CONNECTED_positive1, 1},
+       {utc_runtime_info_USB_CONNECTED_positive2, 1},
+       {utc_runtime_info_USB_CONNECTED_positive3, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_negative1, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_negative2, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_negative3, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_positive1, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_positive2, 1},
+       {utc_runtime_info_CHARGER_CONNECTED_positive3, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative1, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative2, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative3, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive1, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive2, 1},
+       {utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive3, 1},
+       {utc_runtime_info_set_changed_cb, 1},
+       {utc_runtime_info_unset_changed_cb, 1},
+       {NULL, 0},
+};
+
+static void startup(void)
+{
+
+}
+
+static void cleanup(void)
+{
+       /* end of TC */
+}
+
+void runtime_info_changed(runtime_info_key_e key, void *user_data)
+{
+
+}
+
+/* negative1 : invalid data-type */
+/* negative2 : invalid input-param */
+/* negative3 : invalid changed callback */
+/* positive1 : get the value */
+/* positive2 : set changed callback */
+/* positive3 : unset changed callback */
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_24HOUR_CLOCK_FORMAT_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_CONNECTED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BATTERY_IS_CHARGING_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_negative1(void){
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_DATA_ROAMING_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+
+       retcode = runtime_info_get_value_int(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+       int value;
+
+       retcode = runtime_info_get_value_int(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FIRST_DAY_OF_WEEK_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_FLIGHT_MODE_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+
+       retcode = runtime_info_get_value_int(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+       int value;
+
+       retcode = runtime_info_get_value_int(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_GPS_STATUS_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+
+       retcode = runtime_info_get_value_string(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LANGUAGE_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LANGUAGE;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_ADVANCED_GPS_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_NETWORK_POSITION_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_LOCATION_SERVICE_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_PACKET_DATA_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+
+void utc_runtime_info_PACKET_DATA_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_PACKET_DATA_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_PACKET_DATA_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_PACKET_DATA_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_PACKET_DATA_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+
+       retcode = runtime_info_get_value_string(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_REGION_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_REGION;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUTO_ROTATION_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SILENT_MODE_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SILENT_MODE_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_TETHERING_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_HOTSPOT_ENABLED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+
+       retcode = runtime_info_get_value_int(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+       int value;
+
+       retcode = runtime_info_get_value_int(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_WIFI_STATUS_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_STATUS;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_TV_OUT_CONNECTED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_TV_OUT_CONNECTED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+
+       retcode = runtime_info_get_value_int(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+       int value;
+
+       retcode = runtime_info_get_value_int(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_AUDIO_JACK_STATUS_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_AUDIO_JACK_STATUS;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_SLIDING_KEYBOARD_OPENED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_USB_CONNECTED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_USB_CONNECTED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+
+       retcode = runtime_info_get_value_bool(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+       bool value;
+
+       retcode = runtime_info_get_value_bool(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_CHARGER_CONNECTED_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+       char *value;
+
+       retcode = runtime_info_get_value_string(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       retcode = runtime_info_get_value_int(key, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_negative3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       retcode = runtime_info_set_changed_cb(key, NULL, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_INVALID_PARAMETER)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive1(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+       int value;
+
+       retcode = runtime_info_get_value_int(key, &value);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive2(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+void utc_runtime_info_VIBRATION_LEVEL_HAPTIC_FEEDBACK_positive3(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+static void utc_runtime_info_set_changed_cb(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
+
+static void utc_runtime_info_unset_changed_cb(void)
+{
+       char *TC_NAME = __FUNCTION__;
+       int retcode;
+       runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK;
+
+       runtime_info_set_changed_cb(key, runtime_info_changed, NULL);
+
+       retcode = runtime_info_unset_changed_cb(key);
+
+       if (retcode == RUNTIME_INFO_ERROR_NONE)
+               dts_pass(TC_NAME, "passed");
+       else
+               dts_fail(TC_NAME, "failed");
+}
diff --git a/TC/tet_scen b/TC/tet_scen
new file mode 100755 (executable)
index 0000000..03f029a
--- /dev/null
@@ -0,0 +1,7 @@
+all
+       ^TEST
+##### Scenarios for TEST #####
+
+# Test scenario
+TEST
+       :include:/testcase/tslist
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
new file mode 100755 (executable)
index 0000000..f7eda55
--- /dev/null
@@ -0,0 +1,5 @@
+TET_OUTPUT_CAPTURE=True # capture option for build operation checking
+TET_BUILD_TOOL=make # build with using make command
+TET_BUILD_FILE=-f Makefile # execution file (Makefile) for build
+TET_API_COMPLIANT=True # use TET API in Test Case ?
+TET_PASS_TC_NAME=True # report passed TC name in Journal file?
diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg
new file mode 100755 (executable)
index 0000000..02d7030
--- /dev/null
@@ -0,0 +1,5 @@
+TET_OUTPUT_CAPTURE=True # capture option
+TET_CLEAN_TOOL= make clean # clean tool
+TET_CLEAN_FILE= Makefile # file for clean
+TET_API_COMPLIANT=True # TET API useage 
+TET_PASS_TC_NAME=True # showing name , passed TC
diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg
new file mode 100755 (executable)
index 0000000..ef3e452
--- /dev/null
@@ -0,0 +1,5 @@
+TET_OUTPUT_CAPTURE=True # capturing execution or not
+TET_EXEC_TOOL=  # ex) exec : execution tool set up/ Optional
+TET_EXEC_FILE=   # ex) exectool : execution file/ Optional
+TET_API_COMPLIANT=True # Test case or Tool usesTET API?
+TET_PASS_TC_NAME=True # showing Passed TC name ?
index d0610b9..1d79ad0 100755 (executable)
@@ -3,7 +3,7 @@
 
 prefix=@PREFIX@
 exec_prefix=/usr
-libdir=/usr/lib
+libdir=@LIB_INSTALL_DIR@
 includedir=/usr/include/system
 
 Name: @PC_NAME@
old mode 100755 (executable)
new mode 100644 (file)
index 7bbf9c8..46ad61e
@@ -1,3 +1,27 @@
+capi-system-runtime-info (0.0.2-1) unstable; urgency=low
+
+  * Change key name
+  * Git: framework/api/runtime-info
+  * Tag: capi-system-runtime-info_0.0.2-1
+
+ -- Kwanwoo Nam <kw46.nam@samsung.com>  Tue, 22 Jan 2013 15:40:00 +0900
+
+capi-system-runtime-info (0.0.1-11) unstable; urgency=low
+
+  * Fixed prevent defect case : CID 10685
+  * Git: framework/api/runtime-info
+  * Tag: capi-system-runtime-info_0.0.1-11
+
+ -- Yonghyun Yang <alex.yang@samsung.com>  Mon, 15 Oct 2012 15:40:00 +0900
+
+capi-system-runtime-info (0.0.1-10) unstable; urgency=low
+
+  * Applying SMACK manifest
+  * Git: framework/api/runtime-info
+  * Tag: capi-system-runtime-info_0.0.1-10
+
+ -- Yonghyun Yang <alex.yang@samsung.com>  Fri, 21 Sep 2012 09:30:00 +0900
+
 capi-system-runtime-info (0.0.1-9) unstable; urgency=low
 
   * Applying vconf-key changes
diff --git a/doc/runtime_info_doc.h b/doc/runtime_info_doc.h
new file mode 100644 (file)
index 0000000..c38af9d
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__
+#define __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__
+
+/**
+ * @ingroup CAPI_SYSTEM_FRAMEWORK
+ * @defgroup CAPI_SYSTEM_RUNTIME_INFO_MODULE Runtime information
+ * @brief  The Runtime Information API provides functions to obtain runtime information.
+ *
+ * @section CAPI_SYSTEM_RUNTIME_INFO_MODULE_HEADER Required Header
+ *   \#include <runtime_info.h>
+ *
+ * @section CAPI_SYSTEM_RUNTIME_INFO_MODULE_OVERVIEW Overview
+ * The Runtime Information API provides functions to obtain runtime information, containing miscellaneous system preference.
+ * The Runtime Information available is stored in key/value pairs, where there may be different data types for the value.
+ *
+ * The runtime_info_set_changed_cb() registers a callback function for a particular key, which will be invoked by the System Service if the state matching that key changes.
+*
+*/
+
+#endif /* __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__ */
old mode 100755 (executable)
new mode 100644 (file)
index a1b43ad..fff83fe
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #ifndef __TIZEN_SYSTEM_RUNTIME_INFO_H__
@@ -30,154 +30,194 @@ extern "C"
  */
 
 /**
- * @brief Enumeration of error code for runtime information
+ * @brief Enumeration for error codes for runtime information.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       RUNTIME_INFO_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
-       RUNTIME_INFO_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
-       RUNTIME_INFO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
-       RUNTIME_INFO_ERROR_IO_ERROR =  TIZEN_ERROR_IO_ERROR, /**< An input/output error occurred when read value from system */
+typedef enum {
+       RUNTIME_INFO_ERROR_NONE = TIZEN_ERROR_NONE,                                                             /**< Successful */
+       RUNTIME_INFO_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,   /**< Invalid parameter */
+       RUNTIME_INFO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,                   /**< Out of memory */
+       RUNTIME_INFO_ERROR_IO_ERROR =  TIZEN_ERROR_IO_ERROR,                                    /**< An input/output error occurred when read value from system */
+       RUNTIME_INFO_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,   /**< No permission to use the api */
+       RUNTIME_INFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED,                   /**< Not supported parameter @if MOBILE (Since 2.3.1) @endif */
 } runtime_info_error_e;
 
 /**
- * @brief Enumeration of key for runtime information
+ * @brief Enumeration for keys for runtime information.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, /**<Indicates whether the device is in flight mode. */
-       RUNTIME_INFO_KEY_WIFI_STATUS, /**<Indicates the current status of Wi-Fi. */
-       RUNTIME_INFO_KEY_BLUETOOTH_ENABLED, /**<Indicates whether Bluetooth is enabled. */
-       RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED, /**<Indicates whether Wi-Fi hotspot is enabled. */
-       RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED, /**<Indicates whether Bluetooth tethering is enabled. */
-       RUNTIME_INFO_KEY_USB_TETHERING_ENABLED, /**<Indicates whether USB tethering is enabled. */
-       RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED, /**<Indicates whether the location service is allowed to use location data from GPS satellites. */
-       RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED, /**<Indicates whether the location service is allowed to download location data for GPS operation. */
-       RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. */
-       RUNTIME_INFO_KEY_LOCATION_SENSOR_AIDING_ENABLED, /**<Indicates whether the location service is allowed to use pedestrian sensors for positioning performance. */
-       RUNTIME_INFO_KEY_PACKET_DATA_ENABLED, /**<Indicates Whether the packet data through 3G network is enabled. */
-       RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED, /**<Indicates whether data roaming is enabled. */
-       RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, /**<Indicates whether the device is in silent mode. */
-       RUNTIME_INFO_KEY_VIBRATION_ENABLED, /**<Indicates whether vibration is enabled. */
-       RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED, /**<Indicates whether rotation lock is enabled. */
-       RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<Indicates whether 24-hour clock is enabled. */
-       RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK, /**<Indicates the first day of week. */
-       RUNTIME_INFO_KEY_LANGUAGE, /**<Indicates the current language setting. */
-       RUNTIME_INFO_KEY_REGION, /**<Indicates the current region setting. */
-       RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED, /**<Indicates whether audio jack is connected. */
-       RUNTIME_INFO_KEY_GPS_STATUS, /**<Indicates the current status of GPS. */
-       RUNTIME_INFO_KEY_BATTERY_IS_CHARGING, /**<Indicates the battery is currently charging. */
-       RUNTIME_INFO_KEY_TV_OUT_CONNECTED, /**<Indicates whether TV out is connected. */
-       RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, /**<Indicates the current status of audio jack. */
-       RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, /**<Indicates whether sliding keyboard is opened. */
-       RUNTIME_INFO_KEY_USB_CONNECTED, /**<Indicates whether USB is connected. */
-       RUNTIME_INFO_KEY_CHARGER_CONNECTED, /**<Indicates whether charger is connected. */
-       RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, /**<Indicates the current vibration level of haptic feedback. */
+typedef enum {
+       RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED,                                   /**<@internal Indicates whether the device is in flight mode. */
+       RUNTIME_INFO_KEY_WIFI_STATUS,                                                   /**<@internal Indicates the current status of Wi-Fi. */
+       RUNTIME_INFO_KEY_BLUETOOTH_ENABLED,                                             /**<Indicates whether Bluetooth is enabled. */
+       RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED,                                  /**<Indicates whether Wi-Fi hotspot is enabled. */
+       RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED,                   /**<Indicates whether Bluetooth tethering is enabled. */
+       RUNTIME_INFO_KEY_USB_TETHERING_ENABLED,                                 /**<Indicates whether USB tethering is enabled. */
+       RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED,                              /**<Indicates whether the location service is allowed to use location data from GPS satellites. */
+       RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED,                 /**<@internal Indicates whether the location service is allowed to download location data for GPS operation. */
+       RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED,             /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. */
+       RUNTIME_INFO_KEY_PACKET_DATA_ENABLED,                                   /**<Indicates Whether the packet data through 3G network is enabled. */
+       RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED,                                  /**<Indicates whether data roaming is enabled. */
+       RUNTIME_INFO_KEY_SILENT_MODE_ENABLED,                                   /**<@internal Indicates whether the device is in silent mode. */
+       RUNTIME_INFO_KEY_VIBRATION_ENABLED,                                             /**<Indicates whether vibration is enabled. */
+       RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED,                   /**<@internal Indicates whether 24-hour clock is enabled. */
+       RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK,                                             /**<@internal Indicates the first day of week. */
+       RUNTIME_INFO_KEY_LANGUAGE,                                                              /**<@internal Indicates the current language setting. */
+       RUNTIME_INFO_KEY_REGION,                                                                /**<@internal Indicates the current region setting. */
+       RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED,                                  /**<Indicates whether audio jack is connected. */
+       RUNTIME_INFO_KEY_GPS_STATUS,                                                    /**<Indicates the current status of GPS. */
+       RUNTIME_INFO_KEY_BATTERY_IS_CHARGING,                                   /**<Indicates the battery is currently charging. */
+       RUNTIME_INFO_KEY_TV_OUT_CONNECTED,                                              /**<Indicates whether TV out is connected. */
+       RUNTIME_INFO_KEY_AUDIO_JACK_STATUS,                                             /**<Indicates the current status of audio jack. */
+       RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED,                               /**<@internal Indicates whether sliding keyboard is opened. */
+       RUNTIME_INFO_KEY_USB_CONNECTED,                                                 /**<Indicates whether USB is connected. */
+       RUNTIME_INFO_KEY_CHARGER_CONNECTED,                                             /**<Indicates whether charger is connected. */
+       RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK,               /**<@internal Indicates the current vibration level of haptic feedback. */
+       RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED,                                 /**<Indicates whether auto rotation is enabled. */
 } runtime_info_key_e;
 
 
 /**
- * @brief Enumeration of Wi-Fi status
+ * @internal
+ * @brief Enumeration for Wi-Fi status.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       RUNTIME_INFO_WIFI_STATUS_DISABLED, /**< GPS is disabled. */
-       RUNTIME_INFO_WIFI_STATUS_UNCONNECTED, /**< Wi-Fi is enabled and network connection is not established. */
-       RUNTIME_INFO_WIFI_STATUS_CONNECTED, /**< Network connection is established in Wi-Fi network. */
+typedef enum {
+       RUNTIME_INFO_WIFI_STATUS_DISABLED,                              /**< @internal GPS is disabled. */
+       RUNTIME_INFO_WIFI_STATUS_UNCONNECTED,                   /**< @internal Wi-Fi is enabled and network connection is not established. */
+       RUNTIME_INFO_WIFI_STATUS_CONNECTED,                             /**< @internal Network connection is established in Wi-Fi network. */
 } runtime_info_wifi_status_e;
 
 /**
- * @brief Enumeration of GPS status
+ * @brief Enumeration for GPS status.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       RUNTIME_INFO_GPS_STATUS_DISABLED, /**< GPS is disabled. */
-       RUNTIME_INFO_GPS_STATUS_SEARCHING, /**< GPS is searching for satellites. */
-       RUNTIME_INFO_GPS_STATUS_CONNECTED, /**< GPS connection is established. */
+typedef enum {
+       RUNTIME_INFO_GPS_STATUS_DISABLED,                               /**< GPS is disabled. */
+       RUNTIME_INFO_GPS_STATUS_SEARCHING,                              /**< GPS is searching for satellites. */
+       RUNTIME_INFO_GPS_STATUS_CONNECTED,                              /**< GPS connection is established. */
 } runtime_info_gps_status_e;
 
 /**
- * @brief Enumeration of first day of week
+ * @internal
+ * @brief Enumeration for first day of week.
  */
-typedef enum
-{
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_SUNDAY, /**< Sunday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_MONDAY, /**< Monday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_TUESDAY, /**< Tuesday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_WEDNESDAY, /**< Wednesday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_THURSDAY, /**< Thursday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_FRIDAY, /**< Friday */
-       RUNTIME_INFO_FIRST_DAY_OF_WEEK_SATURDAY, /**< Saturday */
+typedef enum {
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_SUNDAY,                  /**< @internal Sunday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_MONDAY,                  /**< @internal Monday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_TUESDAY,                 /**< @internal Tuesday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_WEDNESDAY,               /**< @internal Wednesday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_THURSDAY,                /**< @internal Thursday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_FRIDAY,                  /**< @internal Friday */
+       RUNTIME_INFO_FIRST_DAY_OF_WEEK_SATURDAY,                /**< @internal Saturday */
 } runtime_info_first_day_of_week_e;
 
 /**
- * @brief Enumeration of audio jack status
+ * @brief Enumeration for audio jack status.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       RUNTIME_INFO_AUDIO_JACK_STATUS_UNCONNECTED, /**< audio jack is not connected */
-       RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE, /**< 3-conductor wire is connected. */
-       RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_4WIRE, /**< 4-conductor wire is connected. */
+typedef enum {
+       RUNTIME_INFO_AUDIO_JACK_STATUS_UNCONNECTED,             /**< Audio jack is not connected */
+       RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE, /**< 3-conductor wire is connected. */
+       RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_4WIRE, /**< 4-conductor wire is connected. */
 } runtime_info_audio_jack_status_e;
 
 
 /**
  * @brief   Called when the runtime information changes
- * @param[in] key Type of notification
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] key       The type of notification
  * @param[in] user_data The user data passed from the callback registration function
+ *
  * @pre runtime_info_set_changed_cb() will invoke this callback function.
+ *
  * @see runtime_info_set_changed_cb()
  * @see runtime_info_unset_changed_cb()
  */
 typedef void (*runtime_info_changed_cb)(runtime_info_key_e key, void *user_data);
 
 /**
- * @brief   Gets the integer value of the runtime information
+ * @brief   Gets the integer value of the runtime information.
  * @details This function gets current state of the given key which represents specific runtime information.
- * @param[in] key The runtime information status key from which data should be read
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in]  key   The runtime information status key from which data should be read
  * @param[out] value The current value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ *
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_IO_ERROR          An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
+ * @retval  #RUNTIME_INFO_ERROR_NOT_SUPPORTED     Not supported parameter @if MOBILE (Since 2.3.1) @endif
  */
 int runtime_info_get_value_int(runtime_info_key_e key, int *value);
 
 /**
- * @brief   Gets the boolean value from the runtime information
+ * @brief   Gets the boolean value from the runtime information.
  * @details This function gets current state of the given key which represents specific runtime information.
- * @param[in] key The runtime information  key from which data should be read
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in]  key   The runtime information key from which data should be read
  * @param[out] value The current value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ *
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_IO_ERROR          An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
+ * @retval  #RUNTIME_INFO_ERROR_NOT_SUPPORTED     Not supported parameter @if MOBILE (Since 2.3.1) @endif
  */
 int runtime_info_get_value_bool(runtime_info_key_e key, bool *value);
 
 /**
- * @brief   Gets the double value from the runtime information
+ * @brief   Gets the double value from the runtime information.
  * @details This function gets current state of the given key which represents specific runtime information.
- * @param[in] key The runtime information  key from which data should be read
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in]  key   The runtime information key from which data should be read
  * @param[out] value The current value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ *
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_IO_ERROR          An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
+ * @retval  #RUNTIME_INFO_ERROR_NOT_SUPPORTED     Not supported parameter @if MOBILE (Since 2.3.1) @endif
  */
 int runtime_info_get_value_double(runtime_info_key_e key, double *value);
 
 /**
- * @brief   Gets the string value for specified runtime information
+ * @brief   Gets the string value for specified runtime information.
  * @details This function gets current state of the given key which represents specific runtime information.
- * @remarks @a value must be released with @c free() by you. 
- * @param[in] key The runtime information  key from which data should be read
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @remarks  You must release @a value using free().
+ *
+ * @param[in]  key   The runtime information key from which data should be read
  * @param[out] value The current value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ *
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
- * @retval  #RUNTIME_INFO_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval  #RUNTIME_INFO_ERROR_IO_ERROR          An input/output error occurred when read value from system
+ * @retval  #RUNTIME_INFO_ERROR_OUT_OF_MEMORY     Out of memory
+ * @retval  #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
+ * @retval  #RUNTIME_INFO_ERROR_NOT_SUPPORTED     Not supported parameter @if MOBILE (Since 2.3.1) @endif
  */
 int runtime_info_get_value_string(runtime_info_key_e key, char **value);
 
@@ -185,13 +225,19 @@ int runtime_info_get_value_string(runtime_info_key_e key, char **value);
 /**
  * @brief   Registers a change event callback for given runtime information key.
  *
- * @param[in] key The runtime information type
- * @param[in] callback The callback function to invoke
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] key       The runtime information type
+ * @param[in] callback  The callback function to invoke
  * @param[in] user_data The user data to be passed to the callback function
  *
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval  #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
+ * @retval  #RUNTIME_INFO_ERROR_NOT_SUPPORTED     Not supported parameter @if MOBILE (Since 2.3.1) @endif
  * @post runtime_info_changed_cb() will be invoked.
  *
  * @see runtime_info_unset_changed_cb()
@@ -201,11 +247,16 @@ int runtime_info_set_changed_cb(runtime_info_key_e key, runtime_info_changed_cb
 
 
 /**
- * @brief   Unregisters the callback function. 
+ * @brief   Unregisters the callback function.
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
  * @param[in] key The runtime information type
- * @return  0 on success, otherwise a negative error value.
- * @retval  #RUNTIME_INFO_ERROR_NONE Successful
+ *
+ * @return  @c 0 on success, 
+ *          otherwise a negative error value
+ *
+ * @retval  #RUNTIME_INFO_ERROR_NONE              Successful
  * @retval  #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
  *
  * @see runtime_info_set_changed_cb()
diff --git a/include/runtime_info_doc.h b/include/runtime_info_doc.h
new file mode 100644 (file)
index 0000000..a435dfc
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__
+#define __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__
+
+/**
+ * @defgroup CAPI_SYSTEM_RUNTIME_INFO_MODULE SYSTEM_INFO
+ * @brief  The Runtime Information API provides functions to obtain runtime information.
+ * @ingroup CAPI_SYSTEM_RUNTIME_INFO
+ *
+ * @section CAPI_SYSTEM_RUNTIME_INFO_MODULE_HEADER Required Header
+ *   \#include <runtime_info.h>
+ *
+ * @section CAPI_SYSTEM_RUNTIME_INFO_MODULE_OVERVIEW Overview
+ * The Runtime Information API provides functions to obtain runtime information, containing miscellaneous system preference.
+ * The Runtime Information available is stored in key/value pairs, where there may be different data types for the value.
+ *
+ * The runtime_info_set_changed_cb() registers a callback function for a particular key, which will be invoked by the System Service if the state matching that key changes.
+*
+*/
+
+#endif /* __TIZEN_SYSTEM_RUNTIME_INFO_DOC_H__ */
old mode 100755 (executable)
new mode 100644 (file)
index 51fec30..d4af692
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 
@@ -25,6 +25,10 @@ extern "C"
 {
 #endif
 
+#ifndef API
+#define API __attribute__ ((visibility("default")))
+#endif
+
 typedef enum {
        RUNTIME_INFO_DATA_TYPE_STRING,
        RUNTIME_INFO_DATA_TYPE_INT,
@@ -39,7 +43,7 @@ typedef union {
        char *s;
 } runtime_info_value_u;
 
-typedef runtime_info_value_u *runtime_info_value_h;
+typedef runtime_info_value_u * runtime_info_value_h;
 
 typedef int (*runtime_info_func_get_value) (runtime_info_value_h value);
 typedef int (*runtime_info_func_set_event_cb) (void);
@@ -48,7 +52,7 @@ typedef void (*runtime_info_func_unset_event_cb) (void);
 void runtime_info_updated(runtime_info_key_e key);
 
 int runtime_info_vconf_get_value_int(const char *vconf_key, int *value);
-int runtime_info_vconf_get_value_bool(const char *vconf_key, bool *value);
+int runtime_info_vconf_get_value_bool(const char *vconf_key, int *value);
 int runtime_info_vconf_get_value_double(const char *vconf_key, double *value);
 int runtime_info_vconf_get_value_string(const char *vconf_key, char **value);
 
@@ -95,10 +99,6 @@ int runtime_info_location_network_get_value(runtime_info_value_h);
 int runtime_info_location_network_set_event_cb(void);
 void runtime_info_location_network_unset_event_cb(void);
 
-int runtime_info_location_sensor_get_value(runtime_info_value_h);
-int runtime_info_location_sensor_set_event_cb(void);
-void runtime_info_location_sensor_unset_event_cb(void);
-
 int runtime_info_packet_data_get_value(runtime_info_value_h);
 int runtime_info_packet_data_set_event_cb(void);
 void runtime_info_packet_data_unset_event_cb(void);
@@ -115,10 +115,6 @@ int runtime_info_vibration_enabled_get_value(runtime_info_value_h);
 int runtime_info_vibration_enabled_set_event_cb(void);
 void runtime_info_vibration_enabled_unset_event_cb(void);
 
-int runtime_info_rotation_lock_enabled_get_value(runtime_info_value_h);
-int runtime_info_rotation_lock_enabled_set_event_cb(void);
-void runtime_info_rotation_lock_enabled_unset_event_cb(void);
-
 int runtime_info_24hour_format_get_value(runtime_info_value_h);
 int runtime_info_24hour_format_set_event_cb(void);
 void runtime_info_24hour_format_unset_event_cb(void);
@@ -144,28 +140,32 @@ int runtime_info_battery_charging_set_event_cb(void);
 void runtime_info_battery_charging_unset_event_cb(void);
 
 int runtime_info_tvout_connected_get_value(runtime_info_value_h value);
-int runtime_info_tvout_connected_set_event_cb();
-void runtime_info_tvout_connected_unset_event_cb();
+int runtime_info_tvout_connected_set_event_cb(void);
+void runtime_info_tvout_connected_unset_event_cb(void);
 
 int runtime_info_audio_jack_status_get_value (runtime_info_value_h value);
-int runtime_info_audio_jack_status_set_event_cb ();
-void runtime_info_audio_jack_status_unset_event_cb();
+int runtime_info_audio_jack_status_set_event_cb(void);
+void runtime_info_audio_jack_status_unset_event_cb(void);
 
 int runtime_info_sliding_keyboard_opened_get_value(runtime_info_value_h value);
-int runtime_info_sliding_keyboard_opened_set_event_cb();
-void runtime_info_sliding_keyboard_opened_unset_event_cb();
+int runtime_info_sliding_keyboard_opened_set_event_cb(void);
+void runtime_info_sliding_keyboard_opened_unset_event_cb(void);
 
 int runtime_info_usb_connected_get_value(runtime_info_value_h value);
-int runtime_info_usb_connected_set_event_cb();
-void runtime_info_usb_connected_unset_event_cb();
+int runtime_info_usb_connected_set_event_cb(void);
+void runtime_info_usb_connected_unset_event_cb(void);
 
 int runtime_info_charger_connected_get_value(runtime_info_value_h value);
-int runtime_info_charger_connected_set_event_cb();
-void runtime_info_charger_connected_unset_event_cb();
+int runtime_info_charger_connected_set_event_cb(void);
+void runtime_info_charger_connected_unset_event_cb(void);
 
 int runtime_info_vibration_level_haptic_feedback_get_value(runtime_info_value_h value);
-int runtime_info_vibration_level_haptic_feedback_set_event_cb();
-void runtime_info_vibration_level_haptic_feedback_unset_event_cb();
+int runtime_info_vibration_level_haptic_feedback_set_event_cb(void);
+void runtime_info_vibration_level_haptic_feedback_unset_event_cb(void);
+
+int runtime_info_auto_rotation_enabled_get_value(runtime_info_value_h);
+int runtime_info_auto_rotation_enabled_set_event_cb(void);
+void runtime_info_auto_rotation_enabled_unset_event_cb(void);
 
 #ifdef __cplusplus
 }
diff --git a/packaging/capi-system-runtime-info.manifest b/packaging/capi-system-runtime-info.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
old mode 100755 (executable)
new mode 100644 (file)
index b8b067d..daf06cc
@@ -1,10 +1,11 @@
 Name:       capi-system-runtime-info
-Summary:    A Runtime Information library in Tizen Native API
-Version:    0.0.1
-Release:    9
-Group:      TO_BE/FILLED_IN
-License:    TO BE FILLED IN
+Summary:    A Runtime Information library in Core API
+Version:    0.0.3
+Release:    0
+Group:      System/Libraries
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
+Source1001:    %{name}.manifest
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(vconf)
@@ -16,8 +17,8 @@ Requires(postun): /sbin/ldconfig
 
 
 %package devel
-Summary:  A Runtime Information library in Tizen Native API (Development)
-Group:    TO_BE/FILLED_IN
+Summary:  A Runtime Information library in Core API (Development)
+Group:    Development/System
 Requires: %{name} = %{version}-%{release}
 Requires:  pkgconfig(capi-base-common)
 
@@ -27,28 +28,35 @@ Requires:  pkgconfig(capi-base-common)
 
 %prep
 %setup -q
-
+cp %{SOURCE1001} .
 
 %build
-MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`  
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} 
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 
 
 make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
+
 %make_install
 
+mkdir -p %{buildroot}/usr/share/license
+cp -f LICENSE %{buildroot}/usr/share/license/%{name}
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
 %files
+%manifest %{name}.manifest
+/usr/share/license/%{name}
 %{_libdir}/lib*.so.*
 
 %files devel
+%manifest %{name}.manifest
 %{_includedir}/system/*.h
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/lib*.so
old mode 100755 (executable)
new mode 100644 (file)
index 8b95527..b9ee4b7
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
@@ -28,7 +28,7 @@
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
 
 #define RUNTIME_INFO_MAX -1
 
@@ -38,7 +38,7 @@ typedef struct {
        runtime_info_value_h most_recent_value;
 } runtime_info_event_subscription_s;
 
-typedef runtime_info_event_subscription_s *runtime_info_event_subscription_h;
+typedef runtime_info_event_subscription_s * runtime_info_event_subscription_h;
 
 typedef struct {
        runtime_info_key_e key;
@@ -49,7 +49,7 @@ typedef struct {
        runtime_info_event_subscription_h event_subscription;
 } runtime_info_item_s;
 
-typedef runtime_info_item_s *runtime_info_item_h;
+typedef runtime_info_item_s * runtime_info_item_h;
 
 runtime_info_item_s runtime_info_item_table[] = {
 
@@ -137,15 +137,6 @@ runtime_info_item_s runtime_info_item_table[] = {
 },
 
 {
-       RUNTIME_INFO_KEY_LOCATION_SENSOR_AIDING_ENABLED, /**<Indicates whether the location service is allowed to use pedestrian sensors for positioning performance. */
-       RUNTIME_INFO_DATA_TYPE_BOOL,
-       runtime_info_location_sensor_get_value,
-       runtime_info_location_sensor_set_event_cb,
-       runtime_info_location_sensor_unset_event_cb,
-       NULL
-},
-
-{
        RUNTIME_INFO_KEY_PACKET_DATA_ENABLED, /**<Indicates Whether the packet data through 3G network is enabled. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
        runtime_info_packet_data_get_value,
@@ -182,15 +173,6 @@ runtime_info_item_s runtime_info_item_table[] = {
 },
 
 {
-       RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED, /**<Indicates whether rotation lock is enabled. */
-       RUNTIME_INFO_DATA_TYPE_BOOL,
-       runtime_info_rotation_lock_enabled_get_value,
-       runtime_info_rotation_lock_enabled_set_event_cb,
-       runtime_info_rotation_lock_enabled_unset_event_cb,
-       NULL
-},
-
-{
        RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<Indicates the current time format. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
        runtime_info_24hour_format_get_value,
@@ -244,7 +226,6 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
-
 {
        RUNTIME_INFO_KEY_BATTERY_IS_CHARGING, /**<Indicates the battery is currently charging. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
@@ -254,7 +235,6 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
-
 {
        RUNTIME_INFO_KEY_TV_OUT_CONNECTED, /**<Indicates whether TV out is connected. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
@@ -264,7 +244,6 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
-
 {
        RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, /**<Indicates the current status of audio jack. */
        RUNTIME_INFO_DATA_TYPE_INT,
@@ -274,7 +253,6 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
-
 {
        RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, /**<Indicates whether sliding keyboard is opened. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
@@ -284,7 +262,6 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
-
 {
        RUNTIME_INFO_KEY_USB_CONNECTED, /**<Indicates whether usb is connected. */
        RUNTIME_INFO_DATA_TYPE_BOOL,
@@ -312,6 +289,14 @@ runtime_info_item_s runtime_info_item_table[] = {
        NULL
 },
 
+{
+       RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, /**<Indicates whether auto rotation is enabled. */
+       RUNTIME_INFO_DATA_TYPE_BOOL,
+       runtime_info_auto_rotation_enabled_get_value,
+       runtime_info_auto_rotation_enabled_set_event_cb,
+       runtime_info_auto_rotation_enabled_unset_event_cb,
+       NULL
+},
 
 {
        RUNTIME_INFO_MAX, RUNTIME_INFO_DATA_TYPE_INT, NULL, NULL, NULL, NULL
@@ -323,10 +308,8 @@ static int runtime_info_get_item(runtime_info_key_e key, runtime_info_item_h *ru
 {
        int index = 0;
 
-       while (runtime_info_item_table[index].key != RUNTIME_INFO_MAX)
-       {
-               if (runtime_info_item_table[index].key == key)
-               {
+       while (runtime_info_item_table[index].key != RUNTIME_INFO_MAX) {
+               if (runtime_info_item_table[index].key == key) {
                        *runtime_info_item = &runtime_info_item_table[index];
                        return 0;
                }
@@ -334,163 +317,150 @@ static int runtime_info_get_item(runtime_info_key_e key, runtime_info_item_h *ru
                index++;
        }
 
-       return -1;
+       return -1;
 }
 
 int runtime_info_get_value(runtime_info_key_e key, runtime_info_data_type_e data_type, runtime_info_value_h value)
 {
        runtime_info_item_h runtime_info_item;
        runtime_info_func_get_value get_value;
+       int ret;
 
-       if (runtime_info_get_item(key, &runtime_info_item))
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (runtime_info_get_item(key, &runtime_info_item))     {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid key", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
-       if (runtime_info_item->data_type != data_type)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid data type", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (runtime_info_item->data_type != data_type) {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid data type", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
        get_value = runtime_info_item->get_value;
 
-       if (get_value == NULL)
-       {
-               LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the runtime information", __FUNCTION__, RUNTIME_INFO_ERROR_IO_ERROR);
+       if (get_value == NULL) {
+               LOGE("IO_ERROR(0x%08x) : failed to call getter for the runtime information", RUNTIME_INFO_ERROR_IO_ERROR);
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       if (get_value(value) != RUNTIME_INFO_ERROR_NONE)
-       {
-               LOGE("[%s] IO_ERROR(0x%08x) : failed to get the runtime informaion / key(%d)", __FUNCTION__, RUNTIME_INFO_ERROR_IO_ERROR, key);
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = get_value(value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               LOGE("IO_ERROR(0x%08x) : failed to get the runtime informaion / key(%d)", ret, key);
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_get_value_int(runtime_info_key_e key, int *value)
+API int runtime_info_get_value_int(runtime_info_key_e key, int *value)
 {
        int retcode;
        runtime_info_value_u runtime_info_value;
 
-       if (value == NULL)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid output param", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (value == NULL) {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
        retcode = runtime_info_get_value(key, RUNTIME_INFO_DATA_TYPE_INT, &runtime_info_value);
 
        if (retcode == RUNTIME_INFO_ERROR_NONE)
-       {
                *value = runtime_info_value.i;
-       }
 
        return retcode;
 }
 
-int runtime_info_get_value_bool(runtime_info_key_e key, bool *value)
+API int runtime_info_get_value_bool(runtime_info_key_e key, bool *value)
 {
        int retcode;
        runtime_info_value_u runtime_info_value;
 
-       if (value == NULL)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid output param", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (value == NULL) {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
        retcode = runtime_info_get_value(key, RUNTIME_INFO_DATA_TYPE_BOOL, &runtime_info_value);
 
        if (retcode == RUNTIME_INFO_ERROR_NONE)
-       {
                *value = runtime_info_value.b;
-       }
 
        return retcode;
 }
 
-int runtime_info_get_value_double(runtime_info_key_e key, double *value)
+API int runtime_info_get_value_double(runtime_info_key_e key, double *value)
 {
        int retcode;
        runtime_info_value_u runtime_info_value;
 
-       if (value == NULL)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid output param", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (value == NULL) {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
        retcode = runtime_info_get_value(key, RUNTIME_INFO_DATA_TYPE_DOUBLE, &runtime_info_value);
 
        if (retcode == RUNTIME_INFO_ERROR_NONE)
-       {
                *value = runtime_info_value.d;
-       }
 
        return retcode;
 }
 
-int runtime_info_get_value_string(runtime_info_key_e key, char **value)
+API int runtime_info_get_value_string(runtime_info_key_e key, char **value)
 {
        int retcode;
        runtime_info_value_u runtime_info_value;
 
-       if (value == NULL)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid output param", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (value == NULL) {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
        retcode = runtime_info_get_value(key, RUNTIME_INFO_DATA_TYPE_STRING, &runtime_info_value);
 
        if (retcode == RUNTIME_INFO_ERROR_NONE)
-       {
                *value = runtime_info_value.s;
-       }
 
        return retcode;
 }
 
-int runtime_info_set_changed_cb(runtime_info_key_e key, runtime_info_changed_cb callback, void *user_data)
+API int runtime_info_set_changed_cb(runtime_info_key_e key, runtime_info_changed_cb callback, void *user_data)
 {
        runtime_info_item_h runtime_info_item;
        runtime_info_func_set_event_cb set_event_cb;
        bool subscribe_event = false;
+       runtime_info_value_u val;
+       int ret;
 
-       if (callback == NULL)
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x)", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (callback == NULL) {
+               LOGE("INVALID_PARAMETER(0x%08x)", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
-       if (runtime_info_get_item(key, &runtime_info_item))
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (runtime_info_get_item(key, &runtime_info_item))     {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid key", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
-       
+
        set_event_cb = runtime_info_item->set_event_cb;
 
-       if (set_event_cb == NULL)
-       {
-               LOGE("[%s] IO_ERROR(0x%08x) : failed to set callback for the runtime information", __FUNCTION__, RUNTIME_INFO_ERROR_IO_ERROR);
+       if (set_event_cb == NULL) {
+               LOGE("IO_ERROR(0x%08x) : failed to set callback for the runtime information", RUNTIME_INFO_ERROR_IO_ERROR);
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       if (runtime_info_item->event_subscription == NULL)
-       {
+       ret = runtime_info_item->get_value(&val);
+       if (ret != RUNTIME_INFO_ERROR_NONE) {
+               LOGE("The key (%d) %s(%d)", key, ret == RUNTIME_INFO_ERROR_NOT_SUPPORTED ? "is not supported" : "has error", ret);
+               return ret;
+       }
+
+       if (runtime_info_item->event_subscription == NULL) {
                subscribe_event = true;
 
                runtime_info_event_subscription_h event_subscription;
                event_subscription = malloc(sizeof(runtime_info_event_subscription_s));
-               
-               if (event_subscription == NULL)
-               {
-                       LOGE("[%s] OUT_OF_MEMORY(0x%08x)", __FUNCTION__, RUNTIME_INFO_ERROR_OUT_OF_MEMORY);
+
+               if (event_subscription == NULL) {
+                       LOGE("OUT_OF_MEMORY(0x%08x)", RUNTIME_INFO_ERROR_OUT_OF_MEMORY);
                        return RUNTIME_INFO_ERROR_OUT_OF_MEMORY;
                }
 
@@ -502,37 +472,36 @@ int runtime_info_set_changed_cb(runtime_info_key_e key, runtime_info_changed_cb
        runtime_info_item->event_subscription->user_data = user_data;
 
        if (runtime_info_item->event_subscription->most_recent_value != NULL)
-       {
                free(runtime_info_item->event_subscription->most_recent_value);
-       }
 
        runtime_info_item->event_subscription->most_recent_value = NULL;
 
        if (subscribe_event == true)
-       {
                return set_event_cb();
-       }
        else
-       {
                return RUNTIME_INFO_ERROR_NONE;
-       }
 }
 
-int runtime_info_unset_changed_cb(runtime_info_key_e key)
+API int runtime_info_unset_changed_cb(runtime_info_key_e key)
 {
        runtime_info_item_h runtime_info_item;
        runtime_info_func_unset_event_cb unset_event_cb;
+       runtime_info_value_u val;
+       int ret;
 
-       if (runtime_info_get_item(key, &runtime_info_item))
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (runtime_info_get_item(key, &runtime_info_item))     {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid key", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return RUNTIME_INFO_ERROR_INVALID_PARAMETER;
        }
 
-       if (runtime_info_item->event_subscription != NULL)
-       {
-               if (runtime_info_item->event_subscription->most_recent_value != NULL)
-               {
+       ret = runtime_info_item->get_value(&val);
+       if (ret != RUNTIME_INFO_ERROR_NONE) {
+               LOGE("The key (%d) %s(%d)", key, ret == RUNTIME_INFO_ERROR_NOT_SUPPORTED ? "is not supported" : "has error", ret);
+               return ret;
+       }
+
+       if (runtime_info_item->event_subscription != NULL) {
+               if (runtime_info_item->event_subscription->most_recent_value != NULL) {
                        free(runtime_info_item->event_subscription->most_recent_value);
                        runtime_info_item->event_subscription->most_recent_value = NULL;
                }
@@ -543,9 +512,8 @@ int runtime_info_unset_changed_cb(runtime_info_key_e key)
 
        unset_event_cb = runtime_info_item->unset_event_cb;
 
-       if (unset_event_cb == NULL)
-       {
-               LOGE("[%s] IO_ERROR(0x%08x) : failed to unset callback for the runtime information", __FUNCTION__, RUNTIME_INFO_ERROR_IO_ERROR);
+       if (unset_event_cb == NULL)     {
+               LOGE("IO_ERROR(0x%08x) : failed to unset callback for the runtime information", RUNTIME_INFO_ERROR_IO_ERROR);
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
@@ -559,43 +527,40 @@ void runtime_info_updated(runtime_info_key_e key)
        runtime_info_item_h runtime_info_item;
        runtime_info_value_u current_value;
        bool dispatch_event = true;
+       int retcode;
 
-       if (runtime_info_get_item(key, &runtime_info_item))
-       {
-               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, RUNTIME_INFO_ERROR_INVALID_PARAMETER);
+       if (runtime_info_get_item(key, &runtime_info_item))     {
+               LOGE("INVALID_PARAMETER(0x%08x) : invalid key", RUNTIME_INFO_ERROR_INVALID_PARAMETER);
                return;
        }
-       
-       if (runtime_info_item->event_subscription == NULL)
-       {
-               LOGE("[%s] IO_ERROR(0x%08x) : invalid event subscription", __FUNCTION__, RUNTIME_INFO_ERROR_IO_ERROR);
+
+       if (runtime_info_item->event_subscription == NULL) {
+               LOGE("IO_ERROR(0x%08x) : invalid event subscription", RUNTIME_INFO_ERROR_IO_ERROR);
                return;
        }
 
        memset(&current_value, 0, sizeof(runtime_info_value_u));
 
-       runtime_info_get_value(key, runtime_info_item->data_type, &current_value);
+       retcode = runtime_info_get_value(key, runtime_info_item->data_type, &current_value);
 
-       if (runtime_info_item->event_subscription->most_recent_value != NULL)
-       {
+       if (retcode != RUNTIME_INFO_ERROR_NONE) {
+               LOGE("IO_ERROR(0x%08x) : failed to get the runtime information", RUNTIME_INFO_ERROR_IO_ERROR);
+               return;
+       }
+
+       if (runtime_info_item->event_subscription->most_recent_value != NULL) {
                if (!memcmp(runtime_info_item->event_subscription->most_recent_value, &current_value, sizeof(runtime_info_value_u)))
-               {
                        dispatch_event = false;
-               }
-       }
-       else
-       {
+       } else {
                runtime_info_item->event_subscription->most_recent_value = calloc(1, sizeof(runtime_info_value_u));
 
-               if (runtime_info_item->event_subscription->most_recent_value == NULL)
-               {
-                       LOGE("[%s] OUT_OF_MEMORY(0x%08x)", __FUNCTION__, RUNTIME_INFO_ERROR_OUT_OF_MEMORY);
+               if (runtime_info_item->event_subscription->most_recent_value == NULL) {
+                       LOGE("OUT_OF_MEMORY(0x%08x)", RUNTIME_INFO_ERROR_OUT_OF_MEMORY);
                        return;
                }
        }
 
-       if (dispatch_event == true && runtime_info_item->event_subscription->changed_cb != NULL)
-       {
+       if (dispatch_event == true && runtime_info_item->event_subscription->changed_cb != NULL) {
                memcpy(runtime_info_item->event_subscription->most_recent_value, &current_value, sizeof(runtime_info_value_u));
                runtime_info_item->event_subscription->changed_cb(key, runtime_info_item->event_subscription->user_data);
        }
old mode 100755 (executable)
new mode 100644 (file)
index d474428..25205ea
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
@@ -28,7 +28,7 @@
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
 
 static const char *VCONF_WIFI_STATUS = VCONFKEY_WIFI_STATE;
 static const char *VCONF_BT_ENABLED = VCONFKEY_BT_STATUS;
@@ -36,20 +36,19 @@ static const char *VCONF_WIFI_HOTSPOT_ENABLED = VCONFKEY_MOBILE_HOTSPOT_MODE;
 static const char *VCONF_BT_HOTSPOT_ENABLED = VCONFKEY_MOBILE_HOTSPOT_MODE;
 static const char *VCONF_USB_HOTSPOT_ENABLED = VCONFKEY_MOBILE_HOTSPOT_MODE;
 static const char *VCONF_PACKET_DATA_ENABLED = VCONFKEY_3G_ENABLE;
-static const char *VCONF_DATA_ROAMING_ENABLED = "db/setting/data_roaming";
+static const char *VCONF_DATA_ROAMING_ENABLED = VCONFKEY_SETAPPL_STATE_DATA_ROAMING_BOOL;
 static const char *VCONF_GPS_STATUS = VCONFKEY_LOCATION_GPS_STATE;
 
 int runtime_info_wifi_status_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_WIFI_STATUS, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       switch (vconf_value)
-       {
+       ret = runtime_info_vconf_get_value_int(VCONF_WIFI_STATUS, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       switch (vconf_value) {
        case VCONFKEY_WIFI_OFF:
                value->i = RUNTIME_INFO_WIFI_STATUS_DISABLED;
                break;
@@ -61,13 +60,13 @@ int runtime_info_wifi_status_get_value(runtime_info_value_h value)
        case VCONFKEY_WIFI_CONNECTED:
        case VCONFKEY_WIFI_TRANSFER:
                value->i = RUNTIME_INFO_WIFI_STATUS_CONNECTED;
-               break;  
-       
+               break;
+
        default:
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_wifi_status_set_event_cb()
@@ -75,7 +74,7 @@ int runtime_info_wifi_status_set_event_cb()
        return runtime_info_vconf_set_event_cb(VCONF_WIFI_STATUS, RUNTIME_INFO_KEY_WIFI_STATUS, 0);
 }
 
-void runtime_info_wifi_status_unset_event_cb ()
+void runtime_info_wifi_status_unset_event_cb()
 {
        runtime_info_vconf_unset_event_cb(VCONF_WIFI_STATUS, 0);
 }
@@ -83,14 +82,13 @@ void runtime_info_wifi_status_unset_event_cb ()
 int runtime_info_bt_enabled_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_BT_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       switch (vconf_value)
-       {
+       ret = runtime_info_vconf_get_value_int(VCONF_BT_ENABLED, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       switch (vconf_value) {
        case VCONFKEY_BT_STATUS_OFF:
                value->b = false;
                break;
@@ -99,13 +97,13 @@ int runtime_info_bt_enabled_get_value(runtime_info_value_h value)
        case VCONFKEY_BT_STATUS_BT_VISIBLE:
        case VCONFKEY_BT_STATUS_TRANSFER:
                value->b = true;
-               break;  
-       
+               break;
+
        default:
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_bt_enabled_set_event_cb()
@@ -113,7 +111,7 @@ int runtime_info_bt_enabled_set_event_cb()
        return runtime_info_vconf_set_event_cb(VCONF_BT_ENABLED, RUNTIME_INFO_KEY_BLUETOOTH_ENABLED, 0);
 }
 
-void runtime_info_bt_enabled_unset_event_cb ()
+void runtime_info_bt_enabled_unset_event_cb()
 {
        runtime_info_vconf_unset_event_cb(VCONF_BT_ENABLED, 0);
 }
@@ -122,15 +120,13 @@ void runtime_info_bt_enabled_unset_event_cb ()
 int runtime_info_wifi_hotspot_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_WIFI_HOTSPOT_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_WIFI) ? true : false;
+       ret = runtime_info_vconf_get_value_int(VCONF_WIFI_HOTSPOT_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_WIFI) ? true : false;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_wifi_hotspot_set_event_cb()
@@ -146,15 +142,13 @@ void runtime_info_wifi_hotspot_unset_event_cb()
 int runtime_info_bt_hotspot_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_BT_HOTSPOT_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_BT) ? true : false;
+       ret = runtime_info_vconf_get_value_int(VCONF_BT_HOTSPOT_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_BT) ? true : false;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_bt_hotspot_set_event_cb()
@@ -170,15 +164,13 @@ void runtime_info_bt_hotspot_unset_event_cb()
 int runtime_info_usb_hotspot_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_USB_HOTSPOT_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_USB) ? true : false;
+       ret = runtime_info_vconf_get_value_int(VCONF_USB_HOTSPOT_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (vconf_value&VCONFKEY_MOBILE_HOTSPOT_MODE_USB) ? true : false;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_usb_hotspot_set_event_cb()
@@ -193,16 +185,14 @@ void runtime_info_usb_hotspot_unset_event_cb()
 
 int runtime_info_packet_data_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_PACKET_DATA_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int vconf_value;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_PACKET_DATA_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (bool)vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_packet_data_set_event_cb()
@@ -217,16 +207,14 @@ void runtime_info_packet_data_unset_event_cb()
 
 int runtime_info_data_roaming_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_DATA_ROAMING_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int vconf_value;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_DATA_ROAMING_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (bool)vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_data_roaming_set_event_cb()
@@ -242,14 +230,13 @@ void runtime_info_data_roaming_unset_event_cb()
 int runtime_info_gps_status_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_GPS_STATUS, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
+
+       ret = runtime_info_vconf_get_value_int(VCONF_GPS_STATUS, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case VCONFKEY_LOCATION_GPS_OFF:
                value->i = RUNTIME_INFO_GPS_STATUS_DISABLED;
                break;
@@ -261,12 +248,12 @@ int runtime_info_gps_status_get_value(runtime_info_value_h value)
        case VCONFKEY_LOCATION_GPS_CONNECTED:
                value->i = RUNTIME_INFO_GPS_STATUS_CONNECTED;
                break;
-       
+
        default:
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_gps_status_set_event_cb()
old mode 100755 (executable)
new mode 100644 (file)
index e2bc74e..a545c92
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
 
-static const char *VCONF_24HOUR_FORMAT = "db/menu_widget/regionformat_time1224";
-static const char *VCONF_FIRST_DAY_OF_WEEK = "db/setting/weekofday_format";
+static const char *VCONF_24HOUR_FORMAT = VCONFKEY_REGIONFORMAT_TIME1224;
+static const char *VCONF_FIRST_DAY_OF_WEEK = VCONFKEY_SETAPPL_WEEKOFDAY_FORMAT_INT;
 static const char *VCONF_LANGUAGE = VCONFKEY_LANGSET;
 static const char *VCONF_REGION = VCONFKEY_REGIONFORMAT;
 
 int runtime_info_24hour_format_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_24HOUR_FORMAT, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       switch (vconf_value)
-       {
+       ret = runtime_info_vconf_get_value_int(VCONF_24HOUR_FORMAT, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       switch (vconf_value) {
        case VCONFKEY_TIME_FORMAT_12:
                value->b = false;
                break;
@@ -58,7 +57,7 @@ int runtime_info_24hour_format_get_value(runtime_info_value_h value)
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_24hour_format_set_event_cb()
@@ -74,14 +73,13 @@ void runtime_info_24hour_format_unset_event_cb()
 int runtime_info_first_day_of_week_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_FIRST_DAY_OF_WEEK, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
+
+       ret = runtime_info_vconf_get_value_int(VCONF_FIRST_DAY_OF_WEEK, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case SETTING_WEEKOFDAY_FORMAT_SUNDAY:
                value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_SUNDAY;
                break;
@@ -114,7 +112,7 @@ int runtime_info_first_day_of_week_get_value(runtime_info_value_h value)
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_first_day_of_week_set_event_cb()
@@ -130,15 +128,21 @@ void runtime_info_first_day_of_week_unset_event_cb()
 int runtime_info_language_get_value(runtime_info_value_h value)
 {
        char *vconf_value;
-       
-       if (runtime_info_vconf_get_value_string(VCONF_LANGUAGE, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       char *token = NULL;
+       int ret;
+
+       ret = runtime_info_vconf_get_value_string(VCONF_LANGUAGE, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       token = strchr(vconf_value, '.');
+
+       if(token)
+               *token = '\0';
 
        value->s = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_language_set_event_cb()
@@ -154,15 +158,13 @@ void runtime_info_language_unset_event_cb()
 int runtime_info_region_get_value(runtime_info_value_h value)
 {
        char *vconf_value;
-       
-       if (runtime_info_vconf_get_value_string(VCONF_REGION, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->s = vconf_value;
+       ret = runtime_info_vconf_get_value_string(VCONF_REGION, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->s = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_region_set_event_cb()
@@ -170,7 +172,7 @@ int runtime_info_region_set_event_cb()
        return runtime_info_vconf_set_event_cb(VCONF_REGION, RUNTIME_INFO_KEY_REGION, 0);
 }
 
-void runtime_info_region_unset_event_cb ()
+void runtime_info_region_unset_event_cb()
 {
        runtime_info_vconf_unset_event_cb(VCONF_REGION, 0);
 }
old mode 100755 (executable)
new mode 100644 (file)
index 458928f..11e4ba1
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
 
-static const char *VCONF_LOCATION_SERVICE_ENABLED = "db/location/setting/GpsEnabled";
-static const char *VCONF_LOCATION_AGPS_ENABLED = "db/location/setting/AgpsEnabled";
-static const char *VCONF_LOCATION_NETWORK_ENABLED = "db/location/setting/NetworkEnabled";
-static const char *VCONF_LOCATION_SENSOR_ENABLED = "db/location/setting/SensorEnabled";
+static const char *VCONF_LOCATION_SERVICE_ENABLED = VCONFKEY_LOCATION_ENABLED;
+static const char *VCONF_LOCATION_AGPS_ENABLED = VCONFKEY_LOCATION_AGPS_ENABLED;
+static const char *VCONF_LOCATION_NETWORK_ENABLED = VCONFKEY_LOCATION_NETWORK_ENABLED;
 
 int runtime_info_location_service_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_LOCATION_SERVICE_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_SERVICE_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_location_service_set_event_cb()
@@ -62,15 +59,13 @@ void runtime_info_location_service_unset_event_cb()
 int runtime_info_location_agps_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_LOCATION_AGPS_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_AGPS_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_location_agps_set_event_cb()
@@ -86,15 +81,13 @@ void runtime_info_location_agps_unset_event_cb()
 int runtime_info_location_network_get_value(runtime_info_value_h value)
 {
        int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_LOCATION_NETWORK_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_NETWORK_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
 int runtime_info_location_network_set_event_cb()
@@ -106,28 +99,3 @@ void runtime_info_location_network_unset_event_cb()
 {
        runtime_info_vconf_unset_event_cb(VCONF_LOCATION_NETWORK_ENABLED, 0);
 }
-
-int runtime_info_location_sensor_get_value(runtime_info_value_h value)
-{
-       int vconf_value;
-       
-       if (runtime_info_vconf_get_value_int(VCONF_LOCATION_SENSOR_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
-
-       value->b = vconf_value;
-
-       return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_location_sensor_set_event_cb()
-{
-       return runtime_info_vconf_set_event_cb(VCONF_LOCATION_SENSOR_ENABLED, RUNTIME_INFO_KEY_LOCATION_SENSOR_AIDING_ENABLED, 0);
-}
-
-void runtime_info_location_sensor_unset_event_cb()
-{
-       runtime_info_vconf_unset_event_cb(VCONF_LOCATION_SENSOR_ENABLED, 0);
-}
-
old mode 100755 (executable)
new mode 100644 (file)
index 1595e3f..f4d41fd
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
 
-static const char *VCONF_FLIGHT_MODE = VCONFKEY_SETAPPL_FLIGHT_MODE_BOOL;
+static const char *VCONF_FLIGHT_MODE = VCONFKEY_TELEPHONY_FLIGHT_MODE;
 static const char *VCONF_AUDIO_JACK = VCONFKEY_SYSMAN_EARJACK;
-static const char *VCONF_SILENT_MODE = "db/setting/sound/sound_on";
-static const char *VCONF_VIBRATION_ENABLED = "db/setting/sound/vibration_on";
-static const char *VCONF_ROTATION_LOCK_ENABLED = VCONFKEY_SETAPPL_ROTATE_LOCK_BOOL;
+static const char *VCONF_SOUND_ENABLED = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL;
+static const char *VCONF_VIBRATION_ENABLED = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL;
+static const char *VCONF_ROTATION_LOCK_ENABLED = VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL;
 static const char *VCONF_BATTERY_CHARGING = VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW;
 static const char *VCONF_TVOUT_CONNECTED = VCONFKEY_SYSMAN_EARJACK;
 static const char *VCONF_AUDIO_JACK_STATUS = VCONFKEY_SYSMAN_EARJACK;
@@ -45,39 +45,36 @@ static const char *VCONF_CHARGER_CONNECTED = VCONFKEY_SYSMAN_CHARGER_STATUS;
 
 int runtime_info_flightmode_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_FLIGHT_MODE, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int vconf_value;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_FLIGHT_MODE, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (bool)vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_flightmode_set_event_cb()
+int runtime_info_flightmode_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_FLIGHT_MODE, RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, 0);
 }
 
-void runtime_info_flightmode_unset_event_cb()
+void runtime_info_flightmode_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_FLIGHT_MODE, 0);
 }
 
-int runtime_info_audiojack_get_value (runtime_info_value_h value)
+int runtime_info_audiojack_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_AUDIO_JACK, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_AUDIO_JACK, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case VCONFKEY_SYSMAN_EARJACK_3WIRE:
        case VCONFKEY_SYSMAN_EARJACK_4WIRE:
                value->b = true;
@@ -88,127 +85,138 @@ int runtime_info_audiojack_get_value (runtime_info_value_h value)
                break;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_audiojack_set_event_cb ()
+int runtime_info_audiojack_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_AUDIO_JACK, RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED, 0);
 }
 
-void runtime_info_audiojack_unset_event_cb()
+void runtime_info_audiojack_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK, 0);
 }
 
 int runtime_info_silent_mode_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_SILENT_MODE, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int sound, vib;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_SOUND_ENABLED, &sound);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       ret = runtime_info_vconf_get_value_bool(VCONF_VIBRATION_ENABLED, &vib);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       if (sound == 0 && vib == 0)
+               value->b = true;
+       else
+               value->b = false;
+
+       return ret;
 }
 
-int runtime_info_silent_mode_set_event_cb()
+int runtime_info_silent_mode_set_event_cb(void)
 {
-       return runtime_info_vconf_set_event_cb(VCONF_SILENT_MODE, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 0);
+       int ret;
+
+       ret = runtime_info_vconf_set_event_cb(VCONF_SOUND_ENABLED, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 0);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
+
+       ret = runtime_info_vconf_set_event_cb(VCONF_VIBRATION_ENABLED, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 1);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               runtime_info_vconf_unset_event_cb(VCONF_SOUND_ENABLED, 0);
+
+       return ret;
 }
 
-void runtime_info_silent_mode_unset_event_cb()
+void runtime_info_silent_mode_unset_event_cb(void)
 {
-       runtime_info_vconf_unset_event_cb(VCONF_SILENT_MODE, 0);
+       runtime_info_vconf_unset_event_cb(VCONF_SOUND_ENABLED, 0);
+       runtime_info_vconf_unset_event_cb(VCONF_VIBRATION_ENABLED, 1);
 }
 
 int runtime_info_vibration_enabled_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_VIBRATION_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int vconf_value;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_VIBRATION_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (bool)vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_vibration_enabled_set_event_cb()
+int runtime_info_vibration_enabled_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_VIBRATION_ENABLED, RUNTIME_INFO_KEY_VIBRATION_ENABLED, 0);
 }
 
-void runtime_info_vibration_enabled_unset_event_cb()
+void runtime_info_vibration_enabled_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_VIBRATION_ENABLED, 0);
 }
 
-int runtime_info_rotation_lock_enabled_get_value(runtime_info_value_h value)
+int runtime_info_auto_rotation_enabled_get_value(runtime_info_value_h value)
 {
-       bool vconf_value;
-       
-       if (runtime_info_vconf_get_value_bool(VCONF_ROTATION_LOCK_ENABLED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       int vconf_value;
+       int ret;
 
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_bool(VCONF_ROTATION_LOCK_ENABLED, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = (bool)vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_rotation_lock_enabled_set_event_cb()
+int runtime_info_auto_rotation_enabled_set_event_cb(void)
 {
-       return runtime_info_vconf_set_event_cb(VCONF_ROTATION_LOCK_ENABLED, RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED, 0);
+       return runtime_info_vconf_set_event_cb(VCONF_ROTATION_LOCK_ENABLED, RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, 0);
 }
 
-void runtime_info_rotation_lock_enabled_unset_event_cb()
+void runtime_info_auto_rotation_enabled_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_ROTATION_LOCK_ENABLED, 0);
 }
 
-int runtime_info_battery_charging_get_value (runtime_info_value_h value)
+int runtime_info_battery_charging_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_BATTERY_CHARGING, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
-
-       value->b = vconf_value;
+       ret = runtime_info_vconf_get_value_int(VCONF_BATTERY_CHARGING, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
+               value->b = vconf_value;
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_battery_charging_set_event_cb ()
+int runtime_info_battery_charging_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_BATTERY_CHARGING, RUNTIME_INFO_KEY_BATTERY_IS_CHARGING, 0);
 }
 
-void runtime_info_battery_charging_unset_event_cb()
+void runtime_info_battery_charging_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_BATTERY_CHARGING, 0);
 }
 
 
-int runtime_info_tvout_connected_get_value (runtime_info_value_h value)
+int runtime_info_tvout_connected_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_TVOUT_CONNECTED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_TVOUT_CONNECTED, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case VCONFKEY_SYSMAN_EARJACK_TVOUT:
                value->b = true;
                break;
@@ -218,31 +226,30 @@ int runtime_info_tvout_connected_get_value (runtime_info_value_h value)
                break;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_tvout_connected_set_event_cb ()
+int runtime_info_tvout_connected_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_TVOUT_CONNECTED, RUNTIME_INFO_KEY_TV_OUT_CONNECTED, 1);
 }
 
-void runtime_info_tvout_connected_unset_event_cb()
+void runtime_info_tvout_connected_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_TVOUT_CONNECTED, 1);
 }
 
 
-int runtime_info_audio_jack_status_get_value (runtime_info_value_h value)
+int runtime_info_audio_jack_status_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_AUDIO_JACK_STATUS, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_AUDIO_JACK_STATUS, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case VCONFKEY_SYSMAN_EARJACK_3WIRE:
                value->i = RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE;
                break;
@@ -256,31 +263,30 @@ int runtime_info_audio_jack_status_get_value (runtime_info_value_h value)
                break;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_audio_jack_status_set_event_cb ()
+int runtime_info_audio_jack_status_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_AUDIO_JACK_STATUS, RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, 2);
 }
 
-void runtime_info_audio_jack_status_unset_event_cb()
+void runtime_info_audio_jack_status_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK_STATUS, 2);
 }
 
 
-int runtime_info_sliding_keyboard_opened_get_value (runtime_info_value_h value)
+int runtime_info_sliding_keyboard_opened_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_SLIDING_KEYBOARD_STATUS, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_SLIDING_KEYBOARD_STATUS, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
+       switch (vconf_value) {
        case VCONFKEY_SYSMAN_SLIDING_KEYBOARD_NOT_AVAILABE:
                value->b = false;
                break;
@@ -297,15 +303,15 @@ int runtime_info_sliding_keyboard_opened_get_value (runtime_info_value_h value)
                return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_sliding_keyboard_opened_set_event_cb ()
+int runtime_info_sliding_keyboard_opened_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, 0);
 }
 
-void runtime_info_sliding_keyboard_opened_unset_event_cb()
+void runtime_info_sliding_keyboard_opened_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, 0);
 }
@@ -314,39 +320,38 @@ void runtime_info_sliding_keyboard_opened_unset_event_cb()
 int runtime_info_usb_connected_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_USB_CONNECTED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_USB_CONNECTED, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
-               case VCONFKEY_SYSMAN_USB_DISCONNECTED:
-                       value->b = false;
-                       break;
+       switch (vconf_value) {
+       case VCONFKEY_SYSMAN_USB_DISCONNECTED:
+               value->b = false;
+               break;
 
-               case VCONFKEY_SYSMAN_USB_CONNECTED:
-                       value->b = false;
-                       break;
+       case VCONFKEY_SYSMAN_USB_CONNECTED:
+               value->b = false;
+               break;
 
-               case VCONFKEY_SYSMAN_USB_AVAILABLE:
-                       value->b = true;
-                       break;
+       case VCONFKEY_SYSMAN_USB_AVAILABLE:
+               value->b = true;
+               break;
 
-               default:
-                       return RUNTIME_INFO_ERROR_IO_ERROR;
+       default:
+               return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_usb_connected_set_event_cb()
+int runtime_info_usb_connected_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_USB_CONNECTED, RUNTIME_INFO_KEY_USB_CONNECTED, 0);
 }
 
-void runtime_info_usb_connected_unset_event_cb()
+void runtime_info_usb_connected_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_USB_CONNECTED, 0);
 }
@@ -354,72 +359,57 @@ void runtime_info_usb_connected_unset_event_cb()
 int runtime_info_charger_connected_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONF_CHARGER_CONNECTED, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
+       ret = runtime_info_vconf_get_value_int(VCONF_CHARGER_CONNECTED, &vconf_value);
+       if (ret != RUNTIME_INFO_ERROR_NONE)
+               return ret;
 
-       switch (vconf_value)
-       {
-               case VCONFKEY_SYSMAN_CHARGER_DISCONNECTED:
-                       value->b = false;
-                       break;
+       switch (vconf_value) {
+       case VCONFKEY_SYSMAN_CHARGER_DISCONNECTED:
+               value->b = false;
+               break;
 
-               case VCONFKEY_SYSMAN_CHARGER_CONNECTED:
-                       value->b = true;
-                       break;
+       case VCONFKEY_SYSMAN_CHARGER_CONNECTED:
+               value->b = true;
+               break;
 
-               default:
-                       return RUNTIME_INFO_ERROR_IO_ERROR;
+       default:
+               return RUNTIME_INFO_ERROR_IO_ERROR;
        }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_charger_connected_set_event_cb()
+int runtime_info_charger_connected_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONF_CHARGER_CONNECTED, RUNTIME_INFO_KEY_CHARGER_CONNECTED, 0);
 }
 
-void runtime_info_charger_connected_unset_event_cb()
+void runtime_info_charger_connected_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONF_CHARGER_CONNECTED, 0);
 }
 
 
-int runtime_info_vibration_level_haptic_feedback_get_value (runtime_info_value_h value)
+int runtime_info_vibration_level_haptic_feedback_get_value(runtime_info_value_h value)
 {
        int vconf_value;
+       int ret;
 
-       if (runtime_info_vconf_get_value_int(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, &vconf_value))
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
-
-       switch (vconf_value)
-       {
-       case 0:
-       case 1:
-       case 2:
-       case 3:
-       case 4:
-       case 5:
+       ret = runtime_info_vconf_get_value_int(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, &vconf_value);
+       if (ret == RUNTIME_INFO_ERROR_NONE)
                value->i = vconf_value;
-               break;
-       default:
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       return ret;
 }
 
-int runtime_info_vibration_level_haptic_feedback_set_event_cb ()
+int runtime_info_vibration_level_haptic_feedback_set_event_cb(void)
 {
        return runtime_info_vconf_set_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, 0);
 }
 
-void runtime_info_vibration_level_haptic_feedback_unset_event_cb()
+void runtime_info_vibration_level_haptic_feedback_unset_event_cb(void)
 {
        runtime_info_vconf_unset_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, 0);
 }
old mode 100755 (executable)
new mode 100644 (file)
index 6caea0b..e9c8e38
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
 #undef LOG_TAG
 #endif
 
-#define LOG_TAG "TIZEN_N_RUNTIME_INFO"
+#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
+
+#define CHECK_VCONF_RESULT(ret) \
+       do { \
+               if (ret < 0) { \
+                       ret = vconf_get_ext_errno(); \
+                       if (ret == VCONF_ERROR_FILE_NO_ENT) \
+                               ret = RUNTIME_INFO_ERROR_NOT_SUPPORTED; \
+                       else \
+                               ret = RUNTIME_INFO_ERROR_IO_ERROR; \
+               } else { \
+                       ret = RUNTIME_INFO_ERROR_NONE; \
+               } \
+       } while (0);
 
 int runtime_info_vconf_get_value_int(const char *vconf_key, int *value)
 {
-       return vconf_get_int(vconf_key, value);
+       int ret = vconf_get_int(vconf_key, value);
+       CHECK_VCONF_RESULT(ret);
+       return ret;
 }
 
-int runtime_info_vconf_get_value_bool(const char *vconf_key, bool *value)
+int runtime_info_vconf_get_value_bool(const char *vconf_key, int *value)
 {
-       return vconf_get_bool(vconf_key, (int*)value);
+       int ret = vconf_get_bool(vconf_key, value);
+       CHECK_VCONF_RESULT(ret);
+       return ret;
 }
 
 int runtime_info_vconf_get_value_double(const char *vconf_key, double *value)
 {
-       return vconf_get_dbl(vconf_key, value);
+       int ret = vconf_get_dbl(vconf_key, value);
+       CHECK_VCONF_RESULT(ret);
+       return ret;
 }
 
 int runtime_info_vconf_get_value_string(const char *vconf_key, char **value)
 {
        char *str_value = NULL;
+       int ret;
 
        str_value = vconf_get_str(vconf_key);
-               
-       if (str_value != NULL)
-       {
-               *value = str_value;
-               return 0;
-       }
-       else
-       {
-               return -1;
+       if (!str_value) {
+               ret = -1;
+               CHECK_VCONF_RESULT(ret);
+               return ret;
        }
+
+       *value = str_value;
+       return RUNTIME_INFO_ERROR_NONE;
 }
 
 typedef void (*runtime_info_vconf_event_cb)(keynode_t *node, void *event_data);
@@ -67,47 +85,36 @@ typedef void (*runtime_info_vconf_event_cb)(keynode_t *node, void *event_data);
 static void runtime_info_vconf_event_cb0(keynode_t *node, void *event_data)
 {
        if (node != NULL)
-       {
                runtime_info_updated((runtime_info_key_e)event_data);
-       }               
 }
 
 static void runtime_info_vconf_event_cb1(keynode_t *node, void *event_data)
 {
        if (node != NULL)
-       {
                runtime_info_updated((runtime_info_key_e)event_data);
-       }               
 }
 
 static void runtime_info_vconf_event_cb2(keynode_t *node, void *event_data)
 {
        if (node != NULL)
-       {
                runtime_info_updated((runtime_info_key_e)event_data);
-       }               
 }
 
 static void runtime_info_vconf_event_cb3(keynode_t *node, void *event_data)
 {
        if (node != NULL)
-       {
                runtime_info_updated((runtime_info_key_e)event_data);
-       }               
 }
 
 static void runtime_info_vconf_event_cb4(keynode_t *node, void *event_data)
 {
        if (node != NULL)
-       {
                runtime_info_updated((runtime_info_key_e)event_data);
-       }               
 }
 
 static runtime_info_vconf_event_cb runtime_info_vconf_get_event_cb_slot(int slot)
 {
-       switch (slot)
-       {
+       switch (slot) {
        case 0:
                return runtime_info_vconf_event_cb0;
 
@@ -128,34 +135,27 @@ static runtime_info_vconf_event_cb runtime_info_vconf_get_event_cb_slot(int slot
        }
 }
 
-int runtime_info_vconf_set_event_cb (const char *vconf_key, runtime_info_key_e runtime_info_key, int slot)
+int runtime_info_vconf_set_event_cb(const char *vconf_key, runtime_info_key_e runtime_info_key, int slot)
 {
        runtime_info_vconf_event_cb vconf_event_cb;
+       int ret;
 
        vconf_event_cb = runtime_info_vconf_get_event_cb_slot(slot);
 
        if (vconf_event_cb == NULL)
-       {
-               return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
-
-       if (vconf_notify_key_changed(vconf_key, vconf_event_cb, (void*)runtime_info_key))
-       {
                return RUNTIME_INFO_ERROR_IO_ERROR;
-       }
 
-       return RUNTIME_INFO_ERROR_NONE;
+       ret = vconf_notify_key_changed(vconf_key, vconf_event_cb, (void *)runtime_info_key);
+       CHECK_VCONF_RESULT(ret);
+       return ret;
 }
 
-void runtime_info_vconf_unset_event_cb (const char *vconf_key, int slot)
+void runtime_info_vconf_unset_event_cb(const char *vconf_key, int slot)
 {
        runtime_info_vconf_event_cb vconf_event_cb;
 
        vconf_event_cb = runtime_info_vconf_get_event_cb_slot(slot);
 
        if (vconf_event_cb != NULL)
-       {
                vconf_ignore_key_changed(vconf_key, vconf_event_cb);
-       }
 }
-