/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
try
{
- Integration::SetTapMaximumMotionAllowedDistance(0);
+ Integration::SetTapMaximumMotionAllowedDistance(-1.0f);
}
catch(...)
{
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
DALI_TEST_EQUALS(CustomTestFunctor::mCallbackCount, 0, TEST_LOCATION);
customHandle.GetCustomSignal().Emit();
DALI_TEST_EQUALS(CustomTestFunctor::mCallbackCount, 0 /*never called*/, TEST_LOCATION);
+
+ // Test for connect by SignalConnectorType struct who has duplicated name.
+ try
+ {
+ SignalConnectorType invalidSignalConnector(customType1, "sig1", DoConnectSignalCustom);
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(false); // Should not come here.
+ }
+
+ // Should be a NOOP
+ DALI_TEST_EQUALS(CustomTestFunctor::mCallbackCount, 0, TEST_LOCATION);
+ customHandle.GetCustomSignal().Emit();
+ DALI_TEST_EQUALS(CustomTestFunctor::mCallbackCount, 0 /*never called*/, TEST_LOCATION);
+
END_TEST;
}
Property::Map attributes;
DALI_TEST_CHECK(!handle.DoAction("unknownAction", attributes));
+ // Test for connect by TypeAction struct who has duplicated name.
+ try
+ {
+ TypeAction invalidAction(customType1, "act1", DoActionCustom);
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(false); // Should not come here.
+ }
+
END_TEST;
}
#define DALI_INTEGRATION_DEBUG_H
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#define DALI_LOG_RELEASE_INFO(format, ...) Dali::Integration::Log::LogMessageWithFunctionLine(Dali::Integration::Log::INFO, format, ##__VA_ARGS__)
/**
- * Provides unfiltered logging for debuf information
+ * Provides unfiltered logging for debug information
*/
#define DALI_LOG_DEBUG_INFO(format, ...) Dali::Integration::Log::LogMessageWithFunctionLine(Dali::Integration::Log::DEBUG, format, ##__VA_ARGS__)
{
if(DALI_UNLIKELY(!mActions.Register(ConstString(actionName), function)))
{
- DALI_LOG_WARNING("Action already exists in TypeRegistry Type\n", actionName.c_str());
+ DALI_LOG_ERROR("Action already exists in TypeRegistry Type\n", actionName.c_str());
}
}
}
{
if(DALI_UNLIKELY(!mSignalConnectors.Register(ConstString(signalName), function)))
{
- DALI_LOG_WARNING("Signal name already exists in TypeRegistry Type for signal connector function\n", signalName.c_str());
+ DALI_LOG_ERROR("Signal name already exists in TypeRegistry Type for signal connector function\n", signalName.c_str());
}
}
}
if(!mRegistryLut.Register(ConstString(uniqueTypeName), new Internal::TypeInfo(uniqueTypeName, baseTypeName, createInstance, defaultProperties, defaultPropertyCount)))
{
- DALI_LOG_WARNING("Duplicate name in TypeRegistry for '%s'\n", +uniqueTypeName.c_str());
+ DALI_LOG_ERROR("Duplicate name in TypeRegistry for '%s'\n", +uniqueTypeName.c_str());
DALI_ASSERT_ALWAYS(!"Duplicate type name in Type Registration");
return uniqueTypeName; // never actually happening due to the assert
}
if(!mRegistryLut.Register(ConstString(uniqueTypeName), TypeRegistry::TypeInfoPointer(new Internal::TypeInfo(uniqueTypeName, baseTypeName, createInstance))))
{
- DALI_LOG_WARNING("Duplicate name in TypeRegistry for '%s'\n", +uniqueTypeName.c_str());
+ DALI_LOG_ERROR("Duplicate name in TypeRegistry for '%s'\n", +uniqueTypeName.c_str());
DALI_ASSERT_ALWAYS(!"Duplicate type name in Type Registration");
return; // never actually happening due to the assert
}
if(!done)
{
- DALI_LOG_WARNING("Type '%s' cannot do action '%s'\n", type->GetName().c_str(), actionName.c_str());
+ DALI_LOG_ERROR("Type '%s' cannot do action '%s'\n", type->GetName().c_str(), actionName.c_str());
}
return done;
if(!connected)
{
- DALI_LOG_WARNING("Type '%s' signal '%s' connection failed \n", type->GetName().c_str(), signalName.c_str());
+ DALI_LOG_ERROR("Type '%s' signal '%s' connection failed \n", type->GetName().c_str(), signalName.c_str());
// Ownership of functor was not passed to Dali::CallbackBase, so clean-up now
delete functor;
}
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
if(time == 0u)
{
- DALI_LOG_WARNING("MaximumAllowedTime must be greater than zero.");
+ DALI_LOG_ERROR("MaximumAllowedTime must be greater than zero.");
return;
}
if(mMaximumAllowedTime != time)
{
if(time == 0u)
{
- DALI_LOG_WARNING("RecognizerTime must be greater than zero.");
+ DALI_LOG_ERROR("RecognizerTime must be greater than zero.");
return;
}
if(mRecognizerTime != time)
{
if(distance < 0.0f)
{
- DALI_LOG_WARNING("distance must be greater than zero.");
+ DALI_LOG_ERROR("distance must be greater than zero.");
return;
}
}
if(DALI_UNLIKELY(mStrideBytes % bytesPerPixel != 0u))
{
- DALI_LOG_WARNING("StrideByte value [%u] cannot divide by bpp [%u]!\n", mStrideBytes, bytesPerPixel);
+ DALI_LOG_ERROR("StrideByte value [%u] cannot divide by bpp [%u]!\n", mStrideBytes, bytesPerPixel);
}
return mStrideBytes / bytesPerPixel;
}
/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
// Return an empty string if type-name not found.
- DALI_LOG_WARNING("TypeName Not Found\n");
+ DALI_LOG_ERROR("TypeName Not Found\n");
static std::string empty;
return empty;
}