utc-Dali-TtsPlayer.cpp
utc-Dali-Window.cpp
utc-Dali-Gl-Window.cpp
+ utc-Dali-WindowSystem.cpp
)
LIST(APPEND TC_SOURCES
--- /dev/null
+/*
+ * Copyright (c) 2023 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include <dali-test-suite-utils.h>
+#include <dali/dali.h>
+#include <dali/devel-api/adaptor-framework/window-system-devel.h>
+
+using namespace Dali;
+
+void utc_dali_window_system_startup(void)
+{
+ test_return_value = TET_UNDEF;
+}
+
+void utc_dali_window_system_cleanup(void)
+{
+ test_return_value = TET_PASS;
+}
+
+int UtcDaliWindowSystemGetScreenSizeP(void)
+{
+ try
+ {
+ int width, height;
+ DevelWindowSystem::GetScreenSize(width, height);
+
+ // The width and height refer ecore_x_screen_size_get defined in utc-Dali-Window.cpp.
+ DALI_TEST_CHECK((width == 100) && (height == 100));
+ }
+ catch(...)
+ {
+ DALI_TEST_CHECK(false);
+ }
+
+ END_TEST;
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright (c) 2023 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// INTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/window-system-devel.h>
+#include <dali/internal/window-system/common/window-system.h>
+
+namespace Dali
+{
+namespace DevelWindowSystem
+{
+void GetScreenSize(int32_t& width, int32_t& height)
+{
+ Dali::Internal::Adaptor::WindowSystem::GetScreenSize(width, height);
+}
+
+} // namespace DevelWindowSystem
+
+} // namespace Dali
--- /dev/null
+#ifndef DALI_WINDOW_SYSTEM_DEVEL_H
+#define DALI_WINDOW_SYSTEM_DEVEL_H
+
+/*
+ * Copyright (c) 2023 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// EXTERNAL INCLUDES
+#include <cstdint>
+
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
+namespace Dali
+{
+
+namespace DevelWindowSystem
+{
+
+/**
+ * @brief Get the screen size.
+ *
+ * This function gets the screen size.
+ *
+ * @param[out] width The width of the screen
+ * @param[out] height The height of the screen
+ */
+DALI_ADAPTOR_API void GetScreenSize(int32_t& width, int32_t& height);
+
+} // namespace DevelWindowSystem
+
+} // namespace Dali
+
+#endif // DALI_WINDOW_SYSTEM_DEVEL_H
${adaptor_devel_api_dir}/adaptor-framework/offscreen-application.cpp
${adaptor_devel_api_dir}/adaptor-framework/offscreen-window.cpp
${adaptor_devel_api_dir}/adaptor-framework/camera-player.cpp
+ ${adaptor_devel_api_dir}/adaptor-framework/window-system-devel.cpp
)
${adaptor_devel_api_dir}/adaptor-framework/offscreen-window.h
${adaptor_devel_api_dir}/adaptor-framework/camera-player.h
${adaptor_devel_api_dir}/adaptor-framework/camera-player-plugin.h
+ ${adaptor_devel_api_dir}/adaptor-framework/window-system-devel.h
)