From 77627729c72d86b8c878eecab2696d5e6cd17a32 Mon Sep 17 00:00:00 2001 From: "bg.chun" Date: Tue, 5 Apr 2016 17:41:26 +0900 Subject: [PATCH] update loger LOGD -> LoggerD [Verification] archive, inputdevice, mediakey, time TCT 100% pass Change-Id: I2706782cbf3430a4ee675e4940940fc1c58bc21c Signed-off-by: bg.chun --- src/archive/archive_file_entry.cc | 6 +++--- src/inputdevice/inputdevice_instance.cc | 4 ++-- src/mediakey/mediakey_manager.cc | 4 ++-- src/time/time_manager.cc | 20 ++++++++++---------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/archive/archive_file_entry.cc b/src/archive/archive_file_entry.cc index cf6dcd7..6ead8af 100755 --- a/src/archive/archive_file_entry.cc +++ b/src/archive/archive_file_entry.cc @@ -40,12 +40,12 @@ ArchiveFileEntry::ArchiveFileEntry(filesystem::FilePtr file) : m_modified(0), m_compression_level(s_default_compression_level) { - LOGD("Entered"); + LoggerD("Entered"); } ArchiveFileEntry::~ArchiveFileEntry() { - LOGD("Entered"); + LoggerD("Entered"); } unsigned long ArchiveFileEntry::getCompressedSize() const @@ -157,7 +157,7 @@ PlatformResult ArchiveFileEntry::extractTo(ExtractEntryProgressCallback* callbac base_path_name += "/"; } - LOGD("strip name is: true; archive file entry name is: [%s]; " + LoggerD("strip name is: true; archive file entry name is: [%s]; " "stripBasePath will be: [%s]", m_name.c_str(), base_path_name.c_str()); diff --git a/src/inputdevice/inputdevice_instance.cc b/src/inputdevice/inputdevice_instance.cc index d5b7fc4..ae3f954 100644 --- a/src/inputdevice/inputdevice_instance.cc +++ b/src/inputdevice/inputdevice_instance.cc @@ -23,11 +23,11 @@ namespace extension { namespace inputdevice { InputDeviceInstance::InputDeviceInstance() { - LOGD("Enter"); + LoggerD("Enter"); } InputDeviceInstance::~InputDeviceInstance() { - LOGD("Enter"); + LoggerD("Enter"); } } // namespace inputdevice diff --git a/src/mediakey/mediakey_manager.cc b/src/mediakey/mediakey_manager.cc index 654ccce..61dd835 100755 --- a/src/mediakey/mediakey_manager.cc +++ b/src/mediakey/mediakey_manager.cc @@ -78,7 +78,7 @@ common::PlatformResult MediaKeyManager::RegisterMediaKeyEventListener( } m_media_key_listener = listener; m_media_key_listener_registered = true; - LOGD("Added media keys change event callback"); + LoggerD("Added media keys change event callback"); } return common::PlatformResult(ErrorCode::NO_ERROR); } @@ -110,7 +110,7 @@ void MediaKeyManager::MediaKeyEventCallback(media_key_e key, void* user_data) { LoggerD("Enter"); if (!GetInstance().m_media_key_listener) { - LOGD("Listener is null. Ignoring"); + LoggerD("Listener is null. Ignoring"); return; } if (MEDIA_KEY_STATUS_PRESSED == status) { diff --git a/src/time/time_manager.cc b/src/time/time_manager.cc index 0fa00bf..3d2274f 100644 --- a/src/time/time_manager.cc +++ b/src/time/time_manager.cc @@ -70,19 +70,19 @@ PlatformResult TimeManager::GetTimezoneOffset(const std::string& timezone_id, //offset is get for target LOCAL date timestamp, but it should be UTC timestamp, //so it has to be checked below against DST edge condition tz->getOffset(date, false, stdOffset, dstOffset, ec); - LOGD("stdOffset: %d, dstOffset: %d", stdOffset, dstOffset); + LoggerD("stdOffset: %d, dstOffset: %d", stdOffset, dstOffset); //this section checks if date is not in DST transition point //check if date shifted to UTC timestamp is still with the same offset int32_t dstOffsetBefore = 0; tz->getOffset(date - stdOffset - dstOffset, false, stdOffset, dstOffsetBefore, ec); - LOGD("stdOffset: %d, dstOffsetBefore: %d", stdOffset, dstOffsetBefore); + LoggerD("stdOffset: %d, dstOffsetBefore: %d", stdOffset, dstOffsetBefore); //it has to be checked if it is 'missing' hour case int32_t dstOffsetAfterBefore = 0; tz->getOffset(date - stdOffset - dstOffset + oneHour, false, stdOffset, dstOffsetAfterBefore, ec); - LOGD("stdOffset: %d, dstOffsetAfterBefore: %d", stdOffset, dstOffsetAfterBefore); + LoggerD("stdOffset: %d, dstOffsetAfterBefore: %d", stdOffset, dstOffsetAfterBefore); //offset would be minimum of local and utc timestamp offsets //(to work correctly even if DST transtion is 'now') @@ -96,22 +96,22 @@ PlatformResult TimeManager::GetTimezoneOffset(const std::string& timezone_id, PlatformResult TimeManager::RegisterVconfCallback(ListenerType type) { LoggerD("Entered"); if (!is_time_listener_registered_ && !is_timezone_listener_registered_){ - LOGD("registering listener on platform"); + LoggerD("registering listener on platform"); if (0 != vconf_notify_key_changed( VCONFKEY_SYSTEM_TIME_CHANGED, OnTimeChangedCallback, this)) { return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Failed to register vconf callback"); } } else { - LOGD("not registering listener on platform - already registered"); + LoggerD("not registering listener on platform - already registered"); } switch (type) { case kTimeChange : is_time_listener_registered_ = true; - LOGD("time change listener registered"); + LoggerD("time change listener registered"); break; case kTimezoneChange : is_timezone_listener_registered_ = true; - LOGD("time zone change listener registered"); + LoggerD("time zone change listener registered"); break; default : return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Unknown type of listener"); @@ -124,17 +124,17 @@ PlatformResult TimeManager::UnregisterVconfCallback(ListenerType type) { switch (type) { case kTimeChange : is_time_listener_registered_ = false; - LOGD("time change listener unregistered"); + LoggerD("time change listener unregistered"); break; case kTimezoneChange : is_timezone_listener_registered_ = false; - LOGD("time zone change listener unregistered"); + LoggerD("time zone change listener unregistered"); break; default : return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Unknown type of listener"); } if (!is_time_listener_registered_ && !is_timezone_listener_registered_) { - LOGD("unregistering listener on platform"); + LoggerD("unregistering listener on platform"); if (0 != vconf_ignore_key_changed(VCONFKEY_SYSTEM_TIME_CHANGED, OnTimeChangedCallback)) { LOGE("Failed to unregister vconf callback"); // silent fail -- 2.7.4