platform/core/csapi/tizenfx.git
4 years ago[Build] change nitool to dotnettool (#2039)
Hyungju Lee [Thu, 24 Sep 2020 08:32:46 +0000 (17:32 +0900)]
[Build] change nitool to dotnettool (#2039)

Change-Id: I8bd92b02cd1d9f6746fb2aef8a1a4b44dd017765

Co-authored-by: TizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com>
4 years ago[Build] Set TFM supported by Tizen to vconf (#2026)
JongHeonChoi [Thu, 24 Sep 2020 08:14:36 +0000 (17:14 +0900)]
[Build] Set TFM supported by Tizen to vconf (#2026)

* Added to update TFM with maketfm.py

Co-authored-by: Hyungju Lee <leee.lee@samsung.com>
4 years ago[Sensor] Change tizen feature of AutoRotationSensor (#2037)
MuHong Byun [Thu, 24 Sep 2020 08:00:34 +0000 (17:00 +0900)]
[Sensor] Change tizen feature of AutoRotationSensor (#2037)

Signed-off-by: MuHong Byun <mh.byun@samsung.com>
4 years ago[NUI] Fix ScrollableBase maxScrollDistance issue (#2051)
huiyueun [Thu, 24 Sep 2020 06:19:14 +0000 (15:19 +0900)]
[NUI] Fix ScrollableBase maxScrollDistance issue (#2051)

[TDAF-1221] issue

1. If the size of ScrollableBase is changed, maxScrollDistance update is required.
  maxScrollDistance: Maximum range that ScrollableBase can scroll
2. Change maxScrollDistance by calling OnSCrollingChildRelayout at OnMeasure when size changes.
3. Currently, maxScrollDistance is updated based on ContentContainer size only.
  Change this to be modified even if the ScrollableBase size is changed

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
4 years agoRevert "[NUI] Add ControlStateTypeConverter for xaml (#2002)" (#2047)
huiyueun [Wed, 23 Sep 2020 09:21:18 +0000 (18:21 +0900)]
Revert "[NUI] Add ControlStateTypeConverter for xaml (#2002)" (#2047)

This reverts commit 87dc2534f824b8c35a6961a32a15dfd3a85131a5.

4 years ago[NUI] Modify preload (#2046)
huiyueun [Wed, 23 Sep 2020 09:03:07 +0000 (18:03 +0900)]
[NUI] Modify preload (#2046)

delete to precreate NUIApplication on NUI.
but Application class is created in dali-backend

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
4 years ago[NUI] correct logical operator in enum validation (#2045)
YeongJong Lee [Wed, 23 Sep 2020 07:47:32 +0000 (16:47 +0900)]
[NUI] correct logical operator in enum validation (#2045)

Test Code:
```cs
FlexLayout flexLayout = new FlexLayout();
flexLayout.WrapType = FlexLayout.FlexWrapType.Wrap;
```

Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
4 years ago[NUI] Version update : nui-21930 (#2044)
dongsug-song [Wed, 23 Sep 2020 04:31:03 +0000 (13:31 +0900)]
[NUI] Version update : nui-21930 (#2044)

4 years ago[NUI] add enum validation for Grid,FlexLayout (#2008)
YeongJong Lee [Wed, 23 Sep 2020 04:16:00 +0000 (13:16 +0900)]
[NUI] add enum validation for Grid,FlexLayout (#2008)

This validation check is added by TCT reviewer request.

Co-authored-by: TizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Add ControlStateTypeConverter for xaml (#2002)
YeongJong Lee [Wed, 23 Sep 2020 03:24:33 +0000 (12:24 +0900)]
[NUI] Add ControlStateTypeConverter for xaml (#2002)

* [NUI] rename from StateValuePair to SelectorItem

* [NUI] add ControlStateTypeConverter for xaml

Custom ConstrolState is now available in xaml.

 ### Sample
XamlPage.xaml
```xaml
<View x:Class="NUIXamlTemplate1.XamlPage"
      xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      xmlns:c="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
      xmlns:local="clr-namespace:NUIXamlTemplate1">
    <local:MyButton x:Name="MyButton">
        <x:Arguments>
            <c:ButtonStyle Size="100, 100">
                <c:ButtonStyle.BackgroundColor>
                    <Selector x:TypeArguments="Color" Normal="1, 1, 0, 1" Pressed="0.77, 0.88, 1, 1" Disabled="0.88, 0.88, 0.88, 1">
                        <SelectorItem x:TypeArguments="Color" State="MyState" Value="0,0,1,1" />
                        <SelectorItem x:TypeArguments="Color" State="MyState,Focused" Value="0,1,1,1" />
                    </Selector>
                </c:ButtonStyle.BackgroundColor>
            </c:ButtonStyle>
        </x:Arguments>
    </local:MyButton>
</View>
```

MyButton.cs
```cs
public class MyButton : Button
{
    public MyButton(ButtonStyle buttonStyle) : base(buttonStyle) {}
    public void SetControlState(ControlState s) => ControlState = s;
}
```

```cs
protected override void OnCreate()
{
    base.OnCreate();
    Window.Instance.BackgroundColor = new Color(227 / 255f, 255 / 255f, 227 / 255f, 1.0f);
    Window.Instance.KeyEvent += OnKeyEvent;

    View root = new View();
    root.WidthSpecification = LayoutParamPolicies.MatchParent;
    root.HeightSpecification = LayoutParamPolicies.MatchParent;
    root.Layout = new AbsoluteLayout();
    Window.Instance.GetDefaultLayer().Add(root);

    XamlPage xamlPage = new XamlPage();
    root.Add(xamlPage);

    ControlState MyState = ControlState.Create("MyState");

    Button button = new Button() { Position2D = new Position2D(100, 100) };
    bool flag = false;
    button.Clicked += (object sender, ClickedEventArgs e) =>
    {
        if (!flag)
        {
            xamlPage.MyButton.SetControlState(MyState);
            flag = true;
        }
        else
        {
            xamlPage.MyButton.SetControlState(ControlState.Focused + MyState);
            flag = false;
        }
    };
    root.Add(button);
}
```

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Deprecate the callback of OnTouch (#2000)
zhouleonlei [Wed, 23 Sep 2020 03:17:23 +0000 (11:17 +0800)]
[NUI] Deprecate the callback of OnTouch (#2000)

* [NUI] Hide the callback of OnTouch

* [NUI] Change to Deprecated

* [NUI] Change Obsolete words

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Deprecate Adaptor class, ACR-373 (#1997)
dongsug-song [Wed, 23 Sep 2020 03:12:59 +0000 (12:12 +0900)]
[NUI] Deprecate Adaptor class, ACR-373 (#1997)

4 years ago[NUI] Update MeasureCallback interface for latest Dali::Toolkit (#2043)
dongsug-song [Wed, 23 Sep 2020 03:06:06 +0000 (12:06 +0900)]
[NUI] Update MeasureCallback interface for latest Dali::Toolkit (#2043)

Making MeasureCallback return a struct is causing the .NET runtime on
Windows 10 messes up with argument values. We changed the signature of
MeasureCallback on Dali::Toolkit to make the return value be an out
parameter.

The detailed explanation of what's the problem can be found at [1].

Moreover, we declare MeasureCallback as Cdecl, as it is declared this
way in the C++ header file.

[1] https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/242665/

Co-authored-by: Wander Lairson Costa <wander.lairson@gmail.com>
4 years ago[NUI] Fix fitting mode issue of ImageView (#1977)
Xianbing Teng [Wed, 23 Sep 2020 02:49:20 +0000 (10:49 +0800)]
[NUI] Fix fitting mode issue of ImageView (#1977)

Co-authored-by: Xianbing Teng <reformed_beginner@outlook.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Fix ObjectDump can't output logs (#1964)
Xianbing Teng [Wed, 23 Sep 2020 02:36:10 +0000 (10:36 +0800)]
[NUI] Fix ObjectDump can't output logs (#1964)

Co-authored-by: Xianbing Teng <reformed_beginner@outlook.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Add Tizen.NUI.Binding into XAML namespace (#1950)
Xianbing Teng [Wed, 23 Sep 2020 02:31:33 +0000 (10:31 +0800)]
[NUI] Add Tizen.NUI.Binding into XAML namespace (#1950)

Co-authored-by: Xianbing Teng <reformed_beginner@outlook.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[Build] Fix build errors in github actions (#2041)
WonYoung Choi [Tue, 22 Sep 2020 23:58:39 +0000 (08:58 +0900)]
[Build] Fix build errors in github actions (#2041)

* Update build-branches.yml

* Update build-pull-request.yml

4 years ago[SystemSettings] Add lock for EventHandler (#2036)
JinWang An [Tue, 22 Sep 2020 06:18:02 +0000 (15:18 +0900)]
[SystemSettings] Add lock for EventHandler (#2036)

* [SystemSettings] Add lock for EventHandler

Signed-off-by: JinWang An <jinwang.an@samsung.com>
* Fix indent for Lockobj

Signed-off-by: JinWang An <jinwang.an@samsung.com>
4 years ago[Internal] Change API ref for Inspections (#2035)
kkuchciak [Mon, 21 Sep 2020 22:46:48 +0000 (00:46 +0200)]
[Internal] Change API ref for Inspections (#2035)

Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
4 years ago[NUI] Add Transition Animation Effects (#2006)
huiyueun [Mon, 21 Sep 2020 05:26:12 +0000 (14:26 +0900)]
[NUI] Add Transition Animation Effects (#2006)

* [NUI] Add Seamless transition

Add NUIFrameBroker & NUIFrameProvider

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* fix commend

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* modify to provider interface

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* Delete iconify

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* Modify FrameBroker error code type

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* Update FrameBrokerBaseErrorFactory.cs

* Update SafeFrameBrokerHandle.cs

* Update FrameProviderErrorFactory.cs

* Update Interop.FrameBroker.cs

* Update Interop.FrameProvider.cs

* Update Interop.Libraries.cs

* Update SafeFrameProviderHandle.cs

* Update and rename DefaultAnimationBroker.cs to DefaultFrameBroker.cs

* Update TransitionOptions.cs

* Update NUIApplication.cs

* Update TransitionOptions.cs

* Update TransitionOptions.cs

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Switch do not animate on selection when it is not on Window (#2032)
Jiyun Yang [Mon, 21 Sep 2020 05:01:34 +0000 (14:01 +0900)]
[NUI] Switch do not animate on selection when it is not on Window (#2032)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
4 years ago[NUI] Make Scrollable finish when Gesture.StateType is Cancelled (#2029)
bshsqa [Fri, 18 Sep 2020 06:48:29 +0000 (15:48 +0900)]
[NUI] Make Scrollable finish when Gesture.StateType is Cancelled (#2029)

- Current implementation, the scroll of ScrollableBase will be finished only when Gesture.StateType is Finished.
 - However, by the hw, it can be Cancelled.

Signed-off-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
Co-authored-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
4 years ago[NUI]Add static constructor to confirm the static dictionary will be created befor...
AdunFang [Fri, 18 Sep 2020 05:54:26 +0000 (13:54 +0800)]
[NUI]Add static constructor to confirm the static dictionary will be created befor Constructor (#2025)

Co-authored-by: Fang Xiaohui <xiaohui fang>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Add experimental API to Pagination (#2027)
Jiyun Yang [Fri, 18 Sep 2020 05:47:40 +0000 (14:47 +0900)]
[NUI] Add experimental API to Pagination (#2027)

Add an API LastIndicatorImageUrl.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[Bluetooth][Non-ACR] Add the exception handling logic (#2021)
Wootak Jung [Fri, 18 Sep 2020 05:39:17 +0000 (14:39 +0900)]
[Bluetooth][Non-ACR] Add the exception handling logic (#2021)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years ago[Docs] Add toc files for internal modules (#2024)
WonYoung Choi [Fri, 18 Sep 2020 00:11:53 +0000 (09:11 +0900)]
[Docs] Add toc files for internal modules (#2024)

4 years ago[Docs] Create index.md in internals/api
TizenAPI-Bot [Thu, 17 Sep 2020 10:58:20 +0000 (19:58 +0900)]
[Docs] Create index.md in internals/api

4 years ago[Docs] Remove unnecessary docs directory (#2023)
WonYoung Choi [Thu, 17 Sep 2020 10:40:52 +0000 (19:40 +0900)]
[Docs] Remove unnecessary docs directory (#2023)

* [Docs] Add initial docs for internal modules

* [Docs] Remove unnecessary docs files

4 years ago[ElmSharp] Fix Transit.Go to start transition immediately (#2014)
jaehyun0cho [Thu, 17 Sep 2020 07:26:13 +0000 (16:26 +0900)]
[ElmSharp] Fix Transit.Go to start transition immediately (#2014)

Transit.Go calls elm_transit_go_in with interval.
elm_transit_go_in uses timer so it does not start transition immediately
although interval is 0.

To start transition immediately without interval, Transit.Go is fixed to
call elm_transit_go.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Kangho Hur <rookiejava@gmail.com>
4 years ago[ElmSharp] Fix elm_transit_paused_get to return boolean correctly (#2022)
jaehyun0cho [Thu, 17 Sep 2020 06:53:40 +0000 (15:53 +0900)]
[ElmSharp] Fix elm_transit_paused_get to return boolean correctly (#2022)

Interop.Elementary.elm_transit_paused_get always returns true although
elm_transit_paused_get actually returns EINA_FALSE.

Since C and C# use 4 bytes for boolean but C++ uses 1 byte for boolean,
this may cause that the boolean return value is not passed correctly.

To resolve this issue, [return: MarshalAs(UnmanagedType.U1)] is inserted
to the declaration of elm_transit_paused_get in Interop.Elementary.cs.

This patch refers 98c70851b1b1d640295768e6050c90ed61889e7c

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
4 years agoRevert "[NUI] Fix tct fail issues (#2012)" (#2017)
dongsug-song [Wed, 16 Sep 2020 08:30:43 +0000 (17:30 +0900)]
Revert "[NUI] Fix tct fail issues (#2012)" (#2017)

This reverts commit 1f3c2b0ed05f80f6c3985eefcd0ee3c72f2f7987.

4 years ago[NUI] remove StateValueCollection from Selector (#1975)
YeongJong Lee [Wed, 16 Sep 2020 07:44:00 +0000 (16:44 +0900)]
[NUI] remove StateValueCollection from Selector (#1975)

State-Value pair is now added to Selector.StateValueList without
duplicate check.

You need to use Selector.StateValueList when custom state-value pair is added
to Selector. and it is now able to add custom state and pre-defined
state in the same initializer.

Before:
```
Selector<string> textSelector = new Selector<string>()
{
    Normal = "Defalut",
    { ControlState.Pressed, "Pressed!" }, // build error
    { ControlState.Focused, "Focused!" }  // build error
};
```

After:
```
Selector<string> textSelector = new Selector<string>()
{
    Normal = "Default!",
    StateValueList =
    {
        { ControlState.Pressed, "Pressed!" },
        { ControlState.Focused, "Focused!" }
    }
};
```

Also, this patch fixes a bunch of CA2227(Collection properties should be read
only) warnings.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] add Set/GetAttachedValue method (#2007)
YeongJong Lee [Wed, 16 Sep 2020 07:39:19 +0000 (16:39 +0900)]
[NUI] add Set/GetAttachedValue method (#2007)

This will fix CA1062(Validate arguments of public methods)

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Fix Svace issues (#2018)
Seoyeon2Kim [Wed, 16 Sep 2020 07:21:33 +0000 (16:21 +0900)]
[NUI] Fix Svace issues (#2018)

- To clarify null check, modify conditionals clearly like this
 : if (a != null)

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
4 years ago[NUI] remove redundant interanl get/set methods in FlexLayout (#2009)
YeongJong Lee [Wed, 16 Sep 2020 05:27:01 +0000 (14:27 +0900)]
[NUI] remove redundant interanl get/set methods in FlexLayout (#2009)

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[Build] Install Tizen.Peripheral to all profiles temporarily (#2016)
WonYoung Choi [Wed, 16 Sep 2020 00:16:50 +0000 (09:16 +0900)]
[Build] Install Tizen.Peripheral to all profiles temporarily (#2016)

4 years ago[NUI] revert #2012 and add #1983 again by review of #2012 (#2015)
dongsug-song [Tue, 15 Sep 2020 13:05:59 +0000 (22:05 +0900)]
[NUI] revert #2012 and add #1983 again by review of #2012 (#2015)

* Revert "[NUI] Fix tct fail issues (#2012)"

This reverts commit 1f3c2b0ed05f80f6c3985eefcd0ee3c72f2f7987.

* Revert "[NUI] Change parent class of Hover, Key, Wheel and Gesture to BaseHandle (#2001)"

This reverts commit f57729e8b0e69dbab9864ff8248e9d86584072ad.

4 years agoAdd Tizen.Peripheral API (#1939)
xerrni [Tue, 15 Sep 2020 10:14:22 +0000 (12:14 +0200)]
Add Tizen.Peripheral API (#1939)

TizenFX integration prepared by Wiktor Gerstenstein,
Ernest Borowski

Original authors:
- Jakub Sobczuk
- Michal Lesniak
- Michal Kolodziejski
- Marcin Romaniuk
- Kamil Stepaniuk

Co-authored-by: Wiktor Gerstenstein <w.gerstenste@samsung.com>
4 years agoRevert "[NUI] Refactoring Theme and StyleManager (#1981)" (#2013)
Jiyun Yang [Tue, 15 Sep 2020 07:39:52 +0000 (16:39 +0900)]
Revert "[NUI] Refactoring Theme and StyleManager (#1981)" (#2013)

This reverts commit 3b9f27432d37bb9957f644f4b45d7bacc4914c10.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Fix tct fail issues (#2012)
dongsug-song [Tue, 15 Sep 2020 07:30:52 +0000 (16:30 +0900)]
[NUI] Fix tct fail issues (#2012)

* Revert "[NUI] Adding VertexBuffer to replace PropertyBuffer (#1983)"

This reverts commit 114d09295e8deedbfd31ff825164f0e8a6defe9a.

* Revert "[NUI] Change parent class of Hover, Key, Wheel and Gesture to BaseHandle (#2001)"

This reverts commit f57729e8b0e69dbab9864ff8248e9d86584072ad.

4 years ago[Build] Fix directory permissions of csapi-tizen-full.rpm (#2011)
WonYoung Choi [Tue, 15 Sep 2020 03:53:40 +0000 (12:53 +0900)]
[Build] Fix directory permissions of csapi-tizen-full.rpm (#2011)

4 years ago[Bluetooth][Non-ACR] Define Interop callback to global variable (#2005)
Wootak Jung [Mon, 14 Sep 2020 23:58:17 +0000 (08:58 +0900)]
[Bluetooth][Non-ACR] Define Interop callback to global variable (#2005)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years ago[NUI] Adding VertexBuffer to replace PropertyBuffer (#1983)
DavidIanSteele [Mon, 14 Sep 2020 12:33:28 +0000 (13:33 +0100)]
[NUI] Adding VertexBuffer to replace PropertyBuffer (#1983)

* [NUI] Adding VertexBuffer to replace PropertyBuffer

Native PropertyBuffer has been renamed to VertexBuffer.
Creating a new object to mirror this name change.

Changed SetData API to take an array of structs, and create
an unmanaged buffer before passing it to native side.

Signed-off-by: David Steele <david.steele@samsung.com>
* Update src/Tizen.NUI/src/public/Geometry.cs

Co-authored-by: Marcin Macias <40991900+m-macias@users.noreply.github.com>
* Update src/Tizen.NUI/src/public/VertexBuffer.cs

Co-authored-by: Marcin Macias <40991900+m-macias@users.noreply.github.com>
* Update VertexBuffer.cs

Fixed the tizen version in the documentation

* Update Geometry.cs

Changed if() throw style.

Co-authored-by: Marcin Macias <40991900+m-macias@users.noreply.github.com>
Co-authored-by: Adeel Kazmi <adeel.kazmi@samsung.com>
4 years ago[NUI] Change parent class of Hover, Key, Wheel and Gesture to BaseHandle (#2001)
Richard Huang [Mon, 14 Sep 2020 12:25:09 +0000 (13:25 +0100)]
[NUI] Change parent class of Hover, Key, Wheel and Gesture to BaseHandle (#2001)

4 years ago[NUI] enhance FlexLayout documentation (#2004)
YeongJong Lee [Mon, 14 Sep 2020 07:06:38 +0000 (16:06 +0900)]
[NUI] enhance FlexLayout documentation (#2004)

4 years ago[NUI] Create valid handle from Gesture constructors (#1996)
Richard Huang [Thu, 10 Sep 2020 10:25:16 +0000 (11:25 +0100)]
[NUI] Create valid handle from Gesture constructors (#1996)

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] add support for parameterized constructor in xaml (#1998)
YeongJong Lee [Thu, 10 Sep 2020 05:15:56 +0000 (14:15 +0900)]
[NUI] add support for parameterized constructor in xaml (#1998)

In xaml, root element is now able to be instantiated by parameterized
constructor.

 ### Sample
```cs
namespace NUIXamlTemplate1
{
    public class TestClass
    {
        public TestClass([Parameter(nameof(PropertyForConstructor))] string propertyForConstructor)
        {
            PropertyForConstructor = propertyForConstructor;
        }

        public string PropertyForConstructor { get; }
    }
}

```

```xaml
<local:TestClass
    xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
    xmlns:local="clr-namespace:NUIXamlTemplate1;assembly=NUIXamlTemplate1"
    PropertyForConstructor="test property"
    >

</local:TestClass>
```

```cs
protected override void OnCreate()
{
    base.OnCreate();
    Window.Instance.KeyEvent += OnKeyEvent;

    View root = new View();
    Window.Instance.GetDefaultLayer().Add(root);

    TestClass testClass;
    using (var reader = XmlReader.Create(Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/TestXaml.xaml"))
    {
        testClass = XamlLoader.Create(reader) as TestClass;
    }
    string property = testClass.PropertyForConstructor;   //"test property"
}
```

4 years ago[MachineLearning.Inference] Fix the bug for double type of GetValue<T> (#1995)
Sangjung Woo [Tue, 8 Sep 2020 11:50:17 +0000 (20:50 +0900)]
[MachineLearning.Inference] Fix the bug for double type of GetValue<T> (#1995)

This patch fixes the bug for double type of GetValue<T> method.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
4 years ago[NUI] Version update (#1994)
dongsug-song [Tue, 8 Sep 2020 01:19:15 +0000 (10:19 +0900)]
[NUI] Version update (#1994)

- DALi2-1.9.28 matched

4 years ago[NUI] Fix Switch bugs (#1984)
Jiyun Yang [Mon, 7 Sep 2020 11:30:58 +0000 (20:30 +0900)]
[NUI] Fix Switch bugs (#1984)

* Change ControlState propagation sequence
* Remove setting border property in default switch style

This fixes an error of the following code,

```
protected override void OnCreate()
{
  //...
  var button = new Switch();
  button.SelectedChanged += OnSelected;
  root.Add(button);
}

void OnSelected(object target, SelectedChangedEventArgs args)
{
  if (args.IsSelected)
  {
     (target as Switch).IsSelected = false;
  }
}
```

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
4 years ago[NUI] Update Key, Hover and Wheel code after event pimpling in DALi native (#1989)
Richard Huang [Mon, 7 Sep 2020 09:56:44 +0000 (10:56 +0100)]
[NUI] Update Key, Hover and Wheel code after event pimpling in DALi native (#1989)

Co-authored-by: JoogabYun <40262755+JoogabYun@users.noreply.github.com>
4 years ago[NUI] Sync the director number with the csharp-binder (#1992)
JoogabYun [Mon, 7 Sep 2020 09:47:22 +0000 (18:47 +0900)]
[NUI] Sync the director number with the csharp-binder (#1992)

4 years ago[NUI] Refactoring Theme and StyleManager (#1981)
Jiyun Yang [Mon, 7 Sep 2020 07:12:02 +0000 (16:12 +0900)]
[NUI] Refactoring Theme and StyleManager (#1981)

* Revert "[NUI] Revert patch about StyleManager (#1970)"

This reverts commit 8a611b32c8a98672740e013cbde4932139b649d0.

* [NUI] Fix bugs in #1910 (ThemeManager)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
4 years ago[NUI] Fix WidthSpecification and HeightSpecification setting issue. (#1982)
bshsqa [Mon, 7 Sep 2020 06:22:18 +0000 (15:22 +0900)]
[NUI] Fix WidthSpecification and HeightSpecification setting issue. (#1982)

- Currently, new Size2D is created when one of the WidthSpecification or HeightSpecification is set.
 - Then, the Size2D has incomplete value until the latter one is also entered.
 - e.g. if the size is (500, 500), after just WidthSpecification is entered the Size2D is (500, -2) until HeightSpecification will be entered.
 - (-2 is default negative value that notifing the value is still not set).

 - But, in the property setter of Size2D in View, the value is transfered to the Native API.
 - And the incomplete value make crash in Native API.
 - Because when the latter is entered, we just set Size2D.Width or Size2D.Height not to create Size2D itself. And, exact Size2D is not transfered to the Native.

 - So, this patch postpone to create Size2D utill both WidthSpecification and HeightSpecification are all entered.
 - This create new Size2D whenever new WidthSpecification or HeightSpecification is entered, and it transfers them to the Native well.

Signed-off-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
Co-authored-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[Camera] Fix ObjectDisposedException bug (#1991)
hsgwon [Mon, 7 Sep 2020 03:33:05 +0000 (12:33 +0900)]
[Camera] Fix ObjectDisposedException bug (#1991)

4 years ago[NUI] Removing ContextLoss bindings and internal API (#1974)
DavidIanSteele [Fri, 4 Sep 2020 14:46:59 +0000 (15:46 +0100)]
[NUI] Removing ContextLoss bindings and internal API (#1974)

Co-authored-by: Adeel Kazmi <adeel.kazmi@samsung.com>
4 years ago[NUI] Remove Internal and unused methods in Adaptor (#1985)
Adeel Kazmi [Fri, 4 Sep 2020 14:41:35 +0000 (15:41 +0100)]
[NUI] Remove Internal and unused methods in Adaptor (#1985)

4 years ago[NUI] Removed OnHoverEvent() and OnWheelEvent() (#1986)
Adam Bialogonski [Fri, 4 Sep 2020 14:37:01 +0000 (15:37 +0100)]
[NUI] Removed OnHoverEvent() and OnWheelEvent() (#1986)

Co-authored-by: adam.b <adam.b@samsung.com>
4 years agoAdd logs (#1980)
chleun-moon [Fri, 4 Sep 2020 03:37:44 +0000 (12:37 +0900)]
Add logs (#1980)

4 years ago[NUI] Fix exception error when sub Window is disposed (#1978)
dongsug-song [Fri, 4 Sep 2020 02:51:04 +0000 (11:51 +0900)]
[NUI] Fix exception error when sub Window is disposed (#1978)

- https://code.sec.samsung.net/jira/browse/GRE-2009
- Add null check for Layers and LayoutContainer
- Add sample and test case for sub Window's Dispose()

4 years ago[NUI] Fix NUIWidget View thread error message (#1976)
huiyueun [Fri, 4 Sep 2020 02:43:06 +0000 (11:43 +0900)]
[NUI] Fix NUIWidget View thread error message (#1976)

Register current thread

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Open new FlexLayout APIs (#1880)
neostom432 [Fri, 4 Sep 2020 01:31:42 +0000 (10:31 +0900)]
[NUI] Open new FlexLayout APIs (#1880)

static Tizen.NUI.FlexLayout.AlignmentType GetFlexAlignmentSelf(Tizen.NUI.BaseComponents.View view)
static Tizen.NUI.FlexLayout.PositionType GetFlexPositionType(Tizen.NUI.BaseComponents.View view)
static float GetFlexAspectRatio(Tizen.NUI.BaseComponents.View view)
static float GetFlexBasis(Tizen.NUI.BaseComponents.View view)
static float GetFlexShrink(Tizen.NUI.BaseComponents.View view)
static float GetFlexGrow(Tizen.NUI.BaseComponents.View view)
static void SetFlexAlignmentSelf(Tizen.NUI.BaseComponents.View view)
static void SetFlexPositionType(Tizen.NUI.BaseComponents.View view)
static void SetFlexAspectRatio(Tizen.NUI.BaseComponents.View view)
static void SetFlexBasis(Tizen.NUI.BaseComponents.View view)
static void SetFlexShrink(Tizen.NUI.BaseComponents.View view)
static void SetFlexGrow(Tizen.NUI.BaseComponents.View view)

enum FlexLayout.PositionType
  Relative
  Absolute

Co-authored-by: neostom432 <minho.sun@samsung.com>
Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
Co-authored-by: YeongJong Lee <cleanlyj@naver.com>
4 years agoFix privilege (#1979)
chleun-moon [Fri, 4 Sep 2020 01:12:15 +0000 (10:12 +0900)]
Fix privilege (#1979)

4 years ago[NUI] Add OnSceneConnection and OnSceneDisconnection methods in NUI CustomView (...
Richard Huang [Thu, 3 Sep 2020 11:02:00 +0000 (12:02 +0100)]
[NUI] Add OnSceneConnection and OnSceneDisconnection methods in NUI CustomView (#1955)

Co-authored-by: Adeel Kazmi <adeel.kazmi@samsung.com>
4 years ago[NUI] Add KeyInputFocus property to View (#1969)
Seoyeon2Kim [Thu, 3 Sep 2020 06:40:28 +0000 (15:40 +0900)]
[NUI] Add KeyInputFocus property to View (#1969)

- KeyInputFocus is to receive key events to View.
- This property is originally public on DALi package,
 so to use it in NUI app, it should be supplied even as hidden API.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
4 years ago[NUI] Add GLWindow (#1945)
dkdk-ryu [Thu, 3 Sep 2020 06:19:14 +0000 (15:19 +0900)]
[NUI] Add GLWindow (#1945)

GLWindow allows you to render scenes with OpenGL ES.

4 years ago[NUI] Fix Components.Switch Thumb animation defect (#1973)
dongsug-song [Wed, 2 Sep 2020 08:22:18 +0000 (17:22 +0900)]
[NUI] Fix Components.Switch Thumb animation defect (#1973)

- Fix https://code.sec.samsung.net/jira/browse/TDAF-1171
- When the switch thumb is animated, sometimes it's position is fixed so stucked in the middle of track
- Change EndAction of animation as StopFinal

4 years ago[Internal] Add Tizen.Inspections internal API (#1933)
kkuchciak [Wed, 2 Sep 2020 08:14:21 +0000 (10:14 +0200)]
[Internal] Add Tizen.Inspections internal API (#1933)

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
4 years agoRevert "[NUI] Add Selector constructor with SelectorChangedCallback internally (...
jaehyun0cho [Wed, 2 Sep 2020 06:42:20 +0000 (15:42 +0900)]
Revert "[NUI] Add Selector constructor with SelectorChangedCallback internally (#1862)" (#1972)

This reverts commit 8527701bf57a40fa56a96378b962bd1ca3f10d90.

Setters of Color class properties (i.e. R, G, B, A) are going to be
deprecated.

Like Color class does, setters of Selector State are going to be
deprecated instead of adding constructor with SelectorChangedCallback.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
4 years ago[NUI] Version update (#1971)
dongsug-song [Wed, 2 Sep 2020 03:15:41 +0000 (12:15 +0900)]
[NUI] Version update (#1971)

- DALi2-1.9.27 matched

4 years ago[NUI] Revert patch about StyleManager (#1970)
JoogabYun [Wed, 2 Sep 2020 02:43:59 +0000 (11:43 +0900)]
[NUI] Revert patch about StyleManager (#1970)

* Revert "[NUI] use auto-property initializer for StyleManager.ThemeMap (#1966)"

This reverts commit 6f647cecf8e11d232c6fc48af85a6662751f607d.

* Revert "[NUI] replace NUI.ISelectorItem with System.ICloneable (#1965)"

This reverts commit b0e274d1d3fca5387ca2554d2101f5a2247de227.

* Revert "[NUI] Refactoring Theme and StyleManager (#1910)"

This reverts commit ac1c95426e88d3dcbcb35e3ea11a4adf1678c748.

4 years ago[NUI] Updating PropertyBuffer interop (#1947)
DavidIanSteele [Wed, 2 Sep 2020 01:35:56 +0000 (02:35 +0100)]
[NUI] Updating PropertyBuffer interop (#1947)

Co-authored-by: JoogabYun <40262755+JoogabYun@users.noreply.github.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Update NUI after removing Window::ResizedSignal (#1949)
Richard Huang [Wed, 2 Sep 2020 01:28:32 +0000 (02:28 +0100)]
[NUI] Update NUI after removing Window::ResizedSignal (#1949)

Co-authored-by: JoogabYun <40262755+JoogabYun@users.noreply.github.com>
4 years agoFix wrong EntryPoint of SetPrivateSharing (#1968)
jusung-son [Tue, 1 Sep 2020 23:30:43 +0000 (08:30 +0900)]
Fix wrong EntryPoint of SetPrivateSharing (#1968)

Signed-off-by: Jusung Son <jusung07.son@samsung.com>
Co-authored-by: pjh9216 <jh9216.park@samsung.com>
4 years ago[NUI] use auto-property initializer for StyleManager.ThemeMap (#1966)
YeongJong Lee [Tue, 1 Sep 2020 10:34:14 +0000 (19:34 +0900)]
[NUI] use auto-property initializer for StyleManager.ThemeMap (#1966)

Code cleanup

4 years ago[NUI] replace NUI.ISelectorItem with System.ICloneable (#1965)
YeongJong Lee [Tue, 1 Sep 2020 10:26:15 +0000 (19:26 +0900)]
[NUI] replace NUI.ISelectorItem with System.ICloneable (#1965)

`Tizen.NUI.ISelectorItem` and `System.ICloneable` are exactly same
interface.

4 years ago[NUI]Add WatchView (#1960)
tscholb [Tue, 1 Sep 2020 07:24:22 +0000 (16:24 +0900)]
[NUI]Add WatchView (#1960)

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
Co-authored-by: hyunjushin <hyunjushin@samsung.com>
4 years ago[NUI] Refactoring Theme and StyleManager (#1910)
Jiyun Yang [Tue, 1 Sep 2020 02:32:37 +0000 (11:32 +0900)]
[NUI] Refactoring Theme and StyleManager (#1910)

* Introduce new Theme class that is similar to Dicrionary to support XAML load.
* Introduce ThemeManager to apply theme to the components.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
4 years agoFix status badges of README (#1961)
WonYoung Choi [Sun, 30 Aug 2020 00:32:40 +0000 (09:32 +0900)]
Fix status badges of README (#1961)

4 years ago[Packagemanager] Fix releasing callback information (#1959)
jeremy-jang [Fri, 28 Aug 2020 06:19:48 +0000 (15:19 +0900)]
[Packagemanager] Fix releasing callback information (#1959)

When installing multiple packages, callback information should be
released when all completed event received.

Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRevert "[NUI] Provide binding after WheelEvent class pimpling (#1927)" (#1956)
JoogabYun [Fri, 28 Aug 2020 02:17:24 +0000 (11:17 +0900)]
Revert "[NUI] Provide binding after WheelEvent class pimpling (#1927)" (#1956)

This reverts commit fb31cb7e5cd8d7ff50d74316227002d619940860.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years agoRevert "[NUI] Provide binding after HoverEvent class pimpling (#1917)" (#1957)
JoogabYun [Fri, 28 Aug 2020 02:11:11 +0000 (11:11 +0900)]
Revert "[NUI] Provide binding after HoverEvent class pimpling (#1917)" (#1957)

This reverts commit 86de072d0845bb610130f14e9e5d593c4faaa46d.

4 years ago[NUI] simplify code of LottieXXXStyle by using 'is' operator (#1935)
YeongJong Lee [Thu, 27 Aug 2020 10:34:32 +0000 (19:34 +0900)]
[NUI] simplify code of LottieXXXStyle by using 'is' operator (#1935)

Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: woohyun <woo_hyun0705@naver.com>
4 years ago[NUI] change amount of Notificaion step (#1930)
neostom432 [Thu, 27 Aug 2020 08:14:40 +0000 (17:14 +0900)]
[NUI] change amount of Notificaion step (#1930)

Change default notification step value and add new property to modify
it.

Co-authored-by: neostom432 <neostom432@nate.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] Add color constructor (#1929)
neostom432 [Thu, 27 Aug 2020 08:05:42 +0000 (17:05 +0900)]
[NUI] Add color constructor (#1929)

Add color constructor which is initialized by System.Drawing.Color.

When we test something, we always feel our Color class has not enough
color list.

In System.Drawing.Color, there is a ton of predefined colors.
So, added new constructor which can initialized by System.Drawing.Color.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
4 years ago[NUI] proper BindableProperty name for Componenets.Progress (#1936)
YeongJong Lee [Thu, 27 Aug 2020 07:01:13 +0000 (16:01 +0900)]
[NUI] proper BindableProperty name for Componenets.Progress (#1936)

Fixes CA1507

Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
4 years ago[NUI] rename from styleSheet to styleName (#1937)
YeongJong Lee [Thu, 27 Aug 2020 06:55:48 +0000 (15:55 +0900)]
[NUI] rename from styleSheet to styleName (#1937)

Since `StyleSheet` is used in Dali with the JSON file format, this rename will
avoid name confusion.

Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
4 years ago[NUI] Fix View.BackgroundImage getter and View.ImageSyncronousLoading to support...
Jiyun Yang [Thu, 27 Aug 2020 05:52:32 +0000 (14:52 +0900)]
[NUI] Fix View.BackgroundImage getter and View.ImageSyncronousLoading to support all possible visuals. (#1857)

Previous code, it didn't work for other visuals except ImageVisual.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
4 years ago[NUI] Provide binding after WheelEvent class pimpling (#1927)
Richard Huang [Wed, 26 Aug 2020 09:51:01 +0000 (10:51 +0100)]
[NUI] Provide binding after WheelEvent class pimpling (#1927)

Co-authored-by: TizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com>
4 years ago[Build] Use cached api spec in check-api of Pull Request workflow (#1948)
WonYoung Choi [Wed, 26 Aug 2020 01:34:56 +0000 (10:34 +0900)]
[Build] Use cached api spec in check-api of Pull Request workflow (#1948)

4 years ago[Tizen.Applications.ThemeManager] add new apis for ThemeManager (#1913)
kilig [Wed, 26 Aug 2020 00:47:32 +0000 (09:47 +0900)]
[Tizen.Applications.ThemeManager] add new apis for ThemeManager (#1913)

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Co-authored-by: TizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com>
Co-authored-by: pjh9216 <jh9216.park@samsung.com>
4 years ago[Camera] Fix document bug (#1944)
hsgwon [Tue, 25 Aug 2020 07:23:25 +0000 (16:23 +0900)]
[Camera] Fix document bug (#1944)

4 years ago[NUI] Version update (#1943)
dongsug-song [Tue, 25 Aug 2020 05:20:24 +0000 (14:20 +0900)]
[NUI] Version update (#1943)

4 years ago[NUI] Sync the director number with the csharp-binder (#1942)
JoogabYun [Tue, 25 Aug 2020 04:59:41 +0000 (13:59 +0900)]
[NUI] Sync the director number with the csharp-binder (#1942)

4 years ago[NUI] Add internal api to create Texture using TbmSurface (#1941)
huiyueun [Tue, 25 Aug 2020 04:31:31 +0000 (13:31 +0900)]
[NUI] Add internal api to create Texture using TbmSurface (#1941)

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
4 years agoChange privilege of route related APIs (#1888)
chleun-moon [Tue, 25 Aug 2020 03:42:47 +0000 (12:42 +0900)]
Change privilege of route related APIs (#1888)

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
4 years ago[Build] Update workflows for pr build (#1938)
WonYoung Choi [Mon, 24 Aug 2020 09:12:03 +0000 (18:12 +0900)]
[Build] Update workflows for pr build (#1938)

4 years ago[Radio] Add missing descriptions (#1934)
hsgwon [Mon, 24 Aug 2020 03:50:32 +0000 (12:50 +0900)]
[Radio] Add missing descriptions (#1934)

4 years ago[NUI] Fix capture issue of to capture sub-scene. (#1931)
bshsqa [Mon, 24 Aug 2020 01:11:54 +0000 (10:11 +0900)]
[NUI] Fix capture issue of to capture sub-scene. (#1931)

Signed-off-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
Co-authored-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
4 years ago[NUI] Fix NUI Layout issue (#1928)
huiyueun [Fri, 21 Aug 2020 06:05:19 +0000 (15:05 +0900)]
[NUI] Fix NUI Layout issue (#1928)

The LayoutController is not created when created window at the PreLoad time,
because the Stage does not exist yet.
This operation causes a problem that the layout does not work.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>