platform/core/csapi/tizenfx.git
3 years ago[NUI] : Scrollbar thumb support image and update styles
SangHyeon Jade Lee [Tue, 23 Mar 2021 06:34:57 +0000 (15:34 +0900)]
[NUI] : Scrollbar thumb support image and update styles

Change thumb View to ImageView to support image and color properly.

Add new property for thumb images on Scrollbar and ScrollbarStyle.
- ThumbVerticalImageUrl
- ThumbHorizontalImageUrl

Add new image resource for thumb image.
- nui_component_default_scroll_vbar.#.png
- nui_component_default_scroll_hbar.#.png

Now color can be color of background for thumb when image is not
existed, or color of image if url is existed.

3 years ago[NUI] Fix button layout when resize policy is FillToParent and etc. (#2809)
huiyu.eun [Tue, 20 Apr 2021 05:46:42 +0000 (14:46 +0900)]
[NUI] Fix button layout when resize policy is FillToParent and etc. (#2809)

* Add ItemAlignment property to make it "center" for a Button and "begin" for others.
* Add ItemSpacing to set space between icon and text.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Add TextLabel, TextField, TextEditor style and theme. (#2838)
Bowon Ryu [Tue, 6 Apr 2021 04:13:31 +0000 (13:13 +0900)]
[NUI] Add TextLabel, TextField, TextEditor style and theme. (#2838)

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years ago[NUI] Fix argument issue when launch application on ubuntu (#2827)
huiyueun [Mon, 5 Apr 2021 23:04:43 +0000 (08:04 +0900)]
[NUI] Fix argument issue when launch application on ubuntu (#2827)

args[0] value is this.
 ->Tizen.NUI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=eba370b203a2e242

So can't set using argument value.
 ex) dotnet run --width 100 --height --100

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Introduce NUI DatePicker
huiyu.eun [Tue, 20 Apr 2021 05:38:17 +0000 (14:38 +0900)]
[NUI] Introduce NUI DatePicker

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Picker style update
Woochanlee [Thu, 1 Apr 2021 04:06:46 +0000 (13:06 +0900)]
[NUI] Picker style update

3 years ago[NUI] Introduce NUI TimePicker
Woochanlee [Wed, 31 Mar 2021 12:11:00 +0000 (21:11 +0900)]
[NUI] Introduce NUI TimePicker

3 years ago[NUI][AT-SPI] Add Accessibility.StopReading() (#2814)
Artur Świgoń [Fri, 2 Apr 2021 10:34:09 +0000 (12:34 +0200)]
[NUI][AT-SPI] Add Accessibility.StopReading() (#2814)

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
3 years ago[NUI] Add TextEditorStyle and theme example code (#2778)
Jiyun Yang [Fri, 2 Apr 2021 02:16:03 +0000 (11:16 +0900)]
[NUI] Add TextEditorStyle and theme example code (#2778)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI][AT-SPI] Highlight bindings (#2752)
Bartłomiej Grzelewski [Fri, 2 Apr 2021 01:42:00 +0000 (03:42 +0200)]
[NUI][AT-SPI] Highlight bindings (#2752)

Highlight bindings for accessibility.

Co-authored-by: Seoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
3 years ago[NUI] Fix gather assembly for xaml
Xianbing Teng [Mon, 12 Apr 2021 12:41:42 +0000 (20:41 +0800)]
[NUI] Fix gather assembly for xaml

3 years ago[Peripheral] Fix Dispose pattern in Tizen.Peripheral (#2737)
xerrni [Thu, 15 Apr 2021 22:52:41 +0000 (00:52 +0200)]
[Peripheral] Fix Dispose pattern in Tizen.Peripheral (#2737)

* [Peripheral] Fix Dispose pattern in Tizen.Peripheral

Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
* [Peripheral] check if parameter is not null.

Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
3 years ago[NUI] Make build correctly
Jaehyun Cho [Wed, 14 Apr 2021 07:57:41 +0000 (16:57 +0900)]
[NUI] Make build correctly

3 years agoRevert "Revert "[NUI] Add AlertDialogStyle class with the latest AlertDialog UX""
Jaehyun Cho [Wed, 14 Apr 2021 07:57:24 +0000 (16:57 +0900)]
Revert "Revert "[NUI] Add AlertDialogStyle class with the latest AlertDialog UX""

This reverts commit 18a2050cf2890d02668449571e5950ef3c3faf42.

3 years agoRevert "Revert "[NUI] Dialog and AlertDialog code refactoring with adding DialogPage""
Jaehyun Cho [Wed, 14 Apr 2021 07:57:19 +0000 (16:57 +0900)]
Revert "Revert "[NUI] Dialog and AlertDialog code refactoring with adding DialogPage""

This reverts commit 357f3d0b82bd7a184f02abf6286ebcd1eaddbf6f.

3 years agoRevert "Revert "[NUI] Add ContentPage class""
Jaehyun Cho [Wed, 14 Apr 2021 07:56:12 +0000 (16:56 +0900)]
Revert "Revert "[NUI] Add ContentPage class""

This reverts commit 3a0f69a36aa1812040731237d4a9aeefd4c4a2a8.

3 years ago[NUI] View Transition with page switching
Seungho Baek [Tue, 2 Mar 2021 15:33:22 +0000 (00:33 +0900)]
[NUI] View Transition with page switching

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
3 years ago[NUI] Change CornerRadius type to Vector4 from float (#2863)
Jiyun Yang [Thu, 8 Apr 2021 07:32:32 +0000 (16:32 +0900)]
[NUI] Change CornerRadius type to Vector4 from float (#2863)

Note that, only X value of Vector4 will be applied to the view until dali support it.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Make all property setters in Shadow class to internal (#2812)
Jiyun Yang [Tue, 6 Apr 2021 07:14:37 +0000 (16:14 +0900)]
[NUI] Make all property setters in Shadow class to internal (#2812)

Instead in xaml, shadow can be a simple string such as,
"10.0 | #FF0000FFF", which means 10 blurRadius and red color.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[Bluetooth][Non-ACR] Fix BluetoothDevice data converting issue (#2887)
Wootak Jung [Tue, 13 Apr 2021 04:25:54 +0000 (13:25 +0900)]
[Bluetooth][Non-ACR] Fix BluetoothDevice data converting issue (#2887)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 years ago[WebView] Support request intercept (#2842)
younghajung [Mon, 12 Apr 2021 05:49:16 +0000 (14:49 +0900)]
[WebView] Support request intercept (#2842)

This patch is cherry-picked from API8.

This patch adds internal APIs to support request intercept.
Plus, adds APIs for remote inspect.

Signed-off-by: yh106.jung <yh106.jung@samsung.com>
3 years agoRevert "[NUI] Button text ellipsis enabled and etc. (#2772)" (#2858)
huiyueun [Thu, 8 Apr 2021 01:10:34 +0000 (10:10 +0900)]
Revert "[NUI] Button text ellipsis enabled and etc. (#2772)" (#2858)

This reverts commit 86409caf7bffd2b7b3e0aa7a827a51b449938b1e.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Picker fix a defect that could refer to null pointer
Woochanlee [Thu, 1 Apr 2021 03:01:07 +0000 (12:01 +0900)]
[NUI] Picker fix a defect that could refer to null pointer

WGID: 458476

3 years ago[NUI] VectorGraphics: Modify code format
JunsuChoi [Tue, 30 Mar 2021 05:10:31 +0000 (14:10 +0900)]
[NUI] VectorGraphics: Modify code format

3 years ago[NUI] VectorGraphics: Add exception handling for Drawable.Transform()
JunsuChoi [Wed, 24 Mar 2021 02:19:44 +0000 (11:19 +0900)]
[NUI] VectorGraphics: Add exception handling for Drawable.Transform()

3 years ago[NUI] VectorGraphcis: Change StrokeDash type from List to ReadOnlyCollection.
JunsuChoi [Wed, 24 Mar 2021 01:58:36 +0000 (10:58 +0900)]
[NUI] VectorGraphcis: Change StrokeDash type from List to ReadOnlyCollection.

3 years ago[NUI] VectorGraphics: Remove exception throw in getter (CA1065)
JunsuChoi [Tue, 23 Mar 2021 09:37:16 +0000 (18:37 +0900)]
[NUI] VectorGraphics: Remove exception throw in getter (CA1065)

3 years ago[NUI] CanvasView: Change Set and Get APIs to Property
JunsuChoi [Tue, 23 Mar 2021 08:09:01 +0000 (17:09 +0900)]
[NUI] CanvasView: Change Set and Get APIs to Property

3 years ago[NUI] CanvasView: Add Exception handling and license
JunsuChoi [Tue, 23 Mar 2021 06:29:57 +0000 (15:29 +0900)]
[NUI] CanvasView: Add Exception handling and license

3 years ago[NUI] Change Paint to Drawable and fix typo
JunsuChoi [Fri, 19 Mar 2021 07:52:08 +0000 (16:52 +0900)]
[NUI] Change Paint to Drawable and fix typo

3 years agoBaseComponent: Introduce CanvasView component for vector primitives.
JunsuChoi [Thu, 18 Mar 2021 08:40:22 +0000 (17:40 +0900)]
BaseComponent: Introduce CanvasView component for vector primitives.

CanvasView draws Vector Primitives using ThorVG library.
CanvasView can draw a shape in its internal buffer by adding a Shape object.
Shape is a command list based on Path. Fill and Stroke properties can be set using setters and getters.
Paint is a parent class of Shape and it has common class of classes to be added later (Scene, etc.).

Classes
  Tizen.NUI.BaseComponents.VectorGraphics.CanvasView
  Tizen.NUI.BaseComponents.VectorGraphics.Paint
  Tizen.NUI.BaseComponents.VectorGraphics.Shape

Dependancy
  Dali-Toolkit : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/250398/
  Dali-Adaptor : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/250466/
  ThorVG : https://github.com/Samsung/thorvg

Example
  test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CanvasViewSamsple.cs

3 years ago[NUI] Fix not to check non-nullable value (#2819)
Jaehyun Cho [Wed, 31 Mar 2021 09:02:32 +0000 (18:02 +0900)]
[NUI] Fix not to check non-nullable value (#2819)

NavigatorPages always contains non-nullable values.
Therefore, to resolve svace issue (DEREF_AFTER_NULL), null pointer check
is not done for non-nullable values.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Suppress CA1054 and CA1056 (forced to use Uri) and clean code (#2811)
Jiyun Yang [Wed, 31 Mar 2021 08:50:30 +0000 (17:50 +0900)]
[NUI] Suppress CA1054 and CA1056 (forced to use Uri) and clean code (#2811)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Add a method to create a toast in Notification and etc. (#2800)
Jiyun Yang [Wed, 31 Mar 2021 08:35:11 +0000 (17:35 +0900)]
[NUI] Add a method to create a toast in Notification and etc. (#2800)

* Add a method to create a toast in Notification class.
* Fix wrong argument exception usage.
* Add mroe description in Post method.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Add to check xaml image resource (#2799)
huiyueun [Wed, 31 Mar 2021 08:13:41 +0000 (17:13 +0900)]
[NUI] Add to check xaml image resource (#2799)

- If we create button by xaml, we can't set child resource
- Add BackgroundImage checker for xaml

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Selector class implements ICollection and etc. (#2796)
Jiyun Yang [Wed, 31 Mar 2021 08:02:45 +0000 (17:02 +0900)]
[NUI] Selector class implements ICollection and etc. (#2796)

* Selector implements ICollection to get priority of items.
* property getters don't throw an exception.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Add TabButtonStyle class with the latest TabButton UX (#2780)
Jaehyun Cho [Wed, 31 Mar 2021 07:38:59 +0000 (16:38 +0900)]
[NUI] Add TabButtonStyle class with the latest TabButton UX (#2780)

To apply the latest TabButton UX, TabButtonStyle class is added.

TabButtonStyle.TopLine and TabButtonStyle.BottomLine are displayed when
TabButton is pressed or selected.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
3 years ago[NUI] Introduce NUI Picker (#2769)
Woochan [Wed, 31 Mar 2021 07:16:46 +0000 (16:16 +0900)]
[NUI] Introduce NUI Picker (#2769)

Co-authored-by: Woochanlee <wc0917.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Update recyclerView item and styles.add missing patches files.
EverLEEst(SangHyeon Jade Lee) [Mon, 29 Mar 2021 12:02:18 +0000 (21:02 +0900)]
[NUI] Update recyclerView item and styles.add missing patches files.

3 years ago[NUI] Update recyclerView items and styles.
EverLEEst(SangHyeon Jade Lee) [Mon, 29 Mar 2021 11:22:06 +0000 (20:22 +0900)]
[NUI] Update recyclerView items and styles.

3 years agoImplement CameraView (#2680)
JoogabYun [Tue, 30 Mar 2021 07:58:05 +0000 (16:58 +0900)]
Implement CameraView (#2680)

3 years ago[NUI] Fix NUI svace issue (#2817)
huiyueun [Wed, 31 Mar 2021 09:17:09 +0000 (18:17 +0900)]
[NUI] Fix NUI svace issue (#2817)

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years agoRemove async keyword from SendAndReceiveAsync() method (#2801)
hjhun [Wed, 31 Mar 2021 07:52:37 +0000 (16:52 +0900)]
Remove async keyword from SendAndReceiveAsync() method (#2801)

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years ago[MachineLearning.Inference] Fix the Svace issue (#2821)
Sangjung Woo [Wed, 31 Mar 2021 06:41:27 +0000 (15:41 +0900)]
[MachineLearning.Inference] Fix the Svace issue (#2821)

This patch fixes the svace issue.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
3 years ago[NUI] Fix NUI.Components test case fail (#2815)
Seoyeon2Kim [Wed, 31 Mar 2021 02:18:29 +0000 (11:18 +0900)]
[NUI] Fix NUI.Components test case fail (#2815)

- Should have added null check for indeterminateImage instance

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years ago[NUI] Add some comments for NUI Layout (#2804)
Seoyeon2Kim [Tue, 30 Mar 2021 04:03:16 +0000 (13:03 +0900)]
[NUI] Add some comments for NUI Layout (#2804)

- To avoid confusion of NUI Layout terms, add some summaries to `View` class.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years ago[NUI] Fix NUI Svace issue (#2806)
huiyueun [Tue, 30 Mar 2021 01:52:43 +0000 (10:52 +0900)]
[NUI] Fix NUI Svace issue (#2806)

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Change button theme to show Focused+Pressed state well.
Jiyun Yang [Thu, 25 Mar 2021 02:56:40 +0000 (11:56 +0900)]
[NUI] Change button theme to show Focused+Pressed state well.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years agoMove state calculation to Button class
Bartlomiej Grzelewski [Mon, 22 Mar 2021 16:34:24 +0000 (17:34 +0100)]
Move state calculation to Button class

3 years ago[NUI] Add Apis of Webview Settings.
guowei.wang [Wed, 24 Mar 2021 12:14:25 +0000 (20:14 +0800)]
[NUI] Add Apis of Webview Settings.

3 years ago[NUI] NUI_DevelNUI_layout_null_issue (#2792)
huiyueun [Sun, 28 Mar 2021 23:39:40 +0000 (08:39 +0900)]
[NUI] NUI_DevelNUI_layout_null_issue (#2792)

need to check 'value'

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Add GrabHandleColor property (#2776)
Bowon Ryu [Wed, 24 Mar 2021 04:24:56 +0000 (13:24 +0900)]
[NUI] Add GrabHandleColor property (#2776)

GrabHandleColor property can set the color of grab handle in TextField/TextEditor.

exmaple)
field.GrabHandleColor = new Color(0.0f, 1.0f, 0.0f, 1.0f);

this patch should be merged after below patches are applied.
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/255726/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/255739/

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
[NUI] Use Color type instead of Vector4 for GrabHandleColor

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
[NUI] Add missing code for GrabHandleColor

field.GrabHandleColor = new Color(0.0f, 1.0f, 0.0f, 1.0f);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
[NUI] Replace Vector4 with Color in TextField/TextEditorBindableProperty

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years ago[NUI] Fix TabButton not to invoke duplicate SelectedChanged (#2775)
Jaehyun Cho [Tue, 23 Mar 2021 12:48:05 +0000 (21:48 +0900)]
[NUI] Fix TabButton not to invoke duplicate SelectedChanged (#2775)

TabButton does not change its state to unselected if button or key is
unpressed while its state is selected.

Previously, TabButton invoked duplicate SelectedChanged if button or key
is unpressed while its state is selected.

Now, TabButton does not invoke duplicate SelectedChanged if button or
key is unpressed while its state is selected.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
3 years ago[NUI] TextLayout can consider specified maximum width. (#2774)
Jiyun Yang [Tue, 23 Mar 2021 07:05:10 +0000 (16:05 +0900)]
[NUI] TextLayout can consider specified maximum width. (#2774)

Previsouly, the Layout system did not reflect TextLabel's maximum size, so the following example did't work corrrectly,

```C#
  var view = new View()
  {
    Layout = new LinearLayout() { LinearOrientation = LinearLayout.Orientation.Horizontal, },
  };
  view.Add(new TextLabel() { MaximumSize = new Size2D(50, 50), Text = "Helloooooooooooooooooo!" });
  view.Add(new TextLabel() { MaximumSize = new Size2D(50, 50), Text = "Helloooooooooooooooooo!" });
  NUIApplication.GetDefaultWindow().Add(view);
```

The x-position of the second child was calculated based on the first child's natutal width,
but the first child's actual width was limited by MaximumSize(50).

So this patch update the TextLabel's layout to make it consider the maxmimum size of the view.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: huiyueun <35286162+huiyueun@users.noreply.github.com>
3 years ago[NUI] Add Progress Indeterminate mode (#2733)
Seoyeon2Kim [Tue, 23 Mar 2021 05:28:08 +0000 (14:28 +0900)]
[NUI] Add Progress Indeterminate mode (#2733)

* [NUI] Add Progress Indeterminate mode

- Indeterminate type means an unspecified amount of wait time.
 If `ProgressState` property sets `ProgressStatusType.Indeterminate` mode,
 then progress is continually repeating until the process in complete.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* Fix build warning

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* Update Progress based on review

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Update 6.5 UX for CheckBox, Switch and RadioButton (#2773)
Jiyun Yang [Tue, 23 Mar 2021 05:10:55 +0000 (14:10 +0900)]
[NUI] Update 6.5 UX for CheckBox, Switch and RadioButton (#2773)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Button text ellipsis enabled and etc. (#2772)
Jiyun Yang [Tue, 23 Mar 2021 04:56:43 +0000 (13:56 +0900)]
[NUI] Button text ellipsis enabled and etc. (#2772)

* Button text ellipsis when the text is longer than the button width.
* Switch thumb can get control state changed callback from parent.
* Button IconPadding is ignored when the icon is not exist.
* Button TextPadding is ignored when the text is not exist.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Update InputPanelLanguage enum description (#2770)
Seoyeon2Kim [Mon, 22 Mar 2021 06:41:03 +0000 (15:41 +0900)]
[NUI] Update InputPanelLanguage enum description (#2770)

- InputPanelLanguage.Alphabet enumeration can be changed
 according to OSD language.
- For instance, if OSD language is not Latin alphabet, such as Korean and Arabic,
 IME default language would change to English.
 If OSD language is Latin alphabet, such as French and Spanish,
 IME default language would be OSD language itself.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years ago[NUI] CheckBox, RadioButton and Switch can place text without setting text size ...
Jiyun Yang [Mon, 22 Mar 2021 03:55:43 +0000 (12:55 +0900)]
[NUI] CheckBox, RadioButton and Switch can place text without setting text size (#2763)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Improve LayoutController.Process performance (#2755)
huiyueun [Mon, 22 Mar 2021 01:20:07 +0000 (10:20 +0900)]
[NUI] Improve LayoutController.Process performance (#2755)

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years agoCheck result parcel (#2802)
hjhun [Tue, 30 Mar 2021 02:04:38 +0000 (11:04 +0900)]
Check result parcel (#2802)

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years ago[VoiceControl] Support multi handle for event and add thread lock for these handles...
Suyeon Hwang [Fri, 26 Mar 2021 07:51:44 +0000 (16:51 +0900)]
[VoiceControl] Support multi handle for event and add thread lock for these handles (#2795)

* [VoiceControl] Support multi handle for event

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
* [VoiceControl] Add lock for event handlers

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years ago[Tts/Stt] Use thread lock only when add and remove event handler (#2782)
Suyeon Hwang [Thu, 25 Mar 2021 01:51:25 +0000 (10:51 +0900)]
[Tts/Stt] Use thread lock only when add and remove event handler (#2782)

* [Tts] Use thread lock only when add and remove event handler

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
* [Stt] Use thread lock only when add and remove event handler

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
* [Tts/Stt] Remove useless thread lock statements

null conditional operator already guarantees the thread safety.
So it does not need additional thread lock.

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years ago[Applications.ComponentBased] Modify and Add classes for IPC feature (#2675)
hjhun [Wed, 24 Mar 2021 04:13:26 +0000 (13:13 +0900)]
[Applications.ComponentBased] Modify and Add classes for IPC feature (#2675)

* Change directory name

The directory name is changed to 'ComponentPort'.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Remove unncessary interop parcel methods

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix descriptions

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix typo

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix example code

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Rename directory to Port

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix ComponentPort implementation

Changes:
 - Removes abstract keyword from ComponentPort class
 - Changes OnRequestEvent() method to use virtual keyword instead of abstract keyword
 - Adds RequestEventArgs for OnRequestEvent()
 - Adds ComponentTask class for WaitForEvent() call
 - Changes the name of SendSync() to SendAndReceive().
 - Adds SendAndReceiveAsync() method
 - Adds WaitForPort() method

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add EventHandler

- Uses EventHandler instead of virtual method

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix WaitForPort implementation

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix descriptions and implemenation

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix wrong implemenations and descriptions

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix descipriton of ComponentTask

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix WaitForPortCore()

- Uses Task.FromResult()

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix wrong description about permission denied error

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years ago[NUI] Fix TCT fails
Jiyun Yang [Fri, 19 Mar 2021 02:30:51 +0000 (11:30 +0900)]
[NUI] Fix TCT fails

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Modify NUI.Components private variable (#2764)
huiyueun [Fri, 19 Mar 2021 04:13:26 +0000 (13:13 +0900)]
[NUI] Modify NUI.Components private variable (#2764)

- Add opensource license
- Delete 'm' or '_' of private variable
- Delete unused using

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Remove Transition for xaml
seungho [Fri, 19 Mar 2021 01:45:08 +0000 (10:45 +0900)]
[NUI] Remove Transition for xaml

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Scrollbar uses View instead Visual since blinking issue (#2745)
Jiyun Yang [Fri, 19 Mar 2021 02:12:59 +0000 (11:12 +0900)]
[NUI] Scrollbar uses View instead Visual since blinking issue (#2745)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI][Design]Update Tizen.NUI.Design and Add Tizen.NUI.Components.Design
Xianbing Teng [Wed, 10 Jun 2020 06:45:38 +0000 (14:45 +0800)]
[NUI][Design]Update Tizen.NUI.Design and Add Tizen.NUI.Components.Design

1. Add Tizen.NUI.Components.Design
2. Update Tizen.NUI.Design
3. Update design dlls

3 years agoRevert "[NUI] Clean up View's Events"
Dongsug Song [Thu, 18 Mar 2021 09:30:46 +0000 (18:30 +0900)]
Revert "[NUI] Clean up View's Events"

This reverts commit c0df2f273c77d7655df2d9c15d005a72d71431d7.

3 years ago[NUI] Check spelling
huiyu.eun [Thu, 18 Mar 2021 04:20:42 +0000 (13:20 +0900)]
[NUI] Check spelling

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Fix padding issue
huiyu.eun [Tue, 16 Mar 2021 10:18:54 +0000 (19:18 +0900)]
[NUI] Fix padding issue

If Layout is a LayoutItem then it could be a View that handles it's own padding.
Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Remove Debug.WritelineIf
huiyu.eun [Wed, 17 Mar 2021 04:26:29 +0000 (13:26 +0900)]
[NUI] Remove Debug.WritelineIf

Rmove to improve performance

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[Inputmethod] Fix the crash issue due to double free (#2756)
Inhong [Thu, 18 Mar 2021 05:35:54 +0000 (14:35 +0900)]
[Inputmethod] Fix the crash issue due to double free (#2756)

Co-authored-by: InHong Han <inhong1.han@samsung.com>
3 years ago[NUI] Remove APIs which have been deprecated in API7
Dongsug Song [Thu, 25 Feb 2021 08:49:12 +0000 (17:49 +0900)]
[NUI] Remove APIs which have been deprecated in API7

This reverts commit ed2f6c68fa315f66578c231912ded2af9fa8e98d.

3 years ago[NUI] Version update (nui22017) (#2746)
Eunki Hong [Wed, 17 Mar 2021 02:26:22 +0000 (11:26 +0900)]
[NUI] Version update (nui22017) (#2746)

Signed-off-by: pichulia <eunkiki.hong@samsung.com>
Co-authored-by: pichulia <eunkiki.hong@samsung.com>
3 years ago[NUI] : Add ScrollPosition in ScrollEventArgs for user convenience.
SangHyeon Jade Lee [Tue, 16 Mar 2021 05:44:09 +0000 (14:44 +0900)]
[NUI] : Add ScrollPosition in ScrollEventArgs for user convenience.

Current Position property in ScrollEventArgs is position of
ContentContainer which is negative.
user controls scrollableBase via ScrollTo and other API with
positive position of pan not ContentContainer so user must convert
current Position Property to use.

By this patch, we provide positive ScrollPosition which represent
position of scroll pan, so no need to convert value for using it.

3 years ago[NUI] Remove StyleCop CA1715 warning messages
Jaehyun Cho [Wed, 11 Nov 2020 08:09:26 +0000 (17:09 +0900)]
[NUI] Remove StyleCop CA1715 warning messages

Since T, U, R are commonly used as generic type parameter names and not
to do ACR, StyleCop CA1715 warning messages in DaliEventHandler.cs are
removed.

3 years ago[NUI] change type from Size2D to Size at TouchArea api
Joogab Yun [Mon, 15 Mar 2021 03:55:54 +0000 (12:55 +0900)]
[NUI] change type from Size2D to Size at TouchArea api

3 years ago[NUI] Theme change do not overwrite user set properties. (#2731)
Jiyun Yang [Mon, 15 Mar 2021 02:24:41 +0000 (11:24 +0900)]
[NUI] Theme change do not overwrite user set properties.  (#2731)

* [NUI] Theme change do not overwrite user set properties.

* Note that this works only for the bindable properties.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Components share style instance in a theme

Hence a component should not modify connected style instance.

3 years ago[NUI] Clean up MeasureAndLayout of LayoutController
huiyu.eun [Fri, 12 Mar 2021 04:28:45 +0000 (13:28 +0900)]
[NUI] Clean up MeasureAndLayout of LayoutController

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Add TouchArea property.
Joogab Yun [Fri, 12 Mar 2021 01:50:58 +0000 (10:50 +0900)]
[NUI] Add TouchArea property.

Default touchable area is view's size.
TouchArea can reset the view's touchable area.

This is usefull when the view is small, but it should have a larger touch area.

for example

      View view = new View();
      view.Size = new Size(10, 10);
      view.TouchEvent += OnTouchEvent;
      view.TouchArea = new Size2D(200, 200);

The view is small, If you want to set the touch area to a larger area,
you can use the TouchArea property.

This reverts commit 034889141391985f0ad1727ae6e32719d9c5a360.

3 years ago[NUI] Delete unuused code
huiyu.eun [Fri, 12 Mar 2021 03:31:34 +0000 (12:31 +0900)]
[NUI] Delete unuused code

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Set Navigator Layout (#2727)
Jaehyun Cho [Fri, 12 Mar 2021 02:41:25 +0000 (11:41 +0900)]
[NUI] Set Navigator Layout (#2727)

To calculate its children (i.e. Page) size correctly, Navigator sets
AbsoluteLayout to its Layout.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
3 years ago[NUI] Remove CA2000 false alarm in Navigator (#2729)
Jaehyun Cho [Fri, 12 Mar 2021 01:44:10 +0000 (10:44 +0900)]
[NUI] Remove CA2000 false alarm in Navigator (#2729)

Since the pushed views are added to NavigationPages and are disposed in
Navigator.Dispose(), the CA2000 in Navigator is false alarm.

To remove the CA2000 false alarm, SuppressMessage for CA2000 is added.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
3 years ago[NUI] Clean up View's Events
Dongsug Song [Thu, 11 Mar 2021 01:52:46 +0000 (10:52 +0900)]
[NUI] Clean up View's Events

3 years ago[NUI] Add Slider discrete value properties (#2721)
Seoyeon2Kim [Fri, 12 Mar 2021 01:16:26 +0000 (10:16 +0900)]
[NUI] Add Slider discrete value properties (#2721)

- If the app sets `IsDiscrete` as true,
 the thumb snap to the nearest discrete value when the user drags the thumb or taps.
- To set the value for discrete slider, use `DiscreteValue` property.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years agoSupport TranslatablePlaceholderTextFocused to TextField
Bowon Ryu [Thu, 4 Mar 2021 08:05:31 +0000 (17:05 +0900)]
Support TranslatablePlaceholderTextFocused to TextField

PlaceholderTextFoused can set the SID value by this patch

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years ago[NUI] Fix build warning for AccessibilityEvent naming (#2710)
Seoyeon2Kim [Thu, 11 Mar 2021 02:40:33 +0000 (11:40 +0900)]
[NUI] Fix build warning for AccessibilityEvent naming (#2710)

* [NUI] Fix build warning for AccessibilityEvent naming

- There's a build warning for View.Activate EventHandler : CS0108.
 'GaussianBlurView.Activate()' hides inherited member 'View.Activate'.
- Use the new keyword, 'Activated'.
- Update some code to follow formatting rules

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* [NUI] Add Accessibility prefix to events

- Add 'Accessibility' prefix to all Accessibility events.
- Fix build warning : CA2000
  Call Dispose on object created by signals before all references are out of scope.
  -> Make signal variable separately.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years ago[NUI] Introduce NUI Palette APIs
Woochanlee [Wed, 10 Mar 2021 04:29:21 +0000 (13:29 +0900)]
[NUI] Introduce NUI Palette APIs

3 years ago[NUI] Add AppBarStyle class with the latest AppBar UX (#2718)
Jaehyun Cho [Wed, 10 Mar 2021 05:16:01 +0000 (14:16 +0900)]
[NUI] Add AppBarStyle class with the latest AppBar UX (#2718)

To apply the latest AppBar UX, AppBarStyle class is added.

AppBarStyle.BackButton is applied to AppBar.DefaultNavigationContent.
AppBarStyle.TitleTextLabel is applied to AppBar.DefaultTitleContent.
AppBarStyle.ActionView and ActionButton are applied to the children of
AppBar.DefaultActionContent added by AppBar.AddActions().

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
3 years ago[Tizen.System.Information][Non-ACR] Add API for internal (#2740)
yunmiha [Tue, 16 Mar 2021 10:57:51 +0000 (19:57 +0900)]
[Tizen.System.Information][Non-ACR] Add API for internal (#2740)

* [Tizen.System.Information] Add API

- GetGemRss
- GetGpu
- GetSwap

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
* [Tizen.System.Information] Add API

    - GetGemRss
    - GetGpu
    - GetSwap

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
* Fix build warning

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
* Update src/Tizen.System.Information/Interop/Interop.RuntimeInfo.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Interop/Interop.RuntimeInfo.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
* Update Interop.RuntimeInfo.cs

* Update ProcessMemoryUsage.cs

* Create ProcessMemoryUsage.cs

* Update ProcessMemoryUsage.cs

* Update ProcessMemoryUsage.cs

* Update ProcessMemoryUsage.cs

* [Tizen.System.Information][Non-ACR] Fix memory leak

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
3 years agoFix typo in function
Jihoon Kim [Tue, 9 Mar 2021 10:57:36 +0000 (19:57 +0900)]
Fix typo in function

Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
3 years agoFix GetLocalOobData memory leak (#2724)
Wootak Jung [Wed, 10 Mar 2021 05:42:02 +0000 (14:42 +0900)]
Fix GetLocalOobData memory leak (#2724)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
3 years ago[NUI] Fix AccessibilityManager's unsafe conversion to View from IntPtr (#2717)
Jiyun Yang [Tue, 9 Mar 2021 03:35:39 +0000 (12:35 +0900)]
[NUI] Fix AccessibilityManager's unsafe conversion to View from IntPtr (#2717)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix a Warning in WidgetView (#2715)
tscholb [Tue, 9 Mar 2021 03:30:57 +0000 (12:30 +0900)]
[NUI] Fix a Warning in WidgetView (#2715)

CA1065: Do not raise exceptions in unexpected locations

Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] AppBar code refactoring to introduce AppBarStyle (#2713)
Jaehyun Cho [Tue, 9 Mar 2021 03:25:31 +0000 (12:25 +0900)]
[NUI] AppBar code refactoring to introduce AppBarStyle (#2713)

Unused namespace System.Windows.Input is removed.

AppBar constructors with parameters are removed to reduce complexity by
adding constructors with style parameters.

private Initialize() is added to remove duplicate codes in constructors.

DefaultTitleContent and DefaultActionContent are added like
DefaultNavigationContent.

SetTitle() is added to set title text to DefaultTitleContent.
AddActions() and RemoveActions() are added to add and remove action
views to DefaultActionContent.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Improve performance in theme and styles (#2704)
Jiyun Yang [Tue, 9 Mar 2021 03:19:34 +0000 (12:19 +0900)]
[NUI] Improve performance in theme and styles (#2704)

* [NUI] Improve performance: Make selectors lazily generated.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Improve performance: Remove redundant clone

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Improve performance: Add dirty style property set

This may reduce time of ViewStyle.Clone() and View.ApplyStyle().
But may increase runtime memory.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[Bluetooth][Non-ACR] GetBondedDevice converting issue (#2517)
Wootak Jung [Wed, 10 Mar 2021 02:32:52 +0000 (11:32 +0900)]
[Bluetooth][Non-ACR] GetBondedDevice converting issue (#2517)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Co-authored-by: dh79pyun <31202060+dh79pyun@users.noreply.github.com>
3 years ago[NUI] Catch all exceptions from tizen theme manager
Jiyun Yang [Mon, 8 Mar 2021 07:13:16 +0000 (16:13 +0900)]
[NUI] Catch all exceptions from tizen theme manager

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>