[Tizen] Add / Change some logs for Accessibility debugging 20/288620/1 accepted/tizen/6.0/unified/20230221.003234 submit/tizen_6.0/20230220.132938
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 20 Feb 2023 13:21:40 +0000 (22:21 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 20 Feb 2023 13:24:04 +0000 (22:24 +0900)
- To check which windows are touched, the log is added to always appear.
- Changed the log type to 'DALI_LOG_ERROR' on OnFocusChanged()
  (Only Eldbus available)

Change-Id: I7b49f9fa5e1b25612a23c8eecec5341f56b9a3c0
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/internal/window-system/common/event-handler.cpp

index 00ce3564b2b630e71d6bf4dc64f78bb4947ac5f0..820b2a032985b99aeb411633aa42faafcc381b8a 100755 (executable)
@@ -195,7 +195,7 @@ void EventHandler::OnFocusChanged( bool focusIn )
       AccessibilityAdaptor* accessibilityAdaptor( &AccessibilityAdaptor::GetImplementation( mAccessibilityAdaptor ) );
       if ( accessibilityAdaptor )
       {
-        DALI_LOG_INFO( gSelectionEventLogFilter, Debug::General, "OnFocusChanged: EnableAccessibility \n" );
+        DALI_LOG_ERROR("(Focus gained): EnableAccessibility \n");
         accessibilityAdaptor->EnableAccessibility();
       }
     }
@@ -218,7 +218,7 @@ void EventHandler::OnFocusChanged( bool focusIn )
       AccessibilityAdaptor* accessibilityAdaptor( &AccessibilityAdaptor::GetImplementation( mAccessibilityAdaptor ) );
       if ( accessibilityAdaptor && accessibilityAdaptor->IsEnabled() )
       {
-        DALI_LOG_INFO( gSelectionEventLogFilter, Debug::General, "OnFocusChanged: DisableAccessibility \n" );
+        DALI_LOG_ERROR("(Focus lost): DisableAccessibility \n");
         accessibilityAdaptor->DisableAccessibility();
       }
     }
@@ -300,6 +300,7 @@ void EventHandler::OnAccessibilityNotification( const WindowBase::AccessibilityI
 
   if( info.gestureValue == 15 ) // ONE_FINGER_SINGLE_TAP
   {
+    DALI_LOG_ERROR("[FYI] Native window resource ID : %s, Touched window resource ID : %d \n", mWindowBase->GetNativeWindowResourceId().c_str(), info.resourceId);
     if( std::to_string( info.resourceId ) == mWindowBase->GetNativeWindowResourceId() )
     {
       if( !accessibilityAdaptor->IsEnabled() )