replace log ID from NID_APP to NID_SHELL
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Mon, 1 Apr 2013 02:12:46 +0000 (11:12 +0900)
committerkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Mon, 1 Apr 2013 02:12:46 +0000 (11:12 +0900)
Change-Id: Ice073feb51929c522eb1527e462c24d15233d92c

18 files changed:
src/FShellAppWidgetManager.cpp
src/FShellAppWidgetPopupProvider.cpp
src/FShellAppWidgetProvider.cpp
src/FShellAppWidgetProviderManager.cpp
src/FShell_AppWidgetManagerImpl.cpp
src/FShell_AppWidgetManagerProxy.cpp
src/FShell_AppWidgetPopupProviderImpl.cpp
src/FShell_AppWidgetProviderImpl.cpp
src/FShell_AppWidgetProviderInfoImpl.cpp
src/FShell_AppWidgetProviderManagerImpl.cpp
src/core/FShellLockManager.cpp
src/core/FShellNotificationManager.cpp
src/core/FShellNotificationRequest.cpp
src/core/FShellShortcutManager.cpp
src/core/FShell_LockManagerImpl.cpp
src/core/FShell_NotificationManagerImpl.cpp
src/core/FShell_NotificationRequestImpl.cpp
src/core/FShell_ShortcutManagerImpl.cpp

index 611d8ca..3229d93 100644 (file)
@@ -67,10 +67,10 @@ void
 AppWidgetManager::InitSingleton(void)
 {
        std::unique_ptr<AppWidgetManager> pInst(new (std::nothrow) AppWidgetManager());
-       SysTryReturnVoidResult(NID_APP, pInst, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+       SysTryReturnVoidResult(NID_SHELL, pInst, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
 
        result r = pInst->Construct();
-       SysTryReturnVoidResult(NID_APP, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
 
        __pTheInstance = pInst.release();
        std::atexit(DestroySingleton);
@@ -104,11 +104,11 @@ AppWidgetManager::Construct(void)
 {
        SysAssert(__pAppWidgetManagerImpl == null);
 
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
        __pAppWidgetManagerImpl = _AppWidgetManagerImpl::GetInstance();
        SysAssertf(__pAppWidgetManagerImpl, "Failed to construct _AppWidgetManagerImpl!!");
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
 
        return E_SUCCESS;
 }
index 1dbba4b..a76884b 100644 (file)
@@ -37,21 +37,21 @@ using namespace Tizen::Base;
 
 AppWidgetPopupProvider::AppWidgetPopupProvider()
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
 }
 
 AppWidgetPopupProvider::~AppWidgetPopupProvider()
 {
-       SysLog(NID_APP, "AppWidgetPopupProvider is destroyed.");
+       SysLog(NID_SHELL, "AppWidgetPopupProvider is destroyed.");
 }
 
 result
 AppWidgetPopupProvider::Construct(const String& instanceId, double x, double y)
 {
        __pAppWidgetPopupProviderImpl = new (std::nothrow) _AppWidgetPopupProviderImpl(instanceId, x, y);
-       SysTryReturnResult(NID_APP, __pAppWidgetPopupProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+       SysTryReturnResult(NID_SHELL, __pAppWidgetPopupProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
 
-       SysLog(NID_APP, "AppWidgetPopupProvider is constructed.");
+       SysLog(NID_SHELL, "AppWidgetPopupProvider is constructed.");
        return E_SUCCESS;
 }
 
index 6a1bd22..e934532 100644 (file)
@@ -38,16 +38,16 @@ AppWidgetProvider::AppWidgetProvider()
 
 AppWidgetProvider::~AppWidgetProvider()
 {
-       SysLog(NID_APP, "AppWidgetProvider is destroyed.");
+       SysLog(NID_SHELL, "AppWidgetProvider is destroyed.");
 }
 
 result
 AppWidgetProvider::Construct(const String& instanceId)
 {
        __pAppWidgetProviderImpl = new (std::nothrow) _AppWidgetProviderImpl(instanceId);
-       SysTryReturnResult(NID_APP, __pAppWidgetProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+       SysTryReturnResult(NID_SHELL, __pAppWidgetProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
 
-       SysLog(NID_APP, "AppWidgetProvider is constructed.");
+       SysLog(NID_SHELL, "AppWidgetProvider is constructed.");
 
        return E_SUCCESS;
 }
index 23d3783..f4af1d1 100644 (file)
@@ -61,7 +61,7 @@ AppWidgetProviderManager::AppWidgetProviderManager()
 
 AppWidgetProviderManager::~AppWidgetProviderManager()
 {
-       SysLog(NID_APP, "AppWidgetProviderManager is destroyed.");
+       SysLog(NID_SHELL, "AppWidgetProviderManager is destroyed.");
 }
 
 AppWidgetProviderManager*
@@ -71,10 +71,10 @@ AppWidgetProviderManager::GetInstance()
        if( pAppWidgetManager == null)
        {
                pAppWidgetManager = new (std::nothrow) AppWidgetProviderManager;
-               SysTryReturn(NID_APP, pAppWidgetManager, null, E_OUT_OF_MEMORY, "E_OUT_OF_MEMORY" );
+               SysTryReturn(NID_SHELL, pAppWidgetManager, null, E_OUT_OF_MEMORY, "E_OUT_OF_MEMORY" );
 
                result r = pAppWidgetManager->Construct();
-//             SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+//             SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
                SysAssertf(!IsFailed(r), "Failed to construct AppWidgetProviderManager!!");
        }
 
@@ -89,7 +89,7 @@ AppWidgetProviderManager::Construct()
        __pAppWidgetProviderManagerImpl = _AppWidgetProviderManagerImpl::GetInstance();
        SysAssertf(__pAppWidgetProviderManagerImpl, "Failed to construct _AppWidgetProviderManagerImpl!!");
 
-       SysLog(NID_APP, "AppWidgetProviderManager instance is constructed.");
+       SysLog(NID_SHELL, "AppWidgetProviderManager instance is constructed.");
        return E_SUCCESS;
 }
 
@@ -108,7 +108,7 @@ AppWidgetProviderManager::SetAppWidgetPopupProviderFactory(IAppWidgetPopupProvid
 result
 AppWidgetProviderManager::RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument)
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
        return __pAppWidgetProviderManagerImpl->RequestUpdate(appId, providerName, argument);
 }
 
index 309211f..325079b 100644 (file)
@@ -61,12 +61,12 @@ using namespace Tizen::Graphics;
 _AppWidgetManagerImpl::_AppWidgetManagerImpl()
        :__pAppWidgetRequestEventListener(null)
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
 }
 
 _AppWidgetManagerImpl::~_AppWidgetManagerImpl()
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
        livebox_service_fini();
 }
 
@@ -77,10 +77,10 @@ _AppWidgetManagerImpl::GetInstance()
        if( __pAppWidgetManagerImpl == null)
        {
                __pAppWidgetManagerImpl = new (std::nothrow)_AppWidgetManagerImpl;
-               SysTryReturn(NID_APP, __pAppWidgetManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
+               SysTryReturn(NID_SHELL, __pAppWidgetManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
 
                result r = __pAppWidgetManagerImpl->Construct();
-               SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
        }
        return __pAppWidgetManagerImpl;
 }
@@ -88,22 +88,22 @@ _AppWidgetManagerImpl::GetInstance()
 result
 _AppWidgetManagerImpl::Construct()
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
 
        int ret = livebox_service_init();
-       SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_init, ret (%d)", ret);
+       SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_init, ret (%d)", ret);
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
        return E_SUCCESS;
 }
 
 // c style callback for livebox_service_get_pkglist
 int GetAppWidgetProviderInfoCallback(const char *pPackageId, const char *pProviderId, int is_prime, void *data)
 {
-       SysLog(NID_APP, "%s, %s", pPackageId, pProviderId);
+       SysLog(NID_SHELL, "%s, %s", pPackageId, pProviderId);
 
        IList* pAppWidgetProviderInfos = static_cast<IList*>(data);
-       SysTryReturn(NID_APP, pAppWidgetProviderInfos, 0, E_SYSTEM, "[E_SYSTEM] system error.");
+       SysTryReturn(NID_SHELL, pAppWidgetProviderInfos, 0, E_SYSTEM, "[E_SYSTEM] system error.");
 
        String providerId(pProviderId);
        String appId;
@@ -120,13 +120,13 @@ Tizen::Base::Collection::IList*
 _AppWidgetManagerImpl::GetAppWidgetProviderInfoListN()
 {
        std::unique_ptr<ArrayList> pAppWidgetProviders(new (std::nothrow) ArrayList());
-       SysTryReturn(NID_APP, pAppWidgetProviders.get(), null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
+       SysTryReturn(NID_SHELL, pAppWidgetProviders.get(), null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
 
        pAppWidgetProviders->Construct();
        int ret = livebox_service_get_pkglist(GetAppWidgetProviderInfoCallback, pAppWidgetProviders.get());
        if (ret < 0)
        {
-               SysLog(NID_APP, "Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
+               SysLog(NID_SHELL, "Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
        }
 
        if (pAppWidgetProviders->GetCount() <= 0)
@@ -148,7 +148,7 @@ _AppWidgetManagerImpl::GetDefaultAppWidgetProviderInfoN(const Tizen::App::Packag
 {
        std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(packageId) );
        std::unique_ptr<char[]> pDefaultProviderId(livebox_service_pkgname(pPackageId.get()) );
-       SysTryReturn(NID_APP, pDefaultProviderId.get(), null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND]");
+       SysTryReturn(NID_SHELL, pDefaultProviderId.get(), null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND]");
 
        String providerId(pDefaultProviderId.get());
        String appId;
@@ -168,18 +168,18 @@ _AppWidgetManagerImpl::IsAppWidgetProviderDefault(const Tizen::App::AppId& appId
 // c - style callback for shortcut_set_request_cb
 int AppWidgetRequestHandlerCallback(const char* providerId, const char* text, int type, const char* content_info, const char* icon, int pid, double period, int allowDuplication, void *data)
 {
-       SysLog(NID_APP, "Enter");
-       SysTryReturn(NID_APP, providerId, 0, E_SYSTEM, "[E_SYSTEM] providerId is null!");
+       SysLog(NID_SHELL, "Enter");
+       SysTryReturn(NID_SHELL, providerId, 0, E_SYSTEM, "[E_SYSTEM] providerId is null!");
 
        _AppWidgetManagerImpl* pAppWidgetManager = static_cast<_AppWidgetManagerImpl*>(data);
-       SysTryReturn(NID_APP, pAppWidgetManager, 0, E_SYSTEM, "[E_SYSTEM] pAppWidgetManager is null!");
+       SysTryReturn(NID_SHELL, pAppWidgetManager, 0, E_SYSTEM, "[E_SYSTEM] pAppWidgetManager is null!");
 
        String appId;
        String providerName;
        _AppWidgetManagerImpl::ExtractAppIdAndProviderName(providerId, appId, providerName);
 
        IAppWidgetRequestListener* pListener = _AppWidgetManagerImpl::GetInstance()->GetAddRequestListener();
-       SysTryReturn(NID_APP, pAppWidgetManager, 0, E_SYSTEM, "[E_SYSTEM] pListener is null!");
+       SysTryReturn(NID_SHELL, pAppWidgetManager, 0, E_SYSTEM, "[E_SYSTEM] pListener is null!");
        pListener->OnAppWidgetAddRequested(appId, providerName, text, content_info);
        return 0;
 }
@@ -188,7 +188,7 @@ result
 _AppWidgetManagerImpl::SetAppWidgetRequestListener(IAppWidgetRequestListener* pListener)
 {
 //     int ret = shortcut_set_request_cb(AppWidgetRequestHandlerCallback, this );
-//     SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "failed to shortcut_set_request_cb (%d)", ret);
+//     SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "failed to shortcut_set_request_cb (%d)", ret);
        _ShortcutManagerImpl::GetInstance()->SetAppWidgetRequestHandlerCallback(AppWidgetRequestHandlerCallback);
 
        __pAppWidgetRequestEventListener = pListener;
index 2a2c6ea..8767eec 100644 (file)
@@ -38,7 +38,7 @@ using namespace Tizen::Io;
 _AppWidgetManagerProxy::_AppWidgetManagerProxy()
        : __pIpcClient(null)
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
 }
 
 _AppWidgetManagerProxy::~_AppWidgetManagerProxy()
@@ -53,10 +53,10 @@ _AppWidgetManagerProxy::GetInstance()
        if( __pAppWidgetProxy.get() == null)
        {
                std::unique_ptr<_AppWidgetManagerProxy> pAppWidgetProxy(new (std::nothrow)_AppWidgetManagerProxy);
-               SysTryReturn(NID_APP, pAppWidgetProxy.get(), null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed!");
+               SysTryReturn(NID_SHELL, pAppWidgetProxy.get(), null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed!");
 
                result r = pAppWidgetProxy->Construct();
-               SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
 
                __pAppWidgetProxy = std::move(pAppWidgetProxy);
        }
@@ -67,23 +67,23 @@ _AppWidgetManagerProxy::GetInstance()
 result
 _AppWidgetManagerProxy::Construct(void)
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
 
        __pIpcClient = new (std::nothrow) _IpcClient();
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_OUT_OF_MEMORY, "_IpcClient creation failed.");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_OUT_OF_MEMORY, "_IpcClient creation failed.");
 
        result r = __pIpcClient->Construct(IPC_SERVER_NAME, this);
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "_IpcClient constructing faliied [%s].", GetErrorMessage(r));
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "_IpcClient constructing faliied [%s].", GetErrorMessage(r));
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
        return E_SUCCESS;
 }
 
 result
 _AppWidgetManagerProxy::RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "Enter.");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "Enter.");
 //     String providerId;
 //     if( providerName.IsEmpty() == true)
 //     {
@@ -97,7 +97,7 @@ _AppWidgetManagerProxy::RequestUpdate(const Tizen::App::AppId& appId, const Tize
        result ret = E_SUCCESS;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestUpdate(appId, providerName, argument, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
 
        return ret;
 }
@@ -105,13 +105,13 @@ _AppWidgetManagerProxy::RequestUpdate(const Tizen::App::AppId& appId, const Tize
 result
 _AppWidgetManagerProxy::RequestUpdateInstance(const Tizen::Base::String& instanceId, const Tizen::Base::String& argument)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "Enter.");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "Enter.");
 
        result ret = E_SUCCESS;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestUpdateInstance(instanceId, argument, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
 
        return ret;
 }
@@ -119,12 +119,12 @@ _AppWidgetManagerProxy::RequestUpdateInstance(const Tizen::Base::String& instanc
 result
 _AppWidgetManagerProxy::RequestSharedMemoryId(const Tizen::Base::String& instanceId, int width, int height, int& shmId )
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
 
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestSharedMemoryId(instanceId, width, height, &shmId));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
-       SysLog(NID_APP, "shmId(%d) is retrieved from appwidget-service", shmId);
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysLog(NID_SHELL, "shmId(%d) is retrieved from appwidget-service", shmId);
 
        return E_SUCCESS;
 }
@@ -132,12 +132,12 @@ _AppWidgetManagerProxy::RequestSharedMemoryId(const Tizen::Base::String& instanc
 result
 _AppWidgetManagerProxy::RequestSharedMemoryIdForPD(const Tizen::Base::String& instanceId, int width, int height, int& shmId )
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
 
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestSharedMemoryIdForPD(instanceId, width, height, &shmId));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
-       SysLog(NID_APP, "shmId(%d) is retrieved from appwidget-service", shmId);
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysLog(NID_SHELL, "shmId(%d) is retrieved from appwidget-service", shmId);
 
        return E_SUCCESS;
 }
@@ -145,52 +145,52 @@ _AppWidgetManagerProxy::RequestSharedMemoryIdForPD(const Tizen::Base::String& in
 result
 _AppWidgetManagerProxy::RequestSyncSharedMemory(const Tizen::Base::String& instanceId, int width, int height)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "");
 
        result ret = E_FAILURE;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestSyncSharedMemory(instanceId, width, height, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
        return E_SUCCESS;
 }
 
 result
 _AppWidgetManagerProxy::RequestSyncSharedMemoryForPD(const Tizen::Base::String& instanceId)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "");
 
        result ret = E_FAILURE;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestSyncSharedMemoryForPD(instanceId, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
        return E_SUCCESS;
 }
 
 result
 _AppWidgetManagerProxy::RequestReleaseSharedMemory(const Tizen::Base::String& instanceId)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "");
 
        result ret = E_FAILURE;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestReleaseSharedMemory(instanceId, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
        return E_SUCCESS;
 }
 
 result
 _AppWidgetManagerProxy::RequestReleaseSharedMemoryForPD(const Tizen::Base::String& instanceId)
 {
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-       SysLog(NID_APP, "");
+       SysTryReturnResult(NID_SHELL, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
+       SysLog(NID_SHELL, "");
 
        result ret = E_FAILURE;
        std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) AppWidgetManager_RequestReleaseSharedMemoryForPD(instanceId, &ret));
        result r = __pIpcClient->SendRequest(*pMsg.get());
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "SendRequest is failed.");
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "SendRequest is failed.");
        return E_SUCCESS;
 }
 
@@ -210,13 +210,13 @@ _AppWidgetManagerProxy::OnTouchEventReceivedForPD(const Tizen::Base::String& ins
 void
 _AppWidgetManagerProxy::OnIpcResponseReceived(_IpcClient& client, const IPC::Message& message)
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
        IPC_BEGIN_MESSAGE_MAP(_AppWidgetManagerProxy, message)
                IPC_MESSAGE_HANDLER_EX(AppWidgetManager_SendTouchEvent, &client, OnTouchEventReceived )
                IPC_MESSAGE_HANDLER_EX(AppWidgetManager_SendTouchEventForPD, &client, OnTouchEventReceivedForPD )
        IPC_END_MESSAGE_MAP()
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
 }
 
 }} // Tizen::Shell
index e46c478..043de0c 100644 (file)
@@ -71,7 +71,7 @@ _AppWidgetPopupProviderImpl::SetAppWidgetPopup(AppWidgetPopup* pAppWidgetPopup)
        }
 
        _AppWidgetPopupImpl* pAppWidgetPopupImpl = _AppWidgetPopupImpl::GetInstance(*pAppWidgetPopup);
-       SysTryReturnResult(NID_APP, pAppWidgetPopupImpl, E_INVALID_OPERATION, "Not-yet constructed! AppWidgetPopup::Construct() should be called before use.");
+       SysTryReturnResult(NID_SHELL, pAppWidgetPopupImpl, E_INVALID_OPERATION, "Not-yet constructed! AppWidgetPopup::Construct() should be called before use.");
 
        pAppWidgetPopupImpl->SetAnchorPosition(FloatPoint(__x, __y));
        pAppWidgetPopupImpl->SetProviderId(GetInstanceId());
index 2c32814..ab78d5b 100644 (file)
@@ -66,10 +66,10 @@ _AppWidgetProviderImpl::SetAppWidgetFrame(AppWidgetFrame* pAppWidgetFrame)
 
        _AppWidgetFrameImpl* pAppWidgetFrameImpl = _AppWidgetFrameImpl::GetInstance(*pAppWidgetFrame);
 //     SysAssertf(pAppWidgetFrameImpl != null, "Not-yet constructed! Construct() should be called before use.");
-       SysTryReturnResult(NID_APP, pAppWidgetFrameImpl, E_INVALID_OPERATION, "Not-yet constructed! AppWidgetFrame::Construct() should be called before use.");
+       SysTryReturnResult(NID_SHELL, pAppWidgetFrameImpl, E_INVALID_OPERATION, "Not-yet constructed! AppWidgetFrame::Construct() should be called before use.");
 
        result r = pAppWidgetFrameImpl->SetProviderId(GetInstanceId());
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_SYSTEM, "Failed to invoke _AppWidgetFrameImpl::SetProviderId.");
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to invoke _AppWidgetFrameImpl::SetProviderId.");
 
        return E_SUCCESS;
 }
index bb83a85..70cf0a4 100644 (file)
@@ -50,7 +50,7 @@ _AppWidgetProviderInfoImpl::_AppWidgetProviderInfoImpl(const Tizen::App::AppId&
        __displayName = livebox_service_i18n_name(pProviderId.get(), null);
        __configurationAppControlAppId = livebox_service_setup_appid(pProviderId.get());
 
-       SysLog(NID_APP, "appId(%ls), name(%ls), providerId(%ls), displayName(%ls), configuration(%ls)", appId.GetPointer(), name.GetPointer(), __providerId.GetPointer(), __displayName.GetPointer(), __configurationAppControlAppId.GetPointer() );
+       SysLog(NID_SHELL, "appId(%ls), name(%ls), providerId(%ls), displayName(%ls), configuration(%ls)", appId.GetPointer(), name.GetPointer(), __providerId.GetPointer(), __displayName.GetPointer(), __configurationAppControlAppId.GetPointer() );
 }
 
 /*_AppWidgetProviderInfoImpl::_AppWidgetProviderInfoImpl(const _AppWidgetProviderInfoImpl& rhs)
@@ -127,10 +127,10 @@ _AppWidgetProviderInfoImpl::GetSizeInfoListN() const
        std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(__providerId));
        livebox_service_get_supported_sizes(pPackageId.get(), &supportedSizeCount , widthArray, heightArray);
 
-       SysTryReturn(NID_APP, supportedSizeCount > 0, null, E_INVALID_ARG, "[E_INVALID_ARG] There is no appwidget of provider(%ls)",__providerId.GetPointer() );
+       SysTryReturn(NID_SHELL, supportedSizeCount > 0, null, E_INVALID_ARG, "[E_INVALID_ARG] There is no appwidget of provider(%ls)",__providerId.GetPointer() );
 
        std::unique_ptr<ArrayList> pSizes(new (std::nothrow) ArrayList);
-       SysTryReturn(NID_APP, pSizes, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for ArrayList." );
+       SysTryReturn(NID_SHELL, pSizes, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for ArrayList." );
 
        pSizes->Construct();
        FloatDimension size(0, 0);
@@ -141,7 +141,7 @@ _AppWidgetProviderInfoImpl::GetSizeInfoListN() const
                size.SetSize(widthArray[i], heightArray[i]);
                previewImagePath  = livebox_service_preview(pPackageId.get(), livebox_service_size_type(static_cast<int>(size.width), static_cast<int>(size.height) ) );
                std::unique_ptr<AppWidgetSizeInfo> pAppWidgetSizeInfo(_AppWidgetSizeInfoImpl::CreateAppWidgetSizeInfo(size, previewImagePath) );
-               SysTryReturn(NID_APP, pAppWidgetSizeInfo, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for AppWidgetSizeInfo." );
+               SysTryReturn(NID_SHELL, pAppWidgetSizeInfo, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for AppWidgetSizeInfo." );
                pSizes->Add( *pAppWidgetSizeInfo.release() );
        }
        return pSizes.release();
@@ -157,7 +157,7 @@ AppWidgetProviderInfo*
 _AppWidgetProviderInfoImpl::GetAppWidgetProviderInfoN(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, bool isDefault)
 {
        AppWidgetProviderInfo* pInfo = new (std::nothrow) AppWidgetProviderInfo(appId, providerName);
-       SysTryReturn(NID_APP, pInfo, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for AppWidgetProviderInfo." );
+       SysTryReturn(NID_SHELL, pInfo, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory for AppWidgetProviderInfo." );
 
        _AppWidgetProviderInfoImpl::GetImpl(*pInfo)->__isDefault = isDefault;
 
index 9cb5c47..4dc4076 100644 (file)
@@ -96,12 +96,12 @@ _AppWidgetProviderManagerImpl::_AppWidgetProviderManagerImpl()
        ,__pAppWidgetPopupProvider(null)
        ,__AppWidgetPopupTouchEventListener(null)
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
 }
 
 _AppWidgetProviderManagerImpl::~_AppWidgetProviderManagerImpl()
 {
-       SysLog(NID_APP, "");
+       SysLog(NID_SHELL, "");
 }
 
 
@@ -112,10 +112,10 @@ _AppWidgetProviderManagerImpl::GetInstance()
        if( __pAppWidgetManagerImpl == null)
        {
                __pAppWidgetManagerImpl = new (std::nothrow)_AppWidgetProviderManagerImpl;
-               SysTryReturn(NID_APP, __pAppWidgetManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
+               SysTryReturn(NID_SHELL, __pAppWidgetManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
 
                result r = __pAppWidgetManagerImpl->Construct();
-               SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
        }
        return __pAppWidgetManagerImpl;
 }
@@ -123,14 +123,14 @@ _AppWidgetProviderManagerImpl::GetInstance()
 result
 _AppWidgetProviderManagerImpl::Construct()
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
 
        __appwidgetProviders.Construct();
        __touchEventListeners.Construct();
 
        Tizen::App::_AppImpl::GetInstance()->SetAppControlProviderInternalEventListener(this);
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
        return E_SUCCESS;
 }
 
@@ -138,7 +138,7 @@ result
 _AppWidgetProviderManagerImpl::SetAppWidgetProviderFactory(IAppWidgetProviderFactory& factory)
 {
        result r = ValidateApplicationAttributeForAppWidget();
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_OPERATION, "This application can't export AppWidget provider.");
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "This application can't export AppWidget provider.");
 
        __pAppWidgetFactory = &factory;
        return E_SUCCESS;
@@ -153,24 +153,24 @@ result
 _AppWidgetProviderManagerImpl::ValidateApplicationAttributeForAppWidget(void)
 {
        HashMapT<String, _AppFeatureInfoImpl*>* pInfo = _PackageManagerImpl::GetInstance()->GetPackageAppFeatureMapN(_AppInfo::GetPackageId(), _AppInfo::GetAppExecutableName());
-       SysTryReturnResult(NID_APP, pInfo, E_SYSTEM, "Failed to invoke _PackageManagerImpl::GetPackageAppFeatureMapN()");
+       SysTryReturnResult(NID_SHELL, pInfo, E_SYSTEM, "Failed to invoke _PackageManagerImpl::GetPackageAppFeatureMapN()");
 
        _AppFeatureInfoImpl* pFeature = null;
 
        result r = pInfo->GetValue(USE_UI_KEY, pFeature);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_OPERATION, "Can't find %ls attribute for the ServiceApp in package information.", USE_UI_KEY );
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "Can't find %ls attribute for the ServiceApp in package information.", USE_UI_KEY );
 
        const String& useUi = pFeature->GetValue();
-       SysTryReturnResult(NID_APP, useUi == USE_UI_VAL_TRUE, E_INVALID_OPERATION, "%ls attribute value should be '%ls' to be an application that providing AppWidget, but value is %ls", USE_UI_KEY, USE_UI_VAL_TRUE, useUi.GetPointer() );
+       SysTryReturnResult(NID_SHELL, useUi == USE_UI_VAL_TRUE, E_INVALID_OPERATION, "%ls attribute value should be '%ls' to be an application that providing AppWidget, but value is %ls", USE_UI_KEY, USE_UI_VAL_TRUE, useUi.GetPointer() );
 
        r = pInfo->GetValue(LIFE_DURATION_KEY, pFeature);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_OPERATION, "Can't find %ls attribute for the ServiceApp in package information.", LIFE_DURATION_KEY );
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "Can't find %ls attribute for the ServiceApp in package information.", LIFE_DURATION_KEY );
 
        const String& lifeDurationValue = pFeature->GetValue();
        int lifeDuration = 0;
        r = Tizen::Base::Integer::Parse(lifeDurationValue, lifeDuration);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_OPERATION, "Failed to parse %ls attribute for the ServiceApp in package information.", LIFE_DURATION_KEY );
-//     SysTryReturnResult(NID_APP, lifeDuration <= LIFE_DURATION_MIN, E_INVALID_OPERATION, "%ls attribute value should be less than '%d' to be an application that providing AppWidget, but value is %d", LIFE_DURATION_KEY, LIFE_DURATION_MIN, lifeDuration );
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "Failed to parse %ls attribute for the ServiceApp in package information.", LIFE_DURATION_KEY );
+//     SysTryReturnResult(NID_SHELL, lifeDuration <= LIFE_DURATION_MIN, E_INVALID_OPERATION, "%ls attribute value should be less than '%d' to be an application that providing AppWidget, but value is %d", LIFE_DURATION_KEY, LIFE_DURATION_MIN, lifeDuration );
 
        return E_SUCCESS;
 }
@@ -179,7 +179,7 @@ result
 _AppWidgetProviderManagerImpl::SetAppWidgetPopupProviderFactory(IAppWidgetPopupProviderFactory& factory)
 {
        result r = ValidateApplicationAttributeForAppWidget();
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_OPERATION, "This application can't export AppWidget provider.");
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "This application can't export AppWidget provider.");
 
        __pAppWidgetPopupProviderFactory = &factory;
        return E_SUCCESS;
@@ -203,7 +203,7 @@ result
 _AppWidgetProviderManagerImpl::RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument)
 {
 
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
 //     if( appId == App::App::GetInstance()->GetAppId())
 //     {
 //              //TODO: optimizing for local request
@@ -211,7 +211,7 @@ _AppWidgetProviderManagerImpl::RequestUpdate(const Tizen::App::AppId& appId, con
 //     else
        {
                _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-               SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+               SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
                return pProxy->RequestUpdate(appId, providerName, argument);
        }
@@ -227,14 +227,14 @@ _AppWidgetProviderManagerImpl::RequestUpdateInstance(const Tizen::Base::String&
                __appwidgetProviders.GetValue(instanceId, pAppWidgetProvider);
 
                AppWidgetFrame* pAppWidgetFrame = pAppWidgetProvider->GetAppWidgetFrame();
-               SysTryReturnResult(NID_APP, pAppWidgetFrame, E_SYSTEM, "Failed to GetAppWidgetFrame");
+               SysTryReturnResult(NID_SHELL, pAppWidgetFrame, E_SYSTEM, "Failed to GetAppWidgetFrame");
 
                pAppWidgetProvider->OnAppWidgetProviderUpdating(argument);
        }
        else
        {
                _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-               SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+               SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
                return pProxy->RequestUpdateInstance(instanceId, argument);
        }
@@ -248,7 +248,7 @@ int AddAppWidgetCallback(int ret, int pid, void *data)
 {
        if( ret != 0)
        {
-               SysLog(NID_APP, "Error.(%d)", ret);
+               SysLog(NID_SHELL, "Error.(%d)", ret);
        }
 
        return 0;
@@ -259,16 +259,16 @@ result
 _AppWidgetProviderManagerImpl::AddAppWidget(const Tizen::App::AppId& providerAppId, const Tizen::Base::String& providerName, const Tizen::Base::String& text, const Tizen::Base::String& userInfo)
 {
        result r = _AccessController::CheckUserPrivilege(_PRV_SHORTCUT_INSTALL);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
-       SysTryReturnResult(NID_APP, providerAppId.IsEmpty()==false, E_INVALID_ARG, "The providerAppId is empty.");
-       SysTryReturnResult(NID_APP, providerAppId.GetLength() < NATIVE_APP_MAX_APPID_LENGTH, E_INVALID_ARG, "The providerAppId is too long (Maximum %d bytes).", NATIVE_APP_MAX_APPID_LENGTH);
-       SysTryReturnResult(NID_APP, Tizen::App::_Aul::IsInstalled(providerAppId) == true, E_APP_NOT_INSTALLED, "The application(%ls) is not installed.", providerAppId.GetPointer());
+       SysTryReturnResult(NID_SHELL, providerAppId.IsEmpty()==false, E_INVALID_ARG, "The providerAppId is empty.");
+       SysTryReturnResult(NID_SHELL, providerAppId.GetLength() < NATIVE_APP_MAX_APPID_LENGTH, E_INVALID_ARG, "The providerAppId is too long (Maximum %d bytes).", NATIVE_APP_MAX_APPID_LENGTH);
+       SysTryReturnResult(NID_SHELL, Tizen::App::_Aul::IsInstalled(providerAppId) == true, E_APP_NOT_INSTALLED, "The application(%ls) is not installed.", providerAppId.GetPointer());
 
        String providerId;
        if( providerAppId.StartsWith(L"com.samsung", 0) == true )
        {
-               SysLog(NID_APP, "[E_INVALID_OPERATION] but allowed to test");
+               SysLog(NID_SHELL, "[E_INVALID_OPERATION] but allowed to test");
                //TODO:return E_INVALID_OPERATION
                providerId = providerAppId;
        }
@@ -278,14 +278,14 @@ _AppWidgetProviderManagerImpl::AddAppWidget(const Tizen::App::AppId& providerApp
                String appwidgetProviderPackageId = _PackageManagerImpl::GetPackageIdByAppId(providerAppId);
                if( localPackageId != appwidgetProviderPackageId)
                {
-                       SysLog(NID_APP, "[E_INVALID_OPERATION] but allowed to test");
+                       SysLog(NID_SHELL, "[E_INVALID_OPERATION] but allowed to test");
                        //TODO:return E_INVALID_OPERATION
                }
                providerId = providerAppId + "." + providerName;
        }
 
        PackageAppInfo* pPackageInfo = _PackageManagerImpl::GetInstance()->GetPackageAppInfoN(providerAppId);
-       SysTryReturn(NID_APP, pPackageInfo != null, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(r));
+       SysTryReturn(NID_SHELL, pPackageInfo != null, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(r));
 
        String iconPath = pPackageInfo->GetAppMenuIconPath();
        delete pPackageInfo;
@@ -296,8 +296,8 @@ _AppWidgetProviderManagerImpl::AddAppWidget(const Tizen::App::AppId& providerApp
        std::unique_ptr<char[]> pIcon(_StringConverter::CopyToCharArrayN(iconPath));
 
        int ret = add_to_home_livebox(pProviderId.get(), pName.get(), LIVEBOX_TYPE_DEFAULT, pContent.get(), pIcon.get(), -1.0l, true, AddAppWidgetCallback, this);
-       SysTryReturnResult(NID_APP, ret != -ENOTCONN, E_CONNECTION_FAILED, "[E_CONNECTION_FAILED] failed to add_to_home_livebox");
-       SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "[E_SYSTEM] failed to add_to_home_livebox (%s)", strerror(r));
+       SysTryReturnResult(NID_SHELL, ret != -ENOTCONN, E_CONNECTION_FAILED, "[E_CONNECTION_FAILED] failed to add_to_home_livebox");
+       SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "[E_SYSTEM] failed to add_to_home_livebox (%s)", strerror(r));
 
        return E_SUCCESS;
 }
@@ -328,53 +328,53 @@ _AppWidgetProviderManagerImpl::OnAppControlRequestReceived(RequestId reqId, cons
 
 //     __messageReceived = true;
 
-       SysLog(NID_APP, "operationId(%ls), argc(%d)", operationId.GetPointer(), pArgs->GetCount());
+       SysLog(NID_SHELL, "operationId(%ls), argc(%d)", operationId.GetPointer(), pArgs->GetCount());
 
        const String* pInstanceId = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_INSTANCE_ID));
-       SysTryReturnVoidResult(NID_APP, pInstanceId, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_INSTANCE_ID.GetPointer() );
+       SysTryReturnVoidResult(NID_SHELL, pInstanceId, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_INSTANCE_ID.GetPointer() );
 
        const String* pName = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_PROVIDER_NAME));
-       SysTryReturnVoidResult(NID_APP, pName, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_PROVIDER_NAME.GetPointer() );
+       SysTryReturnVoidResult(NID_SHELL, pName, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_PROVIDER_NAME.GetPointer() );
 
        const String* pParam = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_USER_INFO));
-       SysTryReturnVoidResult(NID_APP, pParam, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_USER_INFO.GetPointer() );
+       SysTryReturnVoidResult(NID_SHELL, pParam, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_USER_INFO.GetPointer() );
 
-       SysLog(NID_APP, "id(%ls), name(%ls), param(%ls)", pInstanceId->GetPointer(), pName->GetPointer(), pParam->GetPointer());
+       SysLog(NID_SHELL, "id(%ls), name(%ls), param(%ls)", pInstanceId->GetPointer(), pName->GetPointer(), pParam->GetPointer());
 
        if(operationId.StartsWith(APPWIDGET_POPUP_PREFIX, 0) == true)
        {
-               SysTryReturnVoidResult(NID_APP, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetPopupProviderFactory is null");
+               SysTryReturnVoidResult(NID_SHELL, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetPopupProviderFactory is null");
                HandleAppWidgetPopupRequest(operationId, pArgs);
        }
        else
        {
                if(this->ContainsAppWidget(*pInstanceId) == false)
                {
-                       SysLog(NID_APP, "no appwidget instance, creating..");
+                       SysLog(NID_SHELL, "no appwidget instance, creating..");
 
                        int width = 0;
                        const String* pValue = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_WIDTH));
-                       SysTryReturnVoidResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
+                       SysTryReturnVoidResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
                        Integer::Parse(*pValue, width);
 
                        int height = 0;
                        pValue = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_HEIGHT));
-                       SysTryReturnVoidResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
+                       SysTryReturnVoidResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
                        Integer::Parse(*pValue, height);
 
                        this->CreateAppWidget( *pName, *pInstanceId, width, height, *pParam);
 
                        if(operationId == APPWIDGET_ON_RESIZE)
                        {
-                               SysLog(NID_APP, "operation is resize, but appwidget is already recreated with new size, so OnSize won't be called.");
+                               SysLog(NID_SHELL, "operation is resize, but appwidget is already recreated with new size, so OnSize won't be called.");
                                return;
                        }
                }
 
-               SysTryReturnVoidResult(NID_APP, __pAppWidgetFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetFactory is null");
+               SysTryReturnVoidResult(NID_SHELL, __pAppWidgetFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetFactory is null");
                HandleAppWidgetRequest(operationId, pArgs);
        }
-       SysLog(NID_APP, "Exit");
+       SysLog(NID_SHELL, "Exit");
 }
 
 result
@@ -386,29 +386,29 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetRequest(const Tizen::Base::String&
                return E_SYSTEM;
        }
 
-       SysLog(NID_APP, "operationId(%ls), argc(%d)", operationId.GetPointer(), pArgs->GetCount());
+       SysLog(NID_SHELL, "operationId(%ls), argc(%d)", operationId.GetPointer(), pArgs->GetCount());
 
        const String* pInstanceId = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_INSTANCE_ID));
-       SysTryReturnResult(NID_APP, pInstanceId, E_FAILURE, "[E_FAILURE] pId is null.");
+       SysTryReturnResult(NID_SHELL, pInstanceId, E_FAILURE, "[E_FAILURE] pId is null.");
 
        /*String *pName =  dynamic_cast<String*>(pArgs->GetAt(1));
-       SysTryReturnResult(NID_APP, pInstanceId, E_FAILURE, "[E_FAILURE] pName is null");
+       SysTryReturnResult(NID_SHELL, pInstanceId, E_FAILURE, "[E_FAILURE] pName is null");
 
        String *pParam =  dynamic_cast<String*>(pArgs->GetAt(2));
-       SysTryReturnResult(NID_APP, pParam, E_FAILURE, "[E_FAILURE] pName is null");
+       SysTryReturnResult(NID_SHELL, pParam, E_FAILURE, "[E_FAILURE] pName is null");
 
-       SysLog(NID_APP, "id(%ls), name(%d)", pInstanceId->GetPointer(), pName->GetPointer());*/
+       SysLog(NID_SHELL, "id(%ls), name(%d)", pInstanceId->GetPointer(), pName->GetPointer());*/
 
        /*if( operationId == APPWIDGET_ON_ADD )
        {
                int w = 0;
                int h = 0;
                String* pValue =  dynamic_cast<String*>(pArgs->GetAt(2));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "[E_FAILURE]");
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "[E_FAILURE]");
                Integer::Parse(*pValue, w);
 
                pValue =  dynamic_cast<String*>(pArgs->GetAt(3));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "[E_FAILURE]");
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "[E_FAILURE]");
                Integer::Parse(*pValue, h);
 
                this->__pAppWidgetEventListener->OnAppWidgetAdded(*pId, width, height, pArgs);
@@ -419,11 +419,11 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetRequest(const Tizen::Base::String&
                int width = 0;
                int height = 0;
                const String* pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_WIDTH));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
                Integer::Parse(*pValue, width);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_HEIGHT));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
                Integer::Parse(*pValue, height);
 
                this->ResizeAppWidget(*pInstanceId, width, height);
@@ -433,15 +433,15 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetRequest(const Tizen::Base::String&
                int width = 0;
                int height = 0;
                const String* pValue =  dynamic_cast<const String*>( pArgs->GetValue(ARG_KEY_WIDTH));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
                Integer::Parse(*pValue, width);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_HEIGHT));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
                Integer::Parse(*pValue, height);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_ARGUMENT));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_ARGUMENT.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_ARGUMENT.GetPointer() );
 
                this->UpdateAppWidget(*pInstanceId, width, height, *pValue);
        }
@@ -451,38 +451,38 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetRequest(const Tizen::Base::String&
        }
        else if (operationId == APPWIDGET_ON_TOUCH)
        {
-               SysLog(NID_APP, "[APPWIDGET_ON_TOUCH] touch events will be delivered after provider is initialized");
+               SysLog(NID_SHELL, "[APPWIDGET_ON_TOUCH] touch events will be delivered after provider is initialized");
 //             int eventType = 0;
 //             double  timeStamp = 0.0f;
 //             double  x = 0.0f;
 //             double  y = 0.0f;
 
 //             const String* pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_EVENT_TYPE));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_EVENT_TYPE.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_EVENT_TYPE.GetPointer() );
 //             Integer::Parse(*pValue, eventType);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_TIME_STAMP));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_TIME_STAMP.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_TIME_STAMP.GetPointer() );
 //             Double::Parse(*pValue, timeStamp);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_X));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
 //             Double::Parse(*pValue, x);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_Y));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
 //             Double::Parse(*pValue, y);
 //
 //             this->ForwardTouchEvent(*pInstanceId, eventType, timeStamp, x, y);
        }
-       SysLog(NID_APP, "Exit");
+       SysLog(NID_SHELL, "Exit");
        return E_SUCCESS;
 }
 
 result
 _AppWidgetProviderManagerImpl::HandleAppWidgetPopupRequest(const Tizen::Base::String& operationId, const Tizen::Base::Collection::IMap* pArgs)
 {
-       SysTryReturnResult(NID_APP, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetPopupProviderFactory is null");
+       SysTryReturnResult(NID_SHELL, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_FAILURE] __pAppWidgetPopupProviderFactory is null");
        if( pArgs == null || pArgs->GetCount() < 3)
        {
                SysAssertf(pArgs, "[E_SYSTEN] pArgs should not be null.");
@@ -490,7 +490,7 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetPopupRequest(const Tizen::Base::St
        }
 
        const String* pInstanceId = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_INSTANCE_ID));
-       SysTryReturnResult(NID_APP, pInstanceId, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_INSTANCE_ID.GetPointer() );
+       SysTryReturnResult(NID_SHELL, pInstanceId, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_INSTANCE_ID.GetPointer() );
 
        if (operationId == APPWIDGET_POPUP_ON_CREATE)
        {
@@ -500,25 +500,25 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetPopupRequest(const Tizen::Base::St
                int height = 0;
 
                const String* pName = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_PROVIDER_NAME));
-               SysTryReturnResult(NID_APP, pName, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_PROVIDER_NAME.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pName, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_PROVIDER_NAME.GetPointer() );
 
                const String* pUserInfo = dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_USER_INFO));
-               SysTryReturnResult(NID_APP, pUserInfo, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_USER_INFO.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pUserInfo, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_USER_INFO.GetPointer() );
 
                const String* pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_X));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
                Double::Parse(*pValue, x);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_Y));;
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
                Double::Parse(*pValue, y);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_WIDTH));
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
                Integer::Parse(*pValue, width);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_HEIGHT));;
-               SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
+               SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_HEIGHT.GetPointer() );
                Integer::Parse(*pValue, height);
 
                this->CreateAppWidgetPopupProvider(*pInstanceId, *pName, *pUserInfo, x, y, width, height);
@@ -540,26 +540,26 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetPopupRequest(const Tizen::Base::St
 //             double  y = 0.0f;
 //
 //             const String* pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_EVENT_TYPE));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_EVENT_TYPE.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_EVENT_TYPE.GetPointer() );
 //             Integer::Parse(*pValue, eventType);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_TIME_STAMP));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_TIME_STAMP.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_TIME_STAMP.GetPointer() );
 //             Double::Parse(*pValue, timeStamp);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_X));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
 //             Double::Parse(*pValue, x);
 //
 //             pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_Y));
-//             SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
+//             SysTryReturnResult(NID_SHELL, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
 //             Double::Parse(*pValue, y);
 //
 //             ForwardTouchEventForPD(*pInstanceId, eventType, timeStamp, x, y);
        }
        else
        {
-               SysLog(NID_APP, "unexpected case(%ls)", operationId.GetPointer() );
+               SysLog(NID_SHELL, "unexpected case(%ls)", operationId.GetPointer() );
        }
 
        return E_SUCCESS;
@@ -568,24 +568,24 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetPopupRequest(const Tizen::Base::St
 result
 _AppWidgetProviderManagerImpl::CreateAppWidget(const String& name, const String& instanceId, int width, int height, const String& userInfo)
 {
-       SysLog(NID_APP, "instanceId(%ls), w:%d, h:%d, userInfo:%ls", instanceId.GetPointer(), width, height, userInfo.GetPointer());
-       SysTryReturnResult(NID_APP, __pAppWidgetFactory, E_FAILURE, "[E_INVALID_OPERATION] __pAppWidgetFactory should not be null");
+       SysLog(NID_SHELL, "instanceId(%ls), w:%d, h:%d, userInfo:%ls", instanceId.GetPointer(), width, height, userInfo.GetPointer());
+       SysTryReturnResult(NID_SHELL, __pAppWidgetFactory, E_FAILURE, "[E_INVALID_OPERATION] __pAppWidgetFactory should not be null");
 
        if( ContainsAppWidget(instanceId))
        {
-               SysLog(NID_APP, "CreateAppWidget invoke is duplicated!!");
+               SysLog(NID_SHELL, "CreateAppWidget invoke is duplicated!!");
                RemoveAppWidget(instanceId, false);
        }
 
        AppWidgetProvider* pAppWidget = __pAppWidgetFactory->CreateInstance(name, width, height, userInfo);
-       SysTryReturnResult(NID_APP, pAppWidget, E_INVALID_OPERATION, "[E_INVALID_OPERATION]");
+       SysTryReturnResult(NID_SHELL, pAppWidget, E_INVALID_OPERATION, "[E_INVALID_OPERATION]");
 
        pAppWidget->Construct(instanceId);
        __appwidgetProviders.Add(instanceId, pAppWidget);
 
        pAppWidget->OnAppWidgetProviderInitializing(width, height, userInfo);
 
-       SysTryReturnResult(NID_APP, pAppWidget->GetAppWidgetFrame(), E_INVALID_OPERATION, "[E_INVALID_OPERATION]");
+       SysTryReturnResult(NID_SHELL, pAppWidget->GetAppWidgetFrame(), E_INVALID_OPERATION, "[E_INVALID_OPERATION]");
 
        return E_SUCCESS;
 }
@@ -593,11 +593,11 @@ _AppWidgetProviderManagerImpl::CreateAppWidget(const String& name, const String&
 result
 _AppWidgetProviderManagerImpl::UpdateAppWidget(const String& instanceId, int width, int height, const String& argument)
 {
-       SysLog(NID_APP, "instanceId(%ls), w:%d, h:%d, argument:%ls", instanceId.GetPointer(), width, height, argument.GetPointer() );
+       SysLog(NID_SHELL, "instanceId(%ls), w:%d, h:%d, argument:%ls", instanceId.GetPointer(), width, height, argument.GetPointer() );
 
        AppWidgetProvider* pAppWidget = null;
        __appwidgetProviders.GetValue(instanceId, pAppWidget);
-       SysTryReturnResult(NID_APP, pAppWidget, E_SYSTEM, "Can't find the AppWidget provider");
+       SysTryReturnResult(NID_SHELL, pAppWidget, E_SYSTEM, "Can't find the AppWidget provider");
 
        pAppWidget->OnAppWidgetProviderUpdating(argument);
 
@@ -607,14 +607,14 @@ _AppWidgetProviderManagerImpl::UpdateAppWidget(const String& instanceId, int wid
 result
 _AppWidgetProviderManagerImpl::ResizeAppWidget(const String& instanceId, int width, int height)
 {
-       SysLog(NID_APP, "instanceId(%ls), w:%d, h:%d", instanceId.GetPointer(), width, height);
+       SysLog(NID_SHELL, "instanceId(%ls), w:%d, h:%d", instanceId.GetPointer(), width, height);
 
        AppWidgetProvider* pAppWidget = null;
        __appwidgetProviders.GetValue(instanceId, pAppWidget);
-       SysTryReturnResult(NID_APP, pAppWidget, E_SYSTEM, "Can't find the AppWidget provider");
+       SysTryReturnResult(NID_SHELL, pAppWidget, E_SYSTEM, "Can't find the AppWidget provider");
 
        AppWidgetFrame* pAppWidgetFrame = pAppWidget->GetAppWidgetFrame();
-       SysTryReturnResult(NID_APP, pAppWidgetFrame, E_SYSTEM, "GetAppWidgetFrame() returns 'null'.");
+       SysTryReturnResult(NID_SHELL, pAppWidgetFrame, E_SYSTEM, "GetAppWidgetFrame() returns 'null'.");
 
        return pAppWidgetFrame->SetSize(Dimension(width, height));
 }
@@ -622,20 +622,20 @@ _AppWidgetProviderManagerImpl::ResizeAppWidget(const String& instanceId, int wid
 result
 _AppWidgetProviderManagerImpl::RemoveAppWidget(const String& instanceId, bool terminateIfFinished)
 {
-       SysLog(NID_APP, "instanceId(%ls), terminateIfFinished(%s)", instanceId.GetPointer(), (terminateIfFinished)? "true":"false" );
+       SysLog(NID_SHELL, "instanceId(%ls), terminateIfFinished(%s)", instanceId.GetPointer(), (terminateIfFinished)? "true":"false" );
 //     __pAppWidgetEventListener->OnAppWidgetRemoved(instanceId);
 
        AppWidgetProvider* pAppWidgetProvider = null;
        __appwidgetProviders.GetValue(instanceId, pAppWidgetProvider);
        result r = __appwidgetProviders.Remove(instanceId);
-       SysLog(NID_APP, "%s", GetErrorMessage(r) );
+       SysLog(NID_SHELL,       "%s", GetErrorMessage(r) );
 
        if( pAppWidgetProvider != null)
        {
                delete pAppWidgetProvider;
        }
 
-       SysLog(NID_APP, "(%d) provider(s) remains.", __appwidgetProviders.GetCount() );
+       SysLog(NID_SHELL,       "(%d) provider(s) remains.", __appwidgetProviders.GetCount() );
 
        if( terminateIfFinished && this->__appwidgetProviders.GetCount() == 0)
        {
@@ -648,8 +648,8 @@ _AppWidgetProviderManagerImpl::RemoveAppWidget(const String& instanceId, bool te
 result
 _AppWidgetProviderManagerImpl::CreateAppWidgetPopupProvider(const String& instanceId, const String& providerName, const String& userInfo, double x, double y, int width, int height)
 {
-       SysLog(NID_APP, "instanceId(%ls), providerName(%ls), userInfo(%ls), rect(%f, %f, %d, %d)", instanceId.GetPointer(), providerName.GetPointer(), userInfo.GetPointer(), x, y, width, height );
-       SysTryReturnResult(NID_APP, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_INVALID_OPERATION] __pAppWidgetPopupProviderFactory should not be null");
+       SysLog(NID_SHELL, "instanceId(%ls), providerName(%ls), userInfo(%ls), rect(%f, %f, %d, %d)", instanceId.GetPointer(), providerName.GetPointer(), userInfo.GetPointer(), x, y, width, height );
+       SysTryReturnResult(NID_SHELL, __pAppWidgetPopupProviderFactory, E_FAILURE, "[E_INVALID_OPERATION] __pAppWidgetPopupProviderFactory should not be null");
 
        AppWidgetPopupProvider* pPd = __pAppWidgetPopupProviderFactory->CreateInstance(providerName, userInfo);
        __pAppWidgetPopupProvider = pPd;
@@ -658,7 +658,7 @@ _AppWidgetProviderManagerImpl::CreateAppWidgetPopupProvider(const String& instan
        __pAppWidgetPopupProvider->OnAppWidgetPopupProviderInitializing(userInfo);
 
        AppWidgetPopup* pAppWidgetFrame = pPd->GetAppWidgetPopup();
-       SysTryReturnResult(NID_APP, pAppWidgetFrame, E_INVALID_OPERATION, "[E_INVALID_OPERATION] AppWidgetPopup should be set using AppWidgetPopupProvider::SetAppWidgetPopup()");
+       SysTryReturnResult(NID_SHELL, pAppWidgetFrame, E_INVALID_OPERATION, "[E_INVALID_OPERATION] AppWidgetPopup should be set using AppWidgetPopupProvider::SetAppWidgetPopup()");
 
        return E_SUCCESS;
 }
@@ -666,7 +666,7 @@ _AppWidgetProviderManagerImpl::CreateAppWidgetPopupProvider(const String& instan
 result
 _AppWidgetProviderManagerImpl::DestroyAppWidgetPopupProvider(const String& instanceId)
 {
-       SysLog(NID_APP, "instanceId(%ls)", instanceId.GetPointer());
+       SysLog(NID_SHELL, "instanceId(%ls)", instanceId.GetPointer());
 
        if( __pAppWidgetPopupProvider != null)
        {
@@ -681,11 +681,11 @@ _AppWidgetProviderManagerImpl::DestroyAppWidgetPopupProvider(const String& insta
 result
 _AppWidgetProviderManagerImpl::ForwardTouchEvent(const String& instanceId, int eventType, double timeStamp, double x, double y)
 {
-       SysLog(NID_APP, "instanceId(%ls), eventType(%d), timeStamp(%f), x(%f), y(%f)", instanceId.GetPointer(), eventType, timeStamp, x, y);
+       SysLog(NID_SHELL, "instanceId(%ls), eventType(%d), timeStamp(%f), x(%f), y(%f)", instanceId.GetPointer(), eventType, timeStamp, x, y);
 
        _IAppWidgetTouchEventListener* pTouchEventListener = null;
        __touchEventListeners.GetValue(instanceId, pTouchEventListener);
-       SysTryReturnResult(NID_APP, pTouchEventListener, E_INVALID_STATE, "[E_INVALID_STATE]");
+       SysTryReturnResult(NID_SHELL, pTouchEventListener, E_INVALID_STATE, "[E_INVALID_STATE]");
 
        pTouchEventListener->OnTouchEventRecevied(eventType, timeStamp, x, y);
 
@@ -695,7 +695,7 @@ _AppWidgetProviderManagerImpl::ForwardTouchEvent(const String& instanceId, int e
 result
 _AppWidgetProviderManagerImpl::ForwardTouchEventForPD(const String& instanceId, int eventType, double timeStamp, double x, double y)
 {
-       SysTryReturnResult(NID_APP, __AppWidgetPopupTouchEventListener, E_INVALID_STATE, "[E_INVALID_STATE]");
+       SysTryReturnResult(NID_SHELL, __AppWidgetPopupTouchEventListener, E_INVALID_STATE, "[E_INVALID_STATE]");
        __AppWidgetPopupTouchEventListener->OnTouchEventRecevied(eventType, timeStamp, x, y);
 
        return E_SUCCESS;
@@ -708,7 +708,7 @@ result
 _AppWidgetProviderManagerImpl::RequestSharedMemoryId(const Tizen::Base::String& instanceId, int width, int height, int& shmId)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        return pProxy->RequestSharedMemoryId(instanceId, width, height, shmId);
 }
@@ -717,7 +717,7 @@ result
 _AppWidgetProviderManagerImpl::RequestSharedMemoryIdForPD(const Tizen::Base::String& instanceId, int width, int height, int& shmId)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        return pProxy->RequestSharedMemoryIdForPD(instanceId, width, height, shmId);
 }
@@ -726,7 +726,7 @@ result
 _AppWidgetProviderManagerImpl::RequestReleaseSharedMemory(const Tizen::Base::String& instanceId)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        return pProxy->RequestReleaseSharedMemory(instanceId);
 }
@@ -735,7 +735,7 @@ result
 _AppWidgetProviderManagerImpl::RequestReleaseSharedMemoryForPD(const Tizen::Base::String& instanceId)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        return pProxy->RequestReleaseSharedMemoryForPD(instanceId);
 }
@@ -744,7 +744,7 @@ result
 _AppWidgetProviderManagerImpl::RequestSyncSharedMemory(const Tizen::Base::String& instanceId, int width, int height)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        result r = pProxy->RequestSyncSharedMemory(instanceId, width, height);
 
@@ -755,7 +755,7 @@ result
 _AppWidgetProviderManagerImpl::RequestSyncSharedMemoryForPD(const Tizen::Base::String& instanceId)
 {
        _AppWidgetManagerProxy* pProxy = _AppWidgetManagerProxy::GetInstance();
-       SysTryReturnResult(NID_APP, pProxy, E_SYSTEM, "Failed to get proxy instance!");
+       SysTryReturnResult(NID_SHELL, pProxy, E_SYSTEM, "Failed to get proxy instance!");
 
        return pProxy->RequestSyncSharedMemoryForPD(instanceId);
 }
index aa73fc8..2a5326d 100644 (file)
@@ -45,18 +45,18 @@ LockManager::~LockManager()
 void
 LockManager::InitSingleton(void)
 {
-       SysLog(NID_APP, "Enter.");
+       SysLog(NID_SHELL, "Enter.");
 
        std::unique_ptr<LockManager> pInst(new (std::nothrow) LockManager());
-       SysTryReturnVoidResult(NID_APP, pInst, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+       SysTryReturnVoidResult(NID_SHELL, pInst, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
 
        result r = pInst->Construct();
-       SysTryReturnVoidResult(NID_APP, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
 
        __pTheInstance = pInst.release();
        std::atexit(DestroySingleton);
 
-       SysLog(NID_APP, "Exit.");
+       SysLog(NID_SHELL, "Exit.");
 }
 
 void
@@ -71,7 +71,7 @@ LockManager::GetInstance(void)
        static pthread_once_t onceBlock = PTHREAD_ONCE_INIT;
        if (__pTheInstance == null)
        {
-               SysLog(NID_APP, "Enter.");
+               SysLog(NID_SHELL, "Enter.");
                ClearLastResult();
                pthread_once(&onceBlock, InitSingleton);
                result r = GetLastResult();
@@ -79,7 +79,7 @@ LockManager::GetInstance(void)
                {
                        onceBlock = PTHREAD_ONCE_INIT;
                }
-               SysLog(NID_APP, "Exit.");
+               SysLog(NID_SHELL, "Exit.");
        }
        return __pTheInstance;
 }
@@ -92,7 +92,7 @@ LockManager::Construct(void)
        __pLockManagerImpl = _LockManagerImpl::GetInstance();
 
        SysAssertf(__pLockManagerImpl, "Failed to construct _LockManagerImpl!!");
-       SysLog(NID_APP, "Successed.");
+       SysLog(NID_SHELL, "Successed.");
        return E_SUCCESS;
 }
 
index e0a56dc..8c0b36c 100644 (file)
@@ -53,7 +53,7 @@ NotificationManager::Construct(void)
                        "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
 
        __pNotificationManagerImpl = new (std::nothrow) _NotificationManagerImpl();
-       SysTryReturnResult(NID_APP, __pNotificationManagerImpl != null, E_OUT_OF_MEMORY, "Allocation failed.");
+       SysTryReturnResult(NID_SHELL, __pNotificationManagerImpl != null, E_OUT_OF_MEMORY, "Allocation failed.");
 
        return __pNotificationManagerImpl->Construct();
 }
@@ -64,7 +64,7 @@ NotificationManager::GetBadgeNumber(void)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->GetBadgeNumber();
 }
@@ -75,7 +75,7 @@ NotificationManager::Notify(int badgeNumber)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->Notify(badgeNumber);
 }
@@ -86,7 +86,7 @@ NotificationManager::Notify(const String& messageText)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->Notify(messageText);
 }
@@ -97,7 +97,7 @@ NotificationManager::Notify(const String& messageText, int badgeNumber)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->Notify(messageText, badgeNumber);
 }
@@ -108,7 +108,7 @@ NotificationManager::Notify(const String& messageText, int badgeNumber, const St
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->Notify(messageText, badgeNumber, launchArguments);
 }
@@ -119,7 +119,7 @@ NotificationManager::Notify(const NotificationRequest& notiMessage)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyMessageImpl(notiMessage);
 }
@@ -130,7 +130,7 @@ NotificationManager::NotifyByAppId(const AppId& appId,const NotificationRequest&
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION, _PRV_NOTIFICATIONMANAGER);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyMessageImpl(appId, notiMessage);
 }
@@ -141,7 +141,7 @@ NotificationManager::GetBadgeNumberByAppId(const AppId& appId)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->GetBadgeNumber(appId);
 }
@@ -152,7 +152,7 @@ NotificationManager::NotifyOngoingActivity(const String& messageText)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyOngoingActivity(messageText);
 }
@@ -163,7 +163,7 @@ NotificationManager::NotifyOngoingActivity(const String& messageText, const Stri
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
 
        return __pNotificationManagerImpl->NotifyOngoingActivity(messageText, launchArguments);
@@ -175,7 +175,7 @@ NotificationManager::NotifyOngoingActivity(const NotificationRequest& notiMessag
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyMessageImpl(notiMessage, true);
 }
@@ -186,7 +186,7 @@ NotificationManager::NotifyOngoingActivityByAppId(const AppId& appId,const Notif
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION, _PRV_NOTIFICATIONMANAGER);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyMessageImpl(appId, notiMessage, true);
 }
@@ -197,7 +197,7 @@ NotificationManager::RemoveOngoingActivityNotification(void)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->RemoveOngoingActivityNotification();
 }
@@ -208,7 +208,7 @@ NotificationManager::RemoveOngoingActivityNotificationByAppId(const AppId& appId
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION, _PRV_NOTIFICATIONMANAGER);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->RemoveOngoingActivityNotificationByAppId(appId);
 }
@@ -219,7 +219,7 @@ NotificationManager::RemoveNotification(void)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->RemoveNotification();
 }
@@ -230,7 +230,7 @@ NotificationManager::RemoveNotificationByAppId(const AppId& appId)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION, _PRV_NOTIFICATIONMANAGER);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->RemoveNotificationByAppId(appId);
 }
@@ -242,7 +242,7 @@ NotificationManager::NotifyTextMessage(const String& messageText)
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyTextMessage(messageText);
 }
@@ -254,7 +254,7 @@ NotificationManager::NotifyByAppControl(const Tizen::Base::String& operationId,
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyByAppControl(operationId, pUriData, pDataType, pExtraData, request);
 }
@@ -266,7 +266,7 @@ NotificationManager::NotifyOngoingActivityByAppControl(const Tizen::Base::String
        SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
-       SysTryReturnResult(NID_APP,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL,  !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        return __pNotificationManagerImpl->NotifyOngoingActivityByAppControl(operationId, pUriData, pDataType, pExtraData, request);
 }
index f1a95a7..3f7f025 100644 (file)
@@ -39,7 +39,7 @@ NotificationRequest::NotificationRequest(bool appBinding)
        : __pNotificationRequestImpl(null)
 {
        __pNotificationRequestImpl = new (std::nothrow) _NotificationRequestImpl(appBinding);
-       SysTryReturnVoidResult(NID_APP, __pNotificationRequestImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
+       SysTryReturnVoidResult(NID_SHELL, __pNotificationRequestImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
 }
 
 NotificationRequest::~NotificationRequest()
@@ -51,7 +51,7 @@ NotificationRequest::NotificationRequest(const NotificationRequest& rhs)
        : __pNotificationRequestImpl(null)
 {
        __pNotificationRequestImpl = new (std::nothrow) _NotificationRequestImpl(*rhs.__pNotificationRequestImpl);
-       SysTryReturnVoidResult(NID_APP, __pNotificationRequestImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
+       SysTryReturnVoidResult(NID_SHELL, __pNotificationRequestImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
 }
 
 NotificationRequest&
@@ -62,7 +62,7 @@ NotificationRequest::operator =(const NotificationRequest& rhs)
                delete __pNotificationRequestImpl;
 
                __pNotificationRequestImpl = new (std::nothrow) _NotificationRequestImpl(*rhs.__pNotificationRequestImpl);
-               SysTryReturn(NID_APP, __pNotificationRequestImpl, *this, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
+               SysTryReturn(NID_SHELL, __pNotificationRequestImpl, *this, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Insufficient memory");
        }
 
        return(*this);
index dfad2fd..062f468 100644 (file)
@@ -57,10 +57,10 @@ ShortcutManager::GetInstance()
        if( pShortcutManager == null)
        {
                pShortcutManager = new (std::nothrow) ShortcutManager;
-               SysTryReturn(NID_APP, pShortcutManager, null, E_OUT_OF_MEMORY, "E_OUT_OF_MEMORY" );
+               SysTryReturn(NID_SHELL, pShortcutManager, null, E_OUT_OF_MEMORY, "E_OUT_OF_MEMORY" );
 
                result r = pShortcutManager->Construct();
-//             SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+//             SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
                SysAssertf(!IsFailed(r), "Failed to construct ShortcutManager!!");
        }
 
@@ -78,11 +78,11 @@ result
 ShortcutManager::AddShortcut(const AppId& appId, const String& displayName, const String& iconFilePath, const String& uriData, bool allowDuplication)
 {
        result r = _AccessController::CheckUserPrivilege(_PRV_SHORTCUT_INSTALL);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        if( allowDuplication )
        {
-               SysLog(NID_APP, "This feature(allowDuplication) is not yet implemented!");
+               SysLog(NID_SHELL, "This feature(allowDuplication) is not yet implemented!");
        }
 
        std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
@@ -93,7 +93,7 @@ ShortcutManager::AddShortcut(const AppId& appId, const String& displayName, cons
        int type = (uriData.IsEmpty())? LAUNCH_BY_PACKAGE : LAUNCH_BY_URI;
        //int ret = add_to_home_shortcut(pAppId.get(), pName.get(), type, pUriData.get(), pIcon.get(), NULL, this);
        int ret = add_to_home_shortcut(pAppId.get(), pName.get(), type, pUriData.get(), pIcon.get(), allowDuplication, NULL, this);
-       SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "Failed to add_to_home_shortcut");
+       SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "Failed to add_to_home_shortcut");
 
        return E_SUCCESS;
 }
index 1edbf67..8d6f369 100644 (file)
@@ -97,7 +97,7 @@ _LockManagerImpl::Unlock(void)
                return E_SUCCESS;
        }
 
-//     SysTryReturnResult(NID_APP, !IsSecureMode(), E_INVALID_OPERATION, "Secured lock screen can't be unlocked.");
+//     SysTryReturnResult(NID_SHELL, !IsSecureMode(), E_INVALID_OPERATION, "Secured lock screen can't be unlocked.");
 
        int errorCode = -1;
        errorCode = vconf_set_int(VCONFKEY_IDLE_LOCK_STATE, VCONFKEY_IDLE_UNLOCK);
index 8534082..1f0166a 100644 (file)
@@ -146,7 +146,7 @@ BadgeChangedCallback(unsigned int action, const char *pkgname, unsigned int coun
        SysAssert(pBadgeEventListenerList);
 
        std::unique_ptr<IEnumeratorT<Tizen::Shell::IBadgeEventListener* > > pEnum(pBadgeEventListenerList->GetEnumeratorN());
-       SysTryReturnVoidResult(NID_APP, pEnum.get(), E_OUT_OF_MEMORY, "Failed to GetEnumeratorN()!");
+       SysTryReturnVoidResult(NID_SHELL, pEnum.get(), E_OUT_OF_MEMORY, "Failed to GetEnumeratorN()!");
 
        IBadgeEventListener* pListener;
        while (pEnum->MoveNext() == E_SUCCESS)
@@ -155,7 +155,7 @@ BadgeChangedCallback(unsigned int action, const char *pkgname, unsigned int coun
                pEnum->GetCurrent(pListener);
                if( !pListener)
                {
-                       SysLog(NID_APP, "pListener is null!");
+                       SysLog(NID_SHELL, "pListener is null!");
                        continue;
                }
 
@@ -187,7 +187,7 @@ _BadgeManagerImpl::AddPrimaryBadgeEventListener(IBadgeEventListener& primaryList
        if( __primaryBadgeEventListenerList.GetCount() == 0)
        {
                int ret = badge_register_changed_cb(BadgeChangedCallback, &__primaryBadgeEventListenerList);
-               SysTryReturnResult(NID_APP, ret == BADGE_ERROR_NONE, E_SYSTEM, "Failed to badge_unregister_changed_cb, (%d)", ret);
+               SysTryReturnResult(NID_SHELL, ret == BADGE_ERROR_NONE, E_SYSTEM, "Failed to badge_unregister_changed_cb, (%d)", ret);
        }
 
        return __primaryBadgeEventListenerList.Add(&primaryListener);
@@ -200,7 +200,7 @@ _BadgeManagerImpl::RemovePrimaryBadgeEventListener(IBadgeEventListener& primaryL
        if( __primaryBadgeEventListenerList.GetCount() == 0)
        {
                int ret = badge_unregister_changed_cb(BadgeChangedCallback);
-               SysTryReturnResult(NID_APP, ret == BADGE_ERROR_NONE, E_SYSTEM, "Failed to badge_unregister_changed_cb, (%d)", ret);
+               SysTryReturnResult(NID_SHELL, ret == BADGE_ERROR_NONE, E_SYSTEM, "Failed to badge_unregister_changed_cb, (%d)", ret);
        }
        return E_SUCCESS;
 }
@@ -249,7 +249,7 @@ _NotificationManagerImpl::GetBadgeNumber(void) const
        std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(pApp->GetAppId()));
 
        int count = GetBadgeCount(pAppId.get());
-       SysTryReturn(NID_APP, count != -1, count, E_OPERATION_FAILED, "[%s] The operation has failed. Badge may not exist.",
+       SysTryReturn(NID_SHELL, count != -1, count, E_OPERATION_FAILED, "[%s] The operation has failed. Badge may not exist.",
                                 GetErrorMessage(E_OPERATION_FAILED));
 
        ClearLastResult();
@@ -272,7 +272,7 @@ _NotificationManagerImpl::NotifyMessageImpl(const AppId& appId, const Notificati
 result
 _NotificationManagerImpl::Notify(int badgeNumber)
 {
-       SysTryReturnResult(NID_APP, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
+       SysTryReturnResult(NID_SHELL, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
 
        if (badgeNumber > MAX_NOTIFICATION_BADGE_NUMBER)
        {
@@ -298,7 +298,7 @@ _NotificationManagerImpl::Notify(int badgeNumber)
 result
 _NotificationManagerImpl::Notify(const String& messageText)
 {
-       SysTryReturnResult(NID_APP, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
 
        NotificationRequest request;
        request.SetAlertText(messageText);
@@ -310,8 +310,8 @@ _NotificationManagerImpl::Notify(const String& messageText)
 result
 _NotificationManagerImpl::Notify(const String& messageText, int badgeNumber)
 {
-       SysTryReturnResult(NID_APP, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
-       SysTryReturnResult(NID_APP, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
+       SysTryReturnResult(NID_SHELL, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
 
        if (badgeNumber > MAX_NOTIFICATION_BADGE_NUMBER)
        {
@@ -329,12 +329,12 @@ _NotificationManagerImpl::Notify(const String& messageText, int badgeNumber)
 result
 _NotificationManagerImpl::Notify(const String& messageText, int badgeNumber, const String& launchArguments)
 {
-       SysTryReturnResult(NID_APP, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
-       SysTryReturnResult(NID_APP, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
-       SysTryReturnResult(NID_APP, launchArguments != null && launchArguments.GetLength() > 0, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, badgeNumber >= 0, E_INVALID_ARG, "BadgeNumber is less than 0.");
+       SysTryReturnResult(NID_SHELL, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, launchArguments != null && launchArguments.GetLength() > 0, E_INVALID_ARG,
                                           "launchArguments is less than 0.");
 
-       SysTryReturnResult(NID_APP, launchArguments.GetLength() <= MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, launchArguments.GetLength() <= MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH, E_INVALID_ARG,
                                           "launchArguments is greater than MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH.");
 
        if (badgeNumber > MAX_NOTIFICATION_BADGE_NUMBER)
@@ -354,12 +354,12 @@ int
 _NotificationManagerImpl::GetBadgeNumber(const AppId& appId) const
 {
        bool b = _Aul::IsInstalled(appId);
-       SysTryReturn(NID_APP, b == true, -1, E_APP_NOT_INSTALLED, "[E_OBJ_NOT_FOUND] The application %ls is not installed",
+       SysTryReturn(NID_SHELL, b == true, -1, E_APP_NOT_INSTALLED, "[E_OBJ_NOT_FOUND] The application %ls is not installed",
                                 appId.GetPointer());
        std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
        int count = GetBadgeCount(pAppId.get());
 
-       SysTryReturn(NID_APP, count != -1, count, E_OPERATION_FAILED, "[%s] The operation has failed. Badge may not exist.",
+       SysTryReturn(NID_SHELL, count != -1, count, E_OPERATION_FAILED, "[%s] The operation has failed. Badge may not exist.",
                                 GetErrorMessage(E_OPERATION_FAILED));
        ClearLastResult();
 
@@ -369,7 +369,7 @@ _NotificationManagerImpl::GetBadgeNumber(const AppId& appId) const
 result
 _NotificationManagerImpl::NotifyOngoingActivity(const String& messageText)
 {
-       SysTryReturnResult(NID_APP, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
 
        NotificationRequest request;
        request.SetAlertText(messageText);
@@ -380,9 +380,9 @@ _NotificationManagerImpl::NotifyOngoingActivity(const String& messageText)
 result
 _NotificationManagerImpl::NotifyOngoingActivity(const String& messageText, const String& launchArguments)
 {
-       SysTryReturnResult(NID_APP, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
-       SysTryReturnResult(NID_APP, launchArguments.GetLength() > 0, E_INVALID_ARG, "launchArguments is less than 0.");
-       SysTryReturnResult(NID_APP, launchArguments.GetLength() <= MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, messageText.GetLength() > 0, E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, launchArguments.GetLength() > 0, E_INVALID_ARG, "launchArguments is less than 0.");
+       SysTryReturnResult(NID_SHELL, launchArguments.GetLength() <= MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH, E_INVALID_ARG,
                                           "launchArguments is greater than MAX_NOTIFICATION_LAUNCH_ARGUMENTS_LENGTH.");
 
        NotificationRequest request;
@@ -408,7 +408,7 @@ _NotificationManagerImpl::RemoveNotificationByAppId(const AppId& appId)
 result
 _NotificationManagerImpl::NotifyTextMessage(const String& messageText) const
 {
-       SysTryReturnResult(NID_APP, !messageText.IsEmpty(), E_INVALID_ARG, "MessageText is less than 0.");
+       SysTryReturnResult(NID_SHELL, !messageText.IsEmpty(), E_INVALID_ARG, "MessageText is less than 0.");
 
        std::unique_ptr<char[]> pMsg(_StringConverter::CopyToCharArrayN(messageText));
        int res = notification_status_message_post(pMsg.get());
@@ -430,7 +430,7 @@ _NotificationManagerImpl::NotifyTextMessage(const String& messageText) const
                break;
        }
 
-       SysLog(NID_APP, "[%s] %ls posted.", GetErrorMessage(r), messageText.GetPointer());
+       SysLog(NID_SHELL, "[%s] %ls posted.", GetErrorMessage(r), messageText.GetPointer());
        return r;
 }
 
@@ -462,33 +462,33 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        result r = E_SUCCESS;
        std::unique_ptr<char[]> pAppIdChar(null);
        const _NotificationRequestImpl* pRequestImpl = _NotificationRequestImpl::GetInstance(notifyRequest);
-       SysTryReturnResult(NID_APP, pRequestImpl != null, E_INVALID_ARG, "Invalid argument is used.");
+       SysTryReturnResult(NID_SHELL, pRequestImpl != null, E_INVALID_ARG, "Invalid argument is used.");
 
        // Set pAppIdChar
        if ((notifyType == NOTIFY_TYPE_SIMPLE) || (notifyType == NOTIFY_TYPE_APP_CONTROL))
        {
 //             char* pkgname = null;
 //             app_get_id(&pkgname);   // AppId. (Not package Id)
-//             SysTryReturnResult(NID_APP, pkgname != NULL, E_OBJ_NOT_FOUND,"Cannot acquire package name for current application.");
+//             SysTryReturnResult(NID_SHELL, pkgname != NULL, E_OBJ_NOT_FOUND,"Cannot acquire package name for current application.");
 //             const String currentAppId(pkgname);
 //             free(pkgname);
                Tizen::App::App* pApp = Tizen::App::App::GetInstance();
                const String currentAppId = pApp->GetAppId();
                std::unique_ptr<char[]> pAppIdTemp(_StringConverter::CopyToCharArrayN(currentAppId));
                pAppIdChar = std::move(pAppIdTemp);
-               SysLog(NID_APP, "app_get_id: %ls", currentAppId.GetPointer());
+               SysLog(NID_SHELL, "app_get_id: %ls", currentAppId.GetPointer());
        }
        else
        if (notifyType == NOTIFY_TYPE_APP_ID)
        {
                bool isAppInstalled = _Aul::IsInstalled(*pAppId);
-               SysTryReturnResult(NID_APP, isAppInstalled == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", pAppId->GetPointer());
+               SysTryReturnResult(NID_SHELL, isAppInstalled == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", pAppId->GetPointer());
                std::unique_ptr<char[]> pAppIdTemp(_StringConverter::CopyToCharArrayN(*pAppId));
                pAppIdChar = std::move(pAppIdTemp);
        }
        else
        {
-               SysTryReturnResult(NID_APP, false, E_INVALID_ARG, "Invalid argument is used.");
+               SysTryReturnResult(NID_SHELL, false, E_INVALID_ARG, "Invalid argument is used.");
        }
 
        const int badgeNumber = notifyRequest.GetBadgeNumber();
@@ -524,11 +524,11 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                }
                if (!(isOngoing || !contentText.IsEmpty()))
                {
-                       SysLog(NID_APP, "No valid for Notification, just for set a badgeNumber update.");
+                       SysLog(NID_SHELL, "No valid for Notification, just for set a badgeNumber update.");
                        return E_SUCCESS;
                }
        }
-       SysTryReturnResult(NID_APP, (isOngoing || !contentText.IsEmpty()), E_INVALID_ARG, "Invalid argument is used. MessageText is Empty");
+       SysTryReturnResult(NID_SHELL, (isOngoing || !contentText.IsEmpty()), E_INVALID_ARG, "Invalid argument is used. MessageText is Empty");
 
        const String& titleText = notifyRequest.GetTitleText();
        const String& launchArguments = notifyRequest.GetAppMessage();
@@ -548,12 +548,12 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        if (notiPrivateId != -1)
        {
                notiHandle = notification_load(pAppIdChar.get(), notiPrivateId);
-               SysTryLog(NID_APP, notiHandle != null, "Get notiHandle(%d) from notiPrivateId(%d).", notiHandle, notiPrivateId);
+               SysTryLog(NID_SHELL, notiHandle != null, "Get notiHandle(%d) from notiPrivateId(%d).", notiHandle, notiPrivateId);
        }
 
        if (notiHandle == null)
        {
-               SysLog(NID_APP, "Previous notification(%d) no more valid - create new notification", notiPrivateId);
+               SysLog(NID_SHELL, "Previous notification(%d) no more valid - create new notification", notiPrivateId);
                notiPrivateId = -1;             // reset
                notiHandle = notification_create(notiType);
        }
@@ -561,7 +561,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        {
                needUpdate = true;              // No need to notification_insert.
        }
-       SysTryReturnResult(NID_APP, notiHandle != null , E_SYSTEM, "A system error has been occurred. Notification creation/load failed ");
+       SysTryReturnResult(NID_SHELL, notiHandle != null , E_SYSTEM, "A system error has been occurred. Notification creation/load failed ");
 
        // Content text(Alert text)
        std::unique_ptr<char[]> pMsg(_StringConverter::CopyToCharArrayN(contentText));
@@ -583,9 +583,9 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                        std::unique_ptr<char[]> pTitleTextTemp(_StringConverter::CopyToCharArrayN(appName));
                        pTitleText = std::move(pTitleTextTemp);
                        free(pAppName);
-                       //SysLog(NID_APP, "Application Id is %ls.", appName.GetPointer());
+                       //SysLog(NID_SHELL, "Application Id is %ls.", appName.GetPointer());
                }
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Failed to get title from app_manager_get_app_name for default setting.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Failed to get title from app_manager_get_app_name for default setting.", GetErrorMessage(r));
        }
        // Icon file path
        std::unique_ptr<char[]> pIconPath(null);
@@ -605,7 +605,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                        pIconPath = std::move(pIconPathTemp);
                        free(pDefaultIconPath);
                }
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
        }
        // Sound file path
        std::unique_ptr<char[]> pSoundPath(null);
@@ -618,23 +618,23 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        if (notifyType == NOTIFY_TYPE_APP_ID)
        {
                r = ConvertNotificationResult(notification_set_pkgname(notiHandle, pAppIdChar.get()));
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Package name failed.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Package name failed.", GetErrorMessage(r));
        }
        // Set - title text
        if (pTitleText.get())
        {
                r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_TITLE, pTitleText.get(), NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Title Text failed.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Title Text failed.", GetErrorMessage(r));
        }
        // Set - content text
        if (pMsg.get())
        {
                r = notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_CONTENT, pMsg.get(), NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Title Text failed.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Title Text failed.", GetErrorMessage(r));
        }
        // Set - icon file path
        r = ConvertNotificationResult(notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON, pIconPath.get()));
-       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
+       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set icon path failed.", GetErrorMessage(r));
        // Set - sound file path
        if (pSoundPath.get())
        {
@@ -644,7 +644,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        {
                r = ConvertNotificationResult(notification_set_sound(notiHandle, NOTIFICATION_SOUND_TYPE_DEFAULT, NULL));
        }
-       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set sound failed.", GetErrorMessage(r));
+       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set sound failed.", GetErrorMessage(r));
 
        // Set extended - text, thumbnail and background image
        if (!isOngoing)
@@ -674,7 +674,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                {
                        std::unique_ptr<char[]> pBgImageFilePath(_StringConverter::CopyToCharArrayN(bgImageFilePath));
                        r = ConvertNotificationResult(notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_BACKGROUND, pBgImageFilePath.get()));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Background image path failed.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Background image path failed.", GetErrorMessage(r));
                }
 
 
@@ -697,7 +697,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                        // TODO: check pThumbnailPath
                                        std::unique_ptr<char[]> filePath(_StringConverter::CopyToCharArrayN(*pThumbnailPath));
                                        r = ConvertNotificationResult(notification_set_image(notiHandle, thumbnailListEnum[i], filePath.get()));
-                                       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set thumnail path  failed.", GetErrorMessage(r));
+                                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set thumnail path  failed.", GetErrorMessage(r));
                                }
                        }
                }
@@ -719,14 +719,14 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                                std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(subText));
                                                r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_1, leftText.get(),
                                                                                                                                                        NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+                                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
                                                subText.Clear();
                                                if (E_SUCCESS == pText1->SubString(matchIndex+1, subText))
                                                {
                                                        std::unique_ptr<char[]> rightText(_StringConverter::CopyToCharArrayN(subText));
                                                        r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, rightText.get(),
                                                                                                                                                                NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                                       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Sub Text failed.", GetErrorMessage(r));
+                                                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Sub Text failed.", GetErrorMessage(r));
                                                }
                                        }
                                        else
@@ -734,7 +734,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                                std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(*pText1));
                                                r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_1, leftText.get(),
                                                                                                                                                        NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+                                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
                                        }
                                }
                                const String* pText2 = static_cast<const String*>(pMessageTextList->GetAt(1));
@@ -750,14 +750,14 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                                std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(subText));
                                                r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_2, leftText.get(),
                                                                                                                                                        NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+                                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
                                                subText.Clear();
                                                if (E_SUCCESS == pText2->SubString(matchIndex+1, subText))
                                                {
                                                        std::unique_ptr<char[]> rightText(_StringConverter::CopyToCharArrayN(subText));
                                                        r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, rightText.get(),
                                                                                                                                                                NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                                       SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Sub Text failed.", GetErrorMessage(r));
+                                                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Sub Text failed.", GetErrorMessage(r));
                                                }
                                        }
                                        else
@@ -765,7 +765,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                                std::unique_ptr<char[]> leftText(_StringConverter::CopyToCharArrayN(*pText2));
                                                r = ConvertNotificationResult(notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_INFO_2, leftText.get(),
                                                                                                                                                        NULL, NOTIFICATION_VARIABLE_TYPE_NONE));
-                                               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
+                                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification Set Info1 Text failed.", GetErrorMessage(r));
                                        }
                                }
                        }
@@ -789,12 +789,12 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
 
        // Set - service
        r = arg.Construct(launchArguments);
-       SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] Propagated.", GetErrorMessage(r));
+       SysTryCatch(NID_SHELL, !IsFailed(r), , r, "[%s] Propagated.", GetErrorMessage(r));
 
        pBundle = arg.GetBundle();
 
        service_create_request(pBundle, &hSvc);
-       SysTryCatch(NID_APP, hSvc != null, r = E_SYSTEM, r, "[%s] A system error has been occurred. service_create_request failed.", GetErrorMessage(E_SYSTEM));
+       SysTryCatch(NID_SHELL, hSvc != null, r = E_SYSTEM, r, "[%s] A system error has been occurred. service_create_request failed.", GetErrorMessage(E_SYSTEM));
 
        if (notifyType == NOTIFY_TYPE_SIMPLE || notifyType == NOTIFY_TYPE_APP_ID)
        {
@@ -833,7 +833,7 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                                        }
                                        else
                                        {
-                                               SysLog(NID_APP, "pKey or pValue is ivalid.");
+                                               SysLog(NID_SHELL, "pKey or pValue is ivalid.");
                                        }
                                }
                        }
@@ -843,15 +843,15 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        if (service_to_bundle(hSvc, &service_data) == SERVICE_ERROR_NONE)
        {
                r = ConvertNotificationResult(notification_set_property(notiHandle, 0));
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_property failed.", GetErrorMessage(r));
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_property failed.", GetErrorMessage(r));
                r = ConvertNotificationResult(notification_set_execute_option(notiHandle, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH,
                                                                                                                                          NULL, NULL, service_data));
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Nnotification_set_execute_option failed.", GetErrorMessage(r));
-               SysLog(NID_APP, "notification_set_execute_option");
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Nnotification_set_execute_option failed.", GetErrorMessage(r));
+               SysLog(NID_SHELL, "notification_set_execute_option");
        }
        else
        {
-               SysLog(NID_APP, "service_to_bundle failed");
+               SysLog(NID_SHELL, "service_to_bundle failed");
        }
 
        // Set layout
@@ -881,27 +881,27 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                        if (needUpdate)
                        {
                                r = ConvertNotificationResult(notification_set_size(notiHandle, 0));    // Reset for override BYTE type
-                               SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
+                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
                        }
-                       r = ConvertNotificationResult(notification_set_progress(notiHandle, progress/100.));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_progress failure.", GetErrorMessage(r));
+                       r = ConvertNotificationResult(notification_set_progress(notiHandle, 0));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_progress failure.", GetErrorMessage(r));
                        break;
 
                case ONGOING_ACTIVITY_TYPE_PROGRESS_BYTE:
                        if (needUpdate)
                        {
                                r = ConvertNotificationResult(notification_set_progress(notiHandle, 0.0));      // Reset for override PERCENTAGE type
-                               SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_progress failure.", GetErrorMessage(r));
+                               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_progress failure.", GetErrorMessage(r));
                        }
                        r = ConvertNotificationResult(notification_set_size(notiHandle, progress));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
                        break;
 
                case ONGOING_ACTIVITY_TYPE_TEXT:
                        r = ConvertNotificationResult(notification_set_progress(notiHandle, 0.0));      // Reset the progress
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
                        r = ConvertNotificationResult(notification_set_size(notiHandle, 0));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_size failure.", GetErrorMessage(r));
                        break;
 
                default:
@@ -914,8 +914,8 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
        if (!needUpdate)
        {       // new
                r = ConvertNotificationResult(notification_insert(notiHandle, &notiPrivateId));
-               SysLog(NID_APP, "Insert notification and get new notiPrivateId(%d)", notiPrivateId);
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] Notification post failure.", GetErrorMessage(r));
+               SysLog(NID_SHELL, "Insert notification and get new notiPrivateId(%d)", notiPrivateId);
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Notification post failure.", GetErrorMessage(r));
                if (isOngoing)
                {
                        __notifyPrivateIdForOngoing  = notiPrivateId;
@@ -931,19 +931,19 @@ _NotificationManagerImpl::NotifyMessage(_NotifyType notifyType, bool isOngoing,
                if (isOngoing)
                {
                        r = ConvertNotificationResult(notification_get_display_applist(notiHandle, &previousDisplaySet));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
                        int newDisplaySet = previousDisplaySet & ~NOTIFICATION_DISPLAY_APP_TICKER;
                        r = ConvertNotificationResult(notification_set_display_applist(notiHandle, newDisplaySet));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
                }
 
                r = ConvertNotificationResult(notification_update(notiHandle));
-               SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_update failure. notiPrivateId(%d)", GetErrorMessage(r), notiPrivateId);
+               SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_update failure. notiPrivateId(%d)", GetErrorMessage(r), notiPrivateId);
 
                if (isOngoing)
                {
                        r = ConvertNotificationResult(notification_set_display_applist(notiHandle, previousDisplaySet));
-                       SysTryLog(NID_APP, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
+                       SysTryLog(NID_SHELL, !IsFailed(r), "[%s] notification_set_display_applist failure.", GetErrorMessage(r));
                }
        }
 
@@ -980,18 +980,18 @@ _NotificationManagerImpl::RemoveNotification(bool onGoing)
                if (notiHandle)
                {
                        err = notification_delete(notiHandle);
-                       SysLog(NID_APP, "Notification deleted.");
+                       SysLog(NID_SHELL, "Notification deleted.");
                }
                else
                {
-                       SysLog(NID_APP, "Notification already deleted.");
+                       SysLog(NID_SHELL, "Notification already deleted.");
                }
                notification_free(notiHandle);
        }
        else
        {
                err = notification_delete_all_by_type(null, notiType);
-               SysLog(NID_APP, "All [%s] notification deleted.", onGoing ? "Ongoing" : "Normal");
+               SysLog(NID_SHELL, "All [%s] notification deleted.", onGoing ? "Ongoing" : "Normal");
        }
 
        switch (err)
@@ -1018,7 +1018,7 @@ _NotificationManagerImpl::RemoveNotificationByAppId(const Tizen::App::AppId& app
        result r = E_SUCCESS;
        notification_error_e err = NOTIFICATION_ERROR_NONE;
        bool isValidAppId = _Aul::IsInstalled(appId);
-       SysTryReturnResult(NID_APP, isValidAppId == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", appId.GetPointer());
+       SysTryReturnResult(NID_SHELL, isValidAppId == true, E_APP_NOT_INSTALLED, "The application %ls is not installed", appId.GetPointer());
 
        std::unique_ptr<char[]> pAppId(_StringConverter::CopyToCharArrayN(appId));
        const notification_type_e notiType = onGoing ? NOTIFICATION_TYPE_ONGOING : NOTIFICATION_TYPE_NOTI;
@@ -1030,18 +1030,18 @@ _NotificationManagerImpl::RemoveNotificationByAppId(const Tizen::App::AppId& app
                if (notiHandle)
                {
                        err = notification_delete(notiHandle);
-                       SysLog(NID_APP, "Notification deleted.");
+                       SysLog(NID_SHELL, "Notification deleted.");
                }
                else
                {
-                       SysLog(NID_APP, "Notification already deleted.");
+                       SysLog(NID_SHELL, "Notification already deleted.");
                }
                notification_free(notiHandle);
        }
        else
        {
                err = notification_delete_all_by_type(pAppId.get(), notiType);
-               SysLog(NID_APP, "All [%s] notification deleted.", onGoing ? "Ongoing" : "Normal");
+               SysLog(NID_SHELL, "All [%s] notification deleted.", onGoing ? "Ongoing" : "Normal");
        }
 
        switch (err)
@@ -1067,13 +1067,13 @@ _NotificationManagerImpl::RemoveBadge(const char* pkgName) const
 {
        bool badgeExist = false;
        badge_error_e badgeError = badge_is_existing(pkgName, &badgeExist);
-       SysLog(NID_APP, "badge_is_existing: exitst= %d, error= %d.", badgeExist, badgeError);   //#####
+       SysLog(NID_SHELL, "badge_is_existing: exitst= %d, error= %d.", badgeExist, badgeError); //#####
        if (badgeExist)
        {
                badgeError = badge_remove(pkgName);
-               SysLog(NID_APP, "badge_remove: error= %d.", badgeError);        //#####
+               SysLog(NID_SHELL, "badge_remove: error= %d.", badgeError);      //#####
        }
-       SysLog(NID_APP, "Badge removed.");
+       SysLog(NID_SHELL, "Badge removed.");
 }
 
 void
@@ -1081,15 +1081,15 @@ _NotificationManagerImpl::SetBadgeCount(const char* pkgName, int badgeCount) con
 {
        bool badgeExist;
        badge_error_e badgeError = badge_is_existing(pkgName, &badgeExist);
-       SysLog(NID_APP, "badge_is_existing: error= %d.", badgeError);   //#####
+       SysLog(NID_SHELL, "badge_is_existing: error= %d.", badgeError); //#####
        if (!badgeExist)
        {
                badgeError = badge_create(pkgName, pkgName);
-               SysLog(NID_APP, "badge_create: error= %d.", badgeError);        //#####
+               SysLog(NID_SHELL, "badge_create: error= %d.", badgeError);      //#####
        }
 
        badge_set_count(pkgName, badgeCount);
-       SysLog(NID_APP, "badge_set_count: badgeNumber= %d.", badgeCount);
+       SysLog(NID_SHELL, "badge_set_count: badgeNumber= %d.", badgeCount);
 }
 
 int
@@ -1100,12 +1100,12 @@ _NotificationManagerImpl::GetBadgeCount(const char* pkgName) const
        badge_error_e badgeError = badge_get_count(pkgName, &count);
        if (badgeError == BADGE_ERROR_NONE)
        {
-               SysLog(NID_APP, "badge_get_count: ret= %d.", count);
+               SysLog(NID_SHELL, "badge_get_count: ret= %d.", count);
                return count;
        }
        else
        {
-               SysLog(NID_APP, "badge_get_count: error= %d.", badgeError);
+               SysLog(NID_SHELL, "badge_get_count: error= %d.", badgeError);
                return -1;
        }
 }
@@ -1113,11 +1113,11 @@ _NotificationManagerImpl::GetBadgeCount(const char* pkgName) const
 result
 _NotificationManagerImpl::AddBadgeEventListener(IBadgeEventListener& listener)
 {
-       SysTryReturnResult(NID_APP, !__badgeEventListenerList.Contains(&listener), E_OBJ_ALREADY_EXIST, "The listener is already added.");
-       SysLog(NID_APP, "(%x)", &listener);
+       SysTryReturnResult(NID_SHELL, !__badgeEventListenerList.Contains(&listener), E_OBJ_ALREADY_EXIST, "The listener is already added.");
+       SysLog(NID_SHELL, "(%x)", &listener);
 
        result r = _BadgeManagerImpl::GetInstance()->AddPrimaryBadgeEventListener(*this);
-       SysTryReturnResult(NID_APP, !IsFailed(r), E_SYSTEM, "Failed to AddPrimaryBadgeEventListener with reason (%s)", GetErrorMessage(r) );
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to AddPrimaryBadgeEventListener with reason (%s)", GetErrorMessage(r) );
 
        return __badgeEventListenerList.Add(&listener);
 }
@@ -1125,9 +1125,9 @@ _NotificationManagerImpl::AddBadgeEventListener(IBadgeEventListener& listener)
 result
 _NotificationManagerImpl::RemoveBadgeEventListener(IBadgeEventListener& listener)
 {
-       SysLog(NID_APP, "(%x)", &listener);
+       SysLog(NID_SHELL, "(%x)", &listener);
        result r = __badgeEventListenerList.Remove(&listener);
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "Failed to RemoveBadgeEventListener with reason (%s)", GetErrorMessage(r) );
+       SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "Failed to RemoveBadgeEventListener with reason (%s)", GetErrorMessage(r) );
 
        return _BadgeManagerImpl::GetInstance()->RemovePrimaryBadgeEventListener(*this);
 }
@@ -1136,7 +1136,7 @@ void
 _NotificationManagerImpl::OnBadgeUpdated(const Tizen::App::AppId& appId, int badgeNumber)
 {
        std::unique_ptr<IEnumeratorT<Tizen::Shell::IBadgeEventListener* > > pEnum(__badgeEventListenerList.GetEnumeratorN());
-       SysTryReturnVoidResult(NID_APP, pEnum.get(), E_OUT_OF_MEMORY, "Failed to GetEnumeratorN()!");
+       SysTryReturnVoidResult(NID_SHELL, pEnum.get(), E_OUT_OF_MEMORY, "Failed to GetEnumeratorN()!");
 
        IBadgeEventListener* pListener;
        while (pEnum->MoveNext() == E_SUCCESS)
@@ -1145,7 +1145,7 @@ _NotificationManagerImpl::OnBadgeUpdated(const Tizen::App::AppId& appId, int bad
                pEnum->GetCurrent(pListener);
                if( !pListener)
                {
-                       SysLog(NID_APP, "pListener is null!");
+                       SysLog(NID_SHELL, "pListener is null!");
                        continue;
                }
                pListener->OnBadgeUpdated(appId, badgeNumber);
index 023cc53..bfc3193 100644 (file)
@@ -226,7 +226,7 @@ result
 _NotificationRequestImpl::SetBadgeNumber(int badgeNumber)
 {
        result r = E_SUCCESS;
-       SysTryReturnResult(NID_APP, badgeNumber >= 0 && badgeNumber <= MAX_NOTIFICATION_BADGE_NUMBER, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, badgeNumber >= 0 && badgeNumber <= MAX_NOTIFICATION_BADGE_NUMBER, E_INVALID_ARG,
                                           "BadgeNumber is less than 0 or greater than MAX_NOTIFICATION_BADGE_NUMBER.");
 
        __badgeOffset = 0;
@@ -244,7 +244,7 @@ result
 _NotificationRequestImpl::SetBadgeOffset(int badgeOffset)
 {
        result r = E_SUCCESS;
-       SysTryReturnResult(NID_APP, badgeOffset >= 0 && badgeOffset <= MAX_NOTIFICATION_BADGE_NUMBER, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, badgeOffset >= 0 && badgeOffset <= MAX_NOTIFICATION_BADGE_NUMBER, E_INVALID_ARG,
                                           "BadgeOffset is less than 0 or greater than MAX_NOTIFICATION_BADGE_NUMBER.");
 
        __badgeNumber = -1;
@@ -261,7 +261,7 @@ _NotificationRequestImpl::GetAlertText() const
 result
 _NotificationRequestImpl::SetAlertText(const String& alertText)
 {
-       SysTryReturnResult(NID_APP, alertText.GetLength() > 0 && alertText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, alertText.GetLength() > 0 && alertText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
                                           "AlertText is greater than MAX_NOTIFICATION_MESSAGE_LENGTH.");
 
        __alertText = alertText;
@@ -278,9 +278,9 @@ _NotificationRequestImpl::GetAppMessage() const
 result
 _NotificationRequestImpl::SetAppMessage(const String& appMessage)
 {
-       SysTryReturnResult(NID_APP, appMessage.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, appMessage.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
                                           "AppMessage is greater than MAX_NOTIFICATION_MESSAGE_LENGTH.");
-       SysTryReturnResult(NID_APP, __appBinding, E_INVALID_OPERATION,
+       SysTryReturnResult(NID_SHELL, __appBinding, E_INVALID_OPERATION,
                                           "The Notification instance is not bound to Application");
 
        __appMessage = appMessage;
@@ -296,7 +296,7 @@ _NotificationRequestImpl::GetTitleText() const
 result
 _NotificationRequestImpl::SetTitleText(const String& titleText)
 {
-       SysTryReturnResult(NID_APP, titleText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, titleText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
                                           "TitleText is greater than MAX_NOTIFICATION_MESSAGE_LENGTH.");
        __titleText = titleText;
        return E_SUCCESS;
@@ -312,7 +312,7 @@ result
 _NotificationRequestImpl::SetIconFilePath(const String& iconFilePath)
 {
        bool isExist = File::IsFileExist(iconFilePath);
-       SysTryReturnResult(NID_APP, isExist, E_INVALID_ARG, "The Specified File is Invalid");
+       SysTryReturnResult(NID_SHELL, isExist, E_INVALID_ARG, "The Specified File is Invalid");
 
        __iconFilePath = iconFilePath;
        return E_SUCCESS;
@@ -328,7 +328,7 @@ result
 _NotificationRequestImpl::SetSoundFilePath(const String& soundFilePath)
 {
        bool isExist = File::IsFileExist(soundFilePath);
-       SysTryReturnResult(NID_APP, isExist, E_INVALID_ARG, "The Specified File is Invalid");
+       SysTryReturnResult(NID_SHELL, isExist, E_INVALID_ARG, "The Specified File is Invalid");
 
        __soundFilePath = soundFilePath;
        return E_SUCCESS;
@@ -352,7 +352,7 @@ _NotificationRequestImpl::SetOngoingActivityType(OngoingActivityType activityTyp
                break;
 
        case ONGOING_ACTIVITY_TYPE_PROGRESS_PERCENTAGE:
-               SysTryReturnResult(NID_APP, __progressValue == -1 || (__progressValue >= 0 && __progressValue <= 100),
+               SysTryReturnResult(NID_SHELL, __progressValue == -1 || (__progressValue >= 0 && __progressValue <= 100),
                                                   E_INVALID_OPERATION, "Incompatible progress value %d.", __progressValue);
                break;
 
@@ -361,7 +361,7 @@ _NotificationRequestImpl::SetOngoingActivityType(OngoingActivityType activityTyp
 
        default:
                SetLastResult(E_INVALID_OPERATION);
-               SysLogException(NID_APP, E_INVALID_OPERATION, "Invalid activity type %d.", type);
+               SysLogException(NID_SHELL, E_INVALID_OPERATION, "Invalid activity type %d.", type);
                return E_INVALID_OPERATION;
        }
 
@@ -378,16 +378,16 @@ _NotificationRequestImpl::GetOngoingActivityProgress() const
 result
 _NotificationRequestImpl::SetOngoingActivityProgress(int progressValue)
 {
-       SysTryReturnResult(NID_APP, progressValue >= 0, E_INVALID_ARG, "The progress value is less than 0");
+       SysTryReturnResult(NID_SHELL, progressValue >= 0, E_INVALID_ARG, "The progress value is less than 0");
 
        // use int type instead of OngoingActivityType to evade weired gcc optimization
        int activitytype = static_cast<int>(GetOngoingActivityType());
-       SysTryReturnResult(NID_APP, activitytype >= ONGOING_ACTIVITY_TYPE_TEXT && activitytype <= ONGOING_ACTIVITY_TYPE_PROGRESS_PERCENTAGE,
+       SysTryReturnResult(NID_SHELL, activitytype >= ONGOING_ACTIVITY_TYPE_TEXT && activitytype <= ONGOING_ACTIVITY_TYPE_PROGRESS_PERCENTAGE,
                                           E_INVALID_OPERATION,"Invalid activity Type %d.", activitytype);
 
        if (activitytype == ONGOING_ACTIVITY_TYPE_PROGRESS_PERCENTAGE)
        {
-               SysTryReturnResult(NID_APP, progressValue <= 100, E_INVALID_ARG,"Invalid Progress value");
+               SysTryReturnResult(NID_SHELL, progressValue <= 100, E_INVALID_ARG,"Invalid Progress value");
        }
        __progressValue = progressValue;
        return E_SUCCESS;
@@ -409,7 +409,7 @@ _NotificationRequestImpl::GetNotificationStyle(void) const
 result
 _NotificationRequestImpl::SetNotificationStyle(NotificationStyle style)
 {
-       SysTryReturnResult(NID_APP, NOTIFICATION_STYLE_NORMAL <= style && style <= NOTIFICATION_STYLE_THUMBNAIL,
+       SysTryReturnResult(NID_SHELL, NOTIFICATION_STYLE_NORMAL <= style && style <= NOTIFICATION_STYLE_THUMBNAIL,
                                           E_INVALID_ARG,"Invalid NotificationStyle %d.", style);
 
        __notificationStyle = style;
@@ -420,7 +420,7 @@ Tizen::Base::Collection::IList*
 _NotificationRequestImpl::GetMessageTextListN(void) const
 {
        std::unique_ptr<ArrayList> pStringList(new (std::nothrow) ArrayList);
-       SysTryReturn(NID_APP, pStringList != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
+       SysTryReturn(NID_SHELL, pStringList != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
                                 GetErrorMessage(E_OUT_OF_MEMORY));
        pStringList->Construct();
 
@@ -429,7 +429,7 @@ _NotificationRequestImpl::GetMessageTextListN(void) const
                for (int i=0; i<__pTextList->GetCount(); i++)
                {
                        std::unique_ptr<String> pString(new (std::nothrow) String(*static_cast<String*>(__pTextList->GetAt(i))));
-                       SysTryReturn(NID_APP, pString != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
+                       SysTryReturn(NID_SHELL, pString != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
                                                 GetErrorMessage(E_OUT_OF_MEMORY));
                        pStringList->Add(*pString.release());
                }
@@ -450,7 +450,7 @@ _NotificationRequestImpl::SetMessageTextList(const Tizen::Base::Collection::ILis
                        String* pText = static_cast<String*>(__pTextList->GetAt(i));
                        if (pText)
                        {
-                               SysTryReturnResult(NID_APP, pText->GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
+                               SysTryReturnResult(NID_SHELL, pText->GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
                                                                   "Invalid argument is used. MessageText is greater than MAX_NOTIFICATION_MESSAGE_LENGTH.");
                        }
                }
@@ -464,7 +464,7 @@ Tizen::Base::Collection::IList*
 _NotificationRequestImpl::GetMessageThumbnailFilePathListN(void) const
 {
        std::unique_ptr<ArrayList> pStringList(new (std::nothrow) ArrayList);
-       SysTryReturn(NID_APP, pStringList != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
+       SysTryReturn(NID_SHELL, pStringList != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
                                 GetErrorMessage(E_OUT_OF_MEMORY));
        pStringList->Construct();
 
@@ -473,7 +473,7 @@ _NotificationRequestImpl::GetMessageThumbnailFilePathListN(void) const
                for (int i=0; i<__pThumbnailPathList->GetCount(); i++)
                {
                        std::unique_ptr<String> pString(new String(*static_cast<String*>(__pThumbnailPathList->GetAt(i))));
-                       SysTryReturn(NID_APP, pString != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
+                       SysTryReturn(NID_SHELL, pString != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.",
                                                 GetErrorMessage(E_OUT_OF_MEMORY));
                        pStringList->Add(*pString.release());
                }
@@ -495,7 +495,7 @@ _NotificationRequestImpl::SetMessageThumbnailFilePathList(const Tizen::Base::Col
                        if (pFilePath)
                        {
                                bool isExist = File::IsFileExist(*pFilePath);
-                               SysTryReturnResult(NID_APP, isExist, E_INVALID_ARG,"Invalid argument is used. The Specified File path is Invalid.");
+                               SysTryReturnResult(NID_SHELL, isExist, E_INVALID_ARG,"Invalid argument is used. The Specified File path is Invalid.");
                        }
                }
        }
@@ -514,7 +514,7 @@ _NotificationRequestImpl::GetNotificationCountText(void) const
 result
 _NotificationRequestImpl::SetNotificationCountText(const Tizen::Base::String& notificationCountText)
 {
-       SysTryReturnResult(NID_APP, notificationCountText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, notificationCountText.GetLength() <= MAX_NOTIFICATION_MESSAGE_LENGTH, E_INVALID_ARG,
                                           "Invalid argument is used. CountText is greater than MAX_NOTIFICATION_MESSAGE_LENGTH.");
        __notificationCountText = notificationCountText;
        return E_SUCCESS;
@@ -532,7 +532,7 @@ result
 _NotificationRequestImpl::SetBackgroundImageFilePath(const Tizen::Base::String& imagePath)
 {
        bool fileExist = File::IsFileExist(imagePath);
-       SysTryReturnResult(NID_APP, fileExist, E_INVALID_ARG,
+       SysTryReturnResult(NID_SHELL, fileExist, E_INVALID_ARG,
                                           "Invalid argument is used. The Specified File is Invalid. %ls", imagePath.GetPointer());
        __backgroundImagePath = imagePath;
        return E_SUCCESS;
index a3a48d6..ef6344a 100644 (file)
@@ -54,26 +54,26 @@ _ShortcutManagerImpl::GetInstance()
        if( __pShortcutManagerImpl == null)
        {
                __pShortcutManagerImpl = new (std::nothrow)_ShortcutManagerImpl;
-               SysTryReturn(NID_APP, __pShortcutManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
+               SysTryReturn(NID_SHELL, __pShortcutManagerImpl, null, E_OUT_OF_MEMORY, "Allocating new _AppWidgetManagerProxy failed.");
 
                result r = __pShortcutManagerImpl->Construct();
-               SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturn(NID_SHELL, !IsFailed(r), null, r, "[%s] Propagating.", GetErrorMessage(r));
        }
        return __pShortcutManagerImpl;
 }
 
 int ShortcutRequestEventHandlerCB(const char* appId, const char* text, int type, const char* content_info, const char* icon, int pid, double period, bool allowDuplication, void *data)
 {
-       SysTryReturn(NID_APP, appId, 0, E_SYSTEM, "[E_SYSTEM] appId is null!");
-       SysLog(NID_APP, "Tizen::Shell::ShortcutManager - Shortcut request received.");
+       SysTryReturn(NID_SHELL, appId, 0, E_SYSTEM, "[E_SYSTEM] appId is null!");
+       SysLog(NID_SHELL, "Tizen::Shell::ShortcutManager - Shortcut request received.");
 
        _ShortcutManagerImpl* pShortcutManager = static_cast<_ShortcutManagerImpl*>(data);
-       SysTryReturn(NID_APP, pShortcutManager, 0, E_SYSTEM, "[E_SYSTEM] pShortcutManager is null!");
+       SysTryReturn(NID_SHELL, pShortcutManager, 0, E_SYSTEM, "[E_SYSTEM] pShortcutManager is null!");
 
        const ArrayListT<IShortcutRequestListener*>* pListenerList = pShortcutManager->GetShortcutRequestListenerList();
        IShortcutRequestListener* pListener;
 
-       SysLog(NID_APP, "There is(are) %d request handler(s).", pListenerList->GetCount());
+       SysLog(NID_SHELL, "There is(are) %d request handler(s).", pListenerList->GetCount());
        for(int i = 0; i < pListenerList->GetCount(); i ++)
        {
                pListener = null;
@@ -84,14 +84,14 @@ int ShortcutRequestEventHandlerCB(const char* appId, const char* text, int type,
                }
        }
 
-       SysLog(NID_APP, "Successed.");
+       SysLog(NID_SHELL, "Successed.");
        return 0;
 }
 
 // c - style callback for shortcut_set_request_cb
 int ShortcutRequestEventReceiverCB(const char* appId, const char* text, int type, const char* content_info, const char* icon, int pid, double period, int allowDuplication, void *data)
 {
-       SysTryReturn(NID_APP, appId, 0, E_SYSTEM, "[E_SYSTEM] providerId is null!");
+       SysTryReturn(NID_SHELL, appId, 0, E_SYSTEM, "[E_SYSTEM] providerId is null!");
 
        if( type == SHORTCUT_PACKAGE
                || type == SHORTCUT_DATA
@@ -103,12 +103,12 @@ int ShortcutRequestEventReceiverCB(const char* appId, const char* text, int type
        {
                if( __pAppWidgetRequestHandlerCallback != null)
                {
-                       SysLog(NID_APP, "Invoking appwidget request handler.");
+                       SysLog(NID_SHELL, "Invoking appwidget request handler.");
                        __pAppWidgetRequestHandlerCallback(appId, text, type, content_info, icon, pid, period, allowDuplication, data);
                }
        }
 
-       SysLog(NID_APP, "Successed.");
+       SysLog(NID_SHELL, "Successed.");
        return 0;
 }
 
@@ -116,10 +116,10 @@ result
 _ShortcutManagerImpl::Construct()
 {
        int ret = shortcut_set_request_cb(ShortcutRequestEventReceiverCB, this );
-       SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "failed to shortcut_set_request_cb (%d)", ret);
+       SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "failed to shortcut_set_request_cb (%d)", ret);
 
        __shortcutRequestListenerList.Construct();
-       SysLog(NID_APP, "Successed.");
+       SysLog(NID_SHELL, "Successed.");
 
        return E_SUCCESS;
 }
@@ -128,15 +128,15 @@ _ShortcutManagerImpl::Construct()
 result
 _ShortcutManagerImpl::AddShortcutRequestListener(IShortcutRequestListener& listener)
 {
-       SysTryReturnResult(NID_APP, !__shortcutRequestListenerList.Contains(&listener), E_OBJ_ALREADY_EXIST, "The listener is already added.");
-       SysLog(NID_APP, "(%x)", &listener);
+       SysTryReturnResult(NID_SHELL, !__shortcutRequestListenerList.Contains(&listener), E_OBJ_ALREADY_EXIST, "The listener is already added.");
+       SysLog(NID_SHELL, "(%x)", &listener);
        return __shortcutRequestListenerList.Add(&listener);
 }
 
 result
 _ShortcutManagerImpl::RemoveShortcutRequestListener(IShortcutRequestListener& listener)
 {
-       SysLog(NID_APP, "(%x)", &listener);
+       SysLog(NID_SHELL, "(%x)", &listener);
        return  __shortcutRequestListenerList.Remove(&listener);
 }