+++ /dev/null
-Flora License
-
-Version 1.0, May, 2012
-
-http://floralicense.org/license/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction,
-and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by
-the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and
-all other entities that control, are controlled by, or are
-under common control with that entity. For the purposes of
-this definition, "control" means (i) the power, direct or indirect,
-to cause the direction or management of such entity,
-whether by contract or otherwise, or (ii) ownership of fifty percent (50%)
-or more of the outstanding shares, or (iii) beneficial ownership of
-such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity
-exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications,
-including but not limited to software source code, documentation source,
-and configuration files.
-
-"Object" form shall mean any form resulting from mechanical
-transformation or translation of a Source form, including but
-not limited to compiled object code, generated documentation,
-and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form,
-made available under the License, as indicated by a copyright notice
-that is included in or attached to the work (an example is provided
-in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form,
-that is based on (or derived from) the Work and for which the editorial
-revisions, annotations, elaborations, or other modifications represent,
-as a whole, an original work of authorship. For the purposes of this License,
-Derivative Works shall not include works that remain separable from,
-or merely link (or bind by name) to the interfaces of, the Work and
-Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original
-version of the Work and any modifications or additions to that Work or
-Derivative Works thereof, that is intentionally submitted to Licensor
-for inclusion in the Work by the copyright owner or by an individual or
-Legal Entity authorized to submit on behalf of the copyright owner.
-For the purposes of this definition, "submitted" means any form of
-electronic, verbal, or written communication sent to the Licensor or
-its representatives, including but not limited to communication on
-electronic mailing lists, source code control systems, and issue
-tracking systems that are managed by, or on behalf of, the Licensor
-for the purpose of discussing and improving the Work, but excluding
-communication that is conspicuously marked or otherwise designated
-in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity
-on behalf of whom a Contribution has been received by Licensor and
-subsequently incorporated within the Work.
-
-"Tizen Certified Platform" shall mean a software platform that complies
-with the standards set forth in the Compatibility Definition Document
-and passes the Compatibility Test Suite as defined from time to time
-by the Tizen Technical Steering Group and certified by the Tizen
-Association or its designated agent.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
-this License, each Contributor hereby grants to You a perpetual,
-worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-copyright license to reproduce, prepare Derivative Works of,
-publicly display, publicly perform, sublicense, and distribute the
-Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
-this License, each Contributor hereby grants to You a perpetual,
-worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-(except as stated in this section) patent license to make, have made,
-use, offer to sell, sell, import, and otherwise transfer the Work
-solely as incorporated into a Tizen Certified Platform, where such
-license applies only to those patent claims licensable by such
-Contributor that are necessarily infringed by their Contribution(s)
-alone or by combination of their Contribution(s) with the Work solely
-as incorporated into a Tizen Certified Platform to which such
-Contribution(s) was submitted. If You institute patent litigation
-against any entity (including a cross-claim or counterclaim
-in a lawsuit) alleging that the Work or a Contribution incorporated
-within the Work constitutes direct or contributory patent infringement,
-then any patent licenses granted to You under this License for that
-Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
-Work or Derivative Works thereof pursuant to the copyright license
-above, in any medium, with or without modifications, and in Source or
-Object form, provided that You meet the following conditions:
-
- 1. You must give any other recipients of the Work or Derivative Works
- a copy of this License; and
- 2. You must cause any modified files to carry prominent notices stating
- that You changed the files; and
- 3. You must retain, in the Source form of any Derivative Works that
- You distribute, all copyright, patent, trademark, and attribution
- notices from the Source form of the Work, excluding those notices
- that do not pertain to any part of the Derivative Works; and
- 4. If the Work includes a "NOTICE" text file as part of its distribution,
- then any Derivative Works that You distribute must include a readable
- copy of the attribution notices contained within such NOTICE file,
- excluding those notices that do not pertain to any part of
- the Derivative Works, in at least one of the following places:
- within a NOTICE text file distributed as part of the Derivative Works;
- within the Source form or documentation, if provided along with the
- Derivative Works; or, within a display generated by the Derivative Works,
- if and wherever such third-party notices normally appear.
- The contents of the NOTICE file are for informational purposes only
- and do not modify the License.
-
-You may add Your own attribution notices within Derivative Works
-that You distribute, alongside or as an addendum to the NOTICE text
-from the Work, provided that such additional attribution notices
-cannot be construed as modifying the License. You may add Your own
-copyright statement to Your modifications and may provide additional or
-different license terms and conditions for use, reproduction, or
-distribution of Your modifications, or for any such Derivative Works
-as a whole, provided Your use, reproduction, and distribution of
-the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
-any Contribution intentionally submitted for inclusion in the Work
-by You to the Licensor shall be under the terms and conditions of
-this License, without any additional terms or conditions.
-Notwithstanding the above, nothing herein shall supersede or modify
-the terms of any separate license agreement you may have executed
-with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
-names, trademarks, service marks, or product names of the Licensor,
-except as required for reasonable and customary use in describing the
-origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
-agreed to in writing, Licensor provides the Work (and each
-Contributor provides its Contributions) on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-implied, including, without limitation, any warranties or conditions
-of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-PARTICULAR PURPOSE. You are solely responsible for determining the
-appropriateness of using or redistributing the Work and assume any
-risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
-whether in tort (including negligence), contract, or otherwise,
-unless required by applicable law (such as deliberate and grossly
-negligent acts) or agreed to in writing, shall any Contributor be
-liable to You for damages, including any direct, indirect, special,
-incidental, or consequential damages of any character arising as a
-result of this License or out of the use or inability to use the
-Work (including but not limited to damages for loss of goodwill,
-work stoppage, computer failure or malfunction, or any and all
-other commercial damages or losses), even if such Contributor
-has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
-the Work or Derivative Works thereof, You may choose to offer,
-and charge a fee for, acceptance of support, warranty, indemnity,
-or other liability obligations and/or rights consistent with this
-License. However, in accepting such obligations, You may act only
-on Your own behalf and on Your sole responsibility, not on behalf
-of any other Contributor, and only if You agree to indemnify,
-defend, and hold each Contributor harmless for any liability
-incurred by, or claims asserted against, such Contributor by reason
-of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Flora License to your work
-
-To apply the Flora License to your work, attach the following
-boilerplate notice, with the fields enclosed by brackets "[]"
-replaced with your own identifying information. (Don't include
-the brackets!) The text should be enclosed in the appropriate
-comment syntax for the file format. We also recommend that a
-file or class name and description of purpose be included on the
-same "printed page" as the copyright notice for easier
-identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Flora License, Version 1.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://floralicense.org/license/
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--- /dev/null
+Flora License
+
+Version 1.0, May, 2012
+
+http://floralicense.org/license/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and
+all other entities that control, are controlled by, or are
+under common control with that entity. For the purposes of
+this definition, "control" means (i) the power, direct or indirect,
+to cause the direction or management of such entity,
+whether by contract or otherwise, or (ii) ownership of fifty percent (50%)
+or more of the outstanding shares, or (iii) beneficial ownership of
+such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice
+that is included in or attached to the work (an example is provided
+in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent,
+as a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from,
+or merely link (or bind by name) to the interfaces of, the Work and
+Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor
+for inclusion in the Work by the copyright owner or by an individual or
+Legal Entity authorized to submit on behalf of the copyright owner.
+For the purposes of this definition, "submitted" means any form of
+electronic, verbal, or written communication sent to the Licensor or
+its representatives, including but not limited to communication on
+electronic mailing lists, source code control systems, and issue
+tracking systems that are managed by, or on behalf of, the Licensor
+for the purpose of discussing and improving the Work, but excluding
+communication that is conspicuously marked or otherwise designated
+in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies
+with the standards set forth in the Tizen Compliance Specification
+and passes the Tizen Compliance Tests as defined from time to time
+by the Tizen Technical Steering Group and certified by the Tizen
+Association or its designated agent.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work
+solely as incorporated into a Tizen Certified Platform, where such
+license applies only to those patent claims licensable by such
+Contributor that are necessarily infringed by their Contribution(s)
+alone or by combination of their Contribution(s) with the Work solely
+as incorporated into a Tizen Certified Platform to which such
+Contribution(s) was submitted. If You institute patent litigation
+against any entity (including a cross-claim or counterclaim
+in a lawsuit) alleging that the Work or a Contribution incorporated
+within the Work constitutes direct or contributory patent infringement,
+then any patent licenses granted to You under this License for that
+Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+Work or Derivative Works thereof pursuant to the copyright license
+above, in any medium, with or without modifications, and in Source or
+Object form, provided that You meet the following conditions:
+
+ 1. You must give any other recipients of the Work or Derivative Works
+ a copy of this License; and
+ 2. You must cause any modified files to carry prominent notices stating
+ that You changed the files; and
+ 3. You must retain, in the Source form of any Derivative Works that
+ You distribute, all copyright, patent, trademark, and attribution
+ notices from the Source form of the Work, excluding those notices
+ that do not pertain to any part of the Derivative Works; and
+ 4. If the Work includes a "NOTICE" text file as part of its distribution,
+ then any Derivative Works that You distribute must include a readable
+ copy of the attribution notices contained within such NOTICE file,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works, in at least one of the following places:
+ within a NOTICE text file distributed as part of the Derivative Works;
+ within the Source form or documentation, if provided along with the
+ Derivative Works; or, within a display generated by the Derivative Works,
+ if and wherever such third-party notices normally appear.
+ The contents of the NOTICE file are for informational purposes only
+ and do not modify the License.
+
+You may add Your own attribution notices within Derivative Works
+that You distribute, alongside or as an addendum to the NOTICE text
+from the Work, provided that such additional attribution notices
+cannot be construed as modifying the License. You may add Your own
+copyright statement to Your modifications and may provide additional or
+different license terms and conditions for use, reproduction, or
+distribution of Your modifications, or for any such Derivative Works
+as a whole, provided Your use, reproduction, and distribution of
+the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Flora License, Version 1.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://floralicense.org/license/
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
private:
_AppWidgetPopupContext* __pAppWidgetPopup;
// Tizen::Base::Runtime::Timer __lifeDurationTimer;
- Tizen::Base::Runtime::Timer __UpdateTimer;
+ Tizen::Base::Runtime::Timer __updateTimer;
int __updateMillis;
Tizen::Base::Collection::ArrayListT<PendingTouchEvent*>* __pPendingTouchEventList;
};
// __lifeDurationTimer.Start(DEFAULT_LIFE_DURATION_MSEC );
__updateMillis = (__updateMillis > UPDATE_PERIOD_MSEC_MIN) ? __updateMillis : UPDATE_PERIOD_MSEC_MIN;
- SysLog(NID_APP, "period(%d)", __updateMillis);
+ SysLog(NID_SHELL, "period(%d)", __updateMillis);
if( __updateMillis > 0)
{
- __UpdateTimer.Construct(*this);//, false);
- __UpdateTimer.StartAsRepeatable(__updateMillis);
+ __updateTimer.Construct(*this);//, false);
+ __updateTimer.StartAsRepeatable(__updateMillis);
}
__pPendingTouchEventList = new ArrayListT<PendingTouchEvent*>();
_AppWidgetContext::~_AppWidgetContext()
{
- SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
+ SysLog(NID_SHELL, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
// __lifeDurationTimer.Cancel();
- __UpdateTimer.Cancel();
+ __updateTimer.Cancel();
if (__pAppWidgetPopup)
{
- SysLog(NID_APP, "Destroying dangling AppWidgetPopup instance..");
+ SysLog(NID_SHELL, "Destroying dangling AppWidgetPopup instance..");
__pAppWidgetPopup->OnPopupDestoyed();
delete __pAppWidgetPopup;
}
void
_AppWidgetContext::OnUpdate(const String& argument)
{
- SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
+ SysLog(NID_SHELL, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
SendUpdateRequest(__width, __height, argument);
}
void
_AppWidgetContext::OnResize(int width, int height)
{
- SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
+ SysLog(NID_SHELL, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
__width = width;
__height = height;
void
_AppWidgetContext::OnForeground()
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
__isForeground = true;
- __UpdateTimer.Cancel();
- __UpdateTimer.StartAsRepeatable(__updateMillis);
+ __updateTimer.Cancel();
+ __updateTimer.StartAsRepeatable(__updateMillis);
}
void
_AppWidgetContext::OnBackground()
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
__isForeground = false;
- __UpdateTimer.Cancel();
+ __updateTimer.Cancel();
}
void
void
_AppWidgetContext::OnPopupDestoyed(void)
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
if (__pAppWidgetPopup)
{
__pAppWidgetPopup->OnPopupDestoyed();
if( HasValidClientId() && IsRunning() )
{
SysAssert(IsSharedMemCreated() == true);
- SysLog(NID_APP, "send IPC message");
+ SysLog(NID_SHELL, "send IPC message");
AppWidgetManagerService::GetInstance()->SendTouchEvent(__ipcClientId, __instanceId, eventType, timeStamp, x, y);
}
else
{
- SysLog(NID_APP, "request to start AppControl");
+ SysLog(NID_SHELL, "request to start AppControl");
__pPendingTouchEventList->Add(new PendingTouchEvent(eventType, timeStamp, x, y));
//
{
/*if( GetAppWidgetPopup() != null)
{
- SysLog(NID_APP, "AppWidgetPopup is appeared, so appWidget doesn't need to update");
+ SysLog(NID_SHELL, "AppWidgetPopup is appeared, so appWidget doesn't need to update");
return E_SUCCESS;
}*/
std::unique_ptr<char[]> packageName(_StringConverter::CopyToCharArrayN(__providerId));
std::unique_ptr<char[]> content_info(_StringConverter::CopyToCharArrayN(__userInfo));
int ret = provider_send_updated(packageName.get(), id.get(), width, height, __priority, content_info.get(), null);
- SysTryReturnResult(NID_APP, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_send_updated");
+ SysTryReturnResult(NID_SHELL, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_send_updated");
SendPendingTouchEvent();
- SysLog(NID_APP, "Done");
+ SysLog(NID_SHELL, "Done");
return E_SUCCESS;
}
//{
// __lifeDurationTimer.Cancel();
// __lifeDurationTimer.Start(DEFAULT_LIFE_DURATION_MSEC);
-// SysLog(NID_APP, "lifeDuration timer restarted (%d)msec", DEFAULT_LIFE_DURATION_MSEC);
+// SysLog(NID_SHELL, "lifeDuration timer restarted (%d)msec", DEFAULT_LIFE_DURATION_MSEC);
//}
void
{
// if( &timer == &__lifeDurationTimer)
// {
-// SysLog(NID_APP, "lifeDuration timer is expired, so terminating appWidget app(%ls)..", __providerId.GetPointer() );
+// SysLog(NID_SHELL, "lifeDuration timer is expired, so terminating appWidget app(%ls)..", __providerId.GetPointer() );
//
//// ReleaseSharedMem();
// AppManager::GetInstance()->TerminateApplication(__appId);
//
// }
// else
- if( &timer == &__UpdateTimer)
+ if( &timer == &__updateTimer)
{
- SysLog(NID_APP, "update timer is expired for appWidget app(%ls)..", __providerId.GetPointer() );
+ SysLog(NID_SHELL, "update timer is expired for appWidget app(%ls)..", __providerId.GetPointer() );
OnUpdate(L"");
}
}
{
_AppWidgetManagerImpl::ExtractAppIdAndProviderName(providerId, __appId, __providerName);
- SysLog(NID_APP, "appId(%ls), providerId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __appId.GetPointer(), __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
+ SysLog(NID_SHELL, "appId(%ls), providerId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __appId.GetPointer(), __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
}
_AppWidgetContextBase::~_AppWidgetContextBase()
{
- SysLog(NID_APP, "providerId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
+ SysLog(NID_SHELL, "providerId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
ReleaseSharedMem();
}
bool
_AppWidgetContextBase::HasValidClientId(void) const
{
- SysLog(NID_APP, "%d", __ipcClientId);
+ SysLog(NID_SHELL, "%d", __ipcClientId);
return (__ipcClientId > -1);
}
int
_AppWidgetContextBase::GetSharedMemId(int w, int h)
{
- SysLog(NID_APP, "Enter");
+ SysLog(NID_SHELL, "Enter");
bool isResized = (__buffer_info != null) && (__buffer_info->width != w || __buffer_info->height != h);
if ( isResized )
std::unique_ptr<char[]> id(_StringConverter::CopyToCharArrayN(__instanceId));
__buffer_info = provider_buffer_acquire(__type, packageName.get(), id.get(), w, h, sizeof(int), AppWidgetHandleBufferEventCallback, this);
- SysTryReturnResult(NID_APP, __buffer_info , -1, "[E_SYSTEM] failed to provider_buffer_acquire");
- SysLog(NID_APP, "provider_buffer_acquire successed");
+ SysTryReturnResult(NID_SHELL, __buffer_info , -1, "[E_SYSTEM] failed to provider_buffer_acquire");
+ SysLog(NID_SHELL, "provider_buffer_acquire successed");
__buffer = provider_buffer_ref(__buffer_info);
- SysTryReturnResult(NID_APP, __buffer , -1, "[E_SYSTEM] failed to provider_buffer_ref");
- SysLog(NID_APP, "provider_buffer_ref successed");
+ SysTryReturnResult(NID_SHELL, __buffer , -1, "[E_SYSTEM] failed to provider_buffer_ref");
+ SysLog(NID_SHELL, "provider_buffer_ref successed");
}
int bufferId = __buffer_info->fb->handle;
__providerState = RUNNING;
- SysLog(NID_APP, "(%d) Exit", bufferId);
+ SysLog(NID_SHELL, "(%d) Exit", bufferId);
return bufferId;
}
result
_AppWidgetContextBase::ReleaseSharedMem()
{
- SysLog(NID_APP, "Enter");
+ SysLog(NID_SHELL, "Enter");
int ret;
{
ret = provider_buffer_unref(__buffer);
__buffer = null;
- SysTryReturnResult(NID_APP, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_buffer_unref");
- SysLog(NID_APP, "provider_buffer_unref successed");
+ SysTryReturnResult(NID_SHELL, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_buffer_unref");
+ SysLog(NID_SHELL, "provider_buffer_unref successed");
}
if( __buffer_info)
{
ret = provider_buffer_release(__buffer_info);
__buffer_info = null;
- SysTryReturnResult(NID_APP, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_buffer_release");
- SysLog(NID_APP, "provider_buffer_release successed");
+ SysTryReturnResult(NID_SHELL, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_buffer_release");
+ SysLog(NID_SHELL, "provider_buffer_release successed");
}
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
return E_SUCCESS;
}
{
if( __isForeground == false)
{
- SysLog(NID_APP, "appWidget isn't foreground, so, message skip");
+ SysLog(NID_SHELL, "appWidget isn't foreground, so, message skip");
return E_SUCCESS;
}
result
_AppWidgetRequestHelper::SendRequestToApp(const AppId& appId, const String& operation, HashMap* pArgs)
{
- SysLog(NID_APP, "appId(%ls), operation(%ls), arg count(%d)", appId.GetPointer(), operation.GetPointer(), pArgs->GetCount() );
+ SysLog(NID_SHELL, "appId(%ls), operation(%ls), arg count(%d)", appId.GetPointer(), operation.GetPointer(), pArgs->GetCount() );
_AppMessageImpl msg;
msg.AddData(OSP_K_APPCONTROL_INTERNAL_OPERATION, L"livebox");
static int AppWidgetHandleBufferEventCallback( struct livebox_buffer *info, enum buffer_event event,
double timestamp, double x, double y, void* data)
{
- SysLog(NID_APP, "timestamp(%f), x(%f), y(%f)", timestamp, x, y);
+ SysLog(NID_SHELL, "timestamp(%f), x(%f), y(%f)", timestamp, x, y);
Tizen::Shell::App::_AppWidgetContextBase *pAppWidgetBase = static_cast<Tizen::Shell::App::_AppWidgetContextBase*>(data);
- SysTryReturn(NID_APP, pAppWidgetBase != null, 0, E_SYSTEM, "[E_SYSTEM] retrieved pAppWidgetBase is null");
+ SysTryReturn(NID_SHELL, pAppWidgetBase != null, 0, E_SYSTEM, "[E_SYSTEM] retrieved pAppWidgetBase is null");
// const char *pkgname = provider_buffer_pkgname(info);
// const char *id = provider_buffer_id(info);
if( event == BUFFER_EVENT_ENTER)
{
- SysLog(NID_APP, "BUFFER_EVENT_ENTER");
+ SysLog(NID_SHELL, "BUFFER_EVENT_ENTER");
}
else if( event == BUFFER_EVENT_LEAVE)
{
- SysLog(NID_APP, "BUFFER_EVENT_LEAVE");
+ SysLog(NID_SHELL, "BUFFER_EVENT_LEAVE");
}
else if( event == BUFFER_EVENT_DOWN)
{
- SysLog(NID_APP, "BUFFER_EVENT_DOWN");
+ SysLog(NID_SHELL, "BUFFER_EVENT_DOWN");
}
else if( event == BUFFER_EVENT_MOVE)
{
- SysLog(NID_APP, "BUFFER_EVENT_MOVE");
+ SysLog(NID_SHELL, "BUFFER_EVENT_MOVE");
}
else if( event == BUFFER_EVENT_UP)
{
- SysLog(NID_APP, "BUFFER_EVENT_UP");
+ SysLog(NID_SHELL, "BUFFER_EVENT_UP");
}
pAppWidgetBase->SendTouchEvent(event, timestamp, x, y);
if( pSelf == null)
{
pSelf = new AppWidgetManagerService();
- SysTryReturn(NID_APP, pSelf != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ SysTryReturn(NID_SHELL, pSelf != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
result r = pSelf->Construct();
SysAssertf(!IsFailed(r), "Failed to construct AppWidgetManagerService");
- SysLog(NID_APP, "AppWidgetManagerService is created.");
+ SysLog(NID_SHELL, "AppWidgetManagerService is created.");
}
return pSelf;
}
_AppWidgetManagerStub::StartIpcServer();
result r = __handlerThread.Construct(THREAD_TYPE_EVENT_DRIVEN);
- SysTryReturn(NID_APP, IsFailed(r) == false, false, r, "[%s] Event thread creation failure.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, IsFailed(r) == false, false, r, "[%s] Event thread creation failure.", GetErrorMessage(r));
r = __handlerThread.Start();
- SysTryReturn(NID_APP, IsFailed(r) == false, false, r, "[%s] Event thread Start failure.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, IsFailed(r) == false, false, r, "[%s] Event thread Start failure.", GetErrorMessage(r));
return InitializeMasterDaemonEventReceiver("osp-appwidget-service");
}
ret = provider_send_hello();
if (ret == 0)
{
- SysLog(NID_APP, "success to be connected with master daemon");
+ SysLog(NID_SHELL, "success to be connected with master daemon");
AppWidgetManagerService::GetInstance()->StartPingTimer();
}
else
{
- SysLog(NID_APP, "failed to provider_send_hello()");
+ SysLog(NID_SHELL, "failed to provider_send_hello()");
}
return ret;
}
int
AppWidgetManagerService::AppWidgetDisconnected(struct event_arg *arg, void* data)
{
- SysLog(NID_APP, "success to be disconnected with master daemon");
+ SysLog(NID_SHELL, "success to be disconnected with master daemon");
// aul_terminate_pid(getpid());
return 0;
}
void
AppWidgetManagerService::OnTimerExpired(Timer& timer)
{
- SysLog(NID_APP, "provider_send_ping");
+ SysLog(NID_SHELL, "provider_send_ping");
provider_send_ping();
}
{
_AppWidgetContext* pAppWidgetContext = null;
__appWidgetContextList.GetAt(i, pAppWidgetContext);
-// SysLog(NID_APP, "%ls", pAppWidgetContext->__instanceId.GetPointer());
+// SysLog(NID_SHELL, "%ls", pAppWidgetContext->__instanceId.GetPointer());
if ( pAppWidgetContext->__instanceId == instanceId )
{
{
_AppWidgetContext* pAppWidgetContext = null;
__appWidgetContextList.GetAt(i, pAppWidgetContext);
- SysLog(NID_APP, "%ls", pAppWidgetContext->__instanceId.GetPointer());
- SysLog(NID_APP, "%ls, %ls", pAppWidgetContext->__providerId.GetPointer(), appId.GetPointer());
+ SysLog(NID_SHELL, "%ls", pAppWidgetContext->__instanceId.GetPointer());
+ SysLog(NID_SHELL, "%ls, %ls", pAppWidgetContext->__providerId.GetPointer(), appId.GetPointer());
if ( pAppWidgetContext->__appId == appId )
{
- SysLog(NID_APP,"");
+ SysLog(NID_SHELL,"");
pAppWidgetContext->SetIpcClientId(clientId);
- SysLog(NID_APP, "client is registered.(%d)", clientId);
+ SysLog(NID_SHELL, "client is registered.(%d)", clientId);
if( clientId == -1)//disconnected
{
AppWidgetManagerService::OnIpcClientConnected(const _IpcServer& server, int clientId)
{
String appId = server.GetClientApplicationId();
- SysLog(NID_APP, "(%ls)\n", appId.GetPointer());
+ SysLog(NID_SHELL, "(%ls)\n", appId.GetPointer());
this->SetIpcClientIds(appId, clientId);
}
AppWidgetManagerService::OnIpcClientDisconnected(const _IpcServer& server, int clientId)
{
String appId = server.GetClientApplicationId();
- SysLog(NID_APP, "(%ls)\n", appId.GetPointer());
+ SysLog(NID_SHELL, "(%ls)\n", appId.GetPointer());
this->SetIpcClientIds(appId, -1);
}
result
AppWidgetManagerService::AddAppWidget(_AppWidgetContext* pAppWidgetContext)
{
- SysLog(NID_APP, "%ls, %ls, count(%d)", pAppWidgetContext->__providerId.GetPointer(), pAppWidgetContext->__instanceId.GetPointer(), __appWidgetContextList.GetCount());
+ SysLog(NID_SHELL, "%ls, %ls, count(%d)", pAppWidgetContext->__providerId.GetPointer(), pAppWidgetContext->__instanceId.GetPointer(), __appWidgetContextList.GetCount());
return __appWidgetContextList.Add(pAppWidgetContext);
}
result
AppWidgetManagerService::RemoveAppWidget(const char* pPackageName, const char* pId, bool free)
{
- SysLog(NID_APP, "%s, %s, count(%d)", pPackageName, pId, __appWidgetContextList.GetCount());
+ SysLog(NID_SHELL, "%s, %s, count(%d)", pPackageName, pId, __appWidgetContextList.GetCount());
- SysTryReturn(NID_APP, ( pPackageName != null && pId != null), null, E_INVALID_ARG, "[E_INVALID_ARG]");
- SysLog(NID_APP, "%s, %s", pPackageName, pId);
+ SysTryReturn(NID_SHELL, ( pPackageName != null && pId != null), null, E_INVALID_ARG, "[E_INVALID_ARG]");
+ SysLog(NID_SHELL, "%s, %s", pPackageName, pId);
_AppWidgetContext* pAppWidgetContext = Find(pPackageName, pId);
- SysTryReturn(NID_APP, pAppWidgetContext, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND]");
+ SysTryReturn(NID_SHELL, pAppWidgetContext, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND]");
result r = __appWidgetContextList.Remove(pAppWidgetContext);
if( __appWidgetContextList.GetCount() == 0 )
{
- SysLog(NID_APP, "No running native appWidget app remains, terminating osp appWidget service...");
+ SysLog(NID_SHELL, "No running native appWidget app remains, terminating osp appWidget service...");
Tizen::App::App::GetInstance()->Terminate();
}
int
AppWidgetManagerService::OnAppWidgetCreate(struct event_arg *arg, int *width, int *height, double *priority, void* data)
{
- SysTryReturn(NID_APP, arg != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
- SysTryReturn(NID_APP, arg->pkgname != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
- SysTryReturn(NID_APP, arg->id != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
- SysTryReturn(NID_APP, arg->type == event_arg::EVENT_NEW, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysTryReturn(NID_SHELL, arg != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
+ SysTryReturn(NID_SHELL, arg->pkgname != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
+ SysTryReturn(NID_SHELL, arg->id != null, EINVAL, E_INVALID_ARG, "[E_INVALID_ARG]");
+ SysTryReturn(NID_SHELL, arg->type == event_arg::EVENT_NEW, -EPERM, E_SUCCESS, "invalid argument from master");
- SysLog(NID_APP, "packageName(%s) id(%s) content(%s) cluster(%s) category(%s)", arg->pkgname, arg->id, arg->info.lb_create.content, arg->info.lb_create.cluster, arg->info.lb_create.category);
- SysTryReturn (NID_APP, AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id) == null, -EBUSY, E_SUCCESS,"already exist");
+ SysLog(NID_SHELL, "packageName(%s) id(%s) content(%s) cluster(%s) category(%s)", arg->pkgname, arg->id, arg->info.lb_create.content, arg->info.lb_create.cluster, arg->info.lb_create.category);
+ SysTryReturn (NID_SHELL, AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id) == null, -EBUSY, E_SUCCESS,"already exist");
double default_priority = 1.0f;
_AppWidgetContext* pAppWidgetContext = new (std::nothrow)_AppWidgetContext( arg->info.lb_create.content, arg->pkgname, arg->id,
arg->info.lb_create.width, arg->info.lb_create.height, arg->info.lb_create.period * 1000, default_priority);
- SysTryReturn(NID_APP, pAppWidgetContext, 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ SysTryReturn(NID_SHELL, pAppWidgetContext, 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
AppWidgetManagerService* pAppWidgetService = AppWidgetManagerService::GetInstance();
pAppWidgetService->AddAppWidget(pAppWidgetContext);
*height= pAppWidgetContext->__height;
*width = pAppWidgetContext->__width;
- SysLog(NID_APP, "Exit. %d appWidget(es)", pAppWidgetService->__appWidgetContextList.GetCount());
+ SysLog(NID_SHELL, "Exit. %d appWidget(es)", pAppWidgetService->__appWidgetContextList.GetCount());
return 0;
}
{
if( arg->id == null || strlen(arg->id) < 1)
{
- SysLog(NID_APP, "updating alls");
+ SysLog(NID_SHELL, "updating alls");
AppWidgetManagerService::GetInstance()->UpdateAllAppWidgetsByAppId(arg->pkgname);
}
else
{
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnUpdate(L"");
}
int
AppWidgetManagerService::OnAppWidgetDestroy(struct event_arg *arg, void* data)
{
- SysTryReturn (NID_APP, arg->type == event_arg::EVENT_DELETE, -EPERM, E_SUCCESS, "invalid argument from master");
- SysLog(NID_APP, "Enter");
+ SysTryReturn (NID_SHELL, arg->type == event_arg::EVENT_DELETE, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysLog(NID_SHELL, "Enter");
AppWidgetManagerService* pAppWidgetManagerService = AppWidgetManagerService::GetInstance();
_AppWidgetContext* pAppWidgetContext = pAppWidgetManagerService->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnRemoved();
pAppWidgetManagerService->RemoveAppWidget( arg->pkgname, arg->id, true);
delete pAppWidgetContext;
- SysLog(NID_APP, "Exit");
+ SysLog(NID_SHELL, "Exit");
return 0;
}
int
AppWidgetManagerService::OnAppWidgetPopupCreate(struct event_arg *arg, void* data)
{
- SysTryReturn (NID_APP, arg->type == event_arg::EVENT_PD_CREATE, -EPERM, E_SUCCESS, "invalid argument from master");
- SysLog(NID_APP, "packageName(%s), id(%s), x(%d), y(%d), width(%f), height(%f), priority(%d)", arg->pkgname, arg->id, arg->info.pd_create.x, arg->info.pd_create.y, arg->info.pd_create.w, arg->info.pd_create.h);
+ SysTryReturn (NID_SHELL, arg->type == event_arg::EVENT_PD_CREATE, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysLog(NID_SHELL, "packageName(%s), id(%s), x(%d), y(%d), width(%f), height(%f), priority(%d)", arg->pkgname, arg->id, arg->info.pd_create.x, arg->info.pd_create.y, arg->info.pd_create.w, arg->info.pd_create.h);
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
/*if( pAppWidgetContext->GetAppWidgetPopup() )
{
int
AppWidgetManagerService::OnAppWidgetPopupDestroy(struct event_arg *arg, void* data)
{
- SysTryReturn (NID_APP, arg->type == event_arg::EVENT_PD_DESTROY, -EPERM, E_SUCCESS, "invalid argument from master");
- SysLog(NID_APP, "packageName(%s), id(%s)", arg->pkgname, arg->id);
+ SysTryReturn (NID_SHELL, arg->type == event_arg::EVENT_PD_DESTROY, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysLog(NID_SHELL, "packageName(%s), id(%s)", arg->pkgname, arg->id);
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnPopupDestoyed();
int
AppWidgetManagerService::OnAppWidgetPause(struct event_arg *arg, void* data)
{
- SysTryReturn(NID_APP, arg, 0, E_SUCCESS, "arg is null!");
+ SysTryReturn(NID_SHELL, arg, 0, E_SUCCESS, "arg is null!");
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , 0, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , 0, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
- SysLog(NID_APP, "packageName(%s), id(%s)", arg->pkgname, arg->id);
+ SysLog(NID_SHELL, "packageName(%s), id(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnBackground();
return 0;
}
int
AppWidgetManagerService::OnAppWidgetResume(struct event_arg *arg, void* data)
{
- SysTryReturn(NID_APP, arg || arg->id || arg->pkgname, 0, E_SUCCESS, "arg is null!");
+ SysTryReturn(NID_SHELL, arg || arg->id || arg->pkgname, 0, E_SUCCESS, "arg is null!");
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
- SysLog(NID_APP, "packageName(%s), id(%s)", arg->pkgname, arg->id);
+ SysLog(NID_SHELL, "packageName(%s), id(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnForeground();
return 0;
}
int
AppWidgetManagerService::OnAppWidgetClick(struct event_arg *arg, void* data)
{
- SysTryReturn (NID_APP, arg->type == event_arg::EVENT_CLICKED, -EPERM, E_SUCCESS, "invalid argument from master");
- SysTryReturn(NID_APP, arg != null, -EPERM, E_SUCCESS, "arg is null!");
- SysLog(NID_APP, "packageName(%s), id(%s), clicked.event(%s), clicked.x(%d), clicked.y(%d)", arg->pkgname, arg->id, arg->info.clicked.event, arg->info.clicked.x, arg->info.clicked.y);
+ SysTryReturn (NID_SHELL, arg->type == event_arg::EVENT_CLICKED, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysTryReturn(NID_SHELL, arg != null, -EPERM, E_SUCCESS, "arg is null!");
+ SysLog(NID_SHELL, "packageName(%s), id(%s), clicked.event(%s), clicked.x(%d), clicked.y(%d)", arg->pkgname, arg->id, arg->info.clicked.event, arg->info.clicked.x, arg->info.clicked.y);
return 0;
}
int
AppWidgetManagerService::OnAppWidgetResize(struct event_arg *arg, void* data)
{
- SysTryReturn(NID_APP, arg || arg->id || arg->pkgname, 0, E_SUCCESS, "arg is null!");
- SysTryReturn (NID_APP, arg->type == event_arg::EVENT_RESIZE, -EPERM, E_SUCCESS, "invalid argument from master");
+ SysTryReturn(NID_SHELL, arg || arg->id || arg->pkgname, 0, E_SUCCESS, "arg is null!");
+ SysTryReturn (NID_SHELL, arg->type == event_arg::EVENT_RESIZE, -EPERM, E_SUCCESS, "invalid argument from master");
- SysLog(NID_APP, "packageName(%s), id(%s), resize.w(%d), resize.h(%d)", arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h);
+ SysLog(NID_SHELL, "packageName(%s), id(%s), resize.w(%d), resize.h(%d)", arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h);
_AppWidgetContext* pAppWidgetContext = AppWidgetManagerService::GetInstance()->Find(arg->pkgname, arg->id);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for appId(%s), instanceId(%s)", arg->pkgname, arg->id);
pAppWidgetContext->OnResize(arg->info.resize.w, arg->info.resize.h);
int
AppWidgetManagerService::OnAppWidgetPeriodChaned(struct event_arg *arg, void* data)
{
- SysTryReturn(NID_APP, arg != null, 0, E_SUCCESS, "arg is null!");
- SysLog(NID_APP, "packageName(%s), id(%s), width(%d), height(%d), priority(%d)", arg->pkgname, arg->id);
+ SysTryReturn(NID_SHELL, arg != null, 0, E_SUCCESS, "arg is null!");
+ SysLog(NID_SHELL, "packageName(%s), id(%s), width(%d), height(%d), priority(%d)", arg->pkgname, arg->id);
return 0;
}
result
AppWidgetManagerService::InitializeMasterDaemonEventReceiver(const char *pServiceExecutableName)
{
- SysTryReturnResult(NID_APP, pServiceExecutableName != null, E_INVALID_ARG, "");
- SysLog(NID_APP, "Enter.");
+ SysTryReturnResult(NID_SHELL, pServiceExecutableName != null, E_INVALID_ARG, "");
+ SysLog(NID_SHELL, "Enter.");
__appWidgetContextList.Construct();
//cbs.change_group = OnAppWidgetGroupChanged;
int ret = provider_init(null, pServiceExecutableName, &cbs, this);
- SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM, "provider_init failed.");
+ SysTryReturnResult(NID_SHELL, ret == 0, E_SYSTEM, "provider_init failed.");
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
return E_SUCCESS;
}
result
AppWidgetManagerService::DeinitializeMasterDaemonEventReceiver()
{
- SysLog(NID_APP, "Enter.");
+ SysLog(NID_SHELL, "Enter.");
provider_fini();
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
return E_SUCCESS;
}
result
AppWidgetManagerService::RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument)
{
- SysLog(NID_APP, "%ls, %ls", appId.GetPointer(), providerName.GetPointer() );
+ SysLog(NID_SHELL, "%ls, %ls", appId.GetPointer(), providerName.GetPointer() );
bool found = false;
for( int i = 0; i < __appWidgetContextList.GetCount(); i++ )
if ( pAppWidgetContext->__appId == appId && pAppWidgetContext->__providerName == providerName)
{
- SysLog(NID_APP, "OK");
+ SysLog(NID_SHELL, "OK");
ArrayList* pArray = new (std::nothrow) ArrayList();
- SysTryReturnResult(NID_APP, pArray, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ SysTryReturnResult(NID_SHELL, pArray, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
pArray->Construct();
pArray->Add(pAppWidgetContext);
pArray->Add(new String(argument));
result r = __handlerThread.SendUserEvent(LOCAL_EVENT_REQUEST_UPDATE, pArray);
- SysTryLog(NID_APP, !IsFailed(r), "[%s] Propagated.", GetErrorMessage(r));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Propagated.", GetErrorMessage(r));
found = true;
}
}
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
return (found) ? E_SUCCESS : E_OBJ_NOT_FOUND;
}
result
AppWidgetManagerService::RequestUpdateInstance(const Tizen::Base::String& instanceId, const Tizen::Base::String& argument)
{
- SysLog(NID_APP, "%ls, %ls", instanceId.GetPointer(), argument.GetPointer() );
+ SysLog(NID_SHELL, "%ls, %ls", instanceId.GetPointer(), argument.GetPointer() );
for( int i = 0; i < __appWidgetContextList.GetCount(); i++ )
{
if ( pAppWidgetContext->__instanceId == instanceId)
{
- SysLog(NID_APP, "OK");
+ SysLog(NID_SHELL, "OK");
ArrayList* pArray = new (std::nothrow) ArrayList();
- SysTryReturnResult(NID_APP, pArray, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ SysTryReturnResult(NID_SHELL, pArray, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
pArray->Construct();
pArray->Add(pAppWidgetContext);
pArray->Add(new String(argument));
result r = __handlerThread.SendUserEvent(LOCAL_EVENT_REQUEST_UPDATE, pArray);
- SysTryLog(NID_APP, !IsFailed(r), "[%s] Propagated.", GetErrorMessage(r));
+ SysTryLog(NID_SHELL, !IsFailed(r), "[%s] Propagated.", GetErrorMessage(r));
return E_SUCCESS;
}
}
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
return E_OBJ_NOT_FOUND;
}
AppWidgetManagerService::RequestSharedMemoryId(const Tizen::App::AppId& appId, const Tizen::Base::String& instanceId, int width, int height, int& shmId)
{
_AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
// if(pAppWidgetContext->HasValidClientId() == false)
// {
// }
shmId = pAppWidgetContext->GetSharedMemId(width, height);
- SysTryReturnResult(NID_APP, pAppWidgetContext , shmId != -1, "[E_SYSTEM] failed to GetSharedMemId for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , shmId != -1, "[E_SYSTEM] failed to GetSharedMemId for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
return E_SUCCESS;
}
AppWidgetManagerService::RequestSharedMemoryIdForPD(const Tizen::App::AppId& appId, const Tizen::Base::String& instanceId, int width, int height, int& shmId)
{
_AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
_AppWidgetPopupContext* pPd = pAppWidgetContext->GetAppWidgetPopup();
- SysTryReturnResult(NID_APP, pPd , E_SYSTEM, "[E_SYSTEM] pPd is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pPd , E_SYSTEM, "[E_SYSTEM] pPd is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
if(pPd->HasValidClientId() == false)
{
}
shmId = pPd->GetSharedMemId(width, height);
- SysTryReturnResult(NID_APP, pAppWidgetContext , shmId != -1, "[E_SYSTEM] failed to GetSharedMemId for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , shmId != -1, "[E_SYSTEM] failed to GetSharedMemId for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
return E_SUCCESS;
}
AppWidgetManagerService::RequestSyncSharedMemory(const Tizen::App::AppId& appId, const Tizen::Base::String& instanceId, int width, int height)
{
_AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
return pAppWidgetContext->RequestUpdateRemote(width, height);
}
AppWidgetManagerService::RequestSyncSharedMemoryForPD(const Tizen::App::AppId& appId, const Tizen::Base::String& instanceId)
{
_AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
- SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
- SysTryReturnResult(NID_APP, pAppWidgetContext->GetAppWidgetPopup(), E_SYSTEM, "[E_SYSTEM] GetAppWidgetPopup() returns null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+ SysTryReturnResult(NID_SHELL, pAppWidgetContext->GetAppWidgetPopup(), E_SYSTEM, "[E_SYSTEM] GetAppWidgetPopup() returns null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
return pAppWidgetContext->GetAppWidgetPopup()->RequestUpdateRemote();
}
// std::unique_ptr<char[]> id(_StringConverter::CopyToCharArrayN(instanceId));
//
// _AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
-// SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+// SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
//
// return pAppWidgetContext->ReleaseSharedMem();
return E_SUCCESS;
// std::unique_ptr<char[]> id(_StringConverter::CopyToCharArrayN(instanceId));
//
// _AppWidgetContext* pAppWidgetContext = this->Find(appId, instanceId);
-// SysTryReturnResult(NID_APP, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
-// SysTryReturnResult(NID_APP, pAppWidgetContext->GetAppWidgetPopup(), E_SYSTEM, "[E_SYSTEM] GetAppWidgetPopup() returns null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+// SysTryReturnResult(NID_SHELL, pAppWidgetContext , E_SYSTEM, "[E_SYSTEM] pAppWidgetContext is null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
+// SysTryReturnResult(NID_SHELL, pAppWidgetContext->GetAppWidgetPopup(), E_SYSTEM, "[E_SYSTEM] GetAppWidgetPopup() returns null for (%ls) (%ls)", appId.GetPointer(), instanceId.GetPointer());
//
// return pAppWidgetContext->GetAppWidgetPopup()->ReleaseSharedMem();
return E_SUCCESS;
void
AppWidgetManagerService::_TaskHandlerThread::OnUserEventReceivedN(RequestId reqId, IList* pArgs)
{
- SysTryReturnVoidResult(NID_APP, pArgs != null, E_INVALID_STATE, "pArgs is null!.");
+ SysTryReturnVoidResult(NID_SHELL, pArgs != null, E_INVALID_STATE, "pArgs is null!.");
- SysLog(NID_APP, "Enter.");
+ SysLog(NID_SHELL, "Enter.");
switch (reqId)
{
case LOCAL_EVENT_REQUEST_UPDATE:
{
_AppWidgetContext* pAppWidgetContext = dynamic_cast<_AppWidgetContext*>( pArgs->GetAt(0) );
- SysTryReturnVoidResult(NID_APP, pAppWidgetContext != null, E_INVALID_STATE, "_AppWidget is null!.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetContext != null, E_INVALID_STATE, "_AppWidget is null!.");
String* pArgument = dynamic_cast<String*>( pArgs->GetAt(1) );
- SysTryReturnVoidResult(NID_APP, pArgument != null, E_INVALID_STATE, "pArgument is null!.");
+ SysTryReturnVoidResult(NID_SHELL, pArgument != null, E_INVALID_STATE, "pArgument is null!.");
pAppWidgetContext->OnUpdate(*pArgument);
SysAssertf(false, "never get here!");
break;
}
- SysLog(NID_APP, "Exit.");
+ SysLog(NID_SHELL, "Exit.");
}
} } } //namespace Tizen { namespace Shell { namespace App {
_AppWidgetManagerStub::_AppWidgetManagerStub(void)
:__pIpcServer(null)
{
- SysLog(NID_APP, "Enter\n");
+ SysLog(NID_SHELL, "Enter\n");
- SysLog(NID_APP, "Exit\n");
+ SysLog(NID_SHELL, "Exit\n");
}
_AppWidgetManagerStub::~_AppWidgetManagerStub(void)
{
- SysLog(NID_APP, "Enter\n");
+ SysLog(NID_SHELL, "Enter\n");
if ( __pIpcServer != null)
{
delete __pIpcServer;
}
- SysLog(NID_APP, "Exit\n");
+ SysLog(NID_SHELL, "Exit\n");
}
result
_AppWidgetManagerStub::StartIpcServer(void)
{
- SysLog(NID_APP, "Enter.");
+ SysLog(NID_SHELL, "Enter.");
__pIpcServer = new (std::nothrow) _IpcServer();
- SysTryReturn(NID_APP, __pIpcServer != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Not enough memory.");
+ SysTryReturn(NID_SHELL, __pIpcServer != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Not enough memory.");
result r = __pIpcServer->Construct( IPC_SERVER_NAME, *this, false);
- SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] Failed to create IPC server(%s)", GetErrorMessage(r), "osp.app.ipcserver.appmanager");
- SysLog(NID_APP, "Exit.");
+ SysTryCatch(NID_SHELL, !IsFailed(r), , r, "[%s] Failed to create IPC server(%s)", GetErrorMessage(r), "osp.app.ipcserver.appmanager");
+ SysLog(NID_SHELL, "Exit.");
return E_SUCCESS;
bool
_AppWidgetManagerStub::OnRequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument, result* pRes)
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
*pRes = RequestUpdate(appId, providerName, argument);
return true;
}
bool
_AppWidgetManagerStub::OnRequestUpdateInstance(const Tizen::Base::String& instanceId, const Tizen::Base::String& argument, result* pRes)
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
*pRes = RequestUpdateInstance(instanceId, argument);
return true;
}
bool
_AppWidgetManagerStub::OnRequestSharedMemoryId(const String& instanceId, int w, int h, int* pShmId)
{
- SysLog(NID_APP, "(instanceId:%d)xxx", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%d)xxx", instanceId.GetPointer());
RequestSharedMemoryId(__pIpcServer->GetClientAppId(), instanceId, w, h, *pShmId);
bool
_AppWidgetManagerStub::OnRequestSharedMemoryIdForPD(const String& instanceId, int w, int h, int* pShmId)
{
- SysLog(NID_APP, "(instanceId:%d)", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%d)", instanceId.GetPointer());
RequestSharedMemoryIdForPD(__pIpcServer->GetClientAppId(), instanceId, w, h, *pShmId);
bool
_AppWidgetManagerStub::OnRequestSyncSharedMemory(const String& instanceId, int w, int h, result* pRes)
{
- SysLog(NID_APP, "(instanceId:%ls)", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%ls)", instanceId.GetPointer());
*pRes = RequestSyncSharedMemory(__pIpcServer->GetClientAppId(), instanceId, w, h);
bool
_AppWidgetManagerStub::OnRequestSyncSharedMemoryForPD(const String& instanceId, result* pRes)
{
- SysLog(NID_APP, "(instanceId:%ls)", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%ls)", instanceId.GetPointer());
*pRes = RequestSyncSharedMemoryForPD(__pIpcServer->GetClientAppId(), instanceId);
bool
_AppWidgetManagerStub::OnRequestReleaseSharedMemory(const String& instanceId, result* pRes)
{
- SysLog(NID_APP, "(instanceId:%ls)", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%ls)", instanceId.GetPointer());
*pRes = RequestReleaseSharedMemory(__pIpcServer->GetClientAppId(), instanceId);
bool
_AppWidgetManagerStub::OnRequestReleaseSharedMemoryForPD(const String& instanceId, result* pRes)
{
- SysLog(NID_APP, "(instanceId:%ls)", instanceId.GetPointer());
+ SysLog(NID_SHELL, "(instanceId:%ls)", instanceId.GetPointer());
*pRes = RequestReleaseSharedMemoryForPD(__pIpcServer->GetClientAppId(), instanceId);
bool
_AppWidgetManagerStub::SendTouchEvent(const int clientId, const String& instanceId, int eventType, double timestamp, double x, double y)
{
- SysLog(NID_APP,"");
+ SysLog(NID_SHELL,"");
result r = __pIpcServer->SendResponse(clientId, new AppWidgetManager_SendTouchEvent(instanceId, eventType, timestamp, x, y));
- SysTryReturn(NID_APP, !IsFailed(r), r, r, "[%s] Propagated.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "[%s] Propagated.", GetErrorMessage(r));
return true;
}
bool
_AppWidgetManagerStub::SendTouchEventForPD(const int clientId, const String& instanceId, int eventType, double timestamp, double x, double y)
{
- SysLog(NID_APP,"");
+ SysLog(NID_SHELL,"");
result r = __pIpcServer->SendResponse(clientId, new AppWidgetManager_SendTouchEventForPD(instanceId, eventType, timestamp, x, y));
- SysTryReturn(NID_APP, !IsFailed(r), r, r, "[%s] Propagated.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "[%s] Propagated.", GetErrorMessage(r));
return true;
}
void
_AppWidgetManagerStub::OnIpcRequestReceived(_IpcServer& server, const IPC::Message& message)
{
- SysLog(NID_APP, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), server.GetClientId());
+ SysLog(NID_SHELL, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), server.GetClientId());
SysAssertf(__pIpcServer, "__pIpcServer is null!");
void
_AppWidgetManagerStub::OnIpcServerStarted(const _IpcServer& server)
{
- SysLog(NID_APP, "\n");
+ SysLog(NID_SHELL, "\n");
}
void
_AppWidgetManagerStub::OnIpcServerStopped(const _IpcServer& server)
{
- SysLog(NID_APP, "\n");
+ SysLog(NID_SHELL, "\n");
}
void
_AppWidgetManagerStub::OnIpcClientConnected(const _IpcServer& server, int clientId)
{
- SysLog(NID_APP, "(clientId:%d)\n", clientId);
+ SysLog(NID_SHELL, "(clientId:%d)\n", clientId);
}
void
_AppWidgetManagerStub::OnIpcClientDisconnected(const _IpcServer& server, int clientId)
{
- SysLog(NID_APP, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), clientId);
+ SysLog(NID_SHELL, "(appId:%ls, clientId:%d)\n", server.GetClientApplicationId().GetPointer(), clientId);
}
_AppWidgetPopupContext::_AppWidgetPopupContext(const String& info, const String& appId, const String& instanceId, int width, int height, int priority)
:_AppWidgetContextBase(TYPE_PD, info, appId, instanceId, width, height, priority)
{
- SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height);
+ SysLog(NID_SHELL, "appId(%ls), instanceId(%ls), width(%d), height(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height);
}
_AppWidgetPopupContext::~_AppWidgetPopupContext()
{
- SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d))", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height);
+ SysLog(NID_SHELL, "appId(%ls), instanceId(%ls), width(%d), height(%d))", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height);
}
void
_AppWidgetPopupContext::OnPopupCreated(double x, double y, int width, int height)
{
- SysLog(NID_APP, "width(%d), height(%d)", width, height);
+ SysLog(NID_SHELL, "width(%d), height(%d)", width, height);
SendPopupCreateRequest(x, y, width, height);
}
void
_AppWidgetPopupContext::OnPopupDestoyed()
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
SendPopupDestroyRequest();
}
result
_AppWidgetPopupContext::SendTouchEvent(buffer_event event, double timestamp, double x, double y)
{
- SysLog(NID_APP, "");
+ SysLog(NID_SHELL, "");
/*if( HasValidClientId() == false )
{
std::unique_ptr<ArrayList, AllElementsDeleter> pArgs (new (std::nothrow) ArrayList);
std::unique_ptr<char[]> id(_StringConverter::CopyToCharArrayN(__instanceId));
int ret = provider_send_desc_updated(packageName.get(), id.get(), null);
- SysTryReturnResult(NID_APP, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_send_updated");
+ SysTryReturnResult(NID_SHELL, ret >= 0 , E_SYSTEM, "[E_SYSTEM] failed to provider_send_updated");
- SysLog(NID_APP, "Done");
+ SysLog(NID_SHELL, "Done");
return E_SUCCESS;
}