From: Hwankyu Jhun Date: Thu, 13 Dec 2018 23:52:31 +0000 (+0900) Subject: [Applications][Non-ACR][Change test application] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F195468%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [Applications][Non-ACR][Change test application] Change-Id: I351522dd4f31c095754640338afbbc0cef58a86d Signed-off-by: Hwankyu Jhun --- diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln deleted file mode 100755 index f9097d3a1..000000000 --- a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28010.2050 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reply", "Reply\Reply.csproj", "{7ABD6289-AA0F-4268-A633-8B54C1759E4D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7ABD6289-AA0F-4268-A633-8B54C1759E4D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {297EF507-9B6A-48C8-BCA8-700F28D05D7D} - EndGlobalSection -EndGlobal diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs deleted file mode 100755 index 86b1807da..000000000 --- a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using Tizen; -using Tizen.Applications; -using Tizen.NUI; -using Tizen.NUI.BaseComponents; - -namespace Reply -{ - class Program : NUIApplication - { - static private string LogTag = "Reply"; - - protected override void OnCreate() - { - base.OnCreate(); - Initialize(); - Log.Info(LogTag, "OnCreate()"); - } - - protected override void OnAppControlReceived(AppControlReceivedEventArgs e) - { - base.OnAppControlReceived(e); - Log.Info(LogTag, "OnAppControlReceived()"); - if (e.ReceivedAppControl.IsReplyRequest == true) - { - AppControl replyRequest = new AppControl(); - e.ReceivedAppControl.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded); - Log.Info(LogTag, "ReplyToLaunchRequest()"); - } - } - - protected override void OnResume() - { - base.OnResume(); - Log.Info(LogTag, "OnResume()"); - } - - protected override void OnPause() - { - base.OnPause(); - Log.Info(LogTag, "OnPause()"); - } - - protected override void OnTerminate() - { - base.OnTerminate(); - Log.Info(LogTag, "OnTerminte()"); - } - - void Initialize() - { - Window.Instance.KeyEvent += OnKeyEvent; - - TextLabel text = new TextLabel("Hello Tizen NUI World"); - text.HorizontalAlignment = HorizontalAlignment.Center; - text.VerticalAlignment = VerticalAlignment.Center; - text.TextColor = Color.Blue; - text.PointSize = 12.0f; - text.HeightResizePolicy = ResizePolicyType.FillToParent; - text.WidthResizePolicy = ResizePolicyType.FillToParent; - Window.Instance.GetDefaultLayer().Add(text); - - Animation animation = new Animation(2000); - animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500); - animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000); - animation.Looping = true; - animation.Play(); - } - - public void OnKeyEvent(object sender, Window.KeyEventArgs e) - { - if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape")) - { - Exit(); - } - } - - static void Main(string[] args) - { - var app = new Program(); - app.Run(args); - } - } -} diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj deleted file mode 100755 index 5f980d92d..000000000 --- a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/Reply.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - Exe - netcoreapp2.0 - - - - portable - - - None - - - - - - - - - - Runtime - - - - - - diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png deleted file mode 100755 index 9f3cb9860..000000000 Binary files a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/shared/res/Reply.png and /dev/null differ diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml deleted file mode 100755 index a8ca162d6..000000000 --- a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/Reply/Reply/tizen-manifest.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Reply.png - - - diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln new file mode 100755 index 000000000..05179c4fe --- /dev/null +++ b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2050 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Reply", "Reply\Reply.csproj", "{A26FBF66-9161-4969-B91E-3A4EA42C34B8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A26FBF66-9161-4969-B91E-3A4EA42C34B8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {773286B3-CD92-42D0-8FEC-DCA906EF4794} + EndGlobalSection +EndGlobal diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj new file mode 100755 index 000000000..0595f8da7 --- /dev/null +++ b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply.csproj @@ -0,0 +1,29 @@ + + + + + Exe + netcoreapp2.0 + + + + portable + + + None + + + + + + + + + + + Runtime + + + + + diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs new file mode 100755 index 000000000..e708f6209 --- /dev/null +++ b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/Reply_App.cs @@ -0,0 +1,96 @@ +using Tizen.Applications; +using ElmSharp; +using Tizen; + +namespace Reply +{ + class App : CoreUIApplication + { + static private string LogTag = "Reply"; + + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); + Log.Info(LogTag, "OnCreate()"); + } + + protected override void OnAppControlReceived(AppControlReceivedEventArgs e) + { + base.OnAppControlReceived(e); + Log.Info(LogTag, "OnAppControlReceived()"); + if (e.ReceivedAppControl.IsReplyRequest == true) + { + AppControl replyRequest = new AppControl(); + e.ReceivedAppControl.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded); + Log.Info(LogTag, "ReplyToLaunchRequest()"); + } + } + + protected override void OnResume() + { + base.OnResume(); + Log.Info(LogTag, "OnResume()"); + } + + protected override void OnPause() + { + base.OnPause(); + Log.Info(LogTag, "OnPause()"); + } + + protected override void OnTerminate() + { + base.OnTerminate(); + Log.Info(LogTag, "OnTerminte()"); + } + + void Initialize() + { + Window window = new Window("ElmSharpApp") + { + AvailableRotations = DisplayRotation.Degree_0 | DisplayRotation.Degree_180 | DisplayRotation.Degree_270 | DisplayRotation.Degree_90 + }; + window.BackButtonPressed += (s, e) => + { + Exit(); + }; + window.Show(); + + var box = new Box(window) + { + AlignmentX = -1, + AlignmentY = -1, + WeightX = 1, + WeightY = 1, + }; + box.Show(); + + var bg = new Background(window) + { + Color = Color.White + }; + bg.SetContent(box); + + var conformant = new Conformant(window); + conformant.Show(); + conformant.SetContent(bg); + + var label = new Label(window) + { + Text = "Hello, Tizen", + Color = Color.Black + }; + label.Show(); + box.PackEnd(label); + } + + static void Main(string[] args) + { + Elementary.Initialize(); + Elementary.ThemeOverlay(); + App app = new App(); + app.Run(args); + } + } +} diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png new file mode 100755 index 000000000..9f3cb9860 Binary files /dev/null and b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/shared/res/Reply.png differ diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml new file mode 100755 index 000000000..a8ca162d6 --- /dev/null +++ b/tct-suite-vs/Resource/Tizen.Applications.Tests/code/org.tizen.example.Reply/Reply/tizen-manifest.xml @@ -0,0 +1,15 @@ + + + + + + Reply.png + + + diff --git a/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk index 8d4ceca69..ab35ee239 100755 Binary files a/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.Applications.Tests/org.tizen.example.Reply-1.0.0.tpk differ