static int instance_count = 1;
if ((!m_impl->si.null ()) && m_impl->si->get_factory_uuid () == uuid) {
- LOGD ("Already in UUID: %s\n", uuid.c_str());
+ ISF_SAVE_LOG ("Already in UUID: %s\n", uuid.c_str());
return;
}
}
if (m_impl->m_config.null ()) {
- LOGW ("config is not working");
+ ISF_SAVE_LOG ("config is not working");
return;
}
pkgmgrinfo_appinfo_h handle;
ret = pkgmgrinfo_appinfo_get_appinfo(uuid.c_str(), &handle);
if (ret != PMINFO_R_OK) {
- LOGW("Retrieve app info failed : %s", uuid.c_str ());
+ ISF_SAVE_LOG ("Retrieve app info failed : %s", uuid.c_str ());
return;
}
ret = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid);
if (ret != PMINFO_R_OK) {
- LOGW("Retrieve pkgid failed : %s, %p", uuid.c_str(), handle);
+ ISF_SAVE_LOG ("Retrieve pkgid failed : %s, %p", uuid.c_str(), handle);
pkgmgrinfo_appinfo_destroy_appinfo(handle);
return;
}
pkgmgrinfo_appinfo_destroy_appinfo(handle);
#else
if (isf_db_select_ime_info_by_appid(uuid.c_str(), &imeInfo) < 1) {
- LOGW("ime_info row is not available for %s", uuid.c_str());
+ ISF_SAVE_LOG ("ime_info row is not available for %s", uuid.c_str());
return;
}
#endif
engine_module = &m_impl->engine_module;
if (engine_module->valid() && imeInfo.module_name != engine_module->get_module_name()) {
- LOGD ("imengine module %s unloaded", engine_module->get_module_name().c_str());
+ ISF_SAVE_LOG ("imengine module %s unloaded", engine_module->get_module_name().c_str());
engine_module->unload();
}
if (!engine_module->valid()) {
if (engine_module->load (imeInfo.module_name, m_impl->m_config) == false) {
- LOGW ("load module %s failed", imeInfo.module_name.c_str());
+ ISF_SAVE_LOG ("load module %s failed", imeInfo.module_name.c_str());
return;
}
- LOGD ("imengine module %s loaded", imeInfo.module_name.c_str());
+ ISF_SAVE_LOG ("imengine module %s loaded", imeInfo.module_name.c_str());
}
for (size_t j = 0; j < engine_module->number_of_factories (); ++j) {
}
if (factory.null()) {
- LOGW ("imengine uuid %s is not found", uuid.c_str());
+ ISF_SAVE_LOG ("imengine uuid %s is not found", uuid.c_str());
return;
}
m_impl->si = factory->create_instance ("UTF-8", instance_count++);
if (m_impl->si.null ()) {
- LOGE ("create_instance %s failed", uuid.c_str ());
+ ISF_SAVE_LOG ("create_instance %s failed", uuid.c_str ());
return;
}
m_impl->attach_instance ();
- LOGD ("Require UUID: %s Current UUID: %s", uuid.c_str (), m_impl->si->get_factory_uuid ().c_str ());
+ ISF_SAVE_LOG ("Require UUID: %s Current UUID: %s", uuid.c_str (), m_impl->si->get_factory_uuid ().c_str ());
m_impl->si->set_layout (m_impl->layout);
if (m_impl->focused_ic != (uint32)-1)
m_impl->si->focus_in ();