+++ /dev/null
-//
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-//
-// 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.
-//
-
-/**
- * @file FSys_SystemInfo.cpp
- * @brief This is the implementation file for _SystemInfo class.
- */
-
-#include <unique_ptr.h>
-#include <sys/stat.h>
-#include <sys/utsname.h>
-#include <stdlib.h>
-#include <dlfcn.h>
-#include <media/sound_manager.h>
-#include <sim.h>
-#include <sensor.h>
-#include <sensors.h>
-#include <system_info.h>
-#include <telephony_network.h>
-#include <locations.h>
-
-#include <FBaseColIMapEnumerator.h>
-#include <FBaseInteger.h>
-#include <FBaseSysLog.h>
-#include <FBaseUtilStringUtil.h>
-#include <FBaseUtilStringTokenizer.h>
-#include <FIoFile.h>
-#include <FIoRegistry.h>
-#include <FIoDirectory.h>
-#include <FSysIDeviceEventListener.h>
-#include <FSysIScreenEventListener.h>
-#include <FSysIChargingEventListener.h>
-#include <FSysIBatteryEventListener.h>
-
-#include <FAppPkg_PackageManagerImpl.h>
-#include <FBase_NativeError.h>
-#include <FBase_StringConverter.h>
-#include <FIo_RegistryImpl.h>
-#include <FSys_DeviceId.h>
-#include <FSys_SystemInfo.h>
-
-using namespace std;
-using namespace Tizen::App;
-using namespace Tizen::App::Package;
-using namespace Tizen::Base;
-using namespace Tizen::Base::Collection;
-using namespace Tizen::Base::Utility;
-using namespace Tizen::Io;
-
-namespace Tizen { namespace System
-{
-//Camera
-static const wchar_t* _CAMERA = L"http://tizen.org/feature/camera";
-static const wchar_t* _CAMERA_BACK = L"http://tizen.org/feature/camera.back";
-static const wchar_t* _CAMERA_BACK_FLASH = L"http://tizen.org/feature/camera.back.flash";
-static const wchar_t* _CAMERA_FRONT = L"http://tizen.org/feature/camera.front";
-static const wchar_t* _CAMERA_FRONT_FLASH = L"http://tizen.org/feature/camera.front.flash";
-//Database
-static const wchar_t* _DATABASE_ENCRYPTION = L"http://tizen.org/feature/database.encryption";
-static const char* _DATABASE_LIBRARY_PATH = "/usr/lib/libsqlite3.so.0";
-static const char* _DATABASE_ENCRYPTION_SYMBOL = "sqlite3_key";
-//FM Radio
-static const wchar_t* _FMRADIO = L"http://tizen.org/feature/fmradio";
-//Graphic
-static const wchar_t* _GRAPHIC_ACCELERATION = L"http://tizen.org/feature/graphics.acceleration";
-//Input
-static const wchar_t* _INPUT_KEYBOARD = L"http://tizen.org/feature/input.keyboard";
-static const wchar_t* _INPUT_KEYBOARD_LAYOUT = L"http://tizen.org/feature/input.keyboard.layout";
-static const wchar_t* _INPUT_KEYS_BACK = L"http://tizen.org/feature/input.keys.back";
-static const wchar_t* _INPUT_KEYS_MENU = L"http://tizen.org/feature/input.keys.menu";
-//Location
-static const wchar_t* _LOCATION = L"http://tizen.org/feature/location";
-static const wchar_t* _LOCATION_GPS = L"http://tizen.org/feature/location.gps";
-static const wchar_t* _LOCATION_WPS = L"http://tizen.org/feature/location.wps";
-//Microphone
-static const wchar_t* _MICROPHONE = L"http://tizen.org/feature/microphone";
-//Multi point
-static const wchar_t* _MULTIPOINTTOUCH_PINCHZOOM = L"http://tizen.org/feature/multi_point_touch.pinch_zoom";
-static const wchar_t* _MULTIPOINTTOUCH_POINTCOUNT = L"http://tizen.org/feature/multi_point_touch.point_count";
-//Network bluetooth
-static const wchar_t* _NETWORK_BLUETOOTH = L"http://tizen.org/feature/network.bluetooth";
-//Network NFC
-static const wchar_t* _NETWORK_NFC = L"http://tizen.org/feature/network.nfc";
-static const wchar_t* _NETWORK_NFC_RESERVED_PUSH = L"http://tizen.org/feature/network.nfc.reserved_push";
-//Network push
-static const wchar_t* _NETWORK_PUSH = L"http://tizen.org/feature/network.push";
-static const wchar_t* _NETWORK_PUSH_BIN = L"/usr/bin/pushd";
-static const wchar_t* _NETWORK_SECURE_ELEMENT = L"http://tizen.org/feature/network.secure_element";
-static const wchar_t* _SECURE_ELEMENT_BIN = L"/usr/bin/smartcard-daemon";
-//Network telephony
-static const wchar_t* _NETWORK_TELEPHONY = L"http://tizen.org/feature/network.telephony";
-static const wchar_t* _NETWORK_TELEPHONY_MMS = L"http://tizen.org/feature/network.telephony.mms";
-static const wchar_t* _NETWORK_TELEPHONY_SMS = L"http://tizen.org/feature/network.telephony.sms";
-static const wchar_t* _NETWORK_TELEPHONY_SMS_CBS = L"http://tizen.org/feature/network.telephony.sms.cbs";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_CDMA = L"http://tizen.org/feature/network.telephony.service.cdma";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_EDGE = L"http://tizen.org/feature/network.telephony.service.edge";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_GPRS = L"http://tizen.org/feature/network.telephony.service.gprs";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_GSM = L"http://tizen.org/feature/network.telephony.service.gsm";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSDPA = L"http://tizen.org/feature/network.telephony.service.hsdpa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSPA = L"http://tizen.org/feature/network.telephony.service.hspa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSUPA = L"http://tizen.org/feature/network.telephony.service.hsupa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_LTE = L"http://tizen.org/feature/network.telephony.service.lte";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_UMTS = L"http://tizen.org/feature/network.telephony.service.umts";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_BIN = L"/usr/bin/telephony-daemon";
-static const wchar_t* _NETWORK_TELEPHONY_MODEM_BIN = L"/boot/modem.bin";
-//Network WIFI
-static const wchar_t* _NETWORK_WIFI = L"http://tizen.org/feature/network.wifi";
-static const wchar_t* _NETWORK_WIFI_DIRECT = L"http://tizen.org/feature/network.wifi.direct";
-//Opengles
-static const wchar_t* _OPENGLES = L"http://tizen.org/feature/opengles";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_3DC = L"http://tizen.org/feature/opengles.texture_format.3dc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_ATC = L"http://tizen.org/feature/opengles.texture_format.atc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_ETC = L"http://tizen.org/feature/opengles.texture_format.etc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_PTC = L"http://tizen.org/feature/opengles.texture_format.ptc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_PVRTC = L"http://tizen.org/feature/opengles.texture_format.pvrtc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_UTC = L"http://tizen.org/feature/opengles.texture_format.utc";
-static const wchar_t* _OPENGLES_VERSION_1_1 = L"http://tizen.org/feature/opengles.version.1_1";
-static const wchar_t* _OPENGLES_VERSION_2_0 = L"http://tizen.org/feature/opengles.version.2_0";
-//Platform core CPU
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_ARMV6 = L"http://tizen.org/feature/platform.core.cpu.arch.armv6";
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_ARMV7 = L"http://tizen.org/feature/platform.core.cpu.arch.armv7";
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_X86 = L"http://tizen.org/feature/platform.core.cpu.arch.x86";
-//Platform core FPU
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSE2 = L"http://tizen.org/feature/platform.core.fpu.arch.sse2";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSE3 = L"http://tizen.org/feature/platform.core.fpu.arch.sse3";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSSE3 = L"http://tizen.org/feature/platform.core.fpu.arch.ssse3";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_VFPV2 = L"http://tizen.org/feature/platform.core.fpu.arch.vfpv2";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_VFPV3 = L"http://tizen.org/feature/platform.core.fpu.arch.vfpv3";
-//Platform Version
-static const wchar_t* _PLATFORM_NATIVE_API_VERSION = L"http://tizen.org/feature/platform.native.api.version";
-static const wchar_t* _PLATFORM_NATIVE_OSP_COMPATIBLE = L"http://tizen.org/feature/platform.native.osp_compatible";
-static const wchar_t* _PLATFORM_VERSION = L"http://tizen.org/feature/platform.version";
-static const wchar_t* _PLATFORM_WEB_API_VERSION = L"http://tizen.org/feature/platform.web.api.version";
-//Screen
-static const wchar_t* _SCREEN_AUTO_ROTATION = L"http://tizen.org/feature/screen.auto_rotation";
-static const wchar_t* _SCREEN_BPP = L"http://tizen.org/feature/screen.bpp";
-static const wchar_t* _SCREEN_COORDINATE_SYSTEM_SIZE_LARGE = L"http://tizen.org/feature/screen.coordinate_system.size.large";
-static const wchar_t* _SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL = L"http://tizen.org/feature/screen.coordinate_system.size.normal";
-static const wchar_t* _SCREEN_DESKTOPMODE = L"http://tizen.org/feature/screen.desktop_mode";
-static const wchar_t* _SCREEN_DPI = L"http://tizen.org/feature/screen.dpi";
-static const wchar_t* _SCREEN_HEIGHT = L"http://tizen.org/feature/screen.height";
-static const wchar_t* _SCREEN_SIZE_LARGE = L"http://tizen.org/feature/screen.size.large";
-static const wchar_t* _SCREEN_SIZE_NORMAL = L"http://tizen.org/feature/screen.size.normal";
-static const wchar_t* _SCREEN_SIZE_NORMAL_480_800 = L"http://tizen.org/feature/screen.size.normal.480.800";
-static const wchar_t* _SCREEN_SIZE_NORMAL_720_1280 = L"http://tizen.org/feature/screen.size.normal.720.1280";
-static const wchar_t* _SCREEN_WIDTH = L"http://tizen.org/feature/screen.width";
-//Screen HDMI RCA
-static const wchar_t* _SCREEN_OUTPUT_HDMI = L"http://tizen.org/feature/screen.output.hdmi";
-static const wchar_t* _SCREEN_OUTPUT_RCA = L"http://tizen.org/feature/screen.output.rca";
-//Shell
-static const wchar_t* _SHELL_APPWIDGET = L"http://tizen.org/feature/shell.appwidget";
-//Sensor
-static const wchar_t* _SENSOR_ACCELEROMETER = L"http://tizen.org/feature/sensor.accelerometer";
-static const wchar_t* _SENSOR_ACCELEROMETER_WAKEUP = L"http://tizen.org/feature/sensor.accelerometer.wakeup";
-static const wchar_t* _SENSOR_BAROMETER = L"http://tizen.org/feature/sensor.barometer";
-static const wchar_t* _SENSOR_BAROMETER_WAKEUP = L"http://tizen.org/feature/sensor.barometer.wakeup";
-static const wchar_t* _SENSOR_GYROSCOPE = L"http://tizen.org/feature/sensor.gyroscope";
-static const wchar_t* _SENSOR_GYROSCOPE_WAKEUP = L"http://tizen.org/feature/sensor.gyroscope.wakeup";
-static const wchar_t* _SENSOR_MAGNETOMETER = L"http://tizen.org/feature/sensor.magnetometer";
-static const wchar_t* _SENSOR_MAGNETOMETER_WAKEUP = L"http://tizen.org/feature/sensor.magnetometer.wakeup";
-static const wchar_t* _SENSOR_PHOTOMETER = L"http://tizen.org/feature/sensor.photometer";
-static const wchar_t* _SENSOR_PHOTOMETER_WAKEUP = L"http://tizen.org/feature/sensor.photometer.wakeup";
-static const wchar_t* _SENSOR_PROXIMITY = L"http://tizen.org/feature/sensor.proximity";
-static const wchar_t* _SENSOR_PROXIMITY_WAKEUP = L"http://tizen.org/feature/sensor.proximity.wakeup";
-static const wchar_t* _SENSOR_TILTMETER = L"http://tizen.org/feature/sensor.tiltmeter";
-static const wchar_t* _SENSOR_TILTMETER_WAKEUP = L"http://tizen.org/feature/sensor.tiltmeter.wakeup";
-//SIP VOIP
-static const wchar_t* _SIP_VOIP = L"http://tizen.org/feature/sip.voip";
-//Speech Recognition
-static const wchar_t* _SPEECH_RECOGNITION = L"http://tizen.org/feature/speech.recognition";
-static const wchar_t* _SPEECH_SYNTHESIS = L"http://tizen.org/feature/speech.synthesis";
-static const wchar_t* _TTS_LIB = L"/usr/lib/libtts.so";
-//USB
-static const wchar_t* _USB_ACCESSORY = L"http://tizen.org/feature/usb.accessory";
-static const wchar_t* _USB_CLIENT = L"http://tizen.org/feature/usb.client";
-static const wchar_t* _USB_HOST = L"http://tizen.org/feature/usb.host";
-static const wchar_t* _ACCESSORY_LIB = L"/opt/apps/aospd00043/lib/libosp-cond-accessory.so";
-//Vision
-static const wchar_t* _VISION_FACE_RECOGNITION = L"http://tizen.org/feature/vision.face_recognition";
-static const wchar_t* _VISION_IMAGE_RECOGNITION = L"http://tizen.org/feature/vision.image_recognition";
-static const wchar_t* _VISION_QRCODE_GENERATION = L"http://tizen.org/feature/vision.qrcode_generation";
-static const wchar_t* _VISION_QRCODE_RECOGNITION = L"http://tizen.org/feature/vision.qrcode_recognition";
-static const wchar_t* _AR_ENGINE_LIB = L"/usr/lib/osp/libarengine.so";
-
-static const wchar_t* _BUILD_STRING = L"http://tizen.org/system/build.string";
-//DUID
-static const wchar_t* _DUID = L"http://tizen.org/system/duid";
-//Model name
-static const wchar_t* _MODELNAME = L"http://tizen.org/system/model_name";
-//Platform name
-static const wchar_t* _PLATFORM_NAME = L"http://tizen.org/system/platform.name";
-//Sound
-static const wchar_t* _SOUND_MEDIA_VOLUME_MAX = L"http://tizen.org/system/sound.media.volume.resolution.max";
-static const wchar_t* _SOUND_NOTIFICATION_VOLUME_MAX = L"http://tizen.org/system/sound.notification.volume.resolution.max";
-static const wchar_t* _SOUND_RINGTONE_VOLUME_MAX = L"http://tizen.org/system/sound.ringtone.volume.resolution.max";
-static const wchar_t* _SOUND_SYSTEM_VOLUME_MAX = L"http://tizen.org/system/sound.system.volume.resolution.max";
-
-
-//Communication
-static const int _SYSTEM_GET_PARAM_TYPE = 1;
-static const wchar_t* _SYSTEM_GET_BOOL = L"osp.system.command.system.get.bool";
-static const wchar_t* _SYSTEM_GET_INT = L"osp.system.command.system.get.int";
-static const wchar_t* _SYSTEM_GET_STRING = L"osp.system.command.system.get.string";
-
-static const wchar_t* _SYSTEM_OK = L"osp.system.result.ok";
-static const wchar_t* _SYSTEM_OBJ_NOT_FOUND = L"osp.system.result.obj_not_found";
-static const wchar_t* _SYSTEM_ERROR = L"osp.system.result.error";
-
-static const wchar_t* _SYSTEM_CACHING_FILE = L"/opt/usr/etc/system_info_cache.ini";
-static const wchar_t* _SYSTEM_CACHING_SECTION = L"SystemInformation";
-
-static const wchar_t* _SYSTEM_CACHING_TRUE = L"true";
-static const wchar_t* _SYSTEM_CACHING_FALSE = L"false";
-
-_SystemInfo::_SystemInfo()
-{
-}
-
-_SystemInfo::~_SystemInfo()
-{
-}
-
-result
-_SystemInfo::CachingSystemInformation(void)
-{
- Registry reg;
- result r = E_SUCCESS;
- String systemValue;
-
- r = reg.Construct(_SYSTEM_CACHING_FILE, "w+");
- SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, "It is failed to create the cache file.");
-
- r = reg.AddSection(_SYSTEM_CACHING_SECTION);
- SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, "It is failed to create section on the cache file.");
-
- bool bValue = false;
- int nValue = 0;
- String sValue;
-
- //For improve launch performance
- this->GetValue(_SCREEN_DPI, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DPI, nValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_HEIGHT, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_HEIGHT, nValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_WIDTH, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_WIDTH, nValue);
- reg.Flush();
-
- this->GetValue(_CAMERA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA, systemValue);
- reg.Flush();
-
- this->GetValue(_CAMERA_BACK, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_BACK, systemValue);
- reg.Flush();
-
- this->GetValue(_CAMERA_BACK_FLASH, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_BACK_FLASH, systemValue);
- reg.Flush();
-
- this->GetValue(_CAMERA_FRONT, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_FRONT, systemValue);
- reg.Flush();
-
- this->GetValue(_CAMERA_FRONT_FLASH, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_FRONT_FLASH, systemValue);
- reg.Flush();
-
- this->GetValue(_DATABASE_ENCRYPTION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _DATABASE_ENCRYPTION, systemValue);
- reg.Flush();
-
- this->GetValue(_FMRADIO, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _FMRADIO, systemValue);
- reg.Flush();
-
- this->GetValue(_GRAPHIC_ACCELERATION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _GRAPHIC_ACCELERATION, systemValue);
- reg.Flush();
-
- this->GetValue(_INPUT_KEYBOARD, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYBOARD, systemValue);
- reg.Flush();
-
- this->GetValue(_INPUT_KEYBOARD_LAYOUT, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYBOARD_LAYOUT, sValue);
- reg.Flush();
-
- this->GetValue(_INPUT_KEYS_BACK, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYS_BACK, systemValue);
- reg.Flush();
-
- this->GetValue(_INPUT_KEYS_MENU, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYS_MENU, systemValue);
- reg.Flush();
-
- this->GetValue(_LOCATION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION, systemValue);
- reg.Flush();
-
- this->GetValue(_LOCATION_GPS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION_GPS, systemValue);
- reg.Flush();
-
- this->GetValue(_LOCATION_WPS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION_WPS, systemValue);
- reg.Flush();
-
- this->GetValue(_MICROPHONE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _MICROPHONE, systemValue);
- reg.Flush();
-
- this->GetValue(_MULTIPOINTTOUCH_PINCHZOOM, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _MULTIPOINTTOUCH_PINCHZOOM, systemValue);
- reg.Flush();
-
- this->GetValue(_MULTIPOINTTOUCH_POINTCOUNT, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _MULTIPOINTTOUCH_POINTCOUNT, nValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_BLUETOOTH, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_BLUETOOTH, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_NFC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_NFC, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_NFC_RESERVED_PUSH, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_NFC_RESERVED_PUSH, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_PUSH, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_PUSH, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_SECURE_ELEMENT, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_SECURE_ELEMENT, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_MMS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_MMS, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SMS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SMS, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SMS_CBS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SMS_CBS, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_CDMA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_CDMA, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_EDGE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_EDGE, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_GPRS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_GPRS, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_GSM, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_GSM, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSDPA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSDPA, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSPA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSPA, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSUPA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSUPA, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_LTE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_LTE, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_TELEPHONY_SERVICE_UMTS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_UMTS, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_WIFI, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_WIFI, systemValue);
- reg.Flush();
-
- this->GetValue(_NETWORK_WIFI_DIRECT, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_WIFI_DIRECT, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_3DC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_3DC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_ATC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_ATC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_ETC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_ETC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_PTC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_PTC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_PVRTC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_PVRTC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_TEXTUREFORMAT_UTC, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_UTC, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_VERSION_1_1, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_VERSION_1_1, systemValue);
- reg.Flush();
-
- this->GetValue(_OPENGLES_VERSION_2_0, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_VERSION_2_0, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_CPU_ARCH_ARMV6, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_ARMV6, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_CPU_ARCH_ARMV7, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_ARMV7, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_CPU_ARCH_X86, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_X86, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSE2, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSE2, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSE3, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSE3, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSSE3, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSSE3, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_FPU_ARCH_VFPV2, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_VFPV2, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_CORE_FPU_ARCH_VFPV3, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_VFPV3, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_NATIVE_API_VERSION, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NATIVE_API_VERSION, sValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_NATIVE_OSP_COMPATIBLE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NATIVE_OSP_COMPATIBLE, systemValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_VERSION, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_VERSION, sValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_WEB_API_VERSION, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_WEB_API_VERSION, sValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_AUTO_ROTATION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_AUTO_ROTATION, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_BPP, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_BPP, nValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_COORDINATE_SYSTEM_SIZE_LARGE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_COORDINATE_SYSTEM_SIZE_LARGE, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_DESKTOPMODE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DESKTOPMODE, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_SIZE_LARGE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_LARGE, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_SIZE_NORMAL, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_SIZE_NORMAL_480_800, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL_480_800, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_SIZE_NORMAL_720_1280, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL_720_1280, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_OUTPUT_HDMI, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_OUTPUT_HDMI, systemValue);
- reg.Flush();
-
- this->GetValue(_SCREEN_OUTPUT_RCA, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_OUTPUT_RCA, systemValue);
- reg.Flush();
-
- this->GetValue(_SHELL_APPWIDGET, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SHELL_APPWIDGET, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_ACCELEROMETER, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_ACCELEROMETER, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_ACCELEROMETER_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_ACCELEROMETER_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_BAROMETER, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_BAROMETER, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_BAROMETER_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_BAROMETER_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_GYROSCOPE, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_GYROSCOPE, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_GYROSCOPE_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_GYROSCOPE_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_MAGNETOMETER, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_MAGNETOMETER, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_MAGNETOMETER_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_MAGNETOMETER_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_PHOTOMETER, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PHOTOMETER, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_PHOTOMETER_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PHOTOMETER_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_PROXIMITY, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PROXIMITY, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_PROXIMITY_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PROXIMITY_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_TILTMETER, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_TILTMETER, systemValue);
- reg.Flush();
-
- this->GetValue(_SENSOR_TILTMETER_WAKEUP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_TILTMETER_WAKEUP, systemValue);
- reg.Flush();
-
- this->GetValue(_SIP_VOIP, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SIP_VOIP, systemValue);
- reg.Flush();
-
- this->GetValue(_SPEECH_RECOGNITION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SPEECH_RECOGNITION, systemValue);
- reg.Flush();
-
- this->GetValue(_SPEECH_SYNTHESIS, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SPEECH_SYNTHESIS, systemValue);
- reg.Flush();
-
- this->GetValue(_USB_ACCESSORY, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_ACCESSORY, systemValue);
- reg.Flush();
-
- this->GetValue(_USB_CLIENT, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_CLIENT, systemValue);
- reg.Flush();
-
- this->GetValue(_USB_HOST, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_HOST, systemValue);
- reg.Flush();
-
- this->GetValue(_VISION_FACE_RECOGNITION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_FACE_RECOGNITION, systemValue);
- reg.Flush();
-
- this->GetValue(_VISION_IMAGE_RECOGNITION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_IMAGE_RECOGNITION, systemValue);
- reg.Flush();
-
- this->GetValue(_VISION_QRCODE_GENERATION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_QRCODE_GENERATION, systemValue);
- reg.Flush();
-
- this->GetValue(_VISION_QRCODE_RECOGNITION, bValue);
- if(bValue == true)
- systemValue = _SYSTEM_CACHING_TRUE;
- else
- systemValue = _SYSTEM_CACHING_FALSE;
- reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_QRCODE_RECOGNITION, systemValue);
- reg.Flush();
-
- this->GetValue(_BUILD_STRING, systemValue);
- reg.Flush();
- reg.AddValue(_SYSTEM_CACHING_SECTION, _BUILD_STRING, systemValue);
- reg.Flush();
-
- r = this->GetValue(_DUID, sValue);
- if(r != E_SUCCESS)
- {
- sValue.Append(L"ERROR");
- }
- reg.AddValue(_SYSTEM_CACHING_SECTION, _DUID, sValue);
- reg.Flush();
-
- this->GetValue(_MODELNAME, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _MODELNAME, sValue);
- reg.Flush();
-
- this->GetValue(_PLATFORM_NAME, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NAME, sValue);
- reg.Flush();
-
- this->GetValue(_SOUND_MEDIA_VOLUME_MAX, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_MEDIA_VOLUME_MAX, nValue);
- reg.Flush();
-
- this->GetValue(_SOUND_NOTIFICATION_VOLUME_MAX, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_NOTIFICATION_VOLUME_MAX, nValue);
- reg.Flush();
-
- this->GetValue(_SOUND_RINGTONE_VOLUME_MAX, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_RINGTONE_VOLUME_MAX, nValue);
- reg.Flush();
-
- this->GetValue(_SOUND_SYSTEM_VOLUME_MAX, nValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_SYSTEM_VOLUME_MAX, nValue);
- reg.Flush();
-
- return E_SUCCESS;
-}
-
-result
-_SystemInfo::GetValue(const String& key, String& value)
-{
- int ret = 0;
- result r = E_SUCCESS;
- char* pValue = null;
-
- SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
- if (key == _DUID)
- {
- bool supported = false;
- SysLog(NID_SYS, "It trys to get DUID from telephony.");
- this->GetValue(_NETWORK_TELEPHONY, supported);
- if(supported == true)
- {
- r = _DeviceId::GetId(value, 0);
- }
- else
- {
- SysLog(NID_SYS, "It trys to get DUID from wifi.");
- this->GetValue(_NETWORK_WIFI, supported);
- if(supported == true)
- {
- r = _DeviceId::GetId(value, 1);
- }
- else
- {
- SysLog(NID_SYS, "It trys to get DUID from bluetooth.");
- this->GetValue(_NETWORK_BLUETOOTH, supported);
- if(supported == true)
- {
- r = _DeviceId::GetId(value, 2);
- }
- else
- {
- SysLogException(NID_SYS, E_SYSTEM, "It is failed to get telephony, wifi, bluetooth information.");
- return E_SYSTEM;
- }
- }
- }
- SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", key.GetPointer());
- }
- else if (key == _MODELNAME)
- {
- ret = system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &pValue);
- SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE && pValue, E_SYSTEM, "It is failed to get the SYSTEM_INFO_KEY_MODEL");
-
- r = StringUtil::Utf8ToString(pValue, value);
- SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r, "[%s] StringUtil::Utf8ToString It is failed", GetErrorMessage(r));
- }
- else if (key == _BUILD_STRING)
- {
- ret = system_info_get_value_string(SYSTEM_INFO_KEY_BUILD_STRING, &pValue);
- SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE, E_SYSTEM, "[E_SYSTEM] system_info_get_value_string : \"SYSTEM_INFO_KEY_TIZEN_VERSION_STRING\"It is failed");
-
- r = StringUtil::Utf8ToString(pValue, value);
- SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r, "[%s] StringUtil::Utf8ToString It is failed", GetErrorMessage(r));
- }
- else
- {
- String tizenKey;
- key.SubString(7, tizenKey);
-
- ClearLastResult();
- unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
- r = GetLastResult();
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
- int ret = system_info_get_platform_string(systemKey.get(), &pValue);
-
- SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
-
- r = StringUtil::Utf8ToString(pValue, value);
- free(pValue);
- pValue = null;
-
- return r;
- }
-
-CATCH:
- if(pValue != null)
- {
- free(pValue);
- }
-
- return r;
-
-}
-
-result
-_SystemInfo::GetValue(const String& key, int& value)
-{
- int ret = 0;
- result r = E_SUCCESS;
-
- SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
-
- String tizenKey;
- key.SubString(7, tizenKey);
-
- ClearLastResult();
- unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
- r = GetLastResult();
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
- ret = system_info_get_platform_int(systemKey.get(), &value);
-
- SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
- r = E_SUCCESS;
-
- return r;
-}
-
-result
-_SystemInfo::GetValue(const String& key, bool& value)
-{
- int ret = 0;
- result r = E_SUCCESS;
-
- SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
-
- if (key == _SCREEN_DESKTOPMODE)
- {
- value = false;
- }
- else if (key == _USB_CLIENT)
- {
- value = true;
- }
- else
- {
- String tizenKey;
- key.SubString(7, tizenKey);
-
- ClearLastResult();
- unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
- r = GetLastResult();
- SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
-
- bool supported = false;
- ret = system_info_get_platform_bool(systemKey.get(), &supported);
- SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
- value = supported;
- }
-
- return E_SUCCESS;
-}
-
-result
-_SystemInfo::OnRequestOccured(AppId appId, ArrayList* request, ArrayList* response)
-{
- result r = E_SUCCESS;
- String* resultValue = null;
- String* resultCode = null;
-
- String* command = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE);
-
- SysTryReturnResult(NID_SYS, command != null, E_SYSTEM, "There is no command");
-
- if(*command == _SYSTEM_GET_BOOL)
- {
- bool value = false;
- String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
- if(key != null)
- {
- r = this->GetValue(*key, value);
- if(r == E_SUCCESS)
- {
- resultValue = new (std::nothrow) String();
- resultValue->Append(value);
- resultCode = new (std::nothrow) String(_SYSTEM_OK);
- }
- }
- }
- else if(*command == _SYSTEM_GET_INT)
- {
- int value = 0;
- String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
- if(key != null)
- {
- r = this->GetValue(*key, value);
- if(r == E_SUCCESS)
- {
- resultValue = new (std::nothrow) String();
- resultValue->Append(value);
- resultCode = new (std::nothrow) String(_SYSTEM_OK);
- }
- }
- }
- else if(*command == _SYSTEM_GET_STRING)
- {
- String value;
- String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
- if(key != null)
- {
- r = this->GetValue(*key, value);
- if(r == E_SUCCESS)
- {
- resultValue = new (std::nothrow) String(value);
- resultCode = new (std::nothrow) String(_SYSTEM_OK);
- }
- }
- }
-
- SysLog(NID_SYS, "Result Code is %s.", GetErrorMessage(r));
- if(resultCode == null)
- {
- if(r == E_OBJ_NOT_FOUND)
- {
- resultCode = new (std::nothrow) String(_SYSTEM_OBJ_NOT_FOUND);
- }
- else
- {
- resultCode = new (std::nothrow) String(_SYSTEM_ERROR);
- }
- }
- response->Add(resultCode);
-
- if(resultValue != null)
- {
- response->Add(resultValue);
- }
-
- return E_SUCCESS;
-}
-
-} } // Tizen::System