{
String pkgId = PackageManager::GetPackageIdByAppId(appId);
SysTryReturnResult(NID_APP, pkgId.IsEmpty() == false, E_APP_NOT_INSTALLED,
- "The application is not installed. (appId: %ls)", appId.GetPointer());
+ "The application is not installed. (app: %ls)", appId.GetPointer());
_PackageManagerImpl* pPkgMgr = _PackageManagerImpl::GetInstance();
SysTryReturnResult(NID_APP, pPkgMgr != null, E_SYSTEM,
std::unique_ptr< PackageInfo >pPkgInfo(pPkgMgr->GetPackageInfoN(pkgId));
SysTryReturnResult(NID_APP, pPkgInfo != null, E_APP_NOT_INSTALLED,
- "The application is not installed. (appId: %ls)", appId.GetPointer());
+ "The application is not installed. (app: %ls)", appId.GetPointer());
_PackageInfoImpl* pPkgInfoImpl = _PackageInfoImpl::GetInstance(pPkgInfo.get());
SysTryReturnResult(NID_APP, pPkgInfoImpl != null, E_SYSTEM,
result
_AppManagerImpl::OnServiceEventReceived(int clientId, const _AppManagerEventArg& arg)
{
- SysLog(NID_APP, "appId:%ls, appType:0x%x", arg.GetAppId().GetPointer(), arg.GetAppType());
+ SysLog(NID_APP, "app:%ls, appType:0x%x", arg.GetAppId().GetPointer(), arg.GetAppType());
_AppManagerEventArg* pArg = new (std::nothrow)_AppManagerEventArg(arg);
SysTryReturnResult(NID_APP, pArg != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
int ret = aul_app_get_appid_bypid(pid, appId, sizeof(appId));
if (ret != AUL_R_OK)
{
- SysLogException(NID_APP, E_SYSTEM, "Cannot acquire appId for %d.", pid);
+ SysLogException(NID_APP, E_SYSTEM, "Cannot acquire app for %d.", pid);
return -1;
}
result r = pImpl->__map.GetValue(pid, tmp);
if (r != E_SUCCESS)
{
- SysLog(NID_APP, "Cannot acquire appId from pid %d.", pid);
+ SysLog(NID_APP, "Cannot acquire app from pid %d.", pid);
return -1;
}